Codebase list libhdate / 32ec80d
Update upstream source from tag 'upstream/1.6' Update to upstream version '1.6' with Debian dir 180634daa9366769b99e1d6896cb917465382fd8 Lior Kaplan 5 years ago
127 changed file(s) with 79362 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 1.1 INSTALL Matters
21 ===================
22
23 Some packages are "localizable" when properly installed; the programs
24 they contain can be made to speak your own native language. Most such
25 packages use GNU `gettext'. Other packages have their own ways to
26 internationalization, predating GNU `gettext'.
27
28 By default, this package will be installed to allow translation of
29 messages. It will automatically detect whether the system already
30 provides the GNU `gettext' functions. Installers may use special
31 options at configuration time for changing the default behaviour. The
32 command:
33
34 ./configure --disable-nls
35
36 will _totally_ disable translation of messages.
37
38 When you already have GNU `gettext' installed on your system and run
39 configure without an option for your new package, `configure' will
40 probably detect the previously built and installed `libintl' library
41 and will decide to use it. If not, you may have to to use the
42 `--with-libintl-prefix' option to tell `configure' where to look for it.
43
44 Internationalized packages usually have many `po/LL.po' files, where
45 LL gives an ISO 639 two-letter code identifying the language. Unless
46 translations have been forbidden at `configure' time by using the
47 `--disable-nls' switch, all available translations are installed
48 together with the package. However, the environment variable `LINGUAS'
49 may be set, prior to configuration, to limit the installed set.
50 `LINGUAS' should then contain a space separated list of two-letter
51 codes, stating which languages are allowed.
52
53 1.2 Using This Package
54 ======================
55
56 As a user, if your language has been installed for this package, you
57 only have to set the `LANG' environment variable to the appropriate
58 `LL_CC' combination. If you happen to have the `LC_ALL' or some other
59 `LC_xxx' environment variables set, you should unset them before
60 setting `LANG', otherwise the setting of `LANG' will not have the
61 desired effect. Here `LL' is an ISO 639 two-letter language code, and
62 `CC' is an ISO 3166 two-letter country code. For example, let's
63 suppose that you speak German and live in Germany. At the shell
64 prompt, merely execute `setenv LANG de_DE' (in `csh'),
65 `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
66 This can be done from your `.login' or `.profile' file, once and for
67 all.
68
69 You might think that the country code specification is redundant.
70 But in fact, some languages have dialects in different countries. For
71 example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
72 country code serves to distinguish the dialects.
73
74 The locale naming convention of `LL_CC', with `LL' denoting the
75 language and `CC' denoting the country, is the one use on systems based
76 on GNU libc. On other systems, some variations of this scheme are
77 used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
78 locales supported by your system for your language by running the
79 command `locale -a | grep '^LL''.
80
81 Not all programs have translations for all languages. By default, an
82 English message is shown in place of a nonexistent translation. If you
83 understand other languages, you can set up a priority list of languages.
84 This is done through a different environment variable, called
85 `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
86 for the purpose of message handling, but you still need to have `LANG'
87 set to the primary language; this is required by other parts of the
88 system libraries. For example, some Swedish users who would rather
89 read translations in German than English for when Swedish is not
90 available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
91
92 Special advice for Norwegian users: The language code for Norwegian
93 bokma*l changed from `no' to `nb' recently (in 2003). During the
94 transition period, while some message catalogs for this language are
95 installed under `nb' and some older ones under `no', it's recommended
96 for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
97 older translations are used.
98
99 In the `LANGUAGE' environment variable, but not in the `LANG'
100 environment variable, `LL_CC' combinations can be abbreviated as `LL'
101 to denote the language's main dialect. For example, `de' is equivalent
102 to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
103 (Portuguese as spoken in Portugal) in this context.
104
105 1.3 Translating Teams
106 =====================
107
108 For the Free Translation Project to be a success, we need interested
109 people who like their own language and write it well, and who are also
110 able to synergize with other translators speaking the same language.
111 Each translation team has its own mailing list. The up-to-date list of
112 teams can be found at the Free Translation Project's homepage,
113 `http://translationproject.org/', in the "Teams" area.
114
115 If you'd like to volunteer to _work_ at translating messages, you
116 should become a member of the translating team for your own language.
117 The subscribing address is _not_ the same as the list itself, it has
118 `-request' appended. For example, speakers of Swedish can send a
119 message to `sv-request@li.org', having this message body:
120
121 subscribe
122
123 Keep in mind that team members are expected to participate
124 _actively_ in translations, or at solving translational difficulties,
125 rather than merely lurking around. If your team does not exist yet and
126 you want to start one, or if you are unsure about what to do or how to
127 get started, please write to `coordinator@translationproject.org' to
128 reach the coordinator for all translator teams.
129
130 The English team is special. It works at improving and uniformizing
131 the terminology in use. Proven linguistic skills are praised more than
132 programming skills, here.
133
134 1.4 Available Packages
135 ======================
136
137 Languages are not equally supported in all packages. The following
138 matrix shows the current state of internationalization, as of June
139 2010. The matrix shows, in regard of each package, for which languages
140 PO files have been submitted to translation coordination, with a
141 translation percentage of at least 50%.
142
143 Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca
144 +--------------------------------------------------+
145 a2ps | [] [] |
146 aegis | |
147 ant-phone | |
148 anubis | |
149 aspell | [] [] |
150 bash | |
151 bfd | |
152 bibshelf | [] |
153 binutils | |
154 bison | |
155 bison-runtime | [] |
156 bluez-pin | [] [] |
157 bombono-dvd | |
158 buzztard | |
159 cflow | |
160 clisp | |
161 coreutils | [] [] |
162 cpio | |
163 cppi | |
164 cpplib | [] |
165 cryptsetup | |
166 dfarc | |
167 dialog | [] [] |
168 dico | |
169 diffutils | [] |
170 dink | |
171 doodle | |
172 e2fsprogs | [] |
173 enscript | [] |
174 exif | |
175 fetchmail | [] |
176 findutils | [] |
177 flex | [] |
178 freedink | |
179 gas | |
180 gawk | [] [] |
181 gcal | [] |
182 gcc | |
183 gettext-examples | [] [] [] [] |
184 gettext-runtime | [] [] |
185 gettext-tools | [] [] |
186 gip | [] |
187 gjay | |
188 gliv | [] |
189 glunarclock | [] [] |
190 gnubiff | |
191 gnucash | [] |
192 gnuedu | |
193 gnulib | |
194 gnunet | |
195 gnunet-gtk | |
196 gnutls | |
197 gold | |
198 gpe-aerial | |
199 gpe-beam | |
200 gpe-bluetooth | |
201 gpe-calendar | |
202 gpe-clock | [] |
203 gpe-conf | |
204 gpe-contacts | |
205 gpe-edit | |
206 gpe-filemanager | |
207 gpe-go | |
208 gpe-login | |
209 gpe-ownerinfo | [] |
210 gpe-package | |
211 gpe-sketchbook | |
212 gpe-su | [] |
213 gpe-taskmanager | [] |
214 gpe-timesheet | [] |
215 gpe-today | [] |
216 gpe-todo | |
217 gphoto2 | |
218 gprof | [] |
219 gpsdrive | |
220 gramadoir | |
221 grep | |
222 grub | [] [] |
223 gsasl | |
224 gss | |
225 gst-plugins-bad | [] |
226 gst-plugins-base | [] |
227 gst-plugins-good | [] |
228 gst-plugins-ugly | [] |
229 gstreamer | [] [] [] |
230 gtick | |
231 gtkam | [] |
232 gtkorphan | [] |
233 gtkspell | [] [] [] |
234 gutenprint | |
235 hello | [] |
236 help2man | |
237 hylafax | |
238 idutils | |
239 indent | [] [] |
240 iso_15924 | |
241 iso_3166 | [] [] [] [] [] [] [] |
242 iso_3166_2 | |
243 iso_4217 | |
244 iso_639 | [] [] [] [] |
245 iso_639_3 | |
246 jwhois | |
247 kbd | |
248 keytouch | [] |
249 keytouch-editor | |
250 keytouch-keyboa... | [] |
251 klavaro | [] |
252 latrine | |
253 ld | [] |
254 leafpad | [] [] |
255 libc | [] [] |
256 libexif | () |
257 libextractor | |
258 libgnutls | |
259 libgpewidget | |
260 libgpg-error | |
261 libgphoto2 | |
262 libgphoto2_port | |
263 libgsasl | |
264 libiconv | [] |
265 libidn | |
266 lifelines | |
267 liferea | [] [] |
268 lilypond | |
269 linkdr | [] |
270 lordsawar | |
271 lprng | |
272 lynx | [] |
273 m4 | |
274 mailfromd | |
275 mailutils | |
276 make | |
277 man-db | |
278 man-db-manpages | |
279 minicom | |
280 mkisofs | |
281 myserver | |
282 nano | [] [] |
283 opcodes | |
284 parted | |
285 pies | |
286 popt | |
287 psmisc | |
288 pspp | [] |
289 pwdutils | |
290 radius | [] |
291 recode | [] [] |
292 rosegarden | |
293 rpm | |
294 rush | |
295 sarg | |
296 screem | |
297 scrollkeeper | [] [] [] |
298 sed | [] [] |
299 sharutils | [] [] |
300 shishi | |
301 skencil | |
302 solfege | |
303 solfege-manual | |
304 soundtracker | |
305 sp | |
306 sysstat | |
307 tar | [] |
308 texinfo | |
309 tin | |
310 unicode-han-tra... | |
311 unicode-transla... | |
312 util-linux-ng | [] |
313 vice | |
314 vmm | |
315 vorbis-tools | |
316 wastesedge | |
317 wdiff | |
318 wget | [] [] |
319 wyslij-po | |
320 xchat | [] [] [] [] |
321 xdg-user-dirs | [] [] [] [] [] [] [] [] [] |
322 xkeyboard-config | [] [] |
323 +--------------------------------------------------+
324 af am an ar as ast az be be@latin bg bn_IN bs ca
325 6 0 1 2 3 19 1 10 3 28 3 1 38
326
327 crh cs da de el en en_GB en_ZA eo es et eu fa
328 +-------------------------------------------------+
329 a2ps | [] [] [] [] [] [] [] |
330 aegis | [] [] [] |
331 ant-phone | [] () |
332 anubis | [] [] |
333 aspell | [] [] [] [] [] |
334 bash | [] [] [] |
335 bfd | [] |
336 bibshelf | [] [] [] |
337 binutils | [] |
338 bison | [] [] |
339 bison-runtime | [] [] [] [] |
340 bluez-pin | [] [] [] [] [] [] |
341 bombono-dvd | [] |
342 buzztard | [] [] [] |
343 cflow | [] [] |
344 clisp | [] [] [] [] |
345 coreutils | [] [] [] [] |
346 cpio | |
347 cppi | |
348 cpplib | [] [] [] |
349 cryptsetup | [] |
350 dfarc | [] [] [] |
351 dialog | [] [] [] [] [] |
352 dico | |
353 diffutils | [] [] [] [] [] [] |
354 dink | [] [] [] |
355 doodle | [] |
356 e2fsprogs | [] [] [] |
357 enscript | [] [] [] |
358 exif | () [] [] |
359 fetchmail | [] [] () [] [] [] |
360 findutils | [] [] [] |
361 flex | [] [] |
362 freedink | [] [] [] |
363 gas | [] |
364 gawk | [] [] [] |
365 gcal | [] |
366 gcc | [] [] |
367 gettext-examples | [] [] [] [] |
368 gettext-runtime | [] [] [] [] |
369 gettext-tools | [] [] [] |
370 gip | [] [] [] [] |
371 gjay | [] |
372 gliv | [] [] [] |
373 glunarclock | [] [] |
374 gnubiff | () |
375 gnucash | [] () () () () |
376 gnuedu | [] [] |
377 gnulib | [] [] |
378 gnunet | |
379 gnunet-gtk | [] |
380 gnutls | [] [] |
381 gold | [] |
382 gpe-aerial | [] [] [] [] |
383 gpe-beam | [] [] [] [] |
384 gpe-bluetooth | [] [] |
385 gpe-calendar | [] |
386 gpe-clock | [] [] [] [] |
387 gpe-conf | [] [] [] |
388 gpe-contacts | [] [] [] |
389 gpe-edit | [] [] |
390 gpe-filemanager | [] [] [] |
391 gpe-go | [] [] [] [] |
392 gpe-login | [] [] |
393 gpe-ownerinfo | [] [] [] [] |
394 gpe-package | [] [] [] |
395 gpe-sketchbook | [] [] [] [] |
396 gpe-su | [] [] [] [] |
397 gpe-taskmanager | [] [] [] [] |
398 gpe-timesheet | [] [] [] [] |
399 gpe-today | [] [] [] [] |
400 gpe-todo | [] [] [] |
401 gphoto2 | [] [] () [] [] [] |
402 gprof | [] [] [] |
403 gpsdrive | [] [] [] |
404 gramadoir | [] [] [] |
405 grep | [] |
406 grub | [] [] |
407 gsasl | [] |
408 gss | |
409 gst-plugins-bad | [] [] [] [] [] |
410 gst-plugins-base | [] [] [] [] [] |
411 gst-plugins-good | [] [] [] [] [] [] |
412 gst-plugins-ugly | [] [] [] [] [] [] |
413 gstreamer | [] [] [] [] [] |
414 gtick | [] () [] |
415 gtkam | [] [] () [] [] |
416 gtkorphan | [] [] [] [] |
417 gtkspell | [] [] [] [] [] [] [] |
418 gutenprint | [] [] [] |
419 hello | [] [] [] [] |
420 help2man | [] |
421 hylafax | [] [] |
422 idutils | [] [] |
423 indent | [] [] [] [] [] [] [] |
424 iso_15924 | [] () [] [] |
425 iso_3166 | [] [] [] [] () [] [] [] () |
426 iso_3166_2 | () |
427 iso_4217 | [] [] [] () [] [] |
428 iso_639 | [] [] [] [] () [] [] |
429 iso_639_3 | [] |
430 jwhois | [] |
431 kbd | [] [] [] [] [] |
432 keytouch | [] [] |
433 keytouch-editor | [] [] |
434 keytouch-keyboa... | [] |
435 klavaro | [] [] [] [] |
436 latrine | [] () |
437 ld | [] [] |
438 leafpad | [] [] [] [] [] [] |
439 libc | [] [] [] [] |
440 libexif | [] [] () |
441 libextractor | |
442 libgnutls | [] |
443 libgpewidget | [] [] |
444 libgpg-error | [] [] |
445 libgphoto2 | [] () |
446 libgphoto2_port | [] () [] |
447 libgsasl | |
448 libiconv | [] [] [] [] [] |
449 libidn | [] [] [] |
450 lifelines | [] () |
451 liferea | [] [] [] [] [] |
452 lilypond | [] [] [] |
453 linkdr | [] [] [] |
454 lordsawar | [] |
455 lprng | |
456 lynx | [] [] [] [] |
457 m4 | [] [] [] [] |
458 mailfromd | |
459 mailutils | [] |
460 make | [] [] [] |
461 man-db | |
462 man-db-manpages | |
463 minicom | [] [] [] [] |
464 mkisofs | |
465 myserver | |
466 nano | [] [] [] |
467 opcodes | [] [] |
468 parted | [] [] |
469 pies | |
470 popt | [] [] [] [] [] |
471 psmisc | [] [] [] |
472 pspp | [] |
473 pwdutils | [] |
474 radius | [] |
475 recode | [] [] [] [] [] [] |
476 rosegarden | () () () |
477 rpm | [] [] [] |
478 rush | |
479 sarg | |
480 screem | |
481 scrollkeeper | [] [] [] [] [] |
482 sed | [] [] [] [] [] [] |
483 sharutils | [] [] [] [] |
484 shishi | |
485 skencil | [] () [] |
486 solfege | [] [] [] |
487 solfege-manual | [] [] |
488 soundtracker | [] [] [] |
489 sp | [] |
490 sysstat | [] [] [] |
491 tar | [] [] [] [] |
492 texinfo | [] [] [] |
493 tin | [] [] |
494 unicode-han-tra... | |
495 unicode-transla... | |
496 util-linux-ng | [] [] [] [] |
497 vice | () () |
498 vmm | [] |
499 vorbis-tools | [] [] |
500 wastesedge | [] |
501 wdiff | [] [] |
502 wget | [] [] [] |
503 wyslij-po | |
504 xchat | [] [] [] [] [] |
505 xdg-user-dirs | [] [] [] [] [] [] [] [] [] |
506 xkeyboard-config | [] [] [] [] [] [] |
507 +-------------------------------------------------+
508 crh cs da de el en en_GB en_ZA eo es et eu fa
509 5 64 105 117 18 1 8 0 28 89 18 19 0
510
511 fi fr ga gl gu he hi hr hu hy id is it ja ka kn
512 +----------------------------------------------------+
513 a2ps | [] [] [] [] |
514 aegis | [] [] |
515 ant-phone | [] [] |
516 anubis | [] [] [] [] |
517 aspell | [] [] [] [] |
518 bash | [] [] [] [] |
519 bfd | [] [] [] |
520 bibshelf | [] [] [] [] [] |
521 binutils | [] [] [] |
522 bison | [] [] [] [] |
523 bison-runtime | [] [] [] [] [] [] |
524 bluez-pin | [] [] [] [] [] [] [] [] |
525 bombono-dvd | [] |
526 buzztard | [] |
527 cflow | [] [] [] |
528 clisp | [] |
529 coreutils | [] [] [] [] [] |
530 cpio | [] [] [] [] |
531 cppi | [] [] |
532 cpplib | [] [] [] |
533 cryptsetup | [] [] [] |
534 dfarc | [] [] [] |
535 dialog | [] [] [] [] [] [] [] |
536 dico | |
537 diffutils | [] [] [] [] [] [] [] [] [] |
538 dink | [] |
539 doodle | [] [] |
540 e2fsprogs | [] [] |
541 enscript | [] [] [] [] |
542 exif | [] [] [] [] [] [] |
543 fetchmail | [] [] [] [] |
544 findutils | [] [] [] [] [] [] |
545 flex | [] [] [] |
546 freedink | [] [] [] |
547 gas | [] [] |
548 gawk | [] [] [] [] () [] |
549 gcal | [] |
550 gcc | [] |
551 gettext-examples | [] [] [] [] [] [] [] |
552 gettext-runtime | [] [] [] [] [] [] |
553 gettext-tools | [] [] [] [] |
554 gip | [] [] [] [] [] [] |
555 gjay | [] |
556 gliv | [] () |
557 glunarclock | [] [] [] [] |
558 gnubiff | () [] () |
559 gnucash | () () () () () [] |
560 gnuedu | [] [] |
561 gnulib | [] [] [] [] [] [] |
562 gnunet | |
563 gnunet-gtk | [] |
564 gnutls | [] [] |
565 gold | [] [] |
566 gpe-aerial | [] [] [] |
567 gpe-beam | [] [] [] [] |
568 gpe-bluetooth | [] [] [] [] |
569 gpe-calendar | [] [] |
570 gpe-clock | [] [] [] [] [] |
571 gpe-conf | [] [] [] [] |
572 gpe-contacts | [] [] [] [] |
573 gpe-edit | [] [] [] |
574 gpe-filemanager | [] [] [] [] |
575 gpe-go | [] [] [] [] [] |
576 gpe-login | [] [] [] |
577 gpe-ownerinfo | [] [] [] [] [] |
578 gpe-package | [] [] [] |
579 gpe-sketchbook | [] [] [] [] |
580 gpe-su | [] [] [] [] [] [] |
581 gpe-taskmanager | [] [] [] [] [] |
582 gpe-timesheet | [] [] [] [] [] |
583 gpe-today | [] [] [] [] [] [] [] |
584 gpe-todo | [] [] [] |
585 gphoto2 | [] [] [] [] [] [] |
586 gprof | [] [] [] [] |
587 gpsdrive | [] [] [] |
588 gramadoir | [] [] [] |
589 grep | [] [] |
590 grub | [] [] [] [] |
591 gsasl | [] [] [] [] [] |
592 gss | [] [] [] [] [] |
593 gst-plugins-bad | [] [] [] [] [] [] |
594 gst-plugins-base | [] [] [] [] [] [] |
595 gst-plugins-good | [] [] [] [] [] [] |
596 gst-plugins-ugly | [] [] [] [] [] [] |
597 gstreamer | [] [] [] [] [] |
598 gtick | [] [] [] [] [] |
599 gtkam | [] [] [] [] [] |
600 gtkorphan | [] [] [] |
601 gtkspell | [] [] [] [] [] [] [] [] [] |
602 gutenprint | [] [] [] [] |
603 hello | [] [] [] |
604 help2man | [] [] |
605 hylafax | [] |
606 idutils | [] [] [] [] [] [] |
607 indent | [] [] [] [] [] [] [] [] |
608 iso_15924 | [] () [] [] |
609 iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] |
610 iso_3166_2 | () [] [] [] |
611 iso_4217 | [] () [] [] [] [] |
612 iso_639 | [] () [] [] [] [] [] [] [] |
613 iso_639_3 | () [] [] |
614 jwhois | [] [] [] [] [] |
615 kbd | [] [] |
616 keytouch | [] [] [] [] [] [] |
617 keytouch-editor | [] [] [] [] [] |
618 keytouch-keyboa... | [] [] [] [] [] |
619 klavaro | [] [] |
620 latrine | [] [] [] |
621 ld | [] [] [] [] |
622 leafpad | [] [] [] [] [] [] [] () |
623 libc | [] [] [] [] [] |
624 libexif | [] |
625 libextractor | |
626 libgnutls | [] [] |
627 libgpewidget | [] [] [] [] |
628 libgpg-error | [] [] |
629 libgphoto2 | [] [] [] |
630 libgphoto2_port | [] [] [] |
631 libgsasl | [] [] [] [] [] |
632 libiconv | [] [] [] [] [] [] |
633 libidn | [] [] [] [] |
634 lifelines | () |
635 liferea | [] [] [] [] |
636 lilypond | [] [] |
637 linkdr | [] [] [] [] [] |
638 lordsawar | |
639 lprng | [] |
640 lynx | [] [] [] [] [] |
641 m4 | [] [] [] [] [] [] |
642 mailfromd | |
643 mailutils | [] [] |
644 make | [] [] [] [] [] [] [] [] [] |
645 man-db | [] [] |
646 man-db-manpages | [] |
647 minicom | [] [] [] [] [] |
648 mkisofs | [] [] [] [] |
649 myserver | |
650 nano | [] [] [] [] [] [] |
651 opcodes | [] [] [] [] |
652 parted | [] [] [] [] |
653 pies | |
654 popt | [] [] [] [] [] [] [] [] [] |
655 psmisc | [] [] [] |
656 pspp | |
657 pwdutils | [] [] |
658 radius | [] [] |
659 recode | [] [] [] [] [] [] [] [] |
660 rosegarden | () () () () () |
661 rpm | [] [] |
662 rush | |
663 sarg | [] |
664 screem | [] [] |
665 scrollkeeper | [] [] [] [] |
666 sed | [] [] [] [] [] [] [] [] |
667 sharutils | [] [] [] [] [] [] [] |
668 shishi | [] |
669 skencil | [] |
670 solfege | [] [] [] [] |
671 solfege-manual | [] [] |
672 soundtracker | [] [] |
673 sp | [] () |
674 sysstat | [] [] [] [] [] |
675 tar | [] [] [] [] [] [] [] |
676 texinfo | [] [] [] [] |
677 tin | [] |
678 unicode-han-tra... | |
679 unicode-transla... | [] [] |
680 util-linux-ng | [] [] [] [] [] [] |
681 vice | () () () |
682 vmm | [] |
683 vorbis-tools | [] |
684 wastesedge | () () |
685 wdiff | [] |
686 wget | [] [] [] [] [] [] [] [] |
687 wyslij-po | [] [] [] |
688 xchat | [] [] [] [] [] [] [] [] [] |
689 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] |
690 xkeyboard-config | [] [] [] [] [] |
691 +----------------------------------------------------+
692 fi fr ga gl gu he hi hr hu hy id is it ja ka kn
693 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4
694
695 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne
696 +-----------------------------------------------+
697 a2ps | [] |
698 aegis | |
699 ant-phone | |
700 anubis | [] [] |
701 aspell | [] |
702 bash | |
703 bfd | |
704 bibshelf | [] [] |
705 binutils | |
706 bison | [] |
707 bison-runtime | [] [] [] [] [] |
708 bluez-pin | [] [] [] [] [] |
709 bombono-dvd | |
710 buzztard | |
711 cflow | |
712 clisp | |
713 coreutils | [] |
714 cpio | |
715 cppi | |
716 cpplib | |
717 cryptsetup | |
718 dfarc | [] |
719 dialog | [] [] [] [] [] |
720 dico | |
721 diffutils | [] [] |
722 dink | |
723 doodle | |
724 e2fsprogs | |
725 enscript | |
726 exif | [] |
727 fetchmail | |
728 findutils | |
729 flex | |
730 freedink | [] |
731 gas | |
732 gawk | |
733 gcal | |
734 gcc | |
735 gettext-examples | [] [] [] [] |
736 gettext-runtime | [] |
737 gettext-tools | [] |
738 gip | [] [] |
739 gjay | |
740 gliv | |
741 glunarclock | [] |
742 gnubiff | |
743 gnucash | () () () () |
744 gnuedu | |
745 gnulib | |
746 gnunet | |
747 gnunet-gtk | |
748 gnutls | [] |
749 gold | |
750 gpe-aerial | [] |
751 gpe-beam | [] |
752 gpe-bluetooth | [] [] |
753 gpe-calendar | [] |
754 gpe-clock | [] [] [] [] [] |
755 gpe-conf | [] [] |
756 gpe-contacts | [] [] |
757 gpe-edit | [] |
758 gpe-filemanager | [] [] |
759 gpe-go | [] [] [] |
760 gpe-login | [] |
761 gpe-ownerinfo | [] [] |
762 gpe-package | [] [] |
763 gpe-sketchbook | [] [] |
764 gpe-su | [] [] [] [] [] [] |
765 gpe-taskmanager | [] [] [] [] [] [] |
766 gpe-timesheet | [] [] |
767 gpe-today | [] [] [] [] |
768 gpe-todo | [] [] |
769 gphoto2 | |
770 gprof | [] |
771 gpsdrive | |
772 gramadoir | |
773 grep | |
774 grub | |
775 gsasl | |
776 gss | |
777 gst-plugins-bad | [] [] [] [] |
778 gst-plugins-base | [] [] |
779 gst-plugins-good | [] [] |
780 gst-plugins-ugly | [] [] [] [] [] |
781 gstreamer | |
782 gtick | |
783 gtkam | [] |
784 gtkorphan | [] [] |
785 gtkspell | [] [] [] [] [] [] [] |
786 gutenprint | |
787 hello | [] [] [] |
788 help2man | |
789 hylafax | |
790 idutils | |
791 indent | |
792 iso_15924 | [] [] |
793 iso_3166 | [] [] () [] [] [] [] [] |
794 iso_3166_2 | |
795 iso_4217 | [] [] |
796 iso_639 | [] [] |
797 iso_639_3 | [] |
798 jwhois | [] |
799 kbd | |
800 keytouch | [] |
801 keytouch-editor | [] |
802 keytouch-keyboa... | [] |
803 klavaro | [] |
804 latrine | [] |
805 ld | |
806 leafpad | [] [] [] |
807 libc | [] |
808 libexif | |
809 libextractor | |
810 libgnutls | [] |
811 libgpewidget | [] [] |
812 libgpg-error | |
813 libgphoto2 | |
814 libgphoto2_port | |
815 libgsasl | |
816 libiconv | |
817 libidn | |
818 lifelines | |
819 liferea | |
820 lilypond | |
821 linkdr | |
822 lordsawar | |
823 lprng | |
824 lynx | |
825 m4 | |
826 mailfromd | |
827 mailutils | |
828 make | [] |
829 man-db | |
830 man-db-manpages | |
831 minicom | [] |
832 mkisofs | |
833 myserver | |
834 nano | [] [] |
835 opcodes | |
836 parted | |
837 pies | |
838 popt | [] [] [] |
839 psmisc | |
840 pspp | |
841 pwdutils | |
842 radius | |
843 recode | |
844 rosegarden | |
845 rpm | |
846 rush | |
847 sarg | |
848 screem | |
849 scrollkeeper | [] [] |
850 sed | |
851 sharutils | |
852 shishi | |
853 skencil | |
854 solfege | [] |
855 solfege-manual | |
856 soundtracker | |
857 sp | |
858 sysstat | [] |
859 tar | [] |
860 texinfo | [] |
861 tin | |
862 unicode-han-tra... | |
863 unicode-transla... | |
864 util-linux-ng | |
865 vice | |
866 vmm | |
867 vorbis-tools | |
868 wastesedge | |
869 wdiff | |
870 wget | [] |
871 wyslij-po | |
872 xchat | [] [] [] |
873 xdg-user-dirs | [] [] [] [] [] [] [] [] |
874 xkeyboard-config | [] [] [] |
875 +-----------------------------------------------+
876 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne
877 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1
878
879 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr
880 +---------------------------------------------------+
881 a2ps | [] [] [] [] [] [] [] [] |
882 aegis | [] [] [] |
883 ant-phone | [] [] |
884 anubis | [] [] [] |
885 aspell | [] [] [] [] [] |
886 bash | [] [] |
887 bfd | [] |
888 bibshelf | [] [] |
889 binutils | [] [] |
890 bison | [] [] [] |
891 bison-runtime | [] [] [] [] [] [] [] |
892 bluez-pin | [] [] [] [] [] [] [] [] |
893 bombono-dvd | [] () |
894 buzztard | [] [] |
895 cflow | [] |
896 clisp | [] [] |
897 coreutils | [] [] [] [] [] [] |
898 cpio | [] [] [] |
899 cppi | [] |
900 cpplib | [] |
901 cryptsetup | [] |
902 dfarc | [] |
903 dialog | [] [] [] [] |
904 dico | [] |
905 diffutils | [] [] [] [] [] [] |
906 dink | () |
907 doodle | [] [] |
908 e2fsprogs | [] [] |
909 enscript | [] [] [] [] [] |
910 exif | [] [] [] () [] |
911 fetchmail | [] [] [] [] |
912 findutils | [] [] [] [] [] |
913 flex | [] [] [] [] [] |
914 freedink | [] [] |
915 gas | |
916 gawk | [] [] [] [] |
917 gcal | |
918 gcc | [] |
919 gettext-examples | [] [] [] [] [] [] [] [] |
920 gettext-runtime | [] [] [] [] [] [] [] [] [] |
921 gettext-tools | [] [] [] [] [] [] |
922 gip | [] [] [] [] [] |
923 gjay | |
924 gliv | [] [] [] [] [] [] |
925 glunarclock | [] [] [] [] [] |
926 gnubiff | [] () |
927 gnucash | [] () () () |
928 gnuedu | [] |
929 gnulib | [] [] [] [] |
930 gnunet | |
931 gnunet-gtk | |
932 gnutls | [] [] |
933 gold | |
934 gpe-aerial | [] [] [] [] [] [] [] |
935 gpe-beam | [] [] [] [] [] [] [] |
936 gpe-bluetooth | [] [] |
937 gpe-calendar | [] [] [] [] |
938 gpe-clock | [] [] [] [] [] [] [] [] |
939 gpe-conf | [] [] [] [] [] [] [] |
940 gpe-contacts | [] [] [] [] [] |
941 gpe-edit | [] [] [] |
942 gpe-filemanager | [] [] [] |
943 gpe-go | [] [] [] [] [] [] [] [] |
944 gpe-login | [] [] |
945 gpe-ownerinfo | [] [] [] [] [] [] [] [] |
946 gpe-package | [] [] |
947 gpe-sketchbook | [] [] [] [] [] [] [] |
948 gpe-su | [] [] [] [] [] [] [] [] |
949 gpe-taskmanager | [] [] [] [] [] [] [] [] |
950 gpe-timesheet | [] [] [] [] [] [] [] [] |
951 gpe-today | [] [] [] [] [] [] [] [] |
952 gpe-todo | [] [] [] [] [] |
953 gphoto2 | [] [] [] [] [] [] [] [] |
954 gprof | [] [] [] |
955 gpsdrive | [] [] |
956 gramadoir | [] [] |
957 grep | [] [] [] [] |
958 grub | [] [] [] |
959 gsasl | [] [] [] [] |
960 gss | [] [] [] |
961 gst-plugins-bad | [] [] [] [] [] [] |
962 gst-plugins-base | [] [] [] [] [] |
963 gst-plugins-good | [] [] [] [] [] |
964 gst-plugins-ugly | [] [] [] [] [] [] |
965 gstreamer | [] [] [] [] [] |
966 gtick | [] [] [] |
967 gtkam | [] [] [] [] [] [] |
968 gtkorphan | [] |
969 gtkspell | [] [] [] [] [] [] [] [] [] [] |
970 gutenprint | [] [] |
971 hello | [] [] [] [] |
972 help2man | [] [] |
973 hylafax | [] |
974 idutils | [] [] [] [] [] |
975 indent | [] [] [] [] [] [] [] |
976 iso_15924 | [] [] [] [] |
977 iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] |
978 iso_3166_2 | [] [] [] |
979 iso_4217 | [] [] [] [] [] [] [] [] |
980 iso_639 | [] [] [] [] [] [] [] [] [] |
981 iso_639_3 | [] [] |
982 jwhois | [] [] [] [] |
983 kbd | [] [] [] |
984 keytouch | [] [] [] |
985 keytouch-editor | [] [] [] |
986 keytouch-keyboa... | [] [] [] |
987 klavaro | [] [] |
988 latrine | [] [] |
989 ld | |
990 leafpad | [] [] [] [] [] [] [] [] [] |
991 libc | [] [] [] [] |
992 libexif | [] [] () [] |
993 libextractor | |
994 libgnutls | [] [] |
995 libgpewidget | [] [] [] |
996 libgpg-error | [] [] |
997 libgphoto2 | [] [] |
998 libgphoto2_port | [] [] [] [] [] |
999 libgsasl | [] [] [] [] [] |
1000 libiconv | [] [] [] [] [] |
1001 libidn | [] [] |
1002 lifelines | [] [] |
1003 liferea | [] [] [] [] [] () () [] |
1004 lilypond | [] |
1005 linkdr | [] [] [] |
1006 lordsawar | |
1007 lprng | [] |
1008 lynx | [] [] [] |
1009 m4 | [] [] [] [] [] |
1010 mailfromd | [] |
1011 mailutils | [] |
1012 make | [] [] [] [] |
1013 man-db | [] [] [] |
1014 man-db-manpages | [] [] [] |
1015 minicom | [] [] [] [] |
1016 mkisofs | [] [] [] |
1017 myserver | |
1018 nano | [] [] [] [] |
1019 opcodes | [] [] |
1020 parted | [] [] [] [] |
1021 pies | [] |
1022 popt | [] [] [] [] |
1023 psmisc | [] [] [] |
1024 pspp | [] [] |
1025 pwdutils | [] |
1026 radius | [] [] [] |
1027 recode | [] [] [] [] [] [] [] [] |
1028 rosegarden | () () |
1029 rpm | [] [] [] |
1030 rush | [] [] |
1031 sarg | |
1032 screem | |
1033 scrollkeeper | [] [] [] [] [] [] [] [] |
1034 sed | [] [] [] [] [] [] [] [] [] |
1035 sharutils | [] [] [] [] |
1036 shishi | [] |
1037 skencil | [] [] |
1038 solfege | [] [] [] [] |
1039 solfege-manual | [] [] [] |
1040 soundtracker | [] |
1041 sp | |
1042 sysstat | [] [] [] [] |
1043 tar | [] [] [] [] |
1044 texinfo | [] [] [] [] |
1045 tin | [] |
1046 unicode-han-tra... | |
1047 unicode-transla... | |
1048 util-linux-ng | [] [] [] [] [] |
1049 vice | [] |
1050 vmm | [] |
1051 vorbis-tools | [] [] |
1052 wastesedge | [] |
1053 wdiff | [] [] |
1054 wget | [] [] [] [] [] [] [] |
1055 wyslij-po | [] [] [] |
1056 xchat | [] [] [] [] [] [] [] [] [] |
1057 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] |
1058 xkeyboard-config | [] [] [] |
1059 +---------------------------------------------------+
1060 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr
1061 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37
1062
1063 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW
1064 +---------------------------------------------------+
1065 a2ps | [] [] [] [] [] | 27
1066 aegis | [] | 9
1067 ant-phone | [] [] [] [] | 9
1068 anubis | [] [] [] [] | 15
1069 aspell | [] [] [] | 20
1070 bash | [] [] [] | 12
1071 bfd | [] | 6
1072 bibshelf | [] [] [] | 16
1073 binutils | [] [] | 8
1074 bison | [] [] | 12
1075 bison-runtime | [] [] [] [] [] [] | 29
1076 bluez-pin | [] [] [] [] [] [] [] [] | 37
1077 bombono-dvd | [] | 4
1078 buzztard | [] | 7
1079 cflow | [] [] [] | 9
1080 clisp | | 10
1081 coreutils | [] [] [] [] | 22
1082 cpio | [] [] [] [] [] [] | 13
1083 cppi | [] [] | 5
1084 cpplib | [] [] [] [] [] [] | 14
1085 cryptsetup | [] [] | 7
1086 dfarc | [] | 9
1087 dialog | [] [] [] [] [] [] [] | 30
1088 dico | [] | 2
1089 diffutils | [] [] [] [] [] [] | 30
1090 dink | | 4
1091 doodle | [] [] | 7
1092 e2fsprogs | [] [] [] | 11
1093 enscript | [] [] [] [] | 17
1094 exif | [] [] [] | 16
1095 fetchmail | [] [] [] | 17
1096 findutils | [] [] [] [] [] | 20
1097 flex | [] [] [] [] | 15
1098 freedink | [] | 10
1099 gas | [] | 4
1100 gawk | [] [] [] [] | 18
1101 gcal | [] [] | 5
1102 gcc | [] [] [] | 7
1103 gettext-examples | [] [] [] [] [] [] [] | 34
1104 gettext-runtime | [] [] [] [] [] [] [] | 29
1105 gettext-tools | [] [] [] [] [] [] | 22
1106 gip | [] [] [] [] | 22
1107 gjay | [] | 3
1108 gliv | [] [] [] | 14
1109 glunarclock | [] [] [] [] [] | 19
1110 gnubiff | [] [] | 4
1111 gnucash | () [] () [] () | 10
1112 gnuedu | [] [] | 7
1113 gnulib | [] [] [] [] | 16
1114 gnunet | [] | 1
1115 gnunet-gtk | [] [] [] | 5
1116 gnutls | [] [] [] | 10
1117 gold | [] | 4
1118 gpe-aerial | [] [] [] | 18
1119 gpe-beam | [] [] [] | 19
1120 gpe-bluetooth | [] [] [] | 13
1121 gpe-calendar | [] [] [] [] | 12
1122 gpe-clock | [] [] [] [] [] | 28
1123 gpe-conf | [] [] [] [] | 20
1124 gpe-contacts | [] [] [] | 17
1125 gpe-edit | [] [] [] | 12
1126 gpe-filemanager | [] [] [] [] | 16
1127 gpe-go | [] [] [] [] [] | 25
1128 gpe-login | [] [] [] | 11
1129 gpe-ownerinfo | [] [] [] [] [] | 25
1130 gpe-package | [] [] [] | 13
1131 gpe-sketchbook | [] [] [] | 20
1132 gpe-su | [] [] [] [] [] | 30
1133 gpe-taskmanager | [] [] [] [] [] | 29
1134 gpe-timesheet | [] [] [] [] [] | 25
1135 gpe-today | [] [] [] [] [] [] | 30
1136 gpe-todo | [] [] [] [] | 17
1137 gphoto2 | [] [] [] [] [] | 24
1138 gprof | [] [] [] | 15
1139 gpsdrive | [] [] [] | 11
1140 gramadoir | [] [] [] | 11
1141 grep | [] [] [] | 10
1142 grub | [] [] [] | 14
1143 gsasl | [] [] [] [] | 14
1144 gss | [] [] [] | 11
1145 gst-plugins-bad | [] [] [] [] | 26
1146 gst-plugins-base | [] [] [] [] [] | 24
1147 gst-plugins-good | [] [] [] [] | 24
1148 gst-plugins-ugly | [] [] [] [] [] | 29
1149 gstreamer | [] [] [] [] | 22
1150 gtick | [] [] [] | 13
1151 gtkam | [] [] [] | 20
1152 gtkorphan | [] [] [] | 14
1153 gtkspell | [] [] [] [] [] [] [] [] [] | 45
1154 gutenprint | [] | 10
1155 hello | [] [] [] [] [] [] | 21
1156 help2man | [] [] | 7
1157 hylafax | [] | 5
1158 idutils | [] [] [] [] | 17
1159 indent | [] [] [] [] [] [] | 30
1160 iso_15924 | () [] () [] [] | 16
1161 iso_3166 | [] [] () [] [] () [] [] [] () | 53
1162 iso_3166_2 | () [] () [] | 9
1163 iso_4217 | [] () [] [] () [] [] | 26
1164 iso_639 | [] [] [] () [] () [] [] [] [] | 38
1165 iso_639_3 | [] () | 8
1166 jwhois | [] [] [] [] [] | 16
1167 kbd | [] [] [] [] [] | 15
1168 keytouch | [] [] [] | 16
1169 keytouch-editor | [] [] [] | 14
1170 keytouch-keyboa... | [] [] [] | 14
1171 klavaro | [] | 11
1172 latrine | [] [] [] | 10
1173 ld | [] [] [] [] | 11
1174 leafpad | [] [] [] [] [] [] | 33
1175 libc | [] [] [] [] [] | 21
1176 libexif | [] () | 7
1177 libextractor | [] | 1
1178 libgnutls | [] [] [] | 9
1179 libgpewidget | [] [] [] | 14
1180 libgpg-error | [] [] [] | 9
1181 libgphoto2 | [] [] | 8
1182 libgphoto2_port | [] [] [] [] | 14
1183 libgsasl | [] [] [] | 13
1184 libiconv | [] [] [] [] | 21
1185 libidn | () [] [] | 11
1186 lifelines | [] | 4
1187 liferea | [] [] [] | 21
1188 lilypond | [] | 7
1189 linkdr | [] [] [] [] [] | 17
1190 lordsawar | | 1
1191 lprng | [] | 3
1192 lynx | [] [] [] [] | 17
1193 m4 | [] [] [] [] | 19
1194 mailfromd | [] [] | 3
1195 mailutils | [] | 5
1196 make | [] [] [] [] | 21
1197 man-db | [] [] [] | 8
1198 man-db-manpages | | 4
1199 minicom | [] [] | 16
1200 mkisofs | [] [] | 9
1201 myserver | | 0
1202 nano | [] [] [] [] | 21
1203 opcodes | [] [] [] | 11
1204 parted | [] [] [] [] [] | 15
1205 pies | [] [] | 3
1206 popt | [] [] [] [] [] [] | 27
1207 psmisc | [] [] | 11
1208 pspp | | 4
1209 pwdutils | [] [] | 6
1210 radius | [] [] | 9
1211 recode | [] [] [] [] | 28
1212 rosegarden | () | 0
1213 rpm | [] [] [] | 11
1214 rush | [] [] | 4
1215 sarg | | 1
1216 screem | [] | 3
1217 scrollkeeper | [] [] [] [] [] | 27
1218 sed | [] [] [] [] [] | 30
1219 sharutils | [] [] [] [] [] | 22
1220 shishi | [] | 3
1221 skencil | [] [] | 7
1222 solfege | [] [] [] [] | 16
1223 solfege-manual | [] | 8
1224 soundtracker | [] [] [] | 9
1225 sp | [] | 3
1226 sysstat | [] [] | 15
1227 tar | [] [] [] [] [] [] | 23
1228 texinfo | [] [] [] [] [] | 17
1229 tin | | 4
1230 unicode-han-tra... | | 0
1231 unicode-transla... | | 2
1232 util-linux-ng | [] [] [] [] | 20
1233 vice | () () | 1
1234 vmm | [] | 4
1235 vorbis-tools | [] | 6
1236 wastesedge | | 2
1237 wdiff | [] [] | 7
1238 wget | [] [] [] [] [] | 26
1239 wyslij-po | [] [] | 8
1240 xchat | [] [] [] [] [] [] | 36
1241 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63
1242 xkeyboard-config | [] [] [] | 22
1243 +---------------------------------------------------+
1244 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW
1245 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618
1246
1247 Some counters in the preceding matrix are higher than the number of
1248 visible blocks let us expect. This is because a few extra PO files are
1249 used for implementing regional variants of languages, or language
1250 dialects.
1251
1252 For a PO file in the matrix above to be effective, the package to
1253 which it applies should also have been internationalized and
1254 distributed as such by its maintainer. There might be an observable
1255 lag between the mere existence a PO file and its wide availability in a
1256 distribution.
1257
1258 If June 2010 seems to be old, you may fetch a more recent copy of
1259 this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date
1260 matrix with full percentage details can be found at
1261 `http://translationproject.org/extra/matrix.html'.
1262
1263 1.5 Using `gettext' in new packages
1264 ===================================
1265
1266 If you are writing a freely available program and want to
1267 internationalize it you are welcome to use GNU `gettext' in your
1268 package. Of course you have to respect the GNU Library General Public
1269 License which covers the use of the GNU `gettext' library. This means
1270 in particular that even non-free programs can use `libintl' as a shared
1271 library, whereas only free software can use `libintl' as a static
1272 library or use modified versions of `libintl'.
1273
1274 Once the sources are changed appropriately and the setup can handle
1275 the use of `gettext' the only thing missing are the translations. The
1276 Free Translation Project is also available for packages which are not
1277 developed inside the GNU project. Therefore the information given above
1278 applies also for every other Free Software Project. Contact
1279 `coordinator@translationproject.org' to make the `.pot' files available
1280 to the translation teams.
1281
0 (C) Boruch Baum <boruch-baum@users.sourceforge.net> 2011-2012.
1 (C) Yaacov Zamir <kzamir@walla.co.il> 2003-2008.
2 (C) Amos Shapir <amos083@hotmail.com> 1984-2003.
3
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 ===========================================================================
1 libhdate (1.6) - Boruch Baum <boruch-baum@users.sourceforge.net> 2012-01-09
2 ===========================================================================
3
4 hcal
5 - introduced config file $XDG_CONFIG_HOME/hcal/hcalrc or ~/.config/hcal/hcalrc
6 - add support for long options (eg --help, --version)
7 - option --menu -m to prompt user for user-defined menu selections from config file
8 - option --candles takes an optional numeric argument to modify the default minhag.
9 valid values are 17 < n < 91 minutes (before sunset)
10 - option --havdalah takes an optional numeric argument to modify the default minhag.
11 valid values are 19 < n < 91 minutes (after sunset)
12 - options to over-ride config file settings
13 - remove dependency of Hebrew on locale environment variables
14 - new feature: sunset-aware to highlight correct hebrew date
15 - new option: shabbat times
16 - new feature: location-awareness (options -l -L -z)
17 - basic location-guessing (based upon time zone
18 - coordinates may now also be in form degrees, minutes, seconds and be delimited by :, ', or "
19 - coordinates may now include compass directions N, S, E, W.
20 - time zone may now include fractional hours, or minutes (delimited by :, ', or ")
21 - fixed missing symbols for holiday types
22 - highlight current day in reverse video
23 - option --no-reverse to suppress reverse video of current day
24 - compress width of display on screen
25 - print Gregorian and Hebrew months on one line
26 -- BUG FIX: Ellul - Tishrei yyyy now correctly
27 prints Ellul yyyy - Tishrei yyyy+1
28 - option three-month to display previous and next months with current
29 - option three-month with year displays four rows, three columns
30 - option parasha to display parshat hashavua next to each week
31 - option colorize to display data in, um, color
32 - BUGFIX - padding adjusted to properly justify single digit hebrew dates
33 - BUGFIX - calculation of end of month on change of year was wrong
34 - BUGFIX - inserted bounds checking
35 - option footnote to explain the month's holidays
36 - option force-hebrew for non-hebrew locales
37 - basic diaspora-awareness based on system time-zone
38 - option force-israel to override diaspora-awareness
39 - option visual, bidi to display Hebrew in reverse
40 - modifications html/css
41
42 hdate
43 - coordinates may now also be in form degrees, minutes, seconds and be delimited by :, ', or "
44 - time zone may now include fractional hours, or minutes (delimited by :, ', or ")
45 - coordinates may now include compass directions N, S, E, W.
46 - improved parsing of config file to include coordinates, timezone
47 - add support for long options
48 - option --help
49 - option --version
50 - option --force-hebrew to force Hebrew characters for Hebrew dates in
51 non-Hebrew locales
52 - options --yom, --leshabbat, --leseder for Hebrew prefixing
53 - remove annoying leading comma from options s,t,o,r,c
54 - remove annoying parentheses from sunrise/sunset times, candlelighting times
55 - remove blank line outputs
56 - insert prefix for omer
57 - insert descriptions for sunrise/sunset, candlelighting, motzash
58 - remove printing ordinal numbers for short(!) form output option
59 - insert 'yom' as prefix to gregorian day of week in Hebrew locale
60 - special/appropriate text for Fri/Sat evenings
61 - BUGFIX remove gettext directives from improper instances (option literals)
62 - update copyright info
63 - add version information to config file
64 - BUGFIX tabular display bidi
65 - BUGFIX tabular display omer
66 - add candle and havdalah times to tabular display
67 - add function pointer to validate_location
68 - tweaks to iCal output
69 -- uCal_uid_counter changed to be a local variable. The setting of
70 this value was made more consistent with the iCal standard
71 rfc5545, section 3.8.4.7.
72 -- iCal entry: CLASS - put on new line
73 - option --sunset-aware, prints tomorrow's Hebrew date and info (for today only) if after sunset
74 - option --table, prints data in csv format, suitable for spreadsheets, awk, etc.
75 - timezone: set default to system local tz
76 -- set default lat/lon coordinates by tz
77 -- add lat/lon/tz info for some cities
78 - timezone: display warning message if timezone not set
79 - BUG FIX: check valid ranges for parameters lat, lon, tz
80 - BUG FIX: sanity-check tz versus longitude
81 -- arbitrarily set sanity limit at delta 30 degrees
82 - BUG FIX: hebrew incorrectly forced in short format
83 - short-format style tweak
84 - BUG FIX: Julian day would always print when selecting -R option
85 - BUG FIX: parasha would always print when selecting -j option
86 - BUG FIX: -R option would never work. would never print a parasha.
87 - BUG FIX: Don't print negative astronomical times
88 -- print instead --:--
89 - BUG FIX: added print of sun_hour for -t option (it was half there already)
90 - BUG FIX: changed min value for julian_day to 348022
91 - BUG FIXES: inserted bounds checking for mm dd (incomplete)
92 - improved error messages
93 - option -q quiets non-fatal warning messages
94 - option sunset-aware made default condition
95 - option not-sunset-aware added (for the stubborn?)
96 - made text messages compatible with GETTEXT for internationalization
97 - BUGFIX - improved bounds checking
98 - improve option parsing error detection
99 - add long options for latitude, longitude, timezone
100 - standardize use of get_int_string_ instead of get_int_string
101 - option visual, bidi to display Hebrew in reverse
102 - introduced config file $XDG_CONFIG_HOME/hdate/hdaterc or ~/.config/hdate/hdaterc
103 - option --menu -m to prompt user for user-defined menu selections from config file
104 - option --candles takes an optional numeric argument to modify the default minhag.
105 valid values are 17 < n < 91 minutes (before sunset)
106 - option --havdalah takes an optional numeric argument to modify the default minhag.
107 valid values are 19 < n < 91 minutes (after sunset)
108 - remove dependency of Hebrew on locale environment variables
109
110 libhdate
111 - new function hdate_string
112 - DEPRECATION: hdate_get_day_string is now only a wrapper for hdate_string
113 - DEPRECATION: hdate_get_hebrew_month_string is now only a wrapper for hdate_string
114 - DEPRECATION: hdate_get_holyday_string is now only a wrapper for hdate_string
115 - DEPRECATION: hdate_get_month_string is now only a wrapper for hdate_string
116 - DEPRECATION: hdate_get_parasha_string is now only a wrapper for hdate_string
117 - DEPRECATION: hdate_get_omer_string is now only a wrapper for hdate_string
118 - DEPRECATION: hdate_get_int_string_ is now only a wrapper for hdate_string
119 - BUGFIX hdate_get_format_date no longer writes to static local buffers
120 - callers to hdate_get_format_date must free() the space returned at ptr
121 - BUGFIX made all functions const-correct and fixed resulting conflicts
122 - BUGFIX corrected documentation for day of week string range 1-7 vs 0-6
123
124 gettext
125 - upgrade to gettext-0.18.1.
126
127 ================================================================
128 end libhdate (1.6)
129 ================================================================
130
131
132
133 =================
134 libhdate (1.4.20)
135
136 * Update pascal class example (Patch: Ido Kanner)
137 * Update perl and php examples to use hdate objets
138 * Fix PHP install dirs, and add hdate.php to the include path
139 * Fix hdate man page
140
141 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 5 Nov 2010 10:00
142
143 libhdate (1.4.18)
144
145 * Fix longitude positive and negative directions.
146 * in the hdate example make the times printout more verbose
147 * Add sfirat ha omer to the hdate example (Patch: Amiad Bareli)
148 * Add 'bet' in front of the month name in hebrew (Patch: Amiad Bareli)
149
150 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 26 Oct 2010 22:00
151
152 libhdate (1.4.14)
153
154 * Fix --localedir configure option and add a gettext localedir indicator
155 at the configure summary
156 * Add Sfirat ha omer function (Patch: Moshe Wagner <moshe.wagner@gmail.com>)
157 * Add Erev Yum Kipur to the holidays list
158 (Bug report: Arnon Sharlin; Patch: Moshe Wagner <moshe.wagner@gmail.com>)
159 * Fix Tora readings in diaspora (Patch: Moshe Wagner <moshe.wagner@gmail.com>)
160 * Change the type of holiday function to me more descriptive
161 (Patch: Moshe Wagner <moshe.wagner@gmail.com>)
162
163 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 17 Oct 2008 22:00
164
165 libhdate (1.4.12)
166
167 * Add GNU Pascal bindings (Ido Kanner)
168 * Add example for GNU pascal
169 * change configure flags for pascal from --disable-pascal
170 to --disable-fpc and --disable-gpc
171
172 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 14 Jun 2008 22:00
173
174 libhdate (1.4.11)
175
176 * Add Ruby bindings
177 * Add PHP bindings
178 * Add GPL notice to the example files (Bug report: Baruch Even)
179 * Add a patch to print todays date in hcal in bold (Patch: Patrik Nilsson)
180 * Fix documentation of files and structs (Bug report: Baruch Even)
181 * Update Swedish translation (Thanks: Patrik Nilsson)
182 * Fix hdate_get_utc_sun_time_deg
183 function only work in low altitudes (Bug report: Ido Kanner)
184 * Update pascal bindings and examples (Patch: Ido Kanner)
185
186 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 5 Jan 2008 22:00
187
188 libhdate (1.4.10)
189
190 * Move to GPL3 (COPYING, AUTHORS)
191 - Add Amos Shapir as author in Authors file
192 - Update Amos's email
193 * Change defult config options (configure.in)
194 - Gettext version used now is 0.17
195 - Python, Perl, Pascal bindings now built by default
196 * Update the man files (docs/man)
197 - add man files for c++ language
198 - move all man files to docs/man directory
199 * Bug fixes
200 - Fix Kislev Hebrew translation misspell (Bug report: Ariel Galola)
201 - Fix Julian day calculation (Bug report: Afonso Arantes)
202 * Add new events
203 - 30 shvat : Family day
204 - 12 heshvan : rabin memorial day
205 - 29 tamuz : zhabotinsky day
206 * Changes to hdate command line utility
207 - flag -j print the Julian day number
208 - if argument is greater than 100000 it is asumed as Julian day number
209 - "hdate -S YEAR" now print out same format as "hebcal -d -h -e YEAR"
210
211 -- Yaacov Zamir <kzamir@wall.co.il> Thusday, 3 January 2008 22:00
212
213 libhdate (1.4.9)
214
215 * Fix endianess bug in big endian machins (/examples/hcal/hcal.c and hdate.c)
216
217 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 7 April 2007 22:00
218
219 libhdate (1.4.8)
220
221 * Fix help printing bug: Add new line at the end of hdate help text.
222 * Add two new functios to the time of day section:
223 hdate_get_utc_sun_time_full - gets the time of first light,
224 talit, sunris, sunset, first stars and three stars.
225 hdate_get_utc_sun_time_deg - gets the time the sun is on
226 some known altitude.
227 * Add Times of day to hdate command line tool.
228 supported times: first-light, talit, sunrise, mid-day, sunset, first-stars
229 and three-stars
230 * Add Times of Shabat enter/leave to hdate command line tool.
231 Shabat starts 20 min before sunset, and leave at three stars.
232 * Add new oprions in hdate command line tool to it's man page
233
234 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 8 Jun 2006 12:13
235
236 libhdate (1.4.7)
237
238 * Fix pesach II in hebrew po file.
239 * hcal utility export strict html 4.01.
240 * hcal utility can export diaspora holidays
241 * Update hcal utility man file.
242
243 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 18 Apr 2006 12:13
244
245 libhdate (1.4.3)
246
247 * Fix header of spanish po file.
248 * Daniel Nylander: Swedish translation.
249
250 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 10 Apr 2006 12:13
251
252 libhdate (1.4.2)
253
254 * Ido Kanner <idokan@gmail.com> - Update free pascal bindings.
255 * Update address of Free Software Foundation in COPYING file.
256 * make the spec.in file more configurable.
257
258 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Nov 2005 12:13
259
260 libhdate (1.4.0)
261
262 * Michael Kaminsky - libhdate now reports the 2nd day of yom
263 tov on Sukkot and Peseach as Yom Tov and not Chol Hamoed.
264 * Cange C++ API - insert the location and diaspora flag as
265 part of the hdate object.
266 * Docomentation - separate the c and the cpp docs, more readable.
267 * hdate example can now export iCal formated output.
268
269 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 8 Aug 2005 22:13
270
271 libhdate (1.3.1)
272
273 * Add "const correctness" patch from Markus Elfring (elfring).
274 * Manual page seems to contain a hyphen where a minus sign was
275 intended, patch by Lior Kaplan.
276 * Remove the debian directory from the ziped package.
277
278 -- Yaacov Zamir <kzamir@wall.co.il> Sat, 30 Jul 2005 22:13
279
280 libhdate (1.3.0)
281
282 * Add examples to the doc directory
283 * doc directory is now /usr/doc/libhdate0 and no /usr/doc/hdate
284 * make int_to_string aware of LANGUAGE system variable, make it more gettext compatible
285
286 -- Yaacov Zamir <kzamir@wall.co.il> Wed, 27 Jul 2005 18:13
287
288 libhdate (1.0.1)
289
290 * first major reales number.
291 * start to number the shared library.
292 * stable api.
293 * updated utility programs hdate/hcal.
294 * added man files for library and utility programs.
295 * python and perl bindings.
296 * free pascal binding by Ido Kanner <idokan@gmail.com>
297 * ru, fr, he, es translations, thanks to Peled Esti and Boris Peterberg.
298 * added debian dir and RH spec file for easy packing, thanks to Oron Peled.
299
300 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
301
302 libhdate (0.30.0)
303
304 * add es_MX translation by Peled Esti <esti@actcom.co.il>
305 * initial russian translation by Boris Peterberg
306
307 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
308
309 libhdate (0.30.0)
310
311 * cpp, python and perl bindings
312 * examples for the new libhdate bindings
313
314 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 04 March 2005 15:19:29
315
316 libhdate (0.22.0)
317
318 * Michael Kaminsky's patch to Shavot II on diaspora reading.
319
320 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 28 Feb 2005 08:12:31
321
322 libhdate (0.22.0)
323
324 * New hebcal examples
325
326 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
327
328 libhdate (0.21.0)
329
330 * New spec file by Oron Peled
331 * Diaspora holydays/readings
332 * New sunrise sunset functions
333 * New html examples
334 * New configure options to build / not build the examples
335
336 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
337
338 libhdate (0.17.0)
339
340 * API chages.
341 * base struct change.
342
343 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 22 Feb 2005 19:34:22
344
345 libhdate (0.16.3)
346
347 * Try to fix date conversion bug, thanks Michael Kaminsky.
348
349 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 21 Feb 2005 09:03:12
350
351 libhdate (0.16.2)
352
353 * Syntax error, and weeks calculation bug fixed by Michael Kaminsky.
354
355 -- Yaacov Zamir <kzamir@wall.co.il> Sun, 20 Feb 2005 06:53:12
356
357 libhdate (0.16.1)
358
359 * Fix locale bug in int_to_string.
360 * Add examples directory.
361 * Minor bug fixes.
362
363 -- 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,
4 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
6 Copying and distribution of this file, with or without modification,
7 are permitted in any medium without royalty provided the copyright
8 notice and this notice are preserved. This file is offered as-is,
9 without warranty of any kind.
10
11 Basic Installation
12 ==================
13
14 Briefly, the shell commands `./configure; make; make install' should
15 configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
17 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
19 below. The lack of an optional feature in a given package is not
20 necessarily a bug. More recommendations for GNU packages can be found
21 in *note Makefile Conventions: (standards)Makefile Conventions.
22
23 The `configure' shell script attempts to guess correct values for
24 various system-dependent variables used during compilation. It uses
25 those values to create a `Makefile' in each directory of the package.
26 It may also create one or more `.h' files containing system-dependent
27 definitions. Finally, it creates a shell script `config.status' that
28 you can run in the future to recreate the current configuration, and a
29 file `config.log' containing compiler output (useful mainly for
30 debugging `configure').
31
32 It can also use an optional file (typically called `config.cache'
33 and enabled with `--cache-file=config.cache' or simply `-C') that saves
34 the results of its tests to speed up reconfiguring. Caching is
35 disabled by default to prevent problems with accidental use of stale
36 cache files.
37
38 If you need to do unusual things to compile the package, please try
39 to figure out how `configure' could check whether to do them, and mail
40 diffs or instructions to the address given in the `README' so they can
41 be considered for the next release. If you are using the cache, and at
42 some point `config.cache' contains results you don't want to keep, you
43 may remove or edit it.
44
45 The file `configure.ac' (or `configure.in') is used to create
46 `configure' by a program called `autoconf'. You need `configure.ac' if
47 you want to change it or regenerate `configure' using a newer version
48 of `autoconf'.
49
50 The simplest way to compile this package is:
51
52 1. `cd' to the directory containing the package's source code and type
53 `./configure' to configure the package for your system.
54
55 Running `configure' might take a while. While running, it prints
56 some messages telling which features it is checking for.
57
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
61 the package, generally using the just-built uninstalled binaries.
62
63 4. Type `make install' to install the programs and any data files and
64 documentation. When installing into a prefix owned by root, it is
65 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
67 privileges.
68
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
70 this time using the binaries in their final installed location.
71 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
73 root privileges, verifies that the installation completed
74 correctly.
75
76 6. You can remove the program binaries and object files from the
77 source code directory by typing `make clean'. To also remove the
78 files that `configure' created (so you can compile the package for
79 a different kind of computer), type `make distclean'. There is
80 also a `make maintainer-clean' target, but that is intended mainly
81 for the package's developers. If you use it, you may have to get
82 all sorts of other programs in order to regenerate files that came
83 with the distribution.
84
85 7. Often, you can also type `make uninstall' to remove the installed
86 files again. In practice, not all packages have tested that
87 uninstallation works correctly, even though it is required by the
88 GNU Coding Standards.
89
90 8. Some packages, particularly those that use Automake, provide `make
91 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
93 This target is generally not run by end users.
94
95 Compilers and Options
96 =====================
97
98 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
100 for details on some of the pertinent environment variables.
101
102 You can give `configure' initial values for configuration parameters
103 by setting variables in the command line or in the environment. Here
104 is an example:
105
106 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107
108 *Note Defining Variables::, for more details.
109
110 Compiling For Multiple Architectures
111 ====================================
112
113 You can compile the package for more than one kind of computer at the
114 same time, by placing the object files for each architecture in their
115 own directory. To do this, you can use GNU `make'. `cd' to the
116 directory where you want the object files and executables to go and run
117 the `configure' script. `configure' automatically checks for the
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
120
121 With a non-GNU `make', it is safer to compile the package for one
122 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
124 reconfiguring for another architecture.
125
126 On MacOS X 10.5 and later systems, you can create libraries and
127 executables that work on multiple system types--known as "fat" or
128 "universal" binaries--by specifying multiple `-arch' options to the
129 compiler but only a single `-arch' option to the preprocessor. Like
130 this:
131
132 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
133 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CPP="gcc -E" CXXCPP="g++ -E"
135
136 This is not guaranteed to produce working output in all cases, you
137 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
139
140 Installation Names
141 ==================
142
143 By default, `make install' installs the package's commands under
144 `/usr/local/bin', include files under `/usr/local/include', etc. You
145 can specify an installation prefix other than `/usr/local' by giving
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
147 absolute file name.
148
149 You can specify separate installation prefixes for
150 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
152 PREFIX as the prefix for installing programs and libraries.
153 Documentation and other data files still use the regular prefix.
154
155 In addition, if you use an unusual directory layout you can give
156 options like `--bindir=DIR' to specify different values for particular
157 kinds of files. Run `configure --help' for a list of the directories
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
161 specifications that were not explicitly provided.
162
163 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
165 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
167 having to reconfigure or recompile.
168
169 The first method involves providing an override variable for each
170 affected directory. For example, `make install
171 prefix=/alternate/directory' will choose an alternate location for all
172 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
186 does not work on platforms that have drive letters. On the other hand,
187 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
190
191 Optional Features
192 =================
193
194 If the package supports it, you can cause programs to be installed
195 with an extra prefix or suffix on their names by giving `configure' the
196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
197
198 Some packages pay attention to `--enable-FEATURE' options to
199 `configure', where FEATURE indicates an optional part of the package.
200 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201 is something like `gnu-as' or `x' (for the X Window System). The
202 `README' should mention any `--enable-' and `--with-' options that the
203 package recognizes.
204
205 For packages that use the X Window System, `configure' can usually
206 find the X include and library files automatically, but if it doesn't,
207 you can use the `configure' options `--x-includes=DIR' and
208 `--x-libraries=DIR' to specify their locations.
209
210 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
212 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
214 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
216
217 Particular systems
218 ==================
219
220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
221 CC is not installed, it is recommended to use the following options in
222 order to use an ANSI C compiler:
223
224 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225
226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227
228 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
229 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
230 a workaround. If GNU CC is not installed, it is therefore recommended
231 to try
232
233 ./configure CC="cc"
234
235 and if that doesn't work, try
236
237 ./configure CC="cc -nodtk"
238
239 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
240 directory contains several dysfunctional programs; working variants of
241 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
242 in your `PATH', put it _after_ `/usr/bin'.
243
244 On Haiku, software installed for all users goes in `/boot/common',
245 not `/usr/local'. It is recommended to use the following options:
246
247 ./configure --prefix=/boot/common
248
249 Specifying the System Type
250 ==========================
251
252 There may be some features `configure' cannot figure out
253 automatically, but needs to determine by the type of machine the package
254 will run on. Usually, assuming the package is built to be run on the
255 _same_ architectures, `configure' can figure that out, but if it prints
256 a message saying it cannot guess the machine type, give it the
257 `--build=TYPE' option. TYPE can either be a short name for the system
258 type, such as `sun4', or a canonical name which has the form:
259
260 CPU-COMPANY-SYSTEM
261
262 where SYSTEM can have one of these forms:
263
264 OS
265 KERNEL-OS
266
267 See the file `config.sub' for the possible values of each field. If
268 `config.sub' isn't included in this package, then this package doesn't
269 need to know the machine type.
270
271 If you are _building_ compiler tools for cross-compiling, you should
272 use the option `--target=TYPE' to select the type of system they will
273 produce code for.
274
275 If you want to _use_ a cross compiler, that generates code for a
276 platform different from the build platform, you should specify the
277 "host" platform (i.e., that on which the generated programs will
278 eventually be run) with `--host=TYPE'.
279
280 Sharing Defaults
281 ================
282
283 If you want to set default values for `configure' scripts to share,
284 you can create a site shell script called `config.site' that gives
285 default values for variables like `CC', `cache_file', and `prefix'.
286 `configure' looks for `PREFIX/share/config.site' if it exists, then
287 `PREFIX/etc/config.site' if it exists. Or, you can set the
288 `CONFIG_SITE' environment variable to the location of the site script.
289 A warning: not all `configure' scripts look for a site script.
290
291 Defining Variables
292 ==================
293
294 Variables not defined in a site shell script can be set in the
295 environment passed to `configure'. However, some packages may run
296 configure again during the build, and the customized values of these
297 variables may be lost. In order to avoid this problem, you should set
298 them in the `configure' command line, using `VAR=value'. For example:
299
300 ./configure CC=/usr/local2/bin/gcc
301
302 causes the specified `gcc' to be used as the C compiler (unless it is
303 overridden in the site shell script).
304
305 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
306 an Autoconf bug. Until the bug is fixed you can use this workaround:
307
308 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
309
310 `configure' Invocation
311 ======================
312
313 `configure' recognizes the following options to control how it
314 operates.
315
316 `--help'
317 `-h'
318 Print a summary of all of the options to `configure', and exit.
319
320 `--help=short'
321 `--help=recursive'
322 Print a summary of the options unique to this package's
323 `configure', and exit. The `short' variant lists options used
324 only in the top level, while the `recursive' variant lists options
325 also present in any nested packages.
326
327 `--version'
328 `-V'
329 Print the version of Autoconf used to generate the `configure'
330 script, and exit.
331
332 `--cache-file=FILE'
333 Enable the cache: use and save the results of the tests in FILE,
334 traditionally `config.cache'. FILE defaults to `/dev/null' to
335 disable caching.
336
337 `--config-cache'
338 `-C'
339 Alias for `--cache-file=config.cache'.
340
341 `--quiet'
342 `--silent'
343 `-q'
344 Do not print messages saying which checks are being made. To
345 suppress all normal output, redirect it to `/dev/null' (any error
346 messages will still be shown).
347
348 `--srcdir=DIR'
349 Look for the package's source code in directory DIR. Usually
350 `configure' can determine that directory automatically.
351
352 `--prefix=DIR'
353 Use DIR as the installation prefix. *note Installation Names::
354 for more details, including other options available for fine-tuning
355 the installation locations.
356
357 `--no-create'
358 `-n'
359 Run the configure checks, but stop before creating any output
360 files.
361
362 `configure' also accepts some other, not widely useful, options. Run
363 `configure --help' for more details.
364
0 ## Process this file with automake to produce Makefile.in
1
2 PACKAGE_NAME = libhdate
3 PACKAGE_STRING = library for Hebrew date information
4 PACKAGE_TARNAME =
5 PACKAGE_URL = libhdate.sourceforge.net
6 PACKAGE_VERSION = 1.6
7 VERSION = 1.6
8
9 SUBDIRS = po docs src examples bindings
10
11 pkgconfigdir = $(libdir)/pkgconfig
12 pkgconfig_DATA = libhdate.pc
13
14 libhdatedocdir = ${prefix}/share/doc/libhdate
15 libhdatedoc_DATA = \
16 README\
17 COPYING\
18 AUTHORS\
19 ChangeLog\
20 INSTALL\
21 NEWS\
22 USE \
23 ABOUT-NLS
24
25 EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in
26
27 ACLOCAL_AMFLAGS = -I m4
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = .
37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/libhdate.pc.in \
39 $(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \
40 INSTALL NEWS config.guess config.rpath config.sub depcomp \
41 install-sh ltmain.sh missing
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/libtool.m4 \
47 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
48 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
49 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
50 $(top_srcdir)/m4/progtest.m4 $(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 config.status.lineno
55 mkinstalldirs = $(install_sh) -d
56 CONFIG_CLEAN_FILES = libhdate.pc
57 CONFIG_CLEAN_VPATH_FILES =
58 SOURCES =
59 DIST_SOURCES =
60 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
61 html-recursive info-recursive install-data-recursive \
62 install-dvi-recursive install-exec-recursive \
63 install-html-recursive install-info-recursive \
64 install-pdf-recursive install-ps-recursive install-recursive \
65 installcheck-recursive installdirs-recursive pdf-recursive \
66 ps-recursive uninstall-recursive
67 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
68 am__vpath_adj = case $$p in \
69 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
70 *) f=$$p;; \
71 esac;
72 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
73 am__install_max = 40
74 am__nobase_strip_setup = \
75 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
76 am__nobase_strip = \
77 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
78 am__nobase_list = $(am__nobase_strip_setup); \
79 for p in $$list; do echo "$$p $$p"; done | \
80 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
81 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
82 if (++n[$$2] == $(am__install_max)) \
83 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
84 END { for (dir in files) print dir, files[dir] }'
85 am__base_list = \
86 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
87 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
88 am__installdirs = "$(DESTDIR)$(libhdatedocdir)" \
89 "$(DESTDIR)$(pkgconfigdir)"
90 DATA = $(libhdatedoc_DATA) $(pkgconfig_DATA)
91 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
92 distclean-recursive maintainer-clean-recursive
93 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
94 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
95 distdir dist dist-all distcheck
96 ETAGS = etags
97 CTAGS = ctags
98 DIST_SUBDIRS = $(SUBDIRS)
99 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
100 distdir = $(PACKAGE)-$(VERSION)
101 top_distdir = $(distdir)
102 am__remove_distdir = \
103 { test ! -d "$(distdir)" \
104 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
105 && rm -fr "$(distdir)"; }; }
106 am__relativize = \
107 dir0=`pwd`; \
108 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
109 sed_rest='s,^[^/]*/*,,'; \
110 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
111 sed_butlast='s,/*[^/]*$$,,'; \
112 while test -n "$$dir1"; do \
113 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
114 if test "$$first" != "."; then \
115 if test "$$first" = ".."; then \
116 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
117 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
118 else \
119 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
120 if test "$$first2" = "$$first"; then \
121 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
122 else \
123 dir2="../$$dir2"; \
124 fi; \
125 dir0="$$dir0"/"$$first"; \
126 fi; \
127 fi; \
128 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
129 done; \
130 reldir="$$dir2"
131 DIST_ARCHIVES = $(distdir).tar.gz
132 GZIP_ENV = --best
133 distuninstallcheck_listfiles = find . -type f -print
134 distcleancheck_listfiles = find . -type f -print
135 ACLOCAL = @ACLOCAL@
136 AMTAR = @AMTAR@
137 AR = @AR@
138 AUTOCONF = @AUTOCONF@
139 AUTOHEADER = @AUTOHEADER@
140 AUTOMAKE = @AUTOMAKE@
141 AWK = @AWK@
142 CC = @CC@
143 CCDEPMODE = @CCDEPMODE@
144 CFLAGS = @CFLAGS@
145 CPP = @CPP@
146 CPPFLAGS = @CPPFLAGS@
147 CYGPATH_W = @CYGPATH_W@
148 DATADIRNAME = @DATADIRNAME@
149 DEFS = @DEFS@
150 DEPDIR = @DEPDIR@
151 DLLTOOL = @DLLTOOL@
152 DSYMUTIL = @DSYMUTIL@
153 DUMPBIN = @DUMPBIN@
154 ECHO_C = @ECHO_C@
155 ECHO_N = @ECHO_N@
156 ECHO_T = @ECHO_T@
157 EGREP = @EGREP@
158 EXEEXT = @EXEEXT@
159 FGREP = @FGREP@
160 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
161 GMSGFMT = @GMSGFMT@
162 GMSGFMT_015 = @GMSGFMT_015@
163 GP_MODULES_PATH = @GP_MODULES_PATH@
164 GREP = @GREP@
165 INSTALL = @INSTALL@
166 INSTALL_DATA = @INSTALL_DATA@
167 INSTALL_PROGRAM = @INSTALL_PROGRAM@
168 INSTALL_SCRIPT = @INSTALL_SCRIPT@
169 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
170 INTLLIBS = @INTLLIBS@
171 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
172 LD = @LD@
173 LDFLAGS = @LDFLAGS@
174 LIBICONV = @LIBICONV@
175 LIBINTL = @LIBINTL@
176 LIBOBJS = @LIBOBJS@
177 LIBS = @LIBS@
178 LIBTOOL = @LIBTOOL@
179 LIPO = @LIPO@
180 LN_S = @LN_S@
181 LTLIBICONV = @LTLIBICONV@
182 LTLIBINTL = @LTLIBINTL@
183 LTLIBOBJS = @LTLIBOBJS@
184 MAINT = @MAINT@
185 MAKEINFO = @MAKEINFO@
186 MANIFEST_TOOL = @MANIFEST_TOOL@
187 MKDIR_P = @MKDIR_P@
188 MSGFMT = @MSGFMT@
189 MSGFMT_015 = @MSGFMT_015@
190 MSGMERGE = @MSGMERGE@
191 NM = @NM@
192 NMEDIT = @NMEDIT@
193 OBJDUMP = @OBJDUMP@
194 OBJEXT = @OBJEXT@
195 OTOOL = @OTOOL@
196 OTOOL64 = @OTOOL64@
197 PACKAGE = @PACKAGE@
198 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
199 PACKAGE_NAME = libhdate
200 PACKAGE_STRING = library for Hebrew date information
201 PACKAGE_TARNAME =
202 PACKAGE_URL = libhdate.sourceforge.net
203 PACKAGE_VERSION = 1.6
204 PATH_SEPARATOR = @PATH_SEPARATOR@
205 PA_MODULES_PATH = @PA_MODULES_PATH@
206 PA_VERSION = @PA_VERSION@
207 PE_CFLAGS = @PE_CFLAGS@
208 PE_MODULES_PATH = @PE_MODULES_PATH@
209 PH_CONFIG_PATH = @PH_CONFIG_PATH@
210 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
211 PH_MODULES_PATH = @PH_MODULES_PATH@
212 PKG_CONFIG = @PKG_CONFIG@
213 POSUB = @POSUB@
214 PY_CFLAGS = @PY_CFLAGS@
215 PY_MODULES_PATH = @PY_MODULES_PATH@
216 PY_VERSION = @PY_VERSION@
217 RANLIB = @RANLIB@
218 RU_CFLAGS = @RU_CFLAGS@
219 RU_MODULES_PATH = @RU_MODULES_PATH@
220 RU_VERSION = @RU_VERSION@
221 SED = @SED@
222 SET_MAKE = @SET_MAKE@
223 SHELL = @SHELL@
224 STRIP = @STRIP@
225 USE_NLS = @USE_NLS@
226 VERSION = 1.6
227 VERSION_INFO = @VERSION_INFO@
228 XGETTEXT = @XGETTEXT@
229 XGETTEXT_015 = @XGETTEXT_015@
230 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
231 abs_builddir = @abs_builddir@
232 abs_srcdir = @abs_srcdir@
233 abs_top_builddir = @abs_top_builddir@
234 abs_top_srcdir = @abs_top_srcdir@
235 ac_ct_AR = @ac_ct_AR@
236 ac_ct_CC = @ac_ct_CC@
237 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
238 am__include = @am__include@
239 am__leading_dot = @am__leading_dot@
240 am__quote = @am__quote@
241 am__tar = @am__tar@
242 am__untar = @am__untar@
243 bindir = @bindir@
244 build = @build@
245 build_alias = @build_alias@
246 build_cpu = @build_cpu@
247 build_os = @build_os@
248 build_vendor = @build_vendor@
249 builddir = @builddir@
250 datadir = @datadir@
251 datarootdir = @datarootdir@
252 docdir = @docdir@
253 dvidir = @dvidir@
254 exec_prefix = @exec_prefix@
255 have_fpc = @have_fpc@
256 have_gpc = @have_gpc@
257 have_perl = @have_perl@
258 have_php = @have_php@
259 have_php_config = @have_php_config@
260 have_python = @have_python@
261 have_ruby = @have_ruby@
262 have_swig = @have_swig@
263 host = @host@
264 host_alias = @host_alias@
265 host_cpu = @host_cpu@
266 host_os = @host_os@
267 host_vendor = @host_vendor@
268 htmldir = @htmldir@
269 includedir = @includedir@
270 infodir = @infodir@
271 install_sh = @install_sh@
272 libdir = @libdir@
273 libexecdir = @libexecdir@
274 localedir = @localedir@
275 localstatedir = @localstatedir@
276 mandir = @mandir@
277 mkdir_p = @mkdir_p@
278 oldincludedir = @oldincludedir@
279 pdfdir = @pdfdir@
280 prefix = @prefix@
281 program_transform_name = @program_transform_name@
282 psdir = @psdir@
283 sbindir = @sbindir@
284 sharedstatedir = @sharedstatedir@
285 srcdir = @srcdir@
286 sysconfdir = @sysconfdir@
287 target_alias = @target_alias@
288 top_build_prefix = @top_build_prefix@
289 top_builddir = @top_builddir@
290 top_srcdir = @top_srcdir@
291 SUBDIRS = po docs src examples bindings
292 pkgconfigdir = $(libdir)/pkgconfig
293 pkgconfig_DATA = libhdate.pc
294 libhdatedocdir = ${prefix}/share/doc/libhdate
295 libhdatedoc_DATA = \
296 README\
297 COPYING\
298 AUTHORS\
299 ChangeLog\
300 INSTALL\
301 NEWS\
302 USE \
303 ABOUT-NLS
304
305 EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in
306 ACLOCAL_AMFLAGS = -I m4
307 all: all-recursive
308
309 .SUFFIXES:
310 am--refresh:
311 @:
312 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
313 @for dep in $?; do \
314 case '$(am__configure_deps)' in \
315 *$$dep*) \
316 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
317 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
318 && exit 0; \
319 exit 1;; \
320 esac; \
321 done; \
322 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
323 $(am__cd) $(top_srcdir) && \
324 $(AUTOMAKE) --gnu Makefile
325 .PRECIOUS: Makefile
326 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
327 @case '$?' in \
328 *config.status*) \
329 echo ' $(SHELL) ./config.status'; \
330 $(SHELL) ./config.status;; \
331 *) \
332 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
333 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
334 esac;
335
336 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
337 $(SHELL) ./config.status --recheck
338
339 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
340 $(am__cd) $(srcdir) && $(AUTOCONF)
341 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
342 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
343 $(am__aclocal_m4_deps):
344 libhdate.pc: $(top_builddir)/config.status $(srcdir)/libhdate.pc.in
345 cd $(top_builddir) && $(SHELL) ./config.status $@
346
347 mostlyclean-libtool:
348 -rm -f *.lo
349
350 clean-libtool:
351 -rm -rf .libs _libs
352
353 distclean-libtool:
354 -rm -f libtool config.lt
355 install-libhdatedocDATA: $(libhdatedoc_DATA)
356 @$(NORMAL_INSTALL)
357 test -z "$(libhdatedocdir)" || $(MKDIR_P) "$(DESTDIR)$(libhdatedocdir)"
358 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
359 for p in $$list; do \
360 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
361 echo "$$d$$p"; \
362 done | $(am__base_list) | \
363 while read files; do \
364 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libhdatedocdir)'"; \
365 $(INSTALL_DATA) $$files "$(DESTDIR)$(libhdatedocdir)" || exit $$?; \
366 done
367
368 uninstall-libhdatedocDATA:
369 @$(NORMAL_UNINSTALL)
370 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
371 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
372 test -n "$$files" || exit 0; \
373 echo " ( cd '$(DESTDIR)$(libhdatedocdir)' && rm -f" $$files ")"; \
374 cd "$(DESTDIR)$(libhdatedocdir)" && rm -f $$files
375 install-pkgconfigDATA: $(pkgconfig_DATA)
376 @$(NORMAL_INSTALL)
377 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
378 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
379 for p in $$list; do \
380 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
381 echo "$$d$$p"; \
382 done | $(am__base_list) | \
383 while read files; do \
384 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
385 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
386 done
387
388 uninstall-pkgconfigDATA:
389 @$(NORMAL_UNINSTALL)
390 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
391 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
392 test -n "$$files" || exit 0; \
393 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
394 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
395
396 # This directory's subdirectories are mostly independent; you can cd
397 # into them and run `make' without going through this Makefile.
398 # To change the values of `make' variables: instead of editing Makefiles,
399 # (1) if the variable is set in `config.status', edit `config.status'
400 # (which will cause the Makefiles to be regenerated when you run `make');
401 # (2) otherwise, pass the desired values on the `make' command line.
402 $(RECURSIVE_TARGETS):
403 @fail= failcom='exit 1'; \
404 for f in x $$MAKEFLAGS; do \
405 case $$f in \
406 *=* | --[!k]*);; \
407 *k*) failcom='fail=yes';; \
408 esac; \
409 done; \
410 dot_seen=no; \
411 target=`echo $@ | sed s/-recursive//`; \
412 list='$(SUBDIRS)'; for subdir in $$list; do \
413 echo "Making $$target in $$subdir"; \
414 if test "$$subdir" = "."; then \
415 dot_seen=yes; \
416 local_target="$$target-am"; \
417 else \
418 local_target="$$target"; \
419 fi; \
420 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
421 || eval $$failcom; \
422 done; \
423 if test "$$dot_seen" = "no"; then \
424 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
425 fi; test -z "$$fail"
426
427 $(RECURSIVE_CLEAN_TARGETS):
428 @fail= failcom='exit 1'; \
429 for f in x $$MAKEFLAGS; do \
430 case $$f in \
431 *=* | --[!k]*);; \
432 *k*) failcom='fail=yes';; \
433 esac; \
434 done; \
435 dot_seen=no; \
436 case "$@" in \
437 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
438 *) list='$(SUBDIRS)' ;; \
439 esac; \
440 rev=''; for subdir in $$list; do \
441 if test "$$subdir" = "."; then :; else \
442 rev="$$subdir $$rev"; \
443 fi; \
444 done; \
445 rev="$$rev ."; \
446 target=`echo $@ | sed s/-recursive//`; \
447 for subdir in $$rev; do \
448 echo "Making $$target in $$subdir"; \
449 if test "$$subdir" = "."; then \
450 local_target="$$target-am"; \
451 else \
452 local_target="$$target"; \
453 fi; \
454 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
455 || eval $$failcom; \
456 done && test -z "$$fail"
457 tags-recursive:
458 list='$(SUBDIRS)'; for subdir in $$list; do \
459 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
460 done
461 ctags-recursive:
462 list='$(SUBDIRS)'; for subdir in $$list; do \
463 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
464 done
465
466 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
467 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
468 unique=`for i in $$list; do \
469 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
470 done | \
471 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
472 END { if (nonempty) { for (i in files) print i; }; }'`; \
473 mkid -fID $$unique
474 tags: TAGS
475
476 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
477 $(TAGS_FILES) $(LISP)
478 set x; \
479 here=`pwd`; \
480 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
481 include_option=--etags-include; \
482 empty_fix=.; \
483 else \
484 include_option=--include; \
485 empty_fix=; \
486 fi; \
487 list='$(SUBDIRS)'; for subdir in $$list; do \
488 if test "$$subdir" = .; then :; else \
489 test ! -f $$subdir/TAGS || \
490 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
491 fi; \
492 done; \
493 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
494 unique=`for i in $$list; do \
495 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
496 done | \
497 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
498 END { if (nonempty) { for (i in files) print i; }; }'`; \
499 shift; \
500 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
501 test -n "$$unique" || unique=$$empty_fix; \
502 if test $$# -gt 0; then \
503 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
504 "$$@" $$unique; \
505 else \
506 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
507 $$unique; \
508 fi; \
509 fi
510 ctags: CTAGS
511 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
512 $(TAGS_FILES) $(LISP)
513 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
514 unique=`for i in $$list; do \
515 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
516 done | \
517 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
518 END { if (nonempty) { for (i in files) print i; }; }'`; \
519 test -z "$(CTAGS_ARGS)$$unique" \
520 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
521 $$unique
522
523 GTAGS:
524 here=`$(am__cd) $(top_builddir) && pwd` \
525 && $(am__cd) $(top_srcdir) \
526 && gtags -i $(GTAGS_ARGS) "$$here"
527
528 distclean-tags:
529 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
530
531 distdir: $(DISTFILES)
532 $(am__remove_distdir)
533 test -d "$(distdir)" || mkdir "$(distdir)"
534 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
535 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
536 list='$(DISTFILES)'; \
537 dist_files=`for file in $$list; do echo $$file; done | \
538 sed -e "s|^$$srcdirstrip/||;t" \
539 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
540 case $$dist_files in \
541 */*) $(MKDIR_P) `echo "$$dist_files" | \
542 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
543 sort -u` ;; \
544 esac; \
545 for file in $$dist_files; do \
546 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
547 if test -d $$d/$$file; then \
548 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
549 if test -d "$(distdir)/$$file"; then \
550 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
551 fi; \
552 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
553 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
554 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
555 fi; \
556 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
557 else \
558 test -f "$(distdir)/$$file" \
559 || cp -p $$d/$$file "$(distdir)/$$file" \
560 || exit 1; \
561 fi; \
562 done
563 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
564 if test "$$subdir" = .; then :; else \
565 test -d "$(distdir)/$$subdir" \
566 || $(MKDIR_P) "$(distdir)/$$subdir" \
567 || exit 1; \
568 fi; \
569 done
570 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
571 if test "$$subdir" = .; then :; else \
572 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
573 $(am__relativize); \
574 new_distdir=$$reldir; \
575 dir1=$$subdir; dir2="$(top_distdir)"; \
576 $(am__relativize); \
577 new_top_distdir=$$reldir; \
578 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
579 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
580 ($(am__cd) $$subdir && \
581 $(MAKE) $(AM_MAKEFLAGS) \
582 top_distdir="$$new_top_distdir" \
583 distdir="$$new_distdir" \
584 am__remove_distdir=: \
585 am__skip_length_check=: \
586 am__skip_mode_fix=: \
587 distdir) \
588 || exit 1; \
589 fi; \
590 done
591 -test -n "$(am__skip_mode_fix)" \
592 || find "$(distdir)" -type d ! -perm -755 \
593 -exec chmod u+rwx,go+rx {} \; -o \
594 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
595 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
596 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
597 || chmod -R a+r "$(distdir)"
598 dist-gzip: distdir
599 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
600 $(am__remove_distdir)
601
602 dist-bzip2: distdir
603 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
604 $(am__remove_distdir)
605
606 dist-lzma: distdir
607 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
608 $(am__remove_distdir)
609
610 dist-xz: distdir
611 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
612 $(am__remove_distdir)
613
614 dist-tarZ: distdir
615 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
616 $(am__remove_distdir)
617
618 dist-shar: distdir
619 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
620 $(am__remove_distdir)
621
622 dist-zip: distdir
623 -rm -f $(distdir).zip
624 zip -rq $(distdir).zip $(distdir)
625 $(am__remove_distdir)
626
627 dist dist-all: distdir
628 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
629 $(am__remove_distdir)
630
631 # This target untars the dist file and tries a VPATH configuration. Then
632 # it guarantees that the distribution is self-contained by making another
633 # tarfile.
634 distcheck: dist
635 case '$(DIST_ARCHIVES)' in \
636 *.tar.gz*) \
637 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
638 *.tar.bz2*) \
639 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
640 *.tar.lzma*) \
641 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
642 *.tar.xz*) \
643 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
644 *.tar.Z*) \
645 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
646 *.shar.gz*) \
647 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
648 *.zip*) \
649 unzip $(distdir).zip ;;\
650 esac
651 chmod -R a-w $(distdir); chmod a+w $(distdir)
652 mkdir $(distdir)/_build
653 mkdir $(distdir)/_inst
654 chmod a-w $(distdir)
655 test -d $(distdir)/_build || exit 0; \
656 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
657 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
658 && am__cwd=`pwd` \
659 && $(am__cd) $(distdir)/_build \
660 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
661 $(DISTCHECK_CONFIGURE_FLAGS) \
662 && $(MAKE) $(AM_MAKEFLAGS) \
663 && $(MAKE) $(AM_MAKEFLAGS) dvi \
664 && $(MAKE) $(AM_MAKEFLAGS) check \
665 && $(MAKE) $(AM_MAKEFLAGS) install \
666 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
667 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
668 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
669 distuninstallcheck \
670 && chmod -R a-w "$$dc_install_base" \
671 && ({ \
672 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
673 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
674 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
675 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
676 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
677 } || { rm -rf "$$dc_destdir"; exit 1; }) \
678 && rm -rf "$$dc_destdir" \
679 && $(MAKE) $(AM_MAKEFLAGS) dist \
680 && rm -rf $(DIST_ARCHIVES) \
681 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
682 && cd "$$am__cwd" \
683 || exit 1
684 $(am__remove_distdir)
685 @(echo "$(distdir) archives ready for distribution: "; \
686 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
687 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
688 distuninstallcheck:
689 @$(am__cd) '$(distuninstallcheck_dir)' \
690 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
691 || { echo "ERROR: files left after uninstall:" ; \
692 if test -n "$(DESTDIR)"; then \
693 echo " (check DESTDIR support)"; \
694 fi ; \
695 $(distuninstallcheck_listfiles) ; \
696 exit 1; } >&2
697 distcleancheck: distclean
698 @if test '$(srcdir)' = . ; then \
699 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
700 exit 1 ; \
701 fi
702 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
703 || { echo "ERROR: files left in build directory after distclean:" ; \
704 $(distcleancheck_listfiles) ; \
705 exit 1; } >&2
706 check-am: all-am
707 check: check-recursive
708 all-am: Makefile $(DATA)
709 installdirs: installdirs-recursive
710 installdirs-am:
711 for dir in "$(DESTDIR)$(libhdatedocdir)" "$(DESTDIR)$(pkgconfigdir)"; do \
712 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
713 done
714 install: install-recursive
715 install-exec: install-exec-recursive
716 install-data: install-data-recursive
717 uninstall: uninstall-recursive
718
719 install-am: all-am
720 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
721
722 installcheck: installcheck-recursive
723 install-strip:
724 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
725 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
726 `test -z '$(STRIP)' || \
727 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
728 mostlyclean-generic:
729
730 clean-generic:
731
732 distclean-generic:
733 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
734 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
735
736 maintainer-clean-generic:
737 @echo "This command is intended for maintainers to use"
738 @echo "it deletes files that may require special tools to rebuild."
739 clean: clean-recursive
740
741 clean-am: clean-generic clean-libtool mostlyclean-am
742
743 distclean: distclean-recursive
744 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
745 -rm -f Makefile
746 distclean-am: clean-am distclean-generic distclean-libtool \
747 distclean-tags
748
749 dvi: dvi-recursive
750
751 dvi-am:
752
753 html: html-recursive
754
755 html-am:
756
757 info: info-recursive
758
759 info-am:
760
761 install-data-am: install-libhdatedocDATA install-pkgconfigDATA
762
763 install-dvi: install-dvi-recursive
764
765 install-dvi-am:
766
767 install-exec-am:
768
769 install-html: install-html-recursive
770
771 install-html-am:
772
773 install-info: install-info-recursive
774
775 install-info-am:
776
777 install-man:
778
779 install-pdf: install-pdf-recursive
780
781 install-pdf-am:
782
783 install-ps: install-ps-recursive
784
785 install-ps-am:
786
787 installcheck-am:
788
789 maintainer-clean: maintainer-clean-recursive
790 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
791 -rm -rf $(top_srcdir)/autom4te.cache
792 -rm -f Makefile
793 maintainer-clean-am: distclean-am maintainer-clean-generic
794
795 mostlyclean: mostlyclean-recursive
796
797 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
798
799 pdf: pdf-recursive
800
801 pdf-am:
802
803 ps: ps-recursive
804
805 ps-am:
806
807 uninstall-am: uninstall-libhdatedocDATA uninstall-pkgconfigDATA
808
809 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
810 install-am install-strip tags-recursive
811
812 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
813 all all-am am--refresh check check-am clean clean-generic \
814 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
815 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
816 distcheck distclean distclean-generic distclean-libtool \
817 distclean-tags distcleancheck distdir distuninstallcheck dvi \
818 dvi-am html html-am info info-am install install-am \
819 install-data install-data-am install-dvi install-dvi-am \
820 install-exec install-exec-am install-html install-html-am \
821 install-info install-info-am install-libhdatedocDATA \
822 install-man install-pdf install-pdf-am install-pkgconfigDATA \
823 install-ps install-ps-am install-strip installcheck \
824 installcheck-am installdirs installdirs-am maintainer-clean \
825 maintainer-clean-generic mostlyclean mostlyclean-generic \
826 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
827 uninstall uninstall-am uninstall-libhdatedocDATA \
828 uninstall-pkgconfigDATA
829
830
831 # Tell versions [3.59,3.63) of GNU make to not export all variables.
832 # Otherwise a system limit (for SysV at least) may be exceeded.
833 .NOEXPORT:
0 Libhdate, hcal, hdate: version 1..6 released
1 ============================================
2
3 LibHdate is a small library for the Hebrew calendar, dates, holidays,
4 and reading sequence. It is written in C and includes bindings for
5 pascal, perl, python, php, ruby.
6
7 hcal and hdate are small example command line programs, written in C.
8
9 This release brings many new options, features, and bug fixes to the two example
10 programs hcal and hdate. The changes to the underlying function library include
11 a few minor bug fixes, deprecation of a series of string functions in favor
12 of a single new one with better memory allocation, and hard-coding of core
13 elements of the Hebrew localization so that Hebrew can be displayed in all
14 locales.
15
16 Some selected highlights:
17
18 * config files for storing defaults
19 * user-defined menus (defined in config file)
20 * sunset awareness, based on coordinates given or system timezone and guesswork
21 * optional easier entry of coordinates (N, S, E, W, dd:mm:ss)
22 * minhag customization for Shabbat times
23 * Hebrew information in Hebrew characters (for all locales)
24 * hcal can display in 3-month mode, in color, with footnotes and Shabbat information
25 * hdate can output data in csv format, suitable for spreadsheets, awk, etc.
26 * hdate has many format enhancements
27
28 2012-01-09 Boruch Baum <boruch-baum@users.sourceforge.net>
0 Libhdate, hcal, hdate
1 =====================
2
3 CONTENTS
4 ========
5 1] Description
6 2] Brief highlights of this update
7
8
9 1] Description
10 ==============
11 LibHdate is a small library for the Hebrew calendar, dates, holidays,
12 and reading sequence. It is written in C and includes bindings for
13 pascal, perl, python, php, ruby.
14
15 hcal and hdate are small example command line programs written in C.
16
17 Refer to the following files:
18 INSTALL instructions how to install this package
19 USE basic example of how to use one of the library functions
20 in a C program, how to compile it, and how to run it.
21 NEWS press-release style information of the current release
22 Changelog more detailed list of project activity over many releases
23
24 Refer to the man pages and examples directory for further documentation
25 and examples.
26
27
28 2] Brief highlights of this update
29 ==================================
30 This release brings many new options, features, and bug fixes to the two example
31 programs hcal and hdate. The changes to the underlying function library include
32 a few minor bug fixes, deprecation of a series of string functions in favor
33 of a single new one with better memory allocation, and hard-coding of core
34 elements of the Hebrew localization so that Hebrew can be displayed in all
35 locales. The documentation in the man pages and in the new configuration
36 file should be sufficient.
37
38 2.1] selected highlights
39 ========================
40
41 hcal
42 - introduced config file $XDG_CONFIG_HOME/hcal/hcalrc or ~/.config/hcal/hcalrc
43 - option --menu -m to prompt user for user-defined menu selections from config file
44 - option --candles and --havdalah take optional numeric arguments to modify the default minhag.
45 - remove dependency of Hebrew on locale environment variables
46 - new feature: sunset-aware to highlight correct hebrew date
47 - new options: shabbat times and readings
48 - new feature: location-awareness (options -l -L -z)
49 - basic location-guessing based upon time zone
50 - coordinates may now also be in form degrees, minutes, seconds and be delimited by :, ', or "
51 - coordinates may now include compass directions N, S, E, W.
52 - time zone may now include fractional hours, or minutes (delimited by :, ', or ")
53 - highlight current day in reverse video
54 - compress width of display on screen
55 - print Gregorian and Hebrew months on one line
56 - option three-month to display previous and next months with current
57 - option three-month with year displays four rows, three columns
58 - option colorize to display data in, um, color
59 - option footnote to explain the month's holidays
60 - option force-hebrew for non-hebrew locales
61 - basic diaspora-awareness based on system time-zone
62
63 hdate
64 - introduced config file $XDG_CONFIG_HOME/hdate/hdaterc or ~/.config/hdate/hdaterc
65 - option --menu -m to prompt user for user-defined menu selections from config file
66 - option --candles and --havdalah take optional numeric arguments to modify the default minhag.
67 - remove dependency of Hebrew on locale environment variables
68 - new feature: sunset-aware to highlight correct hebrew date
69 - coordinates may now also be in form degrees, minutes, seconds and be delimited by :, ', or "
70 - coordinates may now include compass directions N, S, E, W.
71 - time zone may now include fractional hours, or minutes (delimited by :, ', or ")
72 - Hebrew information can optionally display in Hebrew characters in all locales
73 - option --sunset-aware, prints tomorrow's Hebrew date and info (for today only) if after sunset
74 - option --table, prints data in csv format, suitable for spreadsheets, awk, etc.
75
76
77 libhdate
78 - new function hdate_string
79 - DEPRECATION: hdate_get_day_string is now only a wrapper for hdate_string
80 - DEPRECATION: hdate_get_hebrew_month_string is now only a wrapper for hdate_string
81 - DEPRECATION: hdate_get_holyday_string is now only a wrapper for hdate_string
82 - DEPRECATION: hdate_get_month_string is now only a wrapper for hdate_string
83 - DEPRECATION: hdate_get_parasha_string is now only a wrapper for hdate_string
84 - DEPRECATION: hdate_get_omer_string is now only a wrapper for hdate_string
85 - DEPRECATION: hdate_get_int_string_ is now only a wrapper for hdate_string
86 - BUGFIX hdate_get_format_date, hdate-get_day_string, hdate_get_int_string no longer
87 write to static local buffers. Callers to those functions must free().
88 - BUGFIX made all functions const-correct and fixed resulting conflicts
89
+58
-0
USE less more
0 libhdate USE file
1
2 CONTENTS
3 ========
4 1] Usage, if you have pkg-config
5 2] Usage, if you don't have pkg-config
6 3] An expanded example
7 3.1] Small sample source code
8 3.2] Compile it
9 3.3] Execute it
10
11
12 1] Usage, if you have pkg-config
13 ================================
14 gcc -c `pkg-config --cflags libhdate` <your code>.c
15 gcc `pkg-config --libs libhdate` <your code>.o -o <program name>
16
17
18 2] Usage, if you don't have pkg-config
19 ======================================
20 gcc -c <your code>.c
21 gcc -lm -lhdate <your code>.o -o <program name>
22
23
24 3] An expanded example
25 ======================
26
27
28 3.1] Small sample source code
29 =============================
30 // example code: file: test.c
31 #include <stdio.h>
32 #include <hdate.h>
33
34 #define TRUE 1
35 #define FALSE 0
36
37 int
38 main()
39 {
40 hdate_struct *h;
41
42 h = hdate_hdate( 0,0,0);
43
44 printf ("%s\n", hdate_get_format_date (h, FALSE) );
45
46 return 0;
47 }
48
49
50 3.2] Compile it
51 ===============
52 gcc -lm -lhdate test.c -o test
53
54
55 3.3] Execute it
56 ===============
57 ./test
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_AUTOCONF_VERSION],
14 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
16 [m4_warning([this file was generated for autoconf 2.68.
17 You have another version of autoconf. It may work, but is not guaranteed to.
18 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
21 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
22 #
23 # This file is free software; the Free Software Foundation
24 # gives unlimited permission to copy and/or distribute it,
25 # with or without modifications, as long as this notice is preserved.
26
27 # AM_AUTOMAKE_VERSION(VERSION)
28 # ----------------------------
29 # Automake X.Y traces this macro to ensure aclocal.m4 has been
30 # generated from the m4 files accompanying Automake X.Y.
31 # (This private macro should not be called outside this file.)
32 AC_DEFUN([AM_AUTOMAKE_VERSION],
33 [am__api_version='1.11'
34 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
35 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.11.1], [],
37 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
38 ])
39
40 # _AM_AUTOCONF_VERSION(VERSION)
41 # -----------------------------
42 # aclocal traces this macro to find the Autoconf version.
43 # This is a private macro too. Using m4_define simplifies
44 # the logic in aclocal, which can simply ignore this definition.
45 m4_define([_AM_AUTOCONF_VERSION], [])
46
47 # AM_SET_CURRENT_AUTOMAKE_VERSION
48 # -------------------------------
49 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
50 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
51 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.11.1])dnl
53 m4_ifndef([AC_AUTOCONF_VERSION],
54 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
55 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
56
57 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
58
59 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
60 #
61 # This file is free software; the Free Software Foundation
62 # gives unlimited permission to copy and/or distribute it,
63 # with or without modifications, as long as this notice is preserved.
64
65 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
66 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
67 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68 #
69 # Of course, Automake must honor this variable whenever it calls a
70 # tool from the auxiliary directory. The problem is that $srcdir (and
71 # therefore $ac_aux_dir as well) can be either absolute or relative,
72 # depending on how configure is run. This is pretty annoying, since
73 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
74 # source directory, any form will work fine, but in subdirectories a
75 # relative path needs to be adjusted first.
76 #
77 # $ac_aux_dir/missing
78 # fails when called from a subdirectory if $ac_aux_dir is relative
79 # $top_srcdir/$ac_aux_dir/missing
80 # fails if $ac_aux_dir is absolute,
81 # fails when called from a subdirectory in a VPATH build with
82 # a relative $ac_aux_dir
83 #
84 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
85 # are both prefixed by $srcdir. In an in-source build this is usually
86 # harmless because $srcdir is `.', but things will broke when you
87 # start a VPATH build or use an absolute $srcdir.
88 #
89 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
90 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
91 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
92 # and then we would define $MISSING as
93 # MISSING="\${SHELL} $am_aux_dir/missing"
94 # This will work as long as MISSING is not called from configure, because
95 # unfortunately $(top_srcdir) has no meaning in configure.
96 # However there are other variables, like CC, which are often used in
97 # configure, and could therefore not use this "fixed" $ac_aux_dir.
98 #
99 # Another solution, used here, is to always expand $ac_aux_dir to an
100 # absolute PATH. The drawback is that using absolute paths prevent a
101 # configured tree to be moved without reconfiguration.
102
103 AC_DEFUN([AM_AUX_DIR_EXPAND],
104 [dnl Rely on autoconf to set up CDPATH properly.
105 AC_PREREQ([2.50])dnl
106 # expand $ac_aux_dir to an absolute path
107 am_aux_dir=`cd $ac_aux_dir && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
113 # Free Software Foundation, Inc.
114 #
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
118
119 # serial 9
120
121 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
122 # -------------------------------------
123 # Define a conditional.
124 AC_DEFUN([AM_CONDITIONAL],
125 [AC_PREREQ(2.52)dnl
126 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
127 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
128 AC_SUBST([$1_TRUE])dnl
129 AC_SUBST([$1_FALSE])dnl
130 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
131 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
132 m4_define([_AM_COND_VALUE_$1], [$2])dnl
133 if $2; then
134 $1_TRUE=
135 $1_FALSE='#'
136 else
137 $1_TRUE='#'
138 $1_FALSE=
139 fi
140 AC_CONFIG_COMMANDS_PRE(
141 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
142 AC_MSG_ERROR([[conditional "$1" was never defined.
143 Usually this means the macro was only invoked conditionally.]])
144 fi])])
145
146 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
147 # Free Software Foundation, Inc.
148 #
149 # This file is free software; the Free Software Foundation
150 # gives unlimited permission to copy and/or distribute it,
151 # with or without modifications, as long as this notice is preserved.
152
153 # serial 10
154
155 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156 # written in clear, in which case automake, when reading aclocal.m4,
157 # will think it sees a *use*, and therefore will trigger all it's
158 # C support machinery. Also note that it means that autoscan, seeing
159 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
160
161
162 # _AM_DEPENDENCIES(NAME)
163 # ----------------------
164 # See how the compiler implements dependency checking.
165 # NAME is "CC", "CXX", "GCJ", or "OBJC".
166 # We try a few techniques and use that to set a single cache variable.
167 #
168 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
169 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
170 # dependency, and given that the user is not expected to run this macro,
171 # just rely on AC_PROG_CC.
172 AC_DEFUN([_AM_DEPENDENCIES],
173 [AC_REQUIRE([AM_SET_DEPDIR])dnl
174 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
175 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
176 AC_REQUIRE([AM_DEP_TRACK])dnl
177
178 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
179 [$1], CXX, [depcc="$CXX" am_compiler_list=],
180 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181 [$1], UPC, [depcc="$UPC" am_compiler_list=],
182 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
183 [depcc="$$1" am_compiler_list=])
184
185 AC_CACHE_CHECK([dependency style of $depcc],
186 [am_cv_$1_dependencies_compiler_type],
187 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
188 # We make a subdir and do the tests there. Otherwise we can end up
189 # making bogus files that we don't know about and never remove. For
190 # instance it was reported that on HP-UX the gcc test will end up
191 # making a dummy file named `D' -- because `-MD' means `put the output
192 # in D'.
193 mkdir conftest.dir
194 # Copy depcomp to subdir because otherwise we won't find it if we're
195 # using a relative directory.
196 cp "$am_depcomp" conftest.dir
197 cd conftest.dir
198 # We will build objects and dependencies in a subdirectory because
199 # it helps to detect inapplicable dependency modes. For instance
200 # both Tru64's cc and ICC support -MD to output dependencies as a
201 # side effect of compilation, but ICC will put the dependencies in
202 # the current directory while Tru64 will put them in the object
203 # directory.
204 mkdir sub
205
206 am_cv_$1_dependencies_compiler_type=none
207 if test "$am_compiler_list" = ""; then
208 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
209 fi
210 am__universal=false
211 m4_case([$1], [CC],
212 [case " $depcc " in #(
213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
214 esac],
215 [CXX],
216 [case " $depcc " in #(
217 *\ -arch\ *\ -arch\ *) am__universal=true ;;
218 esac])
219
220 for depmode in $am_compiler_list; do
221 # Setup a source with many dependencies, because some compilers
222 # like to wrap large dependency lists on column 80 (with \), and
223 # we should not choose a depcomp mode which is confused by this.
224 #
225 # We need to recreate these files for each test, as the compiler may
226 # overwrite some of them when testing with obscure command lines.
227 # This happens at least with the AIX C compiler.
228 : > sub/conftest.c
229 for i in 1 2 3 4 5 6; do
230 echo '#include "conftst'$i'.h"' >> sub/conftest.c
231 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
232 # Solaris 8's {/usr,}/bin/sh.
233 touch sub/conftst$i.h
234 done
235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
236
237 # We check with `-c' and `-o' for the sake of the "dashmstdout"
238 # mode. It turns out that the SunPro C++ compiler does not properly
239 # handle `-M -o', and we need to detect this. Also, some Intel
240 # versions had trouble with output in subdirs
241 am__obj=sub/conftest.${OBJEXT-o}
242 am__minus_obj="-o $am__obj"
243 case $depmode in
244 gcc)
245 # This depmode causes a compiler race in universal mode.
246 test "$am__universal" = false || continue
247 ;;
248 nosideeffect)
249 # after this tag, mechanisms are not by side-effect, so they'll
250 # only be used when explicitly requested
251 if test "x$enable_dependency_tracking" = xyes; then
252 continue
253 else
254 break
255 fi
256 ;;
257 msvisualcpp | msvcmsys)
258 # This compiler won't grok `-c -o', but also, the minuso test has
259 # not run yet. These depmodes are late enough in the game, and
260 # so weak that their functioning should not be impacted.
261 am__obj=conftest.${OBJEXT-o}
262 am__minus_obj=
263 ;;
264 none) break ;;
265 esac
266 if depmode=$depmode \
267 source=sub/conftest.c object=$am__obj \
268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
270 >/dev/null 2>conftest.err &&
271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
275 # icc doesn't choke on unknown options, it will just issue warnings
276 # or remarks (even with -Werror). So we grep stderr for any message
277 # that says an option was ignored or not supported.
278 # When given -MP, icc 7.0 and 7.1 complain thusly:
279 # icc: Command line warning: ignoring option '-M'; no argument required
280 # The diagnosis changed in icc 8.0:
281 # icc: Command line remark: option '-MP' not supported
282 if (grep 'ignoring option' conftest.err ||
283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
284 am_cv_$1_dependencies_compiler_type=$depmode
285 break
286 fi
287 fi
288 done
289
290 cd ..
291 rm -rf conftest.dir
292 else
293 am_cv_$1_dependencies_compiler_type=none
294 fi
295 ])
296 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
297 AM_CONDITIONAL([am__fastdep$1], [
298 test "x$enable_dependency_tracking" != xno \
299 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
300 ])
301
302
303 # AM_SET_DEPDIR
304 # -------------
305 # Choose a directory name for dependency files.
306 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
307 AC_DEFUN([AM_SET_DEPDIR],
308 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
309 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
310 ])
311
312
313 # AM_DEP_TRACK
314 # ------------
315 AC_DEFUN([AM_DEP_TRACK],
316 [AC_ARG_ENABLE(dependency-tracking,
317 [ --disable-dependency-tracking speeds up one-time build
318 --enable-dependency-tracking do not reject slow dependency extractors])
319 if test "x$enable_dependency_tracking" != xno; then
320 am_depcomp="$ac_aux_dir/depcomp"
321 AMDEPBACKSLASH='\'
322 fi
323 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
324 AC_SUBST([AMDEPBACKSLASH])dnl
325 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
326 ])
327
328 # Generate code to set up dependency tracking. -*- Autoconf -*-
329
330 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
331 # Free Software Foundation, Inc.
332 #
333 # This file is free software; the Free Software Foundation
334 # gives unlimited permission to copy and/or distribute it,
335 # with or without modifications, as long as this notice is preserved.
336
337 #serial 5
338
339 # _AM_OUTPUT_DEPENDENCY_COMMANDS
340 # ------------------------------
341 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
342 [{
343 # Autoconf 2.62 quotes --file arguments for eval, but not when files
344 # are listed without --file. Let's play safe and only enable the eval
345 # if we detect the quoting.
346 case $CONFIG_FILES in
347 *\'*) eval set x "$CONFIG_FILES" ;;
348 *) set x $CONFIG_FILES ;;
349 esac
350 shift
351 for mf
352 do
353 # Strip MF so we end up with the name of the file.
354 mf=`echo "$mf" | sed -e 's/:.*$//'`
355 # Check whether this is an Automake generated Makefile or not.
356 # We used to match only the files named `Makefile.in', but
357 # some people rename them; so instead we look at the file content.
358 # Grep'ing the first line is not enough: some people post-process
359 # each Makefile.in and add a new line on top of each file to say so.
360 # Grep'ing the whole file is not good either: AIX grep has a line
361 # limit of 2048, but all sed's we know have understand at least 4000.
362 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
363 dirpart=`AS_DIRNAME("$mf")`
364 else
365 continue
366 fi
367 # Extract the definition of DEPDIR, am__include, and am__quote
368 # from the Makefile without running `make'.
369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
370 test -z "$DEPDIR" && continue
371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
372 test -z "am__include" && continue
373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
374 # When using ansi2knr, U may be empty or an underscore; expand it
375 U=`sed -n 's/^U = //p' < "$mf"`
376 # Find all dependency output files, they are included files with
377 # $(DEPDIR) in their names. We invoke sed twice because it is the
378 # simplest approach to changing $(DEPDIR) to its actual value in the
379 # expansion.
380 for file in `sed -n "
381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
383 # Make sure the directory exists.
384 test -f "$dirpart/$file" && continue
385 fdir=`AS_DIRNAME(["$file"])`
386 AS_MKDIR_P([$dirpart/$fdir])
387 # echo "creating $dirpart/$file"
388 echo '# dummy' > "$dirpart/$file"
389 done
390 done
391 }
392 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
393
394
395 # AM_OUTPUT_DEPENDENCY_COMMANDS
396 # -----------------------------
397 # This macro should only be invoked once -- use via AC_REQUIRE.
398 #
399 # This code is only required when automatic dependency tracking
400 # is enabled. FIXME. This creates each `.P' file that we will
401 # need in order to bootstrap the dependency handling code.
402 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
403 [AC_CONFIG_COMMANDS([depfiles],
404 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
405 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
406 ])
407
408 # Do all the work for Automake. -*- Autoconf -*-
409
410 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
411 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
412 #
413 # This file is free software; the Free Software Foundation
414 # gives unlimited permission to copy and/or distribute it,
415 # with or without modifications, as long as this notice is preserved.
416
417 # serial 16
418
419 # This macro actually does too much. Some checks are only needed if
420 # your package does certain things. But this isn't really a big deal.
421
422 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
423 # AM_INIT_AUTOMAKE([OPTIONS])
424 # -----------------------------------------------
425 # The call with PACKAGE and VERSION arguments is the old style
426 # call (pre autoconf-2.50), which is being phased out. PACKAGE
427 # and VERSION should now be passed to AC_INIT and removed from
428 # the call to AM_INIT_AUTOMAKE.
429 # We support both call styles for the transition. After
430 # the next Automake release, Autoconf can make the AC_INIT
431 # arguments mandatory, and then we can depend on a new Autoconf
432 # release and drop the old call support.
433 AC_DEFUN([AM_INIT_AUTOMAKE],
434 [AC_PREREQ([2.62])dnl
435 dnl Autoconf wants to disallow AM_ names. We explicitly allow
436 dnl the ones we care about.
437 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
438 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
439 AC_REQUIRE([AC_PROG_INSTALL])dnl
440 if test "`cd $srcdir && pwd`" != "`pwd`"; then
441 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
442 # is not polluted with repeated "-I."
443 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
444 # test to see if srcdir already configured
445 if test -f $srcdir/config.status; then
446 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
447 fi
448 fi
449
450 # test whether we have cygpath
451 if test -z "$CYGPATH_W"; then
452 if (cygpath --version) >/dev/null 2>/dev/null; then
453 CYGPATH_W='cygpath -w'
454 else
455 CYGPATH_W=echo
456 fi
457 fi
458 AC_SUBST([CYGPATH_W])
459
460 # Define the identity of the package.
461 dnl Distinguish between old-style and new-style calls.
462 m4_ifval([$2],
463 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
464 AC_SUBST([PACKAGE], [$1])dnl
465 AC_SUBST([VERSION], [$2])],
466 [_AM_SET_OPTIONS([$1])dnl
467 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
468 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
469 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
470 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
471 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
472
473 _AM_IF_OPTION([no-define],,
474 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
475 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
476
477 # Some tools Automake needs.
478 AC_REQUIRE([AM_SANITY_CHECK])dnl
479 AC_REQUIRE([AC_ARG_PROGRAM])dnl
480 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
481 AM_MISSING_PROG(AUTOCONF, autoconf)
482 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
483 AM_MISSING_PROG(AUTOHEADER, autoheader)
484 AM_MISSING_PROG(MAKEINFO, makeinfo)
485 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
486 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
487 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
488 # We need awk for the "check" target. The system "awk" is bad on
489 # some platforms.
490 AC_REQUIRE([AC_PROG_AWK])dnl
491 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
492 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
493 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
494 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
495 [_AM_PROG_TAR([v7])])])
496 _AM_IF_OPTION([no-dependencies],,
497 [AC_PROVIDE_IFELSE([AC_PROG_CC],
498 [_AM_DEPENDENCIES(CC)],
499 [define([AC_PROG_CC],
500 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
501 AC_PROVIDE_IFELSE([AC_PROG_CXX],
502 [_AM_DEPENDENCIES(CXX)],
503 [define([AC_PROG_CXX],
504 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
505 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
506 [_AM_DEPENDENCIES(OBJC)],
507 [define([AC_PROG_OBJC],
508 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
509 ])
510 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
511 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
512 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
513 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
514 AC_CONFIG_COMMANDS_PRE(dnl
515 [m4_provide_if([_AM_COMPILER_EXEEXT],
516 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
517 ])
518
519 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
520 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
521 dnl mangled by Autoconf and run in a shell conditional statement.
522 m4_define([_AC_COMPILER_EXEEXT],
523 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
524
525
526 # When config.status generates a header, we must update the stamp-h file.
527 # This file resides in the same directory as the config header
528 # that is generated. The stamp files are numbered to have different names.
529
530 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
531 # loop where config.status creates the headers, so we can generate
532 # our stamp files there.
533 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
534 [# Compute $1's index in $config_headers.
535 _am_arg=$1
536 _am_stamp_count=1
537 for _am_header in $config_headers :; do
538 case $_am_header in
539 $_am_arg | $_am_arg:* )
540 break ;;
541 * )
542 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
543 esac
544 done
545 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
546
547 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
548 #
549 # This file is free software; the Free Software Foundation
550 # gives unlimited permission to copy and/or distribute it,
551 # with or without modifications, as long as this notice is preserved.
552
553 # AM_PROG_INSTALL_SH
554 # ------------------
555 # Define $install_sh.
556 AC_DEFUN([AM_PROG_INSTALL_SH],
557 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
558 if test x"${install_sh}" != xset; then
559 case $am_aux_dir in
560 *\ * | *\ *)
561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
562 *)
563 install_sh="\${SHELL} $am_aux_dir/install-sh"
564 esac
565 fi
566 AC_SUBST(install_sh)])
567
568 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
569 #
570 # This file is free software; the Free Software Foundation
571 # gives unlimited permission to copy and/or distribute it,
572 # with or without modifications, as long as this notice is preserved.
573
574 # serial 2
575
576 # Check whether the underlying file-system supports filenames
577 # with a leading dot. For instance MS-DOS doesn't.
578 AC_DEFUN([AM_SET_LEADING_DOT],
579 [rm -rf .tst 2>/dev/null
580 mkdir .tst 2>/dev/null
581 if test -d .tst; then
582 am__leading_dot=.
583 else
584 am__leading_dot=_
585 fi
586 rmdir .tst 2>/dev/null
587 AC_SUBST([am__leading_dot])])
588
589 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
590 # From Jim Meyering
591
592 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
593 # Free Software Foundation, Inc.
594 #
595 # This file is free software; the Free Software Foundation
596 # gives unlimited permission to copy and/or distribute it,
597 # with or without modifications, as long as this notice is preserved.
598
599 # serial 5
600
601 # AM_MAINTAINER_MODE([DEFAULT-MODE])
602 # ----------------------------------
603 # Control maintainer-specific portions of Makefiles.
604 # Default is to disable them, unless `enable' is passed literally.
605 # For symmetry, `disable' may be passed as well. Anyway, the user
606 # can override the default with the --enable/--disable switch.
607 AC_DEFUN([AM_MAINTAINER_MODE],
608 [m4_case(m4_default([$1], [disable]),
609 [enable], [m4_define([am_maintainer_other], [disable])],
610 [disable], [m4_define([am_maintainer_other], [enable])],
611 [m4_define([am_maintainer_other], [enable])
612 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
613 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
614 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
615 AC_ARG_ENABLE([maintainer-mode],
616 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
617 (and sometimes confusing) to the casual installer],
618 [USE_MAINTAINER_MODE=$enableval],
619 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
620 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
621 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
622 MAINT=$MAINTAINER_MODE_TRUE
623 AC_SUBST([MAINT])dnl
624 ]
625 )
626
627 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
628
629 # Check to see how 'make' treats includes. -*- Autoconf -*-
630
631 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
632 #
633 # This file is free software; the Free Software Foundation
634 # gives unlimited permission to copy and/or distribute it,
635 # with or without modifications, as long as this notice is preserved.
636
637 # serial 4
638
639 # AM_MAKE_INCLUDE()
640 # -----------------
641 # Check to see how make treats includes.
642 AC_DEFUN([AM_MAKE_INCLUDE],
643 [am_make=${MAKE-make}
644 cat > confinc << 'END'
645 am__doit:
646 @echo this is the am__doit target
647 .PHONY: am__doit
648 END
649 # If we don't find an include directive, just comment out the code.
650 AC_MSG_CHECKING([for style of include used by $am_make])
651 am__include="#"
652 am__quote=
653 _am_result=none
654 # First try GNU make style include.
655 echo "include confinc" > confmf
656 # Ignore all kinds of additional output from `make'.
657 case `$am_make -s -f confmf 2> /dev/null` in #(
658 *the\ am__doit\ target*)
659 am__include=include
660 am__quote=
661 _am_result=GNU
662 ;;
663 esac
664 # Now try BSD make style include.
665 if test "$am__include" = "#"; then
666 echo '.include "confinc"' > confmf
667 case `$am_make -s -f confmf 2> /dev/null` in #(
668 *the\ am__doit\ target*)
669 am__include=.include
670 am__quote="\""
671 _am_result=BSD
672 ;;
673 esac
674 fi
675 AC_SUBST([am__include])
676 AC_SUBST([am__quote])
677 AC_MSG_RESULT([$_am_result])
678 rm -f confinc confmf
679 ])
680
681 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
682
683 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
684 # Free Software Foundation, Inc.
685 #
686 # This file is free software; the Free Software Foundation
687 # gives unlimited permission to copy and/or distribute it,
688 # with or without modifications, as long as this notice is preserved.
689
690 # serial 6
691
692 # AM_MISSING_PROG(NAME, PROGRAM)
693 # ------------------------------
694 AC_DEFUN([AM_MISSING_PROG],
695 [AC_REQUIRE([AM_MISSING_HAS_RUN])
696 $1=${$1-"${am_missing_run}$2"}
697 AC_SUBST($1)])
698
699
700 # AM_MISSING_HAS_RUN
701 # ------------------
702 # Define MISSING if not defined so far and test if it supports --run.
703 # If it does, set am_missing_run to use it, otherwise, to nothing.
704 AC_DEFUN([AM_MISSING_HAS_RUN],
705 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
706 AC_REQUIRE_AUX_FILE([missing])dnl
707 if test x"${MISSING+set}" != xset; then
708 case $am_aux_dir in
709 *\ * | *\ *)
710 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
711 *)
712 MISSING="\${SHELL} $am_aux_dir/missing" ;;
713 esac
714 fi
715 # Use eval to expand $SHELL
716 if eval "$MISSING --run true"; then
717 am_missing_run="$MISSING --run "
718 else
719 am_missing_run=
720 AC_MSG_WARN([`missing' script is too old or missing])
721 fi
722 ])
723
724 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
725 #
726 # This file is free software; the Free Software Foundation
727 # gives unlimited permission to copy and/or distribute it,
728 # with or without modifications, as long as this notice is preserved.
729
730 # AM_PROG_MKDIR_P
731 # ---------------
732 # Check for `mkdir -p'.
733 AC_DEFUN([AM_PROG_MKDIR_P],
734 [AC_PREREQ([2.60])dnl
735 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
736 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
737 dnl while keeping a definition of mkdir_p for backward compatibility.
738 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
739 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
740 dnl Makefile.ins that do not define MKDIR_P, so we do our own
741 dnl adjustment using top_builddir (which is defined more often than
742 dnl MKDIR_P).
743 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
744 case $mkdir_p in
745 [[\\/$]]* | ?:[[\\/]]*) ;;
746 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
747 esac
748 ])
749
750 # Helper functions for option handling. -*- Autoconf -*-
751
752 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
753 #
754 # This file is free software; the Free Software Foundation
755 # gives unlimited permission to copy and/or distribute it,
756 # with or without modifications, as long as this notice is preserved.
757
758 # serial 4
759
760 # _AM_MANGLE_OPTION(NAME)
761 # -----------------------
762 AC_DEFUN([_AM_MANGLE_OPTION],
763 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
764
765 # _AM_SET_OPTION(NAME)
766 # ------------------------------
767 # Set option NAME. Presently that only means defining a flag for this option.
768 AC_DEFUN([_AM_SET_OPTION],
769 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
770
771 # _AM_SET_OPTIONS(OPTIONS)
772 # ----------------------------------
773 # OPTIONS is a space-separated list of Automake options.
774 AC_DEFUN([_AM_SET_OPTIONS],
775 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
776
777 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
778 # -------------------------------------------
779 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
780 AC_DEFUN([_AM_IF_OPTION],
781 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
782
783 # Check to make sure that the build environment is sane. -*- Autoconf -*-
784
785 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
786 # Free Software Foundation, Inc.
787 #
788 # This file is free software; the Free Software Foundation
789 # gives unlimited permission to copy and/or distribute it,
790 # with or without modifications, as long as this notice is preserved.
791
792 # serial 5
793
794 # AM_SANITY_CHECK
795 # ---------------
796 AC_DEFUN([AM_SANITY_CHECK],
797 [AC_MSG_CHECKING([whether build environment is sane])
798 # Just in case
799 sleep 1
800 echo timestamp > conftest.file
801 # Reject unsafe characters in $srcdir or the absolute working directory
802 # name. Accept space and tab only in the latter.
803 am_lf='
804 '
805 case `pwd` in
806 *[[\\\"\#\$\&\'\`$am_lf]]*)
807 AC_MSG_ERROR([unsafe absolute working directory name]);;
808 esac
809 case $srcdir in
810 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
811 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
812 esac
813
814 # Do `set' in a subshell so we don't clobber the current shell's
815 # arguments. Must try -L first in case configure is actually a
816 # symlink; some systems play weird games with the mod time of symlinks
817 # (eg FreeBSD returns the mod time of the symlink's containing
818 # directory).
819 if (
820 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
821 if test "$[*]" = "X"; then
822 # -L didn't work.
823 set X `ls -t "$srcdir/configure" conftest.file`
824 fi
825 rm -f conftest.file
826 if test "$[*]" != "X $srcdir/configure conftest.file" \
827 && test "$[*]" != "X conftest.file $srcdir/configure"; then
828
829 # If neither matched, then we have a broken ls. This can happen
830 # if, for instance, CONFIG_SHELL is bash and it inherits a
831 # broken ls alias from the environment. This has actually
832 # happened. Such a system could not be considered "sane".
833 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
834 alias in your environment])
835 fi
836
837 test "$[2]" = conftest.file
838 )
839 then
840 # Ok.
841 :
842 else
843 AC_MSG_ERROR([newly created file is older than distributed files!
844 Check your system clock])
845 fi
846 AC_MSG_RESULT(yes)])
847
848 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
849 #
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
853
854 # AM_PROG_INSTALL_STRIP
855 # ---------------------
856 # One issue with vendor `install' (even GNU) is that you can't
857 # specify the program used to strip binaries. This is especially
858 # annoying in cross-compiling environments, where the build's strip
859 # is unlikely to handle the host's binaries.
860 # Fortunately install-sh will honor a STRIPPROG variable, so we
861 # always use install-sh in `make install-strip', and initialize
862 # STRIPPROG with the value of the STRIP variable (set by the user).
863 AC_DEFUN([AM_PROG_INSTALL_STRIP],
864 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
865 # Installed binaries are usually stripped using `strip' when the user
866 # run `make install-strip'. However `strip' might not be the right
867 # tool to use in cross-compilation environments, therefore Automake
868 # will honor the `STRIP' environment variable to overrule this program.
869 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
870 if test "$cross_compiling" != no; then
871 AC_CHECK_TOOL([STRIP], [strip], :)
872 fi
873 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
874 AC_SUBST([INSTALL_STRIP_PROGRAM])])
875
876 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
877 #
878 # This file is free software; the Free Software Foundation
879 # gives unlimited permission to copy and/or distribute it,
880 # with or without modifications, as long as this notice is preserved.
881
882 # serial 2
883
884 # _AM_SUBST_NOTMAKE(VARIABLE)
885 # ---------------------------
886 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
887 # This macro is traced by Automake.
888 AC_DEFUN([_AM_SUBST_NOTMAKE])
889
890 # AM_SUBST_NOTMAKE(VARIABLE)
891 # ---------------------------
892 # Public sister of _AM_SUBST_NOTMAKE.
893 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
894
895 # Check how to create a tarball. -*- Autoconf -*-
896
897 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
898 #
899 # This file is free software; the Free Software Foundation
900 # gives unlimited permission to copy and/or distribute it,
901 # with or without modifications, as long as this notice is preserved.
902
903 # serial 2
904
905 # _AM_PROG_TAR(FORMAT)
906 # --------------------
907 # Check how to create a tarball in format FORMAT.
908 # FORMAT should be one of `v7', `ustar', or `pax'.
909 #
910 # Substitute a variable $(am__tar) that is a command
911 # writing to stdout a FORMAT-tarball containing the directory
912 # $tardir.
913 # tardir=directory && $(am__tar) > result.tar
914 #
915 # Substitute a variable $(am__untar) that extract such
916 # a tarball read from stdin.
917 # $(am__untar) < result.tar
918 AC_DEFUN([_AM_PROG_TAR],
919 [# Always define AMTAR for backward compatibility.
920 AM_MISSING_PROG([AMTAR], [tar])
921 m4_if([$1], [v7],
922 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
923 [m4_case([$1], [ustar],, [pax],,
924 [m4_fatal([Unknown tar format])])
925 AC_MSG_CHECKING([how to create a $1 tar archive])
926 # Loop over all known methods to create a tar archive until one works.
927 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
928 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
929 # Do not fold the above two line into one, because Tru64 sh and
930 # Solaris sh will not grok spaces in the rhs of `-'.
931 for _am_tool in $_am_tools
932 do
933 case $_am_tool in
934 gnutar)
935 for _am_tar in tar gnutar gtar;
936 do
937 AM_RUN_LOG([$_am_tar --version]) && break
938 done
939 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
940 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
941 am__untar="$_am_tar -xf -"
942 ;;
943 plaintar)
944 # Must skip GNU tar: if it does not support --format= it doesn't create
945 # ustar tarball either.
946 (tar --version) >/dev/null 2>&1 && continue
947 am__tar='tar chf - "$$tardir"'
948 am__tar_='tar chf - "$tardir"'
949 am__untar='tar xf -'
950 ;;
951 pax)
952 am__tar='pax -L -x $1 -w "$$tardir"'
953 am__tar_='pax -L -x $1 -w "$tardir"'
954 am__untar='pax -r'
955 ;;
956 cpio)
957 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
958 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
959 am__untar='cpio -i -H $1 -d'
960 ;;
961 none)
962 am__tar=false
963 am__tar_=false
964 am__untar=false
965 ;;
966 esac
967
968 # If the value was cached, stop now. We just wanted to have am__tar
969 # and am__untar set.
970 test -n "${am_cv_prog_tar_$1}" && break
971
972 # tar/untar a dummy directory, and stop if the command works
973 rm -rf conftest.dir
974 mkdir conftest.dir
975 echo GrepMe > conftest.dir/file
976 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
977 rm -rf conftest.dir
978 if test -s conftest.tar; then
979 AM_RUN_LOG([$am__untar <conftest.tar])
980 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
981 fi
982 done
983 rm -rf conftest.dir
984
985 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
986 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
987 AC_SUBST([am__tar])
988 AC_SUBST([am__untar])
989 ]) # _AM_PROG_TAR
990
991 m4_include([m4/gettext.m4])
992 m4_include([m4/iconv.m4])
993 m4_include([m4/intlmacosx.m4])
994 m4_include([m4/lib-ld.m4])
995 m4_include([m4/lib-link.m4])
996 m4_include([m4/lib-prefix.m4])
997 m4_include([m4/libtool.m4])
998 m4_include([m4/ltoptions.m4])
999 m4_include([m4/ltsugar.m4])
1000 m4_include([m4/ltversion.m4])
1001 m4_include([m4/lt~obsolete.m4])
1002 m4_include([m4/nls.m4])
1003 m4_include([m4/po.m4])
1004 m4_include([m4/progtest.m4])
0 SUBDIRS = python perl pascal ruby php
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = bindings
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54 html-recursive info-recursive install-data-recursive \
55 install-dvi-recursive install-exec-recursive \
56 install-html-recursive install-info-recursive \
57 install-pdf-recursive install-ps-recursive install-recursive \
58 installcheck-recursive installdirs-recursive pdf-recursive \
59 ps-recursive uninstall-recursive
60 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
61 distclean-recursive maintainer-clean-recursive
62 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
63 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
64 distdir
65 ETAGS = etags
66 CTAGS = ctags
67 DIST_SUBDIRS = $(SUBDIRS)
68 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
69 am__relativize = \
70 dir0=`pwd`; \
71 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
72 sed_rest='s,^[^/]*/*,,'; \
73 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
74 sed_butlast='s,/*[^/]*$$,,'; \
75 while test -n "$$dir1"; do \
76 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
77 if test "$$first" != "."; then \
78 if test "$$first" = ".."; then \
79 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
80 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
81 else \
82 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
83 if test "$$first2" = "$$first"; then \
84 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
85 else \
86 dir2="../$$dir2"; \
87 fi; \
88 dir0="$$dir0"/"$$first"; \
89 fi; \
90 fi; \
91 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
92 done; \
93 reldir="$$dir2"
94 ACLOCAL = @ACLOCAL@
95 AMTAR = @AMTAR@
96 AR = @AR@
97 AUTOCONF = @AUTOCONF@
98 AUTOHEADER = @AUTOHEADER@
99 AUTOMAKE = @AUTOMAKE@
100 AWK = @AWK@
101 CC = @CC@
102 CCDEPMODE = @CCDEPMODE@
103 CFLAGS = @CFLAGS@
104 CPP = @CPP@
105 CPPFLAGS = @CPPFLAGS@
106 CYGPATH_W = @CYGPATH_W@
107 DATADIRNAME = @DATADIRNAME@
108 DEFS = @DEFS@
109 DEPDIR = @DEPDIR@
110 DLLTOOL = @DLLTOOL@
111 DSYMUTIL = @DSYMUTIL@
112 DUMPBIN = @DUMPBIN@
113 ECHO_C = @ECHO_C@
114 ECHO_N = @ECHO_N@
115 ECHO_T = @ECHO_T@
116 EGREP = @EGREP@
117 EXEEXT = @EXEEXT@
118 FGREP = @FGREP@
119 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
120 GMSGFMT = @GMSGFMT@
121 GMSGFMT_015 = @GMSGFMT_015@
122 GP_MODULES_PATH = @GP_MODULES_PATH@
123 GREP = @GREP@
124 INSTALL = @INSTALL@
125 INSTALL_DATA = @INSTALL_DATA@
126 INSTALL_PROGRAM = @INSTALL_PROGRAM@
127 INSTALL_SCRIPT = @INSTALL_SCRIPT@
128 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
129 INTLLIBS = @INTLLIBS@
130 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
131 LD = @LD@
132 LDFLAGS = @LDFLAGS@
133 LIBICONV = @LIBICONV@
134 LIBINTL = @LIBINTL@
135 LIBOBJS = @LIBOBJS@
136 LIBS = @LIBS@
137 LIBTOOL = @LIBTOOL@
138 LIPO = @LIPO@
139 LN_S = @LN_S@
140 LTLIBICONV = @LTLIBICONV@
141 LTLIBINTL = @LTLIBINTL@
142 LTLIBOBJS = @LTLIBOBJS@
143 MAINT = @MAINT@
144 MAKEINFO = @MAKEINFO@
145 MANIFEST_TOOL = @MANIFEST_TOOL@
146 MKDIR_P = @MKDIR_P@
147 MSGFMT = @MSGFMT@
148 MSGFMT_015 = @MSGFMT_015@
149 MSGMERGE = @MSGMERGE@
150 NM = @NM@
151 NMEDIT = @NMEDIT@
152 OBJDUMP = @OBJDUMP@
153 OBJEXT = @OBJEXT@
154 OTOOL = @OTOOL@
155 OTOOL64 = @OTOOL64@
156 PACKAGE = @PACKAGE@
157 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
158 PACKAGE_NAME = @PACKAGE_NAME@
159 PACKAGE_STRING = @PACKAGE_STRING@
160 PACKAGE_TARNAME = @PACKAGE_TARNAME@
161 PACKAGE_URL = @PACKAGE_URL@
162 PACKAGE_VERSION = @PACKAGE_VERSION@
163 PATH_SEPARATOR = @PATH_SEPARATOR@
164 PA_MODULES_PATH = @PA_MODULES_PATH@
165 PA_VERSION = @PA_VERSION@
166 PE_CFLAGS = @PE_CFLAGS@
167 PE_MODULES_PATH = @PE_MODULES_PATH@
168 PH_CONFIG_PATH = @PH_CONFIG_PATH@
169 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
170 PH_MODULES_PATH = @PH_MODULES_PATH@
171 PKG_CONFIG = @PKG_CONFIG@
172 POSUB = @POSUB@
173 PY_CFLAGS = @PY_CFLAGS@
174 PY_MODULES_PATH = @PY_MODULES_PATH@
175 PY_VERSION = @PY_VERSION@
176 RANLIB = @RANLIB@
177 RU_CFLAGS = @RU_CFLAGS@
178 RU_MODULES_PATH = @RU_MODULES_PATH@
179 RU_VERSION = @RU_VERSION@
180 SED = @SED@
181 SET_MAKE = @SET_MAKE@
182 SHELL = @SHELL@
183 STRIP = @STRIP@
184 USE_NLS = @USE_NLS@
185 VERSION = @VERSION@
186 VERSION_INFO = @VERSION_INFO@
187 XGETTEXT = @XGETTEXT@
188 XGETTEXT_015 = @XGETTEXT_015@
189 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
190 abs_builddir = @abs_builddir@
191 abs_srcdir = @abs_srcdir@
192 abs_top_builddir = @abs_top_builddir@
193 abs_top_srcdir = @abs_top_srcdir@
194 ac_ct_AR = @ac_ct_AR@
195 ac_ct_CC = @ac_ct_CC@
196 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
197 am__include = @am__include@
198 am__leading_dot = @am__leading_dot@
199 am__quote = @am__quote@
200 am__tar = @am__tar@
201 am__untar = @am__untar@
202 bindir = @bindir@
203 build = @build@
204 build_alias = @build_alias@
205 build_cpu = @build_cpu@
206 build_os = @build_os@
207 build_vendor = @build_vendor@
208 builddir = @builddir@
209 datadir = @datadir@
210 datarootdir = @datarootdir@
211 docdir = @docdir@
212 dvidir = @dvidir@
213 exec_prefix = @exec_prefix@
214 have_fpc = @have_fpc@
215 have_gpc = @have_gpc@
216 have_perl = @have_perl@
217 have_php = @have_php@
218 have_php_config = @have_php_config@
219 have_python = @have_python@
220 have_ruby = @have_ruby@
221 have_swig = @have_swig@
222 host = @host@
223 host_alias = @host_alias@
224 host_cpu = @host_cpu@
225 host_os = @host_os@
226 host_vendor = @host_vendor@
227 htmldir = @htmldir@
228 includedir = @includedir@
229 infodir = @infodir@
230 install_sh = @install_sh@
231 libdir = @libdir@
232 libexecdir = @libexecdir@
233 localedir = @localedir@
234 localstatedir = @localstatedir@
235 mandir = @mandir@
236 mkdir_p = @mkdir_p@
237 oldincludedir = @oldincludedir@
238 pdfdir = @pdfdir@
239 prefix = @prefix@
240 program_transform_name = @program_transform_name@
241 psdir = @psdir@
242 sbindir = @sbindir@
243 sharedstatedir = @sharedstatedir@
244 srcdir = @srcdir@
245 sysconfdir = @sysconfdir@
246 target_alias = @target_alias@
247 top_build_prefix = @top_build_prefix@
248 top_builddir = @top_builddir@
249 top_srcdir = @top_srcdir@
250 SUBDIRS = python perl pascal ruby php
251 all: all-recursive
252
253 .SUFFIXES:
254 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
255 @for dep in $?; do \
256 case '$(am__configure_deps)' in \
257 *$$dep*) \
258 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
259 && { if test -f $@; then exit 0; else break; fi; }; \
260 exit 1;; \
261 esac; \
262 done; \
263 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/Makefile'; \
264 $(am__cd) $(top_srcdir) && \
265 $(AUTOMAKE) --gnu bindings/Makefile
266 .PRECIOUS: Makefile
267 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
268 @case '$?' in \
269 *config.status*) \
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
271 *) \
272 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
273 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
274 esac;
275
276 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
277 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278
279 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
282 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
283 $(am__aclocal_m4_deps):
284
285 mostlyclean-libtool:
286 -rm -f *.lo
287
288 clean-libtool:
289 -rm -rf .libs _libs
290
291 # This directory's subdirectories are mostly independent; you can cd
292 # into them and run `make' without going through this Makefile.
293 # To change the values of `make' variables: instead of editing Makefiles,
294 # (1) if the variable is set in `config.status', edit `config.status'
295 # (which will cause the Makefiles to be regenerated when you run `make');
296 # (2) otherwise, pass the desired values on the `make' command line.
297 $(RECURSIVE_TARGETS):
298 @fail= failcom='exit 1'; \
299 for f in x $$MAKEFLAGS; do \
300 case $$f in \
301 *=* | --[!k]*);; \
302 *k*) failcom='fail=yes';; \
303 esac; \
304 done; \
305 dot_seen=no; \
306 target=`echo $@ | sed s/-recursive//`; \
307 list='$(SUBDIRS)'; for subdir in $$list; do \
308 echo "Making $$target in $$subdir"; \
309 if test "$$subdir" = "."; then \
310 dot_seen=yes; \
311 local_target="$$target-am"; \
312 else \
313 local_target="$$target"; \
314 fi; \
315 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
316 || eval $$failcom; \
317 done; \
318 if test "$$dot_seen" = "no"; then \
319 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
320 fi; test -z "$$fail"
321
322 $(RECURSIVE_CLEAN_TARGETS):
323 @fail= failcom='exit 1'; \
324 for f in x $$MAKEFLAGS; do \
325 case $$f in \
326 *=* | --[!k]*);; \
327 *k*) failcom='fail=yes';; \
328 esac; \
329 done; \
330 dot_seen=no; \
331 case "$@" in \
332 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
333 *) list='$(SUBDIRS)' ;; \
334 esac; \
335 rev=''; for subdir in $$list; do \
336 if test "$$subdir" = "."; then :; else \
337 rev="$$subdir $$rev"; \
338 fi; \
339 done; \
340 rev="$$rev ."; \
341 target=`echo $@ | sed s/-recursive//`; \
342 for subdir in $$rev; do \
343 echo "Making $$target in $$subdir"; \
344 if test "$$subdir" = "."; then \
345 local_target="$$target-am"; \
346 else \
347 local_target="$$target"; \
348 fi; \
349 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
350 || eval $$failcom; \
351 done && test -z "$$fail"
352 tags-recursive:
353 list='$(SUBDIRS)'; for subdir in $$list; do \
354 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
355 done
356 ctags-recursive:
357 list='$(SUBDIRS)'; for subdir in $$list; do \
358 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
359 done
360
361 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369 tags: TAGS
370
371 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 set x; \
374 here=`pwd`; \
375 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
376 include_option=--etags-include; \
377 empty_fix=.; \
378 else \
379 include_option=--include; \
380 empty_fix=; \
381 fi; \
382 list='$(SUBDIRS)'; for subdir in $$list; do \
383 if test "$$subdir" = .; then :; else \
384 test ! -f $$subdir/TAGS || \
385 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
386 fi; \
387 done; \
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
394 shift; \
395 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
396 test -n "$$unique" || unique=$$empty_fix; \
397 if test $$# -gt 0; then \
398 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
399 "$$@" $$unique; \
400 else \
401 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
402 $$unique; \
403 fi; \
404 fi
405 ctags: CTAGS
406 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
407 $(TAGS_FILES) $(LISP)
408 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | \
412 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413 END { if (nonempty) { for (i in files) print i; }; }'`; \
414 test -z "$(CTAGS_ARGS)$$unique" \
415 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
416 $$unique
417
418 GTAGS:
419 here=`$(am__cd) $(top_builddir) && pwd` \
420 && $(am__cd) $(top_srcdir) \
421 && gtags -i $(GTAGS_ARGS) "$$here"
422
423 distclean-tags:
424 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
425
426 distdir: $(DISTFILES)
427 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
428 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
429 list='$(DISTFILES)'; \
430 dist_files=`for file in $$list; do echo $$file; done | \
431 sed -e "s|^$$srcdirstrip/||;t" \
432 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
433 case $$dist_files in \
434 */*) $(MKDIR_P) `echo "$$dist_files" | \
435 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
436 sort -u` ;; \
437 esac; \
438 for file in $$dist_files; do \
439 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
440 if test -d $$d/$$file; then \
441 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
442 if test -d "$(distdir)/$$file"; then \
443 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
444 fi; \
445 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
446 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
447 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
448 fi; \
449 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
450 else \
451 test -f "$(distdir)/$$file" \
452 || cp -p $$d/$$file "$(distdir)/$$file" \
453 || exit 1; \
454 fi; \
455 done
456 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
457 if test "$$subdir" = .; then :; else \
458 test -d "$(distdir)/$$subdir" \
459 || $(MKDIR_P) "$(distdir)/$$subdir" \
460 || exit 1; \
461 fi; \
462 done
463 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
464 if test "$$subdir" = .; then :; else \
465 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
466 $(am__relativize); \
467 new_distdir=$$reldir; \
468 dir1=$$subdir; dir2="$(top_distdir)"; \
469 $(am__relativize); \
470 new_top_distdir=$$reldir; \
471 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
472 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
473 ($(am__cd) $$subdir && \
474 $(MAKE) $(AM_MAKEFLAGS) \
475 top_distdir="$$new_top_distdir" \
476 distdir="$$new_distdir" \
477 am__remove_distdir=: \
478 am__skip_length_check=: \
479 am__skip_mode_fix=: \
480 distdir) \
481 || exit 1; \
482 fi; \
483 done
484 check-am: all-am
485 check: check-recursive
486 all-am: Makefile
487 installdirs: installdirs-recursive
488 installdirs-am:
489 install: install-recursive
490 install-exec: install-exec-recursive
491 install-data: install-data-recursive
492 uninstall: uninstall-recursive
493
494 install-am: all-am
495 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
496
497 installcheck: installcheck-recursive
498 install-strip:
499 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
500 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
501 `test -z '$(STRIP)' || \
502 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
503 mostlyclean-generic:
504
505 clean-generic:
506
507 distclean-generic:
508 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
509 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
510
511 maintainer-clean-generic:
512 @echo "This command is intended for maintainers to use"
513 @echo "it deletes files that may require special tools to rebuild."
514 clean: clean-recursive
515
516 clean-am: clean-generic clean-libtool mostlyclean-am
517
518 distclean: distclean-recursive
519 -rm -f Makefile
520 distclean-am: clean-am distclean-generic distclean-tags
521
522 dvi: dvi-recursive
523
524 dvi-am:
525
526 html: html-recursive
527
528 html-am:
529
530 info: info-recursive
531
532 info-am:
533
534 install-data-am:
535
536 install-dvi: install-dvi-recursive
537
538 install-dvi-am:
539
540 install-exec-am:
541
542 install-html: install-html-recursive
543
544 install-html-am:
545
546 install-info: install-info-recursive
547
548 install-info-am:
549
550 install-man:
551
552 install-pdf: install-pdf-recursive
553
554 install-pdf-am:
555
556 install-ps: install-ps-recursive
557
558 install-ps-am:
559
560 installcheck-am:
561
562 maintainer-clean: maintainer-clean-recursive
563 -rm -f Makefile
564 maintainer-clean-am: distclean-am maintainer-clean-generic
565
566 mostlyclean: mostlyclean-recursive
567
568 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
569
570 pdf: pdf-recursive
571
572 pdf-am:
573
574 ps: ps-recursive
575
576 ps-am:
577
578 uninstall-am:
579
580 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
581 install-am install-strip tags-recursive
582
583 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
584 all all-am check check-am clean clean-generic clean-libtool \
585 ctags ctags-recursive distclean distclean-generic \
586 distclean-libtool distclean-tags distdir dvi dvi-am html \
587 html-am info info-am install install-am install-data \
588 install-data-am install-dvi install-dvi-am install-exec \
589 install-exec-am install-html install-html-am install-info \
590 install-info-am install-man install-pdf install-pdf-am \
591 install-ps install-ps-am install-strip installcheck \
592 installcheck-am installdirs installdirs-am maintainer-clean \
593 maintainer-clean-generic mostlyclean mostlyclean-generic \
594 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
595 uninstall uninstall-am
596
597
598 # Tell versions [3.59,3.63) of GNU make to not export all variables.
599 # Otherwise a system limit (for SysV at least) may be exceeded.
600 .NOEXPORT:
0
1 EXTRA_DIST = Package.fpc hdate.pp hdate_dyn_pascal.pp fpc_README changelog
2
3 if WITH_GPC_FPC
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.ppu *.gpi
8
9 all-am: hdate.o hdate_dyn_pascal.o hdate.gpi
10
11 hdate.o: hdate.pp
12 fpc hdate.pp
13
14 hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
15 fpc hdate_dyn_pascal.pp
16
17 hdate.gpi: hdate.pp
18 gpc --interface-only hdate.pp
19
20 install-data-local:hdate_dyn_pascal.o hdate.o
21 $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
22 $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
23 $(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
24 $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
25 $(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.ppu
26 $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
27 $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
28 $(mkinstalldirs) $(DESTDIR)$(GP_MODULES_PATH)units
29 $(INSTALL_DATA) hdate.gpi $(DESTDIR)$(GP_MODULES_PATH)units/hdate.gpi
30 $(INSTALL_DATA) hdate.pp $(DESTDIR)$(GP_MODULES_PATH)units/hdate.pas
31
32 endif
33
34 if WITH_FPC
35
36 DEPS= $(top_builddir)/src/libhdate.la
37
38 CLEANFILES = *.o *.ppu
39
40 all-am: hdate.o hdate_dyn_pascal.o
41
42 hdate.o: hdate.pp
43 fpc hdate.pp
44
45 hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
46 fpc hdate_dyn_pascal.pp
47
48 install-data-local:hdate_dyn_pascal.o hdate.o
49 $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
50 $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
51 $(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
52 $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
53 $(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.ppu
54 $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
55 $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
56
57 endif
58
59 if WITH_GPC
60
61 DEPS= $(top_builddir)/src/libhdate.la
62
63 CLEANFILES = *.gpi *.o
64
65 all-am: hdate.gpi
66
67 hdate.gpi: hdate.pp
68 gpc --interface-only hdate.pp
69
70 install-data-local:hdate.gpi
71 $(mkinstalldirs) $(DESTDIR)$(GP_MODULES_PATH)units
72 $(INSTALL_DATA) hdate.gpi $(DESTDIR)$(GP_MODULES_PATH)units/hdate.gpi
73 $(INSTALL_DATA) hdate.pp $(DESTDIR)$(GP_MODULES_PATH)units/hdate.pas
74
75 endif
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = bindings/pascal
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
54 ACLOCAL = @ACLOCAL@
55 AMTAR = @AMTAR@
56 AR = @AR@
57 AUTOCONF = @AUTOCONF@
58 AUTOHEADER = @AUTOHEADER@
59 AUTOMAKE = @AUTOMAKE@
60 AWK = @AWK@
61 CC = @CC@
62 CCDEPMODE = @CCDEPMODE@
63 CFLAGS = @CFLAGS@
64 CPP = @CPP@
65 CPPFLAGS = @CPPFLAGS@
66 CYGPATH_W = @CYGPATH_W@
67 DATADIRNAME = @DATADIRNAME@
68 DEFS = @DEFS@
69 DEPDIR = @DEPDIR@
70 DLLTOOL = @DLLTOOL@
71 DSYMUTIL = @DSYMUTIL@
72 DUMPBIN = @DUMPBIN@
73 ECHO_C = @ECHO_C@
74 ECHO_N = @ECHO_N@
75 ECHO_T = @ECHO_T@
76 EGREP = @EGREP@
77 EXEEXT = @EXEEXT@
78 FGREP = @FGREP@
79 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
80 GMSGFMT = @GMSGFMT@
81 GMSGFMT_015 = @GMSGFMT_015@
82 GP_MODULES_PATH = @GP_MODULES_PATH@
83 GREP = @GREP@
84 INSTALL = @INSTALL@
85 INSTALL_DATA = @INSTALL_DATA@
86 INSTALL_PROGRAM = @INSTALL_PROGRAM@
87 INSTALL_SCRIPT = @INSTALL_SCRIPT@
88 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
89 INTLLIBS = @INTLLIBS@
90 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
91 LD = @LD@
92 LDFLAGS = @LDFLAGS@
93 LIBICONV = @LIBICONV@
94 LIBINTL = @LIBINTL@
95 LIBOBJS = @LIBOBJS@
96 LIBS = @LIBS@
97 LIBTOOL = @LIBTOOL@
98 LIPO = @LIPO@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAKEINFO = @MAKEINFO@
105 MANIFEST_TOOL = @MANIFEST_TOOL@
106 MKDIR_P = @MKDIR_P@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 NM = @NM@
111 NMEDIT = @NMEDIT@
112 OBJDUMP = @OBJDUMP@
113 OBJEXT = @OBJEXT@
114 OTOOL = @OTOOL@
115 OTOOL64 = @OTOOL64@
116 PACKAGE = @PACKAGE@
117 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
118 PACKAGE_NAME = @PACKAGE_NAME@
119 PACKAGE_STRING = @PACKAGE_STRING@
120 PACKAGE_TARNAME = @PACKAGE_TARNAME@
121 PACKAGE_URL = @PACKAGE_URL@
122 PACKAGE_VERSION = @PACKAGE_VERSION@
123 PATH_SEPARATOR = @PATH_SEPARATOR@
124 PA_MODULES_PATH = @PA_MODULES_PATH@
125 PA_VERSION = @PA_VERSION@
126 PE_CFLAGS = @PE_CFLAGS@
127 PE_MODULES_PATH = @PE_MODULES_PATH@
128 PH_CONFIG_PATH = @PH_CONFIG_PATH@
129 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
130 PH_MODULES_PATH = @PH_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 RU_CFLAGS = @RU_CFLAGS@
138 RU_MODULES_PATH = @RU_MODULES_PATH@
139 RU_VERSION = @RU_VERSION@
140 SED = @SED@
141 SET_MAKE = @SET_MAKE@
142 SHELL = @SHELL@
143 STRIP = @STRIP@
144 USE_NLS = @USE_NLS@
145 VERSION = @VERSION@
146 VERSION_INFO = @VERSION_INFO@
147 XGETTEXT = @XGETTEXT@
148 XGETTEXT_015 = @XGETTEXT_015@
149 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
150 abs_builddir = @abs_builddir@
151 abs_srcdir = @abs_srcdir@
152 abs_top_builddir = @abs_top_builddir@
153 abs_top_srcdir = @abs_top_srcdir@
154 ac_ct_AR = @ac_ct_AR@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
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 builddir = @builddir@
169 datadir = @datadir@
170 datarootdir = @datarootdir@
171 docdir = @docdir@
172 dvidir = @dvidir@
173 exec_prefix = @exec_prefix@
174 have_fpc = @have_fpc@
175 have_gpc = @have_gpc@
176 have_perl = @have_perl@
177 have_php = @have_php@
178 have_php_config = @have_php_config@
179 have_python = @have_python@
180 have_ruby = @have_ruby@
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 srcdir = @srcdir@
205 sysconfdir = @sysconfdir@
206 target_alias = @target_alias@
207 top_build_prefix = @top_build_prefix@
208 top_builddir = @top_builddir@
209 top_srcdir = @top_srcdir@
210 EXTRA_DIST = Package.fpc hdate.pp hdate_dyn_pascal.pp fpc_README changelog
211 @WITH_FPC_TRUE@DEPS = $(top_builddir)/src/libhdate.la
212 @WITH_GPC_FPC_TRUE@DEPS = $(top_builddir)/src/libhdate.la
213 @WITH_GPC_TRUE@DEPS = $(top_builddir)/src/libhdate.la
214 @WITH_FPC_TRUE@CLEANFILES = *.o *.ppu
215 @WITH_GPC_FPC_TRUE@CLEANFILES = *.o *.ppu *.gpi
216 @WITH_GPC_TRUE@CLEANFILES = *.gpi *.o
217 all: all-am
218
219 .SUFFIXES:
220 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
221 @for dep in $?; do \
222 case '$(am__configure_deps)' in \
223 *$$dep*) \
224 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
225 && { if test -f $@; then exit 0; else break; fi; }; \
226 exit 1;; \
227 esac; \
228 done; \
229 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/pascal/Makefile'; \
230 $(am__cd) $(top_srcdir) && \
231 $(AUTOMAKE) --gnu bindings/pascal/Makefile
232 .PRECIOUS: Makefile
233 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
234 @case '$?' in \
235 *config.status*) \
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
237 *) \
238 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
239 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
240 esac;
241
242 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
245 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
246 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
247 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249 $(am__aclocal_m4_deps):
250
251 mostlyclean-libtool:
252 -rm -f *.lo
253
254 clean-libtool:
255 -rm -rf .libs _libs
256 tags: TAGS
257 TAGS:
258
259 ctags: CTAGS
260 CTAGS:
261
262
263 distdir: $(DISTFILES)
264 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
265 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
266 list='$(DISTFILES)'; \
267 dist_files=`for file in $$list; do echo $$file; done | \
268 sed -e "s|^$$srcdirstrip/||;t" \
269 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
270 case $$dist_files in \
271 */*) $(MKDIR_P) `echo "$$dist_files" | \
272 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
273 sort -u` ;; \
274 esac; \
275 for file in $$dist_files; do \
276 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
277 if test -d $$d/$$file; then \
278 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
279 if test -d "$(distdir)/$$file"; then \
280 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
281 fi; \
282 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
283 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
284 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
285 fi; \
286 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
287 else \
288 test -f "$(distdir)/$$file" \
289 || cp -p $$d/$$file "$(distdir)/$$file" \
290 || exit 1; \
291 fi; \
292 done
293 check-am: all-am
294 check: check-am
295 all-am: Makefile
296 installdirs:
297 install: install-am
298 install-exec: install-exec-am
299 install-data: install-data-am
300 uninstall: uninstall-am
301
302 install-am: all-am
303 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
304
305 installcheck: installcheck-am
306 install-strip:
307 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
308 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
309 `test -z '$(STRIP)' || \
310 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
311 mostlyclean-generic:
312
313 clean-generic:
314 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
315
316 distclean-generic:
317 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
318 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
319
320 maintainer-clean-generic:
321 @echo "This command is intended for maintainers to use"
322 @echo "it deletes files that may require special tools to rebuild."
323 @WITH_FPC_FALSE@@WITH_GPC_FALSE@@WITH_GPC_FPC_FALSE@install-data-local:
324 clean: clean-am
325
326 clean-am: clean-generic clean-libtool mostlyclean-am
327
328 distclean: distclean-am
329 -rm -f Makefile
330 distclean-am: clean-am distclean-generic
331
332 dvi: dvi-am
333
334 dvi-am:
335
336 html: html-am
337
338 html-am:
339
340 info: info-am
341
342 info-am:
343
344 install-data-am: install-data-local
345
346 install-dvi: install-dvi-am
347
348 install-dvi-am:
349
350 install-exec-am:
351
352 install-html: install-html-am
353
354 install-html-am:
355
356 install-info: install-info-am
357
358 install-info-am:
359
360 install-man:
361
362 install-pdf: install-pdf-am
363
364 install-pdf-am:
365
366 install-ps: install-ps-am
367
368 install-ps-am:
369
370 installcheck-am:
371
372 maintainer-clean: maintainer-clean-am
373 -rm -f Makefile
374 maintainer-clean-am: distclean-am maintainer-clean-generic
375
376 mostlyclean: mostlyclean-am
377
378 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
379
380 pdf: pdf-am
381
382 pdf-am:
383
384 ps: ps-am
385
386 ps-am:
387
388 uninstall-am:
389
390 .MAKE: install-am install-strip
391
392 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
393 distclean distclean-generic distclean-libtool distdir dvi \
394 dvi-am html html-am info info-am install install-am \
395 install-data install-data-am install-data-local install-dvi \
396 install-dvi-am install-exec install-exec-am install-html \
397 install-html-am install-info install-info-am install-man \
398 install-pdf install-pdf-am install-ps install-ps-am \
399 install-strip installcheck installcheck-am installdirs \
400 maintainer-clean maintainer-clean-generic mostlyclean \
401 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
402 uninstall uninstall-am
403
404
405 @WITH_GPC_FPC_TRUE@all-am: hdate.o hdate_dyn_pascal.o hdate.gpi
406
407 @WITH_GPC_FPC_TRUE@hdate.o: hdate.pp
408 @WITH_GPC_FPC_TRUE@ fpc hdate.pp
409
410 @WITH_GPC_FPC_TRUE@hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
411 @WITH_GPC_FPC_TRUE@ fpc hdate_dyn_pascal.pp
412
413 @WITH_GPC_FPC_TRUE@hdate.gpi: hdate.pp
414 @WITH_GPC_FPC_TRUE@ gpc --interface-only hdate.pp
415
416 @WITH_GPC_FPC_TRUE@install-data-local:hdate_dyn_pascal.o hdate.o
417 @WITH_GPC_FPC_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
418 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
419 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
420 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
421 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.ppu
422 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
423 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
424 @WITH_GPC_FPC_TRUE@ $(mkinstalldirs) $(DESTDIR)$(GP_MODULES_PATH)units
425 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) hdate.gpi $(DESTDIR)$(GP_MODULES_PATH)units/hdate.gpi
426 @WITH_GPC_FPC_TRUE@ $(INSTALL_DATA) hdate.pp $(DESTDIR)$(GP_MODULES_PATH)units/hdate.pas
427
428 @WITH_FPC_TRUE@all-am: hdate.o hdate_dyn_pascal.o
429
430 @WITH_FPC_TRUE@hdate.o: hdate.pp
431 @WITH_FPC_TRUE@ fpc hdate.pp
432
433 @WITH_FPC_TRUE@hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
434 @WITH_FPC_TRUE@ fpc hdate_dyn_pascal.pp
435
436 @WITH_FPC_TRUE@install-data-local:hdate_dyn_pascal.o hdate.o
437 @WITH_FPC_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
438 @WITH_FPC_TRUE@ $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
439 @WITH_FPC_TRUE@ $(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
440 @WITH_FPC_TRUE@ $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
441 @WITH_FPC_TRUE@ $(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.ppu
442 @WITH_FPC_TRUE@ $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
443 @WITH_FPC_TRUE@ $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
444
445 @WITH_GPC_TRUE@all-am: hdate.gpi
446
447 @WITH_GPC_TRUE@hdate.gpi: hdate.pp
448 @WITH_GPC_TRUE@ gpc --interface-only hdate.pp
449
450 @WITH_GPC_TRUE@install-data-local:hdate.gpi
451 @WITH_GPC_TRUE@ $(mkinstalldirs) $(DESTDIR)$(GP_MODULES_PATH)units
452 @WITH_GPC_TRUE@ $(INSTALL_DATA) hdate.gpi $(DESTDIR)$(GP_MODULES_PATH)units/hdate.gpi
453 @WITH_GPC_TRUE@ $(INSTALL_DATA) hdate.pp $(DESTDIR)$(GP_MODULES_PATH)units/hdate.pas
454
455 # Tell versions [3.59,3.63) of GNU make to not export all variables.
456 # Otherwise a system limit (for SysV at least) may be exceeded.
457 .NOEXPORT:
0 [package]
1 name=hdate
2 version=1.4.11
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/01/2008
1 - Moved the class implementation to examples/binding
2 - Added better support for FPDoc
3 - Changed the demo for the class usage
4
5 11-12/01/2008
6 - Added support for newer API functions added at 1.3
7 - Added support for dynamic loading for the API.
8 - Added dynamic loading capabilities to the examples.
9 - Moved to GPL 3
10
11 25/11/2005
12 - Added some constants and fixed comments according the orginal API file
13
14 25/11/2005
15 - Added some constants and fixed comments according the orginal API file
16
17 27/05/2005
18 - Created a Changelog.
19
20 19-21/05/2005
21 - hdate_class.pp was created.
22 - Made changes for Free Pascal 2 support on with the units.
23
24 13/03/2005
25 - Bug fix in hdate.pp - Added {$PACKRECORDS C}
26
27 10-11/03/2005
28 - hdate.pp was created.
29 - 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 <kzamir@walla.co.il> and can be found at http://libhdate.sourceforge.net/ .
8
9 The current version of LibHDate is 1.4.10 and contains a Free Pascal binding only that was written by Ido Kanner <idokan@gmail.com>.
10
11 Existed Files:
12 /bindings/pascal/fpc_README - This file.
13
14 COPYING - A copy of the GPL license.
15
16 examples/bindings/pascal/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
17 examples/bindings/pascal/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
18 examples/bindings/pascal/hdate_class.pp - A self made Object Oriented implementation for the LibHdate API.
19
20 bindings/pascal/
21 bindings/pascal/hdate.pp - The main low level API of LibHdate binding.
22 bindings/pascal/hdate_dyn_pascal.pp - A dynamic linking library.
23
24
25 Compiling
26 =========
27
28 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
29 The FPC version 2.0 have the floating points definition. If you are using FPC version 2.0 or above please remove the unit.
30
31 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 the units globally with all of your applications.
32
33 It is recommanded to use FPC 2.2.0 or above for the newer version of this library.
34
35 =========================================================================
36 the old README from version 1.1.1
37 =========================================================================
38
39 About
40 =====
41
42 LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha).
43 It is using the sorce code from Amos Shapir's hdate package fixed and patched by Nadav Har'El.
44 The Torah reading sequence is from tables by Zvi Har'El.
45
46 The LibHdate is GPL library written by Kobi Zamir <kzamir@walla.co.il> and can be found at http://libhdate.sourceforge.net/ .
47
48 This version of LibHDate contains a FreePascal binding that was written by Ido Kanner <idokan@gmail.com>.
49
50 Existed Files:
51 fpc_README - This file.
52 src/ctypes.pp - A unit for making C like integer and floating points variable type.
53 src/hdate.pp - The main low level API of LibHdate binding.
54 src/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
55 src/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
56 src/hcal.pp - An example for the use of the low level API.
57
58 Compiling
59 =========
60
61 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
62 I hope that version 2.0 will contains them as well, if not please keep this unit, otherwise feel free to remove it.
63
64 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
65 the units globally with all of your applications.
66
67
0 (* libhdate
1
2 Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
3 Copyright (C) 2005-2008 Ido Kanner <idokan@gmail.com>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Library General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 History:
20 14/06/2008 - Added support for GPC due to wishlist request in Debian:
21 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=486095
22 11/01/2008 - Added support for 1.3 API and cleaned the calling.
23 25/11/2005 - Added some constants and fixed comments according the orginal API file
24 13/03/2005 - Bug Fixed Added {$PACKRECORDS C}
25 10-11/03/2005 - Initial Translation of version 0.31.0
26 *)
27
28 {$IFDEF FPC}
29 {$MODE FPC}
30 {$PACKRECORDS C}
31 {$CALLING cdecl}
32 {$LINKLIB hdate}
33 {$ENDIF}
34
35 unit hdate;
36
37 interface
38 {$IFDEF FPC}
39 uses cTypes;
40 {$ENDIF}
41
42 const
43 // the global name of the hdate library: <b>DEPERCATED</b>
44 LIBHDATE_LIBRARY_NAME = 'hdate';
45
46 {$IFDEF __GPC__}
47 type
48 pcInt = ^cInt;
49 cInt = longint;
50 cDouble = double;
51 {$ENDIF}
52
53 const
54 (** @def HDATE_DIASPORA_FLAG
55 @brief use diaspora dates and holydays flag
56 *)
57 HDATE_DIASPORA_FLAG = -1;
58
59 (** @def HDATE_ISRAEL_FLAG
60 @brief use israel dates and holydays flag
61 *)
62 HDATE_ISRAEL_FLAG = 0;
63
64 (** @def HDATE_SHORT_FLAG
65 @brief use short strings flag
66 *)
67 HDATE_SHORT_FLAG = -1;
68
69 (** @def HDATE_LONG_FLAG
70 @brief use long strings flag
71 *)
72 HDATE_LONG_FLAG = 0;
73
74
75 { Base structore for hebrew dates }
76
77 type
78 // A pointer to the Thdate_struct record
79 Phdate_struct = ^Thdate_struct;
80 Thdate_struct = record
81 //The number of day in the hebrew month (1..31).
82 hd_day : cInt;
83 //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
84 hd_mon : cInt;
85 //The number of the hebrew year.
86 hd_year : cInt;
87 //The number of the day in the month. (1..31)
88 gd_day : cInt;
89 //The number of the month 1..12 (1 - jan).
90 gd_mon : cInt;
91 //The number of the year.
92 gd_year : cInt;
93 //The day of the week 1..7 (1 - sunday).
94 hd_dw : cInt;
95 //The length of the year in days.
96 hd_size_of_year : cInt;
97 //The week day of Hebrew new year.
98 hd_new_year_dw : cInt;
99 //The number type of year.
100 hd_year_type : cInt;
101 //The Julian day number
102 hd_jd : cInt;
103 //The number of days passed since 1 tishrey
104 hd_days : cInt;
105 //The number of weeks passed since 1 tishrey
106 hd_weeks : cInt;
107 end;
108 (********************************************************************************)
109 (********************************************************************************)
110
111 (**
112 @brief compute date structure from the Gregorian date
113
114 @param h pointer this hdate struct.
115 @param d Day of month 1..31
116 @param m Month 1..12
117 @param y Year in 4 digits e.g. 2001
118 @return pointer to this hdate struct
119 *)
120 function hdate_set_gdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
121 external name 'hdate_set_gdate';
122
123 (**
124 @brief compute date structure from the Hebrew date
125
126 @param h pointer this hdate struct.
127 @param d Day of month 1..31
128 @param m Month 1..14 , (13 - Adar 1, 14 - Adar 2)
129 @param y Year in 4 digits e.g. 5731
130 @return pointer to this hdate struct
131 *)
132 function hdate_set_hdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
133 external name 'hdate_set_hdate';
134
135 (**
136 @brief compute date structure from the Julian day
137
138 @param h pointer this hdate struct.
139 @param jd the julian day number.
140 @return pointer to this hdate struct
141 *)
142 function hdate_set_jd (h : Phdate_struct; jd : cInt) : Phdate_struct;
143 external name 'hdate_set_jd';
144
145 (*************************************************************)
146 (*************************************************************)
147
148 (**
149 @brief get formated hebrew date.
150
151 return the short ( e.g. "1 Tishrey" ) or
152 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
153
154 @param h pointer this hdate struct.
155 @param diaspora if true give diaspora holydays.
156 @param s short flag.
157 @return a static string of foramted date
158 *)
159 function hdate_get_format_date (h : Phdate_struct; diaspora, s : cInt) : PChar;
160 external name 'hdate_get_format_date';
161
162 (**
163 @brief get the number of hebrew parasha.
164
165 @param h pointer this hdate struct.
166 @param diaspora if true give diaspora readings
167 @return the number of parasha 1. Bereshit etc..
168 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
169 *)
170 function hdate_get_parasha (h : Phdate_struct; diaspora : cInt) : cInt;
171 external name 'hdate_get_parasha';
172
173 (**
174 @brief get the number of hebrew holyday.
175
176 @param h pointer this hdate struct.
177 @param diaspora if true give diaspora holydays
178 @return the number of holyday.
179 *)
180 function hdate_get_holyday (h : Phdate_struct; diaspora : cInt) : cInt;
181 external name 'hdate_get_holyday';
182
183 (*************************************************************)
184 (*************************************************************)
185
186 (**
187 @brief convert an integer to hebrew string.
188
189 @param n The int to convert
190 @return a static string of the hebrew number UTF-8 (logical)
191 @attention ( 0 < n < 10000)
192 *)
193 function hdate_get_int_string (n : cInt) : PChar;
194 external name 'hdate_get_int_string';
195
196 (**
197 @brief get name of week day.
198
199 @param day The number of the day 1..7 (1 - sun).
200 @param s short flag
201 true - returns a short string: sun, false returns: sunday.
202 @return a static string of the day of the week
203 *)
204 function hdate_get_day_string (day : cInt; s : cInt) : PChar;
205 external name 'hdate_get_day_string';
206
207 (**
208 @brief name of month.
209
210 @param month the number of the month 1..12 (1 - jan).
211 @param s short flag.
212 @return a static string of month name
213 *)
214 function hdate_get_month_string (month : cInt; s : cInt) : PChar;
215 external name 'hdate_get_month_string';
216
217 (**
218 @brief name of hebrew month.
219
220 @param month the number of the month 1..14
221 (1 - tishre, 13 - adar 1, 14 - adar 2).
222 @param s short flag.
223 @return a static string of month name
224 *)
225 function hdate_get_hebrew_month_string (month : cInt; s : cInt) : PChar;
226 external name 'hdate_get_hebrew_month_string';
227
228 (**
229 @brief name of hebrew holyday.
230
231 @param holyday the holyday number.
232 @param s short flag.
233 @return a static string of holyday name
234 *)
235 function hdate_get_holyday_string (holyday, s : cInt) : PChar;
236 external name 'hdate_get_holyday_string';
237
238 (**
239 @brief name of parasha
240
241 @param parasha the number of parasha 1-Bereshit
242 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
243 @param s short flag.
244 @return a static string of parasha name
245 *)
246 function hdate_get_parasha_string (parasha, s : cInt) : PChar;
247 external name 'hdate_get_parasha_string';
248
249 (*************************************************************)
250 (*************************************************************)
251
252 (**
253 @brief get the hebrew holyday type.
254
255 @param holyday the holyday number.
256 @return the number of holyday type.
257 *)
258 function hdate_get_holyday_type (holyday : cInt) : cInt;
259 external name 'hdate_get_holyday_type';
260
261 (**
262 @brief size of hebrew year in days.
263
264 @param hebrew_year the hebrew year.
265 @return size of Hebrew year
266 *)
267 function hdate_get_size_of_hebrew_year (hebrew_year : cInt) : cInt;
268 external name 'hdate_get_size_of_hebrew_year';
269
270 (*************************************************************)
271 (*************************************************************)
272
273 (**
274 @brief Days since Tishrey 3744
275
276 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
277
278 @param hebrew_year The Hebrew year
279 @return Number of days since 3,1,3744
280 *)
281 function hdate_days_from_3744 (hebrew_year : cInt) : cInt;
282 external name 'hdate_days_from_3744';
283
284 (**
285 @brief Return Hebrew year type based on size and first week day of year.
286
287 @param size_of_year Length of year in days
288 @param new_year_dw First week day of year
289 @return the number for year type (1..14)
290 *)
291 function hdate_get_year_type (size_of_year, new_year_dw : cInt) : cInt;
292 external name 'hdate_get_year_type';
293
294 (**
295 @brief Compute Julian day from Gregorian date
296
297 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
298
299 @param day Day of month 1..31
300 @param month Month 1..12
301 @param year Year in 4 digits e.g. 2001
302 @return the julian day number
303 *)
304 function hdate_gdate_to_jd (day, month, year : cInt) : cInt;
305 external name 'hdate_gdate_to_jd';
306
307 (**
308 @brief Compute Julian day from Hebrew day, month and year
309
310 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
311
312 @param day Day of month 1..31
313 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
314 @param year Hebrew year in 4 digits e.g. 5753
315 @param jd_tishrey1 return the julian number of 1 Tishrey this year
316 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
317 @return the julian day number
318 *)
319 function hdate_hdate_to_jd (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt) : cInt;
320 external name 'hdate_hdate_to_jd';
321
322 (**
323 @brief Converting from the Julian day to the Gregorian date
324
325 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
326
327 @param jd Julian day
328 @param day return Day of month 1..31
329 @param month return Month 1..12
330 @param year return Year in 4 digits e.g. 2001
331 *)
332 procedure hdate_jd_to_gdate (jd : cInt; day, month, year : pcInt);
333 external name 'hdate_jd_to_gdate';
334
335 (**
336 @brief Converting from the Julian day to the Hebrew day
337
338 @author Yaacov Zamir 2005
339
340 @param jd Julian day
341 @param day return Day of month 1..31
342 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
343 @param year return Year in 4 digits e.g. 2001
344 @param jd_tishrey1 return the julian number of 1 Tishrey this year
345 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
346 *)
347 procedure hdate_jd_to_hdate (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year : pcInt);
348 external name 'hdate_jd_to_hdate';
349
350 (*************************************************************)
351 (*************************************************************)
352
353 (**
354 @brief days from 1 january
355
356 @param day this day of month
357 @param month this month
358 @param year this year
359 @return the days from 1 jan
360 *)
361 function hdate_get_day_of_year (day, month, year : cInt) : cInt;
362 external name 'hdate_get_day_of_year';
363
364 (**
365 @brief utc sunrise/set time for a gregorian date
366
367 @param day this day of month
368 @param month this month
369 @param year this year
370 @param longitude longitude to use in calculations
371 degrees, negative values are east
372 @param latitude latitude to use in calculations
373 degrees, negative values are south
374 @param sunrise return the utc sunrise in minutes after midnight (00:00)
375 @param sunset return the utc sunset in minutes after midnight (00:00)
376 *)
377 procedure hdate_get_utc_sun_time (day, month, year : cInt; latitude, longitude : cDouble; sunrise, sunset : pcInt);
378 external name 'hdate_get_utc_sun_time';
379
380 (*************************************************************)
381 (*************************************************************)
382
383 (**
384 @brief get the Gregorian day of the month
385
386 @param h pointer this hdate struct.
387 @return the Gregorian day of the month, 1..31.
388 *)
389 function hdate_get_gday (h : Phdate_struct) : cInt;
390 external name 'hdate_get_gday';
391
392 (**
393 @brief get the Gregorian month
394
395 @param h pointer this hdate struct.
396 @return the Gregorian month, jan = 1.
397 *)
398 function hdate_get_gmonth (h : Phdate_struct) : cInt;
399 external name 'hdate_get_gmonth';
400
401 (**
402 @brief get the Gregorian year
403
404 @param h pointer this hdate struct.
405 @return the Gregorian year.
406 *)
407 function hdate_get_gyear (h : Phdate_struct) : cInt;
408 external name 'hdate_get_gyear';
409
410 (**
411 @brief get the Hebrew day of the month
412
413 @param h pointer this hdate struct.
414 @return the Hebrew day of the month, 1..30.
415 *)
416 function hdate_get_hday (h : Phdate_struct) : cInt;
417 external name 'hdate_get_hday';
418
419 (**
420 @brief get the Hebrew month
421
422 @param h pointer this hdate struct.
423 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
424 *)
425 function hdate_get_hmonth (h : Phdate_struct) : cInt;
426 external name 'hdate_get_hmonth';
427
428 (**
429 @brief get the Hebrew year
430
431 @param h pointer this hdate struct.
432 @return the Hebrew year.
433 *)
434 function hdate_get_hyear (h : Phdate_struct) : cInt;
435 external name 'hdate_get_hyear';
436
437 (**
438 @brief get the day of the week
439
440 @param h pointer this hdate struct.
441 @return the the day of the week.
442 *)
443 function hdate_get_day_of_the_week (h : Phdate_struct) : cInt;
444 external name 'hdate_get_day_of_the_week';
445
446 (**
447 @brief get the size of the hebrew year
448
449 @param h pointer this hdate struct.
450 @return the the size of the hebrew year.
451 *)
452 function hdate_get_size_of_year (h : Phdate_struct) : cInt;
453 external name 'hdate_get_size_of_year';
454
455 (**
456 @brief get the new year day of the week
457
458 @param h pointer this hdate struct.
459 @return the the new year day of the week.
460 *)
461 function hdate_get_new_year_day_of_the_week (h : Phdate_struct) : cInt;
462 external name 'hdate_get_new_year_day_of_the_week';
463
464 (**
465 @brief get the Julian day number
466
467 @param h pointer this hdate struct.
468 @return the Julian day number.
469 *)
470 function hdate_get_julian (h : Phdate_struct) : cInt;
471 external name 'hdate_get_julian';
472
473 (**
474 @brief get the number of days passed since 1 tishrey
475
476 @param h pointer this hdate struct.
477 @return the number of days passed since 1 tishrey.
478 *)
479 function hdate_get_days (h : Phdate_struct) : cInt;
480 external name 'hdate_get_days';
481
482 (**
483 @brief get the number of weeks passed since 1 tishrey
484
485 @param h pointer this hdate struct.
486 @return the number of weeks passed since 1 tishrey.
487 *)
488 function hdate_get_weeks (h : Phdate_struct) : cInt;
489 external name 'hdate_get_weeks';
490
491 (*************************************************************)
492 (*************************************************************)
493
494 (**
495 @brief creat a new hdate struct object, must be deleted using delete_hdate.
496
497 @return a new hdate object
498 *)
499 function new_hdate : Phdate_struct;
500 external name 'new_hdate';
501
502 (**
503 @brief delete an hdate struct object.
504
505 @param h pointer this hdate struct.
506 *)
507 function delete_hdate (h : Phdate_struct) : Phdate_struct;
508 external name 'delete_hdate';
509
510 (*************************************************************)
511 (*************************************************************)
512
513 (**
514 @brief Return a static string, with the package name and version
515
516 @return a a static string, with the package name and version
517 *)
518 function hdate_get_version_string : PChar;
519 external name 'hdate_get_version_string';
520
521 (**
522 @brief Return a static string, with the name of translator
523
524 @return a a static string, with the name of translator
525 *)
526 function hdate_get_translator_string : PChar;
527 external name 'hdate_get_translator_string';
528
529 (**
530 @brief utc sun times for altitude at a gregorian date
531
532 @param day this day of month
533 @param month this month
534 @param year this year
535 @param latitude latitude to use in calculations
536 @param longitude longitude to use in calculations
537 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
538 @param sunrise return the utc sunrise in minutes
539 @param sunset return the utc sunset in minutes
540 *)
541 procedure hdate_get_utc_sun_time_deg(day, month, year : cint; latitude, longitude, deg : cdouble; sunrise, sunset : pcint);
542 external name 'hdate_get_utc_sun_time_deg';
543
544
545 (**
546 @brief utc sunrise/set time for a gregorian date
547
548 @param day this day of month
549 @param month this month
550 @param year this year
551 @param longitude longitude to use in calculations
552 @param latitude latitude to use in calculations
553 @param sun_hour return the length of shaa zmanit in minutes
554 @param first_light return the utc alut ha-shachar in minutes
555 @param talit return the utc tphilin and talit in minutes
556 @param sunrise return the utc sunrise in minutes
557 @param midday return the utc midday in minutes
558 @param sunset return the utc sunset in minutes
559 @param first_stars return the utc tzeit hacochavim in minutes
560 @param three_stars return the utc shlosha cochavim in minutes
561 *)
562 procedure hdate_get_utc_sun_time_full (day, month, year : cint;
563 latitude, longitude : cdouble;
564 sun_hour, first_light, talit, sunrise, midday, sunset,
565 first_stars, three_stars : pcint);
566 external name 'hdate_get_utc_sun_time_full';
567
568
569
570 implementation
571
572 end.
0
1 (* libhdate
2 Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
3 Copyright (C) 2008 Ido Kanner <idokan@gmail.com>
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 History:
19 14/06/2008 - Added support for GPC due to wishlist request in Debian:
20 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=486095
21 25/01/2008 - Fixed some logical bugs.
22 - Added FPDoc support
23 12/01/2008 - Added support for dynamic loading for the library
24 *)
25
26 Unit hdate_dyn_pascal;
27
28 {$IFDEF FPC}
29 {$MODE FPC}
30 {$PACKRECORDS C}
31 {$CALLING cdecl}
32 {$ENDIF}
33
34
35 (*
36 Auto load means that we are loading the functions when the unit is loaded.
37 Disable this define will mean that you should load and unload it by hand, using the needed procedures
38 *)
39 {$DEFINE AUTO_LOAD}
40
41 Interface
42
43 {$IFDEF FPC}
44
45 Uses
46 ctypes;
47 {$ENDIF}
48
49 {$IFDEF __GPC__}
50 type
51 pcInt = ^cInt;
52 cInt = longint;
53 cDouble = double;
54 {$ENDIF}
55
56 { Load and assign the hdate library dynamiclly
57 Note: If AUTO_LOAD is defined, then no need to use this procedure
58 }
59 Procedure hdate_init;
60
61 { Free the memory from the hdate library loading
62 Note: If AUTO_LOAD is defined, then no need to use this procedure
63 }
64 Procedure hdate_done;
65
66 { Return true if the library was was loaded, or false if not }
67 Function IsLoaded : Boolean;
68
69 Const
70 {$IFDEF UNIX}
71 LIBHDATE_LIBRARY_NAME = 'libhdate.so';
72 {$ELSE}
73 {$IFDEF MSWINODWS}
74 LIBHDATE_LIBRARY_NAME = 'hdate.dll';
75 {$ELSE}
76 {$FATAL Unsupported environment}
77 {$ENDIF}
78 {$ENDIF}
79
80 (** @def HDATE_DIASPORA_FLAG
81 @brief use diaspora dates and holydays flag
82 *)
83 HDATE_DIASPORA_FLAG = -1;
84
85 (** @def HDATE_ISRAEL_FLAG
86 @brief use israel dates and holydays flag
87 *)
88 HDATE_ISRAEL_FLAG = 0;
89
90 (** @def HDATE_SHORT_FLAG
91 @brief use short strings flag
92 *)
93 HDATE_SHORT_FLAG = -1;
94
95 (** @def HDATE_LONG_FLAG
96 @brief use long strings flag
97 *)
98 HDATE_LONG_FLAG = 0;
99
100
101 { Base structore for hebrew dates }
102
103 Type
104 // A pointer to the Thdate_struct record
105 Phdate_struct = ^Thdate_struct;
106 Thdate_struct = Record
107 hd_day : cInt;
108 //The number of day in the hebrew month (1..31).
109 hd_mon : cInt;
110 //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
111 hd_year : cInt;
112 //The number of the hebrew year.
113 gd_day : cInt;
114 //The number of the day in the month. (1..31)
115 gd_mon : cInt;
116 //The number of the month 1..12 (1 - jan).
117 gd_year : cInt;
118 //The number of the year.
119 hd_dw : cInt;
120 //The day of the week 1..7 (1 - sunday).
121 hd_size_of_year : cInt;
122 //The length of the year in days.
123 hd_new_year_dw : cInt;
124 //The week day of Hebrew new year.
125 hd_year_type : cInt;
126 //The number type of year.
127 hd_jd : cInt;
128 //The Julian day number
129 hd_days : cInt;
130 //The number of days passed since 1 tishrey
131 hd_weeks : cInt;
132 //The number of weeks passed since 1 tishrey
133 End;
134 (********************************************************************************)
135 (********************************************************************************)
136
137 Var
138 (**
139 @brief compute date structure from the Gregorian date
140
141 @param h pointer this hdate struct.
142 @param d Day of month 1..31
143 @param m Month 1..12
144 @param y Year in 4 digits e.g. 2001
145 @return pointer to this hdate struct
146 *)
147 hdate_set_gdate : Function (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
148
149
150 (**
151 @brief compute date structure from the Hebrew date
152
153 @param h pointer this hdate struct.
154 @param d Day of month 1..31
155 @param m Month 1..14 , (13 - Adar 1, 14 - Adar 2)
156 @param y Year in 4 digits e.g. 5731
157 @return pointer to this hdate struct
158 *)
159 hdate_set_hdate : Function (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
160
161
162 (**
163 @brief compute date structure from the Julian day
164
165 @param h pointer this hdate struct.
166 @param jd the julian day number.
167 @return pointer to this hdate struct
168 *)
169 hdate_set_jd : Function (h : Phdate_struct; jd : cInt) : Phdate_struct;
170
171 (*************************************************************)
172 (*************************************************************)
173
174
175 (**
176 @brief get formated hebrew date.
177
178 return the short ( e.g. "1 Tishrey" ) or
179 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
180
181 @param h pointer this hdate struct.
182 @param diaspora if true give diaspora holydays.
183 @param s short flag.
184 @return a static string of foramted date
185 *)
186 hdate_get_format_date : Function (h : Phdate_struct; diaspora, s : cInt) : PChar;
187
188
189 (**
190 @brief get the number of hebrew parasha.
191
192 @param h pointer this hdate struct.
193 @param diaspora if true give diaspora readings
194 @return the number of parasha 1. Bereshit etc..
195 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
196 *)
197 hdate_get_parasha : Function (h : Phdate_struct; diaspora : cInt) : cInt;
198
199
200 (**
201 @brief get the number of hebrew holyday.
202
203 @param h pointer this hdate struct.
204 @param diaspora if true give diaspora holydays
205 @return the number of holyday.
206 *)
207 hdate_get_holyday : Function (h : Phdate_struct; diaspora : cInt) : cInt;
208
209 (*************************************************************)
210 (*************************************************************)
211
212
213 (**
214 @brief convert an integer to hebrew string.
215
216 @param n The int to convert
217 @return a static string of the hebrew number UTF-8 (logical)
218 @attention ( 0 < n < 10000)
219 *)
220 hdate_get_int_string : Function (n : cInt) : PChar;
221
222
223
224 (**
225 @brief get name of week day.
226
227 @param day The number of the day 1..7 (1 - sun).
228 @param s short flag
229 true - returns a short string: sun, false returns: sunday.
230 @return a static string of the day of the week
231 *)
232 hdate_get_day_string : Function (day : cInt; s : cInt) : PChar;
233
234
235
236 (**
237 @brief name of month.
238
239 @param month the number of the month 1..12 (1 - jan).
240 @param s short flag.
241 @return a static string of month name
242 *)
243 hdate_get_month_string : Function (month : cInt; s : cInt) : PChar;
244
245
246
247 (**
248 @brief name of hebrew month.
249
250 @param month the number of the month 1..14
251 (1 - tishre, 13 - adar 1, 14 - adar 2).
252 @param s short flag.
253 @return a static string of month name
254 *)
255 hdate_get_hebrew_month_string : Function (month : cInt; s : cInt) : PChar;
256
257
258
259 (**
260 @brief name of hebrew holyday.
261
262 @param holyday the holyday number.
263 @param s short flag.
264 @return a static string of holyday name
265 *)
266 hdate_get_holyday_string : Function (holyday, s : cInt) : PChar;
267
268
269
270 (**
271 @brief name of parasha
272
273 @param parasha the number of parasha 1-Bereshit
274 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
275 @param s short flag.
276 @return a static string of parasha name
277 *)
278 hdate_get_parasha_string : Function (parasha, s : cInt) : PChar;
279
280
281 (*************************************************************)
282 (*************************************************************)
283
284
285 (**
286 @brief get the hebrew holyday type.
287
288 @param holyday the holyday number.
289 @return the number of holyday type.
290 *)
291 hdate_get_holyday_type : Function (holyday : cInt) : cInt;
292
293
294
295 (**
296 @brief size of hebrew year in days.
297
298 @param hebrew_year the hebrew year.
299 @return size of Hebrew year
300 *)
301 hdate_get_size_of_hebrew_year : Function (hebrew_year : cInt) : cInt;
302
303
304 (*************************************************************)
305 (*************************************************************)
306
307
308 (**
309 @brief Days since Tishrey 3744
310
311 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
312
313 @param hebrew_year The Hebrew year
314 @return Number of days since 3,1,3744
315 *)
316 hdate_days_from_3744 : Function (hebrew_year : cInt) : cInt;
317
318
319
320 (**
321 @brief Return Hebrew year type based on size and first week day of year.
322
323 @param size_of_year Length of year in days
324 @param new_year_dw First week day of year
325 @return the number for year type (1..14)
326 *)
327 hdate_get_year_type : Function (size_of_year, new_year_dw : cInt) : cInt;
328
329
330
331 (**
332 @brief Compute Julian day from Gregorian date
333
334 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
335
336 @param day Day of month 1..31
337 @param month Month 1..12
338 @param year Year in 4 digits e.g. 2001
339 @return the julian day number
340 *)
341 hdate_gdate_to_jd : Function (day, month, year : cInt) : cInt;
342
343
344
345 (**
346 @brief Compute Julian day from Hebrew day, month and year
347
348 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
349
350 @param day Day of month 1..31
351 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
352 @param year Hebrew year in 4 digits e.g. 5753
353 @param jd_tishrey1 return the julian number of 1 Tishrey this year
354 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
355 @return the julian day number
356 *)
357 hdate_hdate_to_jd : Function (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt)
358 : cInt;
359
360
361
362 (**
363 @brief Converting from the Julian day to the Gregorian date
364
365 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
366
367 @param jd Julian day
368 @param day return Day of month 1..31
369 @param month return Month 1..12
370 @param year return Year in 4 digits e.g. 2001
371 *)
372 hdate_jd_to_gdate : Procedure (jd : cInt; day, month, year : pcInt);
373
374
375
376 (**
377 @brief Converting from the Julian day to the Hebrew day
378
379 @author Yaacov Zamir 2005
380
381 @param jd Julian day
382 @param day return Day of month 1..31
383 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
384 @param year return Year in 4 digits e.g. 2001
385 @param jd_tishrey1 return the julian number of 1 Tishrey this year
386 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
387 *)
388 hdate_jd_to_hdate : Procedure (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year :
389 pcInt);
390
391
392 (*************************************************************)
393 (*************************************************************)
394
395
396 (**
397 @brief days from 1 january
398
399 @param day this day of month
400 @param month this month
401 @param year this year
402 @return the days from 1 jan
403 *)
404 hdate_get_day_of_year : Function (day, month, year : cInt) : cInt;
405
406
407
408 (**
409 @brief utc sunrise/set time for a gregorian date
410
411 @param day this day of month
412 @param month this month
413 @param year this year
414 @param longitude longitude to use in calculations
415 degrees, negative values are east
416 @param latitude latitude to use in calculations
417 degrees, negative values are south
418 @param sunrise return the utc sunrise in minutes after midnight (00:00)
419 @param sunset return the utc sunset in minutes after midnight (00:00)
420 *)
421 hdate_get_utc_sun_time : Procedure (day, month, year : cInt; latitude, longitude : cDouble;
422 sunrise, sunset : pcInt);
423
424
425 (*************************************************************)
426 (*************************************************************)
427
428
429 (**
430 @brief get the Gregorian day of the month
431
432 @param h pointer this hdate struct.
433 @return the Gregorian day of the month, 1..31.
434 *)
435 hdate_get_gday : Function (h : Phdate_struct) : cInt;
436
437
438
439 (**
440 @brief get the Gregorian month
441
442 @param h pointer this hdate struct.
443 @return the Gregorian month, jan = 1.
444 *)
445 hdate_get_gmonth : Function (h : Phdate_struct) : cInt;
446
447
448
449 (**
450 @brief get the Gregorian year
451
452 @param h pointer this hdate struct.
453 @return the Gregorian year.
454 *)
455 hdate_get_gyear : Function (h : Phdate_struct) : cInt;
456
457
458
459 (**
460 @brief get the Hebrew day of the month
461
462 @param h pointer this hdate struct.
463 @return the Hebrew day of the month, 1..30.
464 *)
465 hdate_get_hday : Function (h : Phdate_struct) : cInt;
466
467
468
469 (**
470 @brief get the Hebrew month
471
472 @param h pointer this hdate struct.
473 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
474 *)
475 hdate_get_hmonth : Function (h : Phdate_struct) : cInt;
476
477
478 (**
479 @brief get the Hebrew year
480
481 @param h pointer this hdate struct.
482 @return the Hebrew year.
483 *)
484 hdate_get_hyear : Function (h : Phdate_struct) : cInt;
485
486
487
488 (**
489 @brief get the day of the week
490
491 @param h pointer this hdate struct.
492 @return the the day of the week.
493 *)
494 hdate_get_day_of_the_week : Function (h : Phdate_struct) : cInt;
495
496
497
498 (**
499 @brief get the size of the hebrew year
500
501 @param h pointer this hdate struct.
502 @return the the size of the hebrew year.
503 *)
504 hdate_get_size_of_year : Function (h : Phdate_struct) : cInt;
505
506
507
508 (**
509 @brief get the new year day of the week
510
511 @param h pointer this hdate struct.
512 @return the the new year day of the week.
513 *)
514 hdate_get_new_year_day_of_the_week : Function (h : Phdate_struct) : cInt;
515
516
517
518 (**
519 @brief get the Julian day number
520
521 @param h pointer this hdate struct.
522 @return the Julian day number.
523 *)
524 hdate_get_julian : Function (h : Phdate_struct) : cInt;
525
526
527
528 (**
529 @brief get the number of days passed since 1 tishrey
530
531 @param h pointer this hdate struct.
532 @return the number of days passed since 1 tishrey.
533 *)
534 hdate_get_days : Function (h : Phdate_struct) : cInt;
535
536
537
538 (**
539 @brief get the number of weeks passed since 1 tishrey
540
541 @param h pointer this hdate struct.
542 @return the number of weeks passed since 1 tishrey.
543 *)
544 hdate_get_weeks : Function (h : Phdate_struct) : cInt;
545
546
547 (*************************************************************)
548 (*************************************************************)
549
550
551 (**
552 @brief creat a new hdate struct object, must be deleted using delete_hdate.
553
554 @return a new hdate object
555 *)
556 new_hdate : Function : Phdate_struct;
557
558
559 (**
560 @brief delete an hdate struct object.
561
562 @param h pointer this hdate struct.
563 *)
564 delete_hdate : Function (h : Phdate_struct) : Phdate_struct;
565
566
567 (*************************************************************)
568 (*************************************************************)
569
570
571 (**
572 @brief Return a static string, with the package name and version
573
574 @return a a static string, with the package name and version
575 *)
576 hdate_get_version_string : Function : PChar;
577
578
579 (**
580 @brief Return a static string, with the name of translator
581
582 @return a a static string, with the name of translator
583 *)
584 hdate_get_translator_string : Function : PChar;
585
586
587 (**
588 @brief utc sun times for altitude at a gregorian date
589
590 @param day this day of month
591 @param month this month
592 @param year this year
593 @param latitude latitude to use in calculations
594 @param longitude longitude to use in calculations
595 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
596 @param sunrise return the utc sunrise in minutes
597 @param sunset return the utc sunset in minutes
598 *)
599 hdate_get_utc_sun_time_deg : Procedure (day, month, year : cint;
600 latitude, longitude, deg : cdouble;
601 sunrise, sunset : pcint);
602
603
604 (**
605 @brief utc sunrise/set time for a gregorian date
606
607 @param day this day of month
608 @param month this month
609 @param year this year
610 @param longitude longitude to use in calculations
611 @param latitude latitude to use in calculations
612 @param sun_hour return the length of shaa zmanit in minutes
613 @param first_light return the utc alut ha-shachar in minutes
614 @param talit return the utc tphilin and talit in minutes
615 @param sunrise return the utc sunrise in minutes
616 @param midday return the utc midday in minutes
617 @param sunset return the utc sunset in minutes
618 @param first_stars return the utc tzeit hacochavim in minutes
619 @param three_stars return the utc shlosha cochavim in minutes
620 *)
621 hdate_get_utc_sun_time_full : Procedure (day, month, year : cint;
622 latitude, longitude : cdouble;
623 sun_hour, first_light, talit, sunrise, midday, sunset,
624 first_stars, three_stars : pcint);
625
626
627 Implementation
628 {$IFDEF FPC}
629 Uses dynlibs;
630 {$ENDIF}
631
632 {$IFDEF __GPC__}
633 const
634 LIBHDATE_LIBRARY_NAME = 'libhdate.so';
635
636 RTLD_LAZY = $001;
637 RTLD_NOW = $002;
638 RTLD_BINDING_MASK = $003;
639 RTLD_GLOBAL = $100;
640 RTLD_NEXT = pointer(-1);
641 {$IFDEF LINUX}
642 RTLD_DEFAULT = nil;
643 {$ENDIF}
644 {$IFDEF BSD}
645 RTLD_DEFAULT = pointer(-2);
646 RTLD_MODEMASK = RTLD_BINDING_MASK;
647 {$ENDIF}
648
649 type
650 Pdl_info = ^dl_info;
651 dl_info = record
652 dli_fname : Pchar;
653 dli_fbase : pointer;
654 dli_sname : Pchar;
655 dli_saddr : pointer;
656 end;
657
658 TLibHandle = PtrInt;
659
660 const
661 NilHandle = TLibHandle(0);
662
663 function dlopen(Name : PChar; Flags : longint) : Pointer; external name 'dlopen';
664 function dlerror() : Pchar; external name 'dlerror';
665 function dlsym(Lib : PtrInt; Name : Pchar) : Pointer; external name 'dlsym';
666 function dlclose(Lib : TLibHandle) : Longint; external name 'dlclose';
667 function dladdr(Lib: pointer; info: Pdl_info): Longint; external name 'dladdr';
668 {$ENDIF}
669
670 Var
671 Loaded : Boolean;
672 LibHandle : TLibHandle;
673
674 Procedure hdate_init;
675
676 {$IFDEF FPC}
677 { Internal function of hdate_init, that load the function and assign it to the right function/procedure}
678 Function AssignProc(Name : PChar; Fnc : Pointer) : boolean;
679 Var
680 address : pointer;
681 pfnc : ^pointer;
682 Begin
683 address := Nil;
684 address := GetProcedureAddress(LibHandle, Name);
685 pfnc := Fnc;
686 pfnc^ := address;
687 AssignProc := address <> Nil;
688 End;
689 {$ENDIF}
690 {$IFDEF __GPC__}
691 { Internal function of hdate_init, that load the function and assign it to the right function/procedure}
692 Function AssignProc(Name : PChar; Fnc : Pointer) : boolean;
693 Var
694 address : pointer;
695 pfnc : ^pointer;
696 Begin
697 address := Nil;
698 address := dlsym(LibHandle,Name);
699 pfnc := Fnc;
700 pfnc^ := address;
701 AssignProc := address <> Nil;
702 End;
703 {$ENDIF}
704
705 Begin
706 If (Loaded) and (LibHandle <> NilHandle) Then
707 exit;
708
709 Loaded := False;
710 {$IFDEF FPC}
711 LibHandle := LoadLibrary(LIBHDATE_LIBRARY_NAME);
712 {$ENDIF}
713 {$IFDEF __GPC__}
714 LibHandle := TLibHandle(dlopen(LIBHDATE_LIBRARY_NAME, RTLD_LAZY));
715 {$ENDIF}
716 If LibHandle = NilHandle Then
717 exit;
718
719 If Not AssignProc('hdate_set_gdate', @hdate_set_gdate) Then
720 exit;
721 If Not AssignProc('hdate_set_hdate', @hdate_set_hdate) Then
722 exit;
723 If Not AssignProc('hdate_set_jd', @hdate_set_jd) Then
724 exit;
725 If Not AssignProc('hdate_get_format_date', @hdate_get_format_date) Then
726 exit;
727 If Not AssignProc('hdate_get_parasha', @hdate_get_parasha) Then
728 exit;
729 If Not AssignProc('hdate_get_holyday', @hdate_get_holyday) Then
730 exit;
731 If Not AssignProc('hdate_get_int_string', @hdate_get_int_string) Then
732 exit;
733 If Not AssignProc('hdate_get_day_string', @hdate_get_day_string) Then
734 exit;
735 If Not AssignProc('hdate_get_month_string', @hdate_get_month_string) Then
736 exit;
737 If Not AssignProc('hdate_get_hebrew_month_string', @hdate_get_hebrew_month_string) Then
738 exit;
739 If Not AssignProc('hdate_get_holyday_string', @hdate_get_holyday_string) Then
740 exit;
741 If Not AssignProc('hdate_get_parasha_string', @hdate_get_parasha_string) Then
742 exit;
743 If Not AssignProc('hdate_get_holyday_type', @hdate_get_holyday_type) Then
744 exit;
745 If Not AssignProc('hdate_get_size_of_hebrew_year', @hdate_get_size_of_hebrew_year) Then
746 exit;
747 If Not AssignProc('hdate_days_from_3744', @hdate_days_from_3744) Then
748 exit;
749 If Not AssignProc('hdate_get_year_type', @hdate_get_year_type) Then
750 exit;
751 If Not AssignProc('hdate_gdate_to_jd', @hdate_gdate_to_jd) Then
752 exit;
753 If Not AssignProc('hdate_hdate_to_jd', @hdate_hdate_to_jd) Then
754 exit;
755 If Not AssignProc('hdate_jd_to_gdate', @hdate_jd_to_gdate) Then
756 exit;
757 If Not AssignProc('hdate_jd_to_hdate', @hdate_jd_to_hdate) Then
758 exit;
759 If Not AssignProc('hdate_get_day_of_year', @hdate_get_day_of_year) Then
760 exit;
761 If Not AssignProc('hdate_get_utc_sun_time', @hdate_get_utc_sun_time) Then
762 exit;
763 If Not AssignProc('hdate_get_gday', @hdate_get_gday) Then
764 exit;
765 If Not AssignProc('hdate_get_gmonth', @hdate_get_gmonth) Then
766 exit;
767 If Not AssignProc('hdate_get_gyear', @hdate_get_gyear) Then
768 exit;
769 If Not AssignProc('hdate_get_hday', @hdate_get_hday) Then
770 exit;
771 If Not AssignProc('hdate_get_hmonth', @hdate_get_hmonth) Then
772 exit;
773 If Not AssignProc('hdate_get_hyear', @hdate_get_hyear) Then
774 exit;
775 If Not AssignProc('hdate_get_day_of_the_week', @hdate_get_day_of_the_week) Then
776 exit;
777 If Not AssignProc('hdate_get_size_of_year', @hdate_get_size_of_year) Then
778 exit;
779 If Not AssignProc('hdate_get_new_year_day_of_the_week', @hdate_get_new_year_day_of_the_week) Then
780 exit;
781 If Not AssignProc('hdate_get_julian', @hdate_get_julian) Then
782 exit;
783 If Not AssignProc('hdate_get_days', @hdate_get_days) Then
784 exit;
785 If Not AssignProc('hdate_get_weeks', @hdate_get_weeks) Then
786 exit;
787 If Not AssignProc('new_hdate', @new_hdate) Then
788 exit;
789 If Not AssignProc('delete_hdate', @delete_hdate) Then
790 exit;
791 If Not AssignProc('hdate_get_version_string', @hdate_get_version_string) Then
792 exit;
793 If Not AssignProc('hdate_get_translator_string', @hdate_get_translator_string) Then
794 exit;
795 If Not AssignProc('hdate_get_utc_sun_time_deg', @hdate_get_utc_sun_time_deg) Then
796 exit;
797 If Not AssignProc('hdate_get_utc_sun_time_full', @hdate_get_utc_sun_time_full) Then
798 exit;
799
800 Loaded := true;
801 End;
802
803 Procedure hdate_done;
804 Begin
805 {$IFDEF FPC}
806 If LibHandle <> NilHandle Then
807 UnloadLibrary(LibHandle);
808 {$ENDIF}
809 {$IFDEF __GPC__}
810 If LibHandle <> NilHandle Then
811 LibHandle := dlClose(LibHandle);
812 {$ENDIF}
813
814 LibHandle := NilHandle;
815 Loaded := false;
816 End;
817
818 Function IsLoaded : Boolean;
819 Begin
820 IsLoaded := Loaded;
821 End;
822
823 initialization
824 Loaded := false;
825 {$IFDEF AUTO_LOAD}
826 hdate_init;
827 {$ENDIF}
828 finalization
829 {$IFDEF AUTO_LOAD}
830 hdate_done;
831 {$ENDIF}
832 End.
833
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.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = bindings/perl
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
54 ACLOCAL = @ACLOCAL@
55 AMTAR = @AMTAR@
56 AR = @AR@
57 AUTOCONF = @AUTOCONF@
58 AUTOHEADER = @AUTOHEADER@
59 AUTOMAKE = @AUTOMAKE@
60 AWK = @AWK@
61 CC = @CC@
62 CCDEPMODE = @CCDEPMODE@
63 CFLAGS = @CFLAGS@
64 CPP = @CPP@
65 CPPFLAGS = @CPPFLAGS@
66 CYGPATH_W = @CYGPATH_W@
67 DATADIRNAME = @DATADIRNAME@
68 DEFS = @DEFS@
69 DEPDIR = @DEPDIR@
70 DLLTOOL = @DLLTOOL@
71 DSYMUTIL = @DSYMUTIL@
72 DUMPBIN = @DUMPBIN@
73 ECHO_C = @ECHO_C@
74 ECHO_N = @ECHO_N@
75 ECHO_T = @ECHO_T@
76 EGREP = @EGREP@
77 EXEEXT = @EXEEXT@
78 FGREP = @FGREP@
79 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
80 GMSGFMT = @GMSGFMT@
81 GMSGFMT_015 = @GMSGFMT_015@
82 GP_MODULES_PATH = @GP_MODULES_PATH@
83 GREP = @GREP@
84 INSTALL = @INSTALL@
85 INSTALL_DATA = @INSTALL_DATA@
86 INSTALL_PROGRAM = @INSTALL_PROGRAM@
87 INSTALL_SCRIPT = @INSTALL_SCRIPT@
88 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
89 INTLLIBS = @INTLLIBS@
90 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
91 LD = @LD@
92 LDFLAGS = @LDFLAGS@
93 LIBICONV = @LIBICONV@
94 LIBINTL = @LIBINTL@
95 LIBOBJS = @LIBOBJS@
96 LIBS = @LIBS@
97 LIBTOOL = @LIBTOOL@
98 LIPO = @LIPO@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAKEINFO = @MAKEINFO@
105 MANIFEST_TOOL = @MANIFEST_TOOL@
106 MKDIR_P = @MKDIR_P@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 NM = @NM@
111 NMEDIT = @NMEDIT@
112 OBJDUMP = @OBJDUMP@
113 OBJEXT = @OBJEXT@
114 OTOOL = @OTOOL@
115 OTOOL64 = @OTOOL64@
116 PACKAGE = @PACKAGE@
117 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
118 PACKAGE_NAME = @PACKAGE_NAME@
119 PACKAGE_STRING = @PACKAGE_STRING@
120 PACKAGE_TARNAME = @PACKAGE_TARNAME@
121 PACKAGE_URL = @PACKAGE_URL@
122 PACKAGE_VERSION = @PACKAGE_VERSION@
123 PATH_SEPARATOR = @PATH_SEPARATOR@
124 PA_MODULES_PATH = @PA_MODULES_PATH@
125 PA_VERSION = @PA_VERSION@
126 PE_CFLAGS = @PE_CFLAGS@
127 PE_MODULES_PATH = @PE_MODULES_PATH@
128 PH_CONFIG_PATH = @PH_CONFIG_PATH@
129 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
130 PH_MODULES_PATH = @PH_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 RU_CFLAGS = @RU_CFLAGS@
138 RU_MODULES_PATH = @RU_MODULES_PATH@
139 RU_VERSION = @RU_VERSION@
140 SED = @SED@
141 SET_MAKE = @SET_MAKE@
142 SHELL = @SHELL@
143 STRIP = @STRIP@
144 USE_NLS = @USE_NLS@
145 VERSION = @VERSION@
146 VERSION_INFO = @VERSION_INFO@
147 XGETTEXT = @XGETTEXT@
148 XGETTEXT_015 = @XGETTEXT_015@
149 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
150 abs_builddir = @abs_builddir@
151 abs_srcdir = @abs_srcdir@
152 abs_top_builddir = @abs_top_builddir@
153 abs_top_srcdir = @abs_top_srcdir@
154 ac_ct_AR = @ac_ct_AR@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
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 builddir = @builddir@
169 datadir = @datadir@
170 datarootdir = @datarootdir@
171 docdir = @docdir@
172 dvidir = @dvidir@
173 exec_prefix = @exec_prefix@
174 have_fpc = @have_fpc@
175 have_gpc = @have_gpc@
176 have_perl = @have_perl@
177 have_php = @have_php@
178 have_php_config = @have_php_config@
179 have_python = @have_python@
180 have_ruby = @have_ruby@
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 srcdir = @srcdir@
205 sysconfdir = @sysconfdir@
206 target_alias = @target_alias@
207 top_build_prefix = @top_build_prefix@
208 top_builddir = @top_builddir@
209 top_srcdir = @top_srcdir@
210 EXTRA_DIST = hdate.i
211 @WITH_PERL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
212 @WITH_PERL_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.pm
213 all: all-am
214
215 .SUFFIXES:
216 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
217 @for dep in $?; do \
218 case '$(am__configure_deps)' in \
219 *$$dep*) \
220 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
221 && { if test -f $@; then exit 0; else break; fi; }; \
222 exit 1;; \
223 esac; \
224 done; \
225 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/perl/Makefile'; \
226 $(am__cd) $(top_srcdir) && \
227 $(AUTOMAKE) --gnu bindings/perl/Makefile
228 .PRECIOUS: Makefile
229 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
230 @case '$?' in \
231 *config.status*) \
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
233 *) \
234 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
235 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
236 esac;
237
238 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
240
241 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
243 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245 $(am__aclocal_m4_deps):
246
247 mostlyclean-libtool:
248 -rm -f *.lo
249
250 clean-libtool:
251 -rm -rf .libs _libs
252 tags: TAGS
253 TAGS:
254
255 ctags: CTAGS
256 CTAGS:
257
258
259 distdir: $(DISTFILES)
260 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
261 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
262 list='$(DISTFILES)'; \
263 dist_files=`for file in $$list; do echo $$file; done | \
264 sed -e "s|^$$srcdirstrip/||;t" \
265 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
266 case $$dist_files in \
267 */*) $(MKDIR_P) `echo "$$dist_files" | \
268 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
269 sort -u` ;; \
270 esac; \
271 for file in $$dist_files; do \
272 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
273 if test -d $$d/$$file; then \
274 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
275 if test -d "$(distdir)/$$file"; then \
276 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
277 fi; \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
280 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
281 fi; \
282 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
283 else \
284 test -f "$(distdir)/$$file" \
285 || cp -p $$d/$$file "$(distdir)/$$file" \
286 || exit 1; \
287 fi; \
288 done
289 check-am: all-am
290 check: check-am
291 all-am: Makefile
292 installdirs:
293 install: install-am
294 install-exec: install-exec-am
295 install-data: install-data-am
296 uninstall: uninstall-am
297
298 install-am: all-am
299 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
300
301 installcheck: installcheck-am
302 install-strip:
303 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
304 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
305 `test -z '$(STRIP)' || \
306 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
307 mostlyclean-generic:
308
309 clean-generic:
310 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
311
312 distclean-generic:
313 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
314 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
315
316 maintainer-clean-generic:
317 @echo "This command is intended for maintainers to use"
318 @echo "it deletes files that may require special tools to rebuild."
319 @WITH_PERL_FALSE@install-data-local:
320 clean: clean-am
321
322 clean-am: clean-generic clean-libtool mostlyclean-am
323
324 distclean: distclean-am
325 -rm -f Makefile
326 distclean-am: clean-am distclean-generic
327
328 dvi: dvi-am
329
330 dvi-am:
331
332 html: html-am
333
334 html-am:
335
336 info: info-am
337
338 info-am:
339
340 install-data-am: install-data-local
341
342 install-dvi: install-dvi-am
343
344 install-dvi-am:
345
346 install-exec-am:
347
348 install-html: install-html-am
349
350 install-html-am:
351
352 install-info: install-info-am
353
354 install-info-am:
355
356 install-man:
357
358 install-pdf: install-pdf-am
359
360 install-pdf-am:
361
362 install-ps: install-ps-am
363
364 install-ps-am:
365
366 installcheck-am:
367
368 maintainer-clean: maintainer-clean-am
369 -rm -f Makefile
370 maintainer-clean-am: distclean-am maintainer-clean-generic
371
372 mostlyclean: mostlyclean-am
373
374 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
375
376 pdf: pdf-am
377
378 pdf-am:
379
380 ps: ps-am
381
382 ps-am:
383
384 uninstall-am:
385
386 .MAKE: install-am install-strip
387
388 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
389 distclean distclean-generic distclean-libtool distdir dvi \
390 dvi-am html html-am info info-am install install-am \
391 install-data install-data-am install-data-local install-dvi \
392 install-dvi-am install-exec install-exec-am install-html \
393 install-html-am install-info install-info-am install-man \
394 install-pdf install-pdf-am install-ps install-ps-am \
395 install-strip installcheck installcheck-am installdirs \
396 maintainer-clean maintainer-clean-generic mostlyclean \
397 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
398 uninstall uninstall-am
399
400
401 @WITH_PERL_TRUE@all-am: hdate.so
402
403 @WITH_PERL_TRUE@hdate.so: hdate_wrap.cxx
404 @WITH_PERL_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PE_CFLAGS) -I$(top_srcdir)/src
405 @WITH_PERL_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o hdate.so
406
407 @WITH_PERL_TRUE@hdate_wrap.cxx: hdate.i
408 @WITH_PERL_TRUE@ swig -perl -c++ hdate.i
409
410 @WITH_PERL_TRUE@install-data-local: hdate.so
411 @WITH_PERL_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/
412 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/hdate.so
413 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.pm $(DESTDIR)$(PE_MODULES_PATH)/hdate.pm
414
415 # Tell versions [3.59,3.63) of GNU make to not export all variables.
416 # Otherwise a system limit (for SysV at least) may be exceeded.
417 .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 hdate.ini
2
3 if WITH_PHP
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cpp *.h *.so *.php *wrap*
8
9 all-am: hdate.so
10
11
12 hdate.so: hdate_wrap.cpp
13 g++ -I$(top_srcdir)/src `php-config --includes` -fpic -c hdate_wrap.cpp
14 gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -lstdc++ -o hdate.so
15
16 hdate_wrap.cpp: hdate.i
17 swig -php5 -c++ hdate.i
18
19 install-data-local: hdate.so hdate.ini hdate.php
20 $(mkinstalldirs) $(DESTDIR)$(PH_MODULES_PATH)
21 $(INSTALL_DATA) hdate.so $(DESTDIR)$(PH_MODULES_PATH)/hdate.so
22
23 $(mkinstalldirs) $(DESTDIR)$(PH_CONFIG_PATH)
24 $(INSTALL_DATA) hdate.ini $(DESTDIR)$(PH_CONFIG_PATH)/hdate.ini
25
26 $(mkinstalldirs) $(DESTDIR)$(PH_INCLUDE_PATH)
27 $(INSTALL_DATA) hdate.php $(DESTDIR)$(PH_INCLUDE_PATH)/hdate.php
28 endif
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = bindings/php
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
54 ACLOCAL = @ACLOCAL@
55 AMTAR = @AMTAR@
56 AR = @AR@
57 AUTOCONF = @AUTOCONF@
58 AUTOHEADER = @AUTOHEADER@
59 AUTOMAKE = @AUTOMAKE@
60 AWK = @AWK@
61 CC = @CC@
62 CCDEPMODE = @CCDEPMODE@
63 CFLAGS = @CFLAGS@
64 CPP = @CPP@
65 CPPFLAGS = @CPPFLAGS@
66 CYGPATH_W = @CYGPATH_W@
67 DATADIRNAME = @DATADIRNAME@
68 DEFS = @DEFS@
69 DEPDIR = @DEPDIR@
70 DLLTOOL = @DLLTOOL@
71 DSYMUTIL = @DSYMUTIL@
72 DUMPBIN = @DUMPBIN@
73 ECHO_C = @ECHO_C@
74 ECHO_N = @ECHO_N@
75 ECHO_T = @ECHO_T@
76 EGREP = @EGREP@
77 EXEEXT = @EXEEXT@
78 FGREP = @FGREP@
79 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
80 GMSGFMT = @GMSGFMT@
81 GMSGFMT_015 = @GMSGFMT_015@
82 GP_MODULES_PATH = @GP_MODULES_PATH@
83 GREP = @GREP@
84 INSTALL = @INSTALL@
85 INSTALL_DATA = @INSTALL_DATA@
86 INSTALL_PROGRAM = @INSTALL_PROGRAM@
87 INSTALL_SCRIPT = @INSTALL_SCRIPT@
88 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
89 INTLLIBS = @INTLLIBS@
90 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
91 LD = @LD@
92 LDFLAGS = @LDFLAGS@
93 LIBICONV = @LIBICONV@
94 LIBINTL = @LIBINTL@
95 LIBOBJS = @LIBOBJS@
96 LIBS = @LIBS@
97 LIBTOOL = @LIBTOOL@
98 LIPO = @LIPO@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAKEINFO = @MAKEINFO@
105 MANIFEST_TOOL = @MANIFEST_TOOL@
106 MKDIR_P = @MKDIR_P@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 NM = @NM@
111 NMEDIT = @NMEDIT@
112 OBJDUMP = @OBJDUMP@
113 OBJEXT = @OBJEXT@
114 OTOOL = @OTOOL@
115 OTOOL64 = @OTOOL64@
116 PACKAGE = @PACKAGE@
117 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
118 PACKAGE_NAME = @PACKAGE_NAME@
119 PACKAGE_STRING = @PACKAGE_STRING@
120 PACKAGE_TARNAME = @PACKAGE_TARNAME@
121 PACKAGE_URL = @PACKAGE_URL@
122 PACKAGE_VERSION = @PACKAGE_VERSION@
123 PATH_SEPARATOR = @PATH_SEPARATOR@
124 PA_MODULES_PATH = @PA_MODULES_PATH@
125 PA_VERSION = @PA_VERSION@
126 PE_CFLAGS = @PE_CFLAGS@
127 PE_MODULES_PATH = @PE_MODULES_PATH@
128 PH_CONFIG_PATH = @PH_CONFIG_PATH@
129 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
130 PH_MODULES_PATH = @PH_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 RU_CFLAGS = @RU_CFLAGS@
138 RU_MODULES_PATH = @RU_MODULES_PATH@
139 RU_VERSION = @RU_VERSION@
140 SED = @SED@
141 SET_MAKE = @SET_MAKE@
142 SHELL = @SHELL@
143 STRIP = @STRIP@
144 USE_NLS = @USE_NLS@
145 VERSION = @VERSION@
146 VERSION_INFO = @VERSION_INFO@
147 XGETTEXT = @XGETTEXT@
148 XGETTEXT_015 = @XGETTEXT_015@
149 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
150 abs_builddir = @abs_builddir@
151 abs_srcdir = @abs_srcdir@
152 abs_top_builddir = @abs_top_builddir@
153 abs_top_srcdir = @abs_top_srcdir@
154 ac_ct_AR = @ac_ct_AR@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
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 builddir = @builddir@
169 datadir = @datadir@
170 datarootdir = @datarootdir@
171 docdir = @docdir@
172 dvidir = @dvidir@
173 exec_prefix = @exec_prefix@
174 have_fpc = @have_fpc@
175 have_gpc = @have_gpc@
176 have_perl = @have_perl@
177 have_php = @have_php@
178 have_php_config = @have_php_config@
179 have_python = @have_python@
180 have_ruby = @have_ruby@
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 srcdir = @srcdir@
205 sysconfdir = @sysconfdir@
206 target_alias = @target_alias@
207 top_build_prefix = @top_build_prefix@
208 top_builddir = @top_builddir@
209 top_srcdir = @top_srcdir@
210 EXTRA_DIST = hdate.i hdate.ini
211 @WITH_PHP_TRUE@DEPS = $(top_builddir)/src/libhdate.la
212 @WITH_PHP_TRUE@CLEANFILES = *.o *.cpp *.h *.so *.php *wrap*
213 all: all-am
214
215 .SUFFIXES:
216 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
217 @for dep in $?; do \
218 case '$(am__configure_deps)' in \
219 *$$dep*) \
220 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
221 && { if test -f $@; then exit 0; else break; fi; }; \
222 exit 1;; \
223 esac; \
224 done; \
225 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/php/Makefile'; \
226 $(am__cd) $(top_srcdir) && \
227 $(AUTOMAKE) --gnu bindings/php/Makefile
228 .PRECIOUS: Makefile
229 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
230 @case '$?' in \
231 *config.status*) \
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
233 *) \
234 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
235 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
236 esac;
237
238 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
240
241 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
243 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245 $(am__aclocal_m4_deps):
246
247 mostlyclean-libtool:
248 -rm -f *.lo
249
250 clean-libtool:
251 -rm -rf .libs _libs
252 tags: TAGS
253 TAGS:
254
255 ctags: CTAGS
256 CTAGS:
257
258
259 distdir: $(DISTFILES)
260 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
261 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
262 list='$(DISTFILES)'; \
263 dist_files=`for file in $$list; do echo $$file; done | \
264 sed -e "s|^$$srcdirstrip/||;t" \
265 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
266 case $$dist_files in \
267 */*) $(MKDIR_P) `echo "$$dist_files" | \
268 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
269 sort -u` ;; \
270 esac; \
271 for file in $$dist_files; do \
272 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
273 if test -d $$d/$$file; then \
274 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
275 if test -d "$(distdir)/$$file"; then \
276 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
277 fi; \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
280 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
281 fi; \
282 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
283 else \
284 test -f "$(distdir)/$$file" \
285 || cp -p $$d/$$file "$(distdir)/$$file" \
286 || exit 1; \
287 fi; \
288 done
289 check-am: all-am
290 check: check-am
291 all-am: Makefile
292 installdirs:
293 install: install-am
294 install-exec: install-exec-am
295 install-data: install-data-am
296 uninstall: uninstall-am
297
298 install-am: all-am
299 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
300
301 installcheck: installcheck-am
302 install-strip:
303 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
304 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
305 `test -z '$(STRIP)' || \
306 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
307 mostlyclean-generic:
308
309 clean-generic:
310 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
311
312 distclean-generic:
313 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
314 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
315
316 maintainer-clean-generic:
317 @echo "This command is intended for maintainers to use"
318 @echo "it deletes files that may require special tools to rebuild."
319 @WITH_PHP_FALSE@install-data-local:
320 clean: clean-am
321
322 clean-am: clean-generic clean-libtool mostlyclean-am
323
324 distclean: distclean-am
325 -rm -f Makefile
326 distclean-am: clean-am distclean-generic
327
328 dvi: dvi-am
329
330 dvi-am:
331
332 html: html-am
333
334 html-am:
335
336 info: info-am
337
338 info-am:
339
340 install-data-am: install-data-local
341
342 install-dvi: install-dvi-am
343
344 install-dvi-am:
345
346 install-exec-am:
347
348 install-html: install-html-am
349
350 install-html-am:
351
352 install-info: install-info-am
353
354 install-info-am:
355
356 install-man:
357
358 install-pdf: install-pdf-am
359
360 install-pdf-am:
361
362 install-ps: install-ps-am
363
364 install-ps-am:
365
366 installcheck-am:
367
368 maintainer-clean: maintainer-clean-am
369 -rm -f Makefile
370 maintainer-clean-am: distclean-am maintainer-clean-generic
371
372 mostlyclean: mostlyclean-am
373
374 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
375
376 pdf: pdf-am
377
378 pdf-am:
379
380 ps: ps-am
381
382 ps-am:
383
384 uninstall-am:
385
386 .MAKE: install-am install-strip
387
388 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
389 distclean distclean-generic distclean-libtool distdir dvi \
390 dvi-am html html-am info info-am install install-am \
391 install-data install-data-am install-data-local install-dvi \
392 install-dvi-am install-exec install-exec-am install-html \
393 install-html-am install-info install-info-am install-man \
394 install-pdf install-pdf-am install-ps install-ps-am \
395 install-strip installcheck installcheck-am installdirs \
396 maintainer-clean maintainer-clean-generic mostlyclean \
397 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
398 uninstall uninstall-am
399
400
401 @WITH_PHP_TRUE@all-am: hdate.so
402
403 @WITH_PHP_TRUE@hdate.so: hdate_wrap.cpp
404 @WITH_PHP_TRUE@ g++ -I$(top_srcdir)/src `php-config --includes` -fpic -c hdate_wrap.cpp
405 @WITH_PHP_TRUE@ gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -lstdc++ -o hdate.so
406
407 @WITH_PHP_TRUE@hdate_wrap.cpp: hdate.i
408 @WITH_PHP_TRUE@ swig -php5 -c++ hdate.i
409
410 @WITH_PHP_TRUE@install-data-local: hdate.so hdate.ini hdate.php
411 @WITH_PHP_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PH_MODULES_PATH)
412 @WITH_PHP_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(PH_MODULES_PATH)/hdate.so
413
414 @WITH_PHP_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PH_CONFIG_PATH)
415 @WITH_PHP_TRUE@ $(INSTALL_DATA) hdate.ini $(DESTDIR)$(PH_CONFIG_PATH)/hdate.ini
416
417 @WITH_PHP_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PH_INCLUDE_PATH)
418 @WITH_PHP_TRUE@ $(INSTALL_DATA) hdate.php $(DESTDIR)$(PH_INCLUDE_PATH)/hdate.php
419
420 # Tell versions [3.59,3.63) of GNU make to not export all variables.
421 # Otherwise a system limit (for SysV at least) may be exceeded.
422 .NOEXPORT:
0 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8
0 ; configuration for php hdate module
1 extension=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.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = bindings/python
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
54 ACLOCAL = @ACLOCAL@
55 AMTAR = @AMTAR@
56 AR = @AR@
57 AUTOCONF = @AUTOCONF@
58 AUTOHEADER = @AUTOHEADER@
59 AUTOMAKE = @AUTOMAKE@
60 AWK = @AWK@
61 CC = @CC@
62 CCDEPMODE = @CCDEPMODE@
63 CFLAGS = @CFLAGS@
64 CPP = @CPP@
65 CPPFLAGS = @CPPFLAGS@
66 CYGPATH_W = @CYGPATH_W@
67 DATADIRNAME = @DATADIRNAME@
68 DEFS = @DEFS@
69 DEPDIR = @DEPDIR@
70 DLLTOOL = @DLLTOOL@
71 DSYMUTIL = @DSYMUTIL@
72 DUMPBIN = @DUMPBIN@
73 ECHO_C = @ECHO_C@
74 ECHO_N = @ECHO_N@
75 ECHO_T = @ECHO_T@
76 EGREP = @EGREP@
77 EXEEXT = @EXEEXT@
78 FGREP = @FGREP@
79 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
80 GMSGFMT = @GMSGFMT@
81 GMSGFMT_015 = @GMSGFMT_015@
82 GP_MODULES_PATH = @GP_MODULES_PATH@
83 GREP = @GREP@
84 INSTALL = @INSTALL@
85 INSTALL_DATA = @INSTALL_DATA@
86 INSTALL_PROGRAM = @INSTALL_PROGRAM@
87 INSTALL_SCRIPT = @INSTALL_SCRIPT@
88 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
89 INTLLIBS = @INTLLIBS@
90 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
91 LD = @LD@
92 LDFLAGS = @LDFLAGS@
93 LIBICONV = @LIBICONV@
94 LIBINTL = @LIBINTL@
95 LIBOBJS = @LIBOBJS@
96 LIBS = @LIBS@
97 LIBTOOL = @LIBTOOL@
98 LIPO = @LIPO@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAKEINFO = @MAKEINFO@
105 MANIFEST_TOOL = @MANIFEST_TOOL@
106 MKDIR_P = @MKDIR_P@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 NM = @NM@
111 NMEDIT = @NMEDIT@
112 OBJDUMP = @OBJDUMP@
113 OBJEXT = @OBJEXT@
114 OTOOL = @OTOOL@
115 OTOOL64 = @OTOOL64@
116 PACKAGE = @PACKAGE@
117 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
118 PACKAGE_NAME = @PACKAGE_NAME@
119 PACKAGE_STRING = @PACKAGE_STRING@
120 PACKAGE_TARNAME = @PACKAGE_TARNAME@
121 PACKAGE_URL = @PACKAGE_URL@
122 PACKAGE_VERSION = @PACKAGE_VERSION@
123 PATH_SEPARATOR = @PATH_SEPARATOR@
124 PA_MODULES_PATH = @PA_MODULES_PATH@
125 PA_VERSION = @PA_VERSION@
126 PE_CFLAGS = @PE_CFLAGS@
127 PE_MODULES_PATH = @PE_MODULES_PATH@
128 PH_CONFIG_PATH = @PH_CONFIG_PATH@
129 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
130 PH_MODULES_PATH = @PH_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 RU_CFLAGS = @RU_CFLAGS@
138 RU_MODULES_PATH = @RU_MODULES_PATH@
139 RU_VERSION = @RU_VERSION@
140 SED = @SED@
141 SET_MAKE = @SET_MAKE@
142 SHELL = @SHELL@
143 STRIP = @STRIP@
144 USE_NLS = @USE_NLS@
145 VERSION = @VERSION@
146 VERSION_INFO = @VERSION_INFO@
147 XGETTEXT = @XGETTEXT@
148 XGETTEXT_015 = @XGETTEXT_015@
149 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
150 abs_builddir = @abs_builddir@
151 abs_srcdir = @abs_srcdir@
152 abs_top_builddir = @abs_top_builddir@
153 abs_top_srcdir = @abs_top_srcdir@
154 ac_ct_AR = @ac_ct_AR@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
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 builddir = @builddir@
169 datadir = @datadir@
170 datarootdir = @datarootdir@
171 docdir = @docdir@
172 dvidir = @dvidir@
173 exec_prefix = @exec_prefix@
174 have_fpc = @have_fpc@
175 have_gpc = @have_gpc@
176 have_perl = @have_perl@
177 have_php = @have_php@
178 have_php_config = @have_php_config@
179 have_python = @have_python@
180 have_ruby = @have_ruby@
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 srcdir = @srcdir@
205 sysconfdir = @sysconfdir@
206 target_alias = @target_alias@
207 top_build_prefix = @top_build_prefix@
208 top_builddir = @top_builddir@
209 top_srcdir = @top_srcdir@
210 EXTRA_DIST = hdate.i
211 @WITH_PYTHON_TRUE@DEPS = $(top_builddir)/src/libhdate.la
212 @WITH_PYTHON_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.py
213 all: all-am
214
215 .SUFFIXES:
216 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
217 @for dep in $?; do \
218 case '$(am__configure_deps)' in \
219 *$$dep*) \
220 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
221 && { if test -f $@; then exit 0; else break; fi; }; \
222 exit 1;; \
223 esac; \
224 done; \
225 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/python/Makefile'; \
226 $(am__cd) $(top_srcdir) && \
227 $(AUTOMAKE) --gnu bindings/python/Makefile
228 .PRECIOUS: Makefile
229 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
230 @case '$?' in \
231 *config.status*) \
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
233 *) \
234 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
235 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
236 esac;
237
238 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
240
241 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
243 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245 $(am__aclocal_m4_deps):
246
247 mostlyclean-libtool:
248 -rm -f *.lo
249
250 clean-libtool:
251 -rm -rf .libs _libs
252 tags: TAGS
253 TAGS:
254
255 ctags: CTAGS
256 CTAGS:
257
258
259 distdir: $(DISTFILES)
260 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
261 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
262 list='$(DISTFILES)'; \
263 dist_files=`for file in $$list; do echo $$file; done | \
264 sed -e "s|^$$srcdirstrip/||;t" \
265 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
266 case $$dist_files in \
267 */*) $(MKDIR_P) `echo "$$dist_files" | \
268 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
269 sort -u` ;; \
270 esac; \
271 for file in $$dist_files; do \
272 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
273 if test -d $$d/$$file; then \
274 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
275 if test -d "$(distdir)/$$file"; then \
276 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
277 fi; \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
280 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
281 fi; \
282 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
283 else \
284 test -f "$(distdir)/$$file" \
285 || cp -p $$d/$$file "$(distdir)/$$file" \
286 || exit 1; \
287 fi; \
288 done
289 check-am: all-am
290 check: check-am
291 all-am: Makefile
292 installdirs:
293 install: install-am
294 install-exec: install-exec-am
295 install-data: install-data-am
296 uninstall: uninstall-am
297
298 install-am: all-am
299 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
300
301 installcheck: installcheck-am
302 install-strip:
303 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
304 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
305 `test -z '$(STRIP)' || \
306 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
307 mostlyclean-generic:
308
309 clean-generic:
310 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
311
312 distclean-generic:
313 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
314 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
315
316 maintainer-clean-generic:
317 @echo "This command is intended for maintainers to use"
318 @echo "it deletes files that may require special tools to rebuild."
319 @WITH_PYTHON_FALSE@install-data-local:
320 clean: clean-am
321
322 clean-am: clean-generic clean-libtool mostlyclean-am
323
324 distclean: distclean-am
325 -rm -f Makefile
326 distclean-am: clean-am distclean-generic
327
328 dvi: dvi-am
329
330 dvi-am:
331
332 html: html-am
333
334 html-am:
335
336 info: info-am
337
338 info-am:
339
340 install-data-am: install-data-local
341
342 install-dvi: install-dvi-am
343
344 install-dvi-am:
345
346 install-exec-am:
347
348 install-html: install-html-am
349
350 install-html-am:
351
352 install-info: install-info-am
353
354 install-info-am:
355
356 install-man:
357
358 install-pdf: install-pdf-am
359
360 install-pdf-am:
361
362 install-ps: install-ps-am
363
364 install-ps-am:
365
366 installcheck-am:
367
368 maintainer-clean: maintainer-clean-am
369 -rm -f Makefile
370 maintainer-clean-am: distclean-am maintainer-clean-generic
371
372 mostlyclean: mostlyclean-am
373
374 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
375
376 pdf: pdf-am
377
378 pdf-am:
379
380 ps: ps-am
381
382 ps-am:
383
384 uninstall-am:
385
386 .MAKE: install-am install-strip
387
388 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
389 distclean distclean-generic distclean-libtool distdir dvi \
390 dvi-am html html-am info info-am install install-am \
391 install-data install-data-am install-data-local install-dvi \
392 install-dvi-am install-exec install-exec-am install-html \
393 install-html-am install-info install-info-am install-man \
394 install-pdf install-pdf-am install-ps install-ps-am \
395 install-strip installcheck installcheck-am installdirs \
396 maintainer-clean maintainer-clean-generic mostlyclean \
397 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
398 uninstall uninstall-am
399
400
401 @WITH_PYTHON_TRUE@all-am: _hdate.so
402
403 @WITH_PYTHON_TRUE@_hdate.so: hdate_wrap.cxx
404 @WITH_PYTHON_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PY_CFLAGS) -I$(top_srcdir)/src
405 @WITH_PYTHON_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o _hdate.so
406
407 @WITH_PYTHON_TRUE@hdate_wrap.cxx: hdate.i
408 @WITH_PYTHON_TRUE@ swig -python -c++ hdate.i
409
410 @WITH_PYTHON_TRUE@install-data-local: _hdate.so
411 @WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PY_MODULES_PATH)
412 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) _hdate.so $(DESTDIR)$(PY_MODULES_PATH)/_hdate.so
413 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) hdate.py $(DESTDIR)$(PY_MODULES_PATH)/hdate.py
414
415 # Tell versions [3.59,3.63) of GNU make to not export all variables.
416 # Otherwise a system limit (for SysV at least) may be exceeded.
417 .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
1 EXTRA_DIST = hdate.i
2
3 if WITH_RUBY
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cxx *.so *wrap*
8
9 all-am: hdate.so
10
11
12 hdate.so: hdate_wrap.cxx
13 g++ -fpic -fno-strict-aliasing -g -O2 -c hdate_wrap.cxx $(RU_CFLAGS) -I$(top_srcdir)/src
14 gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -rdynamic -Wl,-export-dynamic -lruby$(RU_VERSION) -lpthread -ldl -lcrypt -lm -lc -lstdc++ -o hdate.so
15
16 hdate_wrap.cxx: hdate.i
17 swig -c++ -ruby hdate.i
18
19 install-data-local: hdate.so
20 $(mkinstalldirs) $(DESTDIR)$(RU_MODULES_PATH)
21 $(INSTALL_DATA) hdate.so $(DESTDIR)$(RU_MODULES_PATH)/hdate.so
22
23 endif
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = bindings/ruby
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
54 ACLOCAL = @ACLOCAL@
55 AMTAR = @AMTAR@
56 AR = @AR@
57 AUTOCONF = @AUTOCONF@
58 AUTOHEADER = @AUTOHEADER@
59 AUTOMAKE = @AUTOMAKE@
60 AWK = @AWK@
61 CC = @CC@
62 CCDEPMODE = @CCDEPMODE@
63 CFLAGS = @CFLAGS@
64 CPP = @CPP@
65 CPPFLAGS = @CPPFLAGS@
66 CYGPATH_W = @CYGPATH_W@
67 DATADIRNAME = @DATADIRNAME@
68 DEFS = @DEFS@
69 DEPDIR = @DEPDIR@
70 DLLTOOL = @DLLTOOL@
71 DSYMUTIL = @DSYMUTIL@
72 DUMPBIN = @DUMPBIN@
73 ECHO_C = @ECHO_C@
74 ECHO_N = @ECHO_N@
75 ECHO_T = @ECHO_T@
76 EGREP = @EGREP@
77 EXEEXT = @EXEEXT@
78 FGREP = @FGREP@
79 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
80 GMSGFMT = @GMSGFMT@
81 GMSGFMT_015 = @GMSGFMT_015@
82 GP_MODULES_PATH = @GP_MODULES_PATH@
83 GREP = @GREP@
84 INSTALL = @INSTALL@
85 INSTALL_DATA = @INSTALL_DATA@
86 INSTALL_PROGRAM = @INSTALL_PROGRAM@
87 INSTALL_SCRIPT = @INSTALL_SCRIPT@
88 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
89 INTLLIBS = @INTLLIBS@
90 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
91 LD = @LD@
92 LDFLAGS = @LDFLAGS@
93 LIBICONV = @LIBICONV@
94 LIBINTL = @LIBINTL@
95 LIBOBJS = @LIBOBJS@
96 LIBS = @LIBS@
97 LIBTOOL = @LIBTOOL@
98 LIPO = @LIPO@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAKEINFO = @MAKEINFO@
105 MANIFEST_TOOL = @MANIFEST_TOOL@
106 MKDIR_P = @MKDIR_P@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 NM = @NM@
111 NMEDIT = @NMEDIT@
112 OBJDUMP = @OBJDUMP@
113 OBJEXT = @OBJEXT@
114 OTOOL = @OTOOL@
115 OTOOL64 = @OTOOL64@
116 PACKAGE = @PACKAGE@
117 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
118 PACKAGE_NAME = @PACKAGE_NAME@
119 PACKAGE_STRING = @PACKAGE_STRING@
120 PACKAGE_TARNAME = @PACKAGE_TARNAME@
121 PACKAGE_URL = @PACKAGE_URL@
122 PACKAGE_VERSION = @PACKAGE_VERSION@
123 PATH_SEPARATOR = @PATH_SEPARATOR@
124 PA_MODULES_PATH = @PA_MODULES_PATH@
125 PA_VERSION = @PA_VERSION@
126 PE_CFLAGS = @PE_CFLAGS@
127 PE_MODULES_PATH = @PE_MODULES_PATH@
128 PH_CONFIG_PATH = @PH_CONFIG_PATH@
129 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
130 PH_MODULES_PATH = @PH_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 RU_CFLAGS = @RU_CFLAGS@
138 RU_MODULES_PATH = @RU_MODULES_PATH@
139 RU_VERSION = @RU_VERSION@
140 SED = @SED@
141 SET_MAKE = @SET_MAKE@
142 SHELL = @SHELL@
143 STRIP = @STRIP@
144 USE_NLS = @USE_NLS@
145 VERSION = @VERSION@
146 VERSION_INFO = @VERSION_INFO@
147 XGETTEXT = @XGETTEXT@
148 XGETTEXT_015 = @XGETTEXT_015@
149 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
150 abs_builddir = @abs_builddir@
151 abs_srcdir = @abs_srcdir@
152 abs_top_builddir = @abs_top_builddir@
153 abs_top_srcdir = @abs_top_srcdir@
154 ac_ct_AR = @ac_ct_AR@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
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 builddir = @builddir@
169 datadir = @datadir@
170 datarootdir = @datarootdir@
171 docdir = @docdir@
172 dvidir = @dvidir@
173 exec_prefix = @exec_prefix@
174 have_fpc = @have_fpc@
175 have_gpc = @have_gpc@
176 have_perl = @have_perl@
177 have_php = @have_php@
178 have_php_config = @have_php_config@
179 have_python = @have_python@
180 have_ruby = @have_ruby@
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 srcdir = @srcdir@
205 sysconfdir = @sysconfdir@
206 target_alias = @target_alias@
207 top_build_prefix = @top_build_prefix@
208 top_builddir = @top_builddir@
209 top_srcdir = @top_srcdir@
210 EXTRA_DIST = hdate.i
211 @WITH_RUBY_TRUE@DEPS = $(top_builddir)/src/libhdate.la
212 @WITH_RUBY_TRUE@CLEANFILES = *.o *.cxx *.so *wrap*
213 all: all-am
214
215 .SUFFIXES:
216 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
217 @for dep in $?; do \
218 case '$(am__configure_deps)' in \
219 *$$dep*) \
220 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
221 && { if test -f $@; then exit 0; else break; fi; }; \
222 exit 1;; \
223 esac; \
224 done; \
225 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/ruby/Makefile'; \
226 $(am__cd) $(top_srcdir) && \
227 $(AUTOMAKE) --gnu bindings/ruby/Makefile
228 .PRECIOUS: Makefile
229 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
230 @case '$?' in \
231 *config.status*) \
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
233 *) \
234 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
235 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
236 esac;
237
238 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
240
241 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
243 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245 $(am__aclocal_m4_deps):
246
247 mostlyclean-libtool:
248 -rm -f *.lo
249
250 clean-libtool:
251 -rm -rf .libs _libs
252 tags: TAGS
253 TAGS:
254
255 ctags: CTAGS
256 CTAGS:
257
258
259 distdir: $(DISTFILES)
260 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
261 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
262 list='$(DISTFILES)'; \
263 dist_files=`for file in $$list; do echo $$file; done | \
264 sed -e "s|^$$srcdirstrip/||;t" \
265 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
266 case $$dist_files in \
267 */*) $(MKDIR_P) `echo "$$dist_files" | \
268 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
269 sort -u` ;; \
270 esac; \
271 for file in $$dist_files; do \
272 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
273 if test -d $$d/$$file; then \
274 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
275 if test -d "$(distdir)/$$file"; then \
276 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
277 fi; \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
280 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
281 fi; \
282 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
283 else \
284 test -f "$(distdir)/$$file" \
285 || cp -p $$d/$$file "$(distdir)/$$file" \
286 || exit 1; \
287 fi; \
288 done
289 check-am: all-am
290 check: check-am
291 all-am: Makefile
292 installdirs:
293 install: install-am
294 install-exec: install-exec-am
295 install-data: install-data-am
296 uninstall: uninstall-am
297
298 install-am: all-am
299 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
300
301 installcheck: installcheck-am
302 install-strip:
303 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
304 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
305 `test -z '$(STRIP)' || \
306 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
307 mostlyclean-generic:
308
309 clean-generic:
310 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
311
312 distclean-generic:
313 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
314 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
315
316 maintainer-clean-generic:
317 @echo "This command is intended for maintainers to use"
318 @echo "it deletes files that may require special tools to rebuild."
319 @WITH_RUBY_FALSE@install-data-local:
320 clean: clean-am
321
322 clean-am: clean-generic clean-libtool mostlyclean-am
323
324 distclean: distclean-am
325 -rm -f Makefile
326 distclean-am: clean-am distclean-generic
327
328 dvi: dvi-am
329
330 dvi-am:
331
332 html: html-am
333
334 html-am:
335
336 info: info-am
337
338 info-am:
339
340 install-data-am: install-data-local
341
342 install-dvi: install-dvi-am
343
344 install-dvi-am:
345
346 install-exec-am:
347
348 install-html: install-html-am
349
350 install-html-am:
351
352 install-info: install-info-am
353
354 install-info-am:
355
356 install-man:
357
358 install-pdf: install-pdf-am
359
360 install-pdf-am:
361
362 install-ps: install-ps-am
363
364 install-ps-am:
365
366 installcheck-am:
367
368 maintainer-clean: maintainer-clean-am
369 -rm -f Makefile
370 maintainer-clean-am: distclean-am maintainer-clean-generic
371
372 mostlyclean: mostlyclean-am
373
374 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
375
376 pdf: pdf-am
377
378 pdf-am:
379
380 ps: ps-am
381
382 ps-am:
383
384 uninstall-am:
385
386 .MAKE: install-am install-strip
387
388 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
389 distclean distclean-generic distclean-libtool distdir dvi \
390 dvi-am html html-am info info-am install install-am \
391 install-data install-data-am install-data-local install-dvi \
392 install-dvi-am install-exec install-exec-am install-html \
393 install-html-am install-info install-info-am install-man \
394 install-pdf install-pdf-am install-ps install-ps-am \
395 install-strip installcheck installcheck-am installdirs \
396 maintainer-clean maintainer-clean-generic mostlyclean \
397 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
398 uninstall uninstall-am
399
400
401 @WITH_RUBY_TRUE@all-am: hdate.so
402
403 @WITH_RUBY_TRUE@hdate.so: hdate_wrap.cxx
404 @WITH_RUBY_TRUE@ g++ -fpic -fno-strict-aliasing -g -O2 -c hdate_wrap.cxx $(RU_CFLAGS) -I$(top_srcdir)/src
405 @WITH_RUBY_TRUE@ gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -rdynamic -Wl,-export-dynamic -lruby$(RU_VERSION) -lpthread -ldl -lcrypt -lm -lc -lstdc++ -o hdate.so
406
407 @WITH_RUBY_TRUE@hdate_wrap.cxx: hdate.i
408 @WITH_RUBY_TRUE@ swig -c++ -ruby hdate.i
409
410 @WITH_RUBY_TRUE@install-data-local: hdate.so
411 @WITH_RUBY_TRUE@ $(mkinstalldirs) $(DESTDIR)$(RU_MODULES_PATH)
412 @WITH_RUBY_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(RU_MODULES_PATH)/hdate.so
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 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-05-11'
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. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # 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 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
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,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
60 Software Foundation, Inc.
61
62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64
65 help="
66 Try \`$me --help' for more information."
67
68 # Parse command line
69 while test $# -gt 0 ; do
70 case $1 in
71 --time-stamp | --time* | -t )
72 echo "$timestamp" ; exit ;;
73 --version | -v )
74 echo "$version" ; exit ;;
75 --help | --h* | -h )
76 echo "$usage"; exit ;;
77 -- ) # Stop option processing
78 shift; break ;;
79 - ) # Use stdin as input.
80 break ;;
81 -* )
82 echo "$me: invalid option $1$help" >&2
83 exit 1 ;;
84 * )
85 break ;;
86 esac
87 done
88
89 if test $# != 0; then
90 echo "$me: too many arguments$help" >&2
91 exit 1
92 fi
93
94 trap 'exit 1' 1 2 15
95
96 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97 # compiler to aid in system detection is discouraged as it requires
98 # temporary files to be created and, as you can see below, it is a
99 # headache to deal with in a portable fashion.
100
101 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
102 # use `HOST_CC' if defined, but it is deprecated.
103
104 # Portable tmp directory creation inspired by the Autoconf team.
105
106 set_cc_for_build='
107 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109 : ${TMPDIR=/tmp} ;
110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
114 dummy=$tmp/dummy ;
115 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
116 case $CC_FOR_BUILD,$HOST_CC,$CC in
117 ,,) echo "int x;" > $dummy.c ;
118 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
120 CC_FOR_BUILD="$c"; break ;
121 fi ;
122 done ;
123 if test x"$CC_FOR_BUILD" = x ; then
124 CC_FOR_BUILD=no_compiler_found ;
125 fi
126 ;;
127 ,,*) CC_FOR_BUILD=$CC ;;
128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
129 esac ; set_cc_for_build= ;'
130
131 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
132 # (ghazi@noc.rutgers.edu 1994-08-24)
133 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
134 PATH=$PATH:/.attbin ; export PATH
135 fi
136
137 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142 # Note: order is significant - the case branches are not exclusive.
143
144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 *:NetBSD:*:*)
146 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old
150 # object file format. This provides both forward
151 # compatibility and a consistent mechanism for selecting the
152 # object file format.
153 #
154 # Note: NetBSD doesn't particularly care about the vendor
155 # portion of the name. We always set it to "unknown".
156 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
159 case "${UNAME_MACHINE_ARCH}" in
160 armeb) machine=armeb-unknown ;;
161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166 esac
167 # The Operating System including object format, if it has switched
168 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep -q __ELF__
174 then
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 # Return netbsd for either. FIX?
177 os=netbsd
178 else
179 os=netbsdelf
180 fi
181 ;;
182 *)
183 os=netbsd
184 ;;
185 esac
186 # The OS release
187 # Debian GNU/NetBSD machines have a different userland, and
188 # thus, need a distinct triplet. However, they do not need
189 # kernel version information, so it can be replaced with a
190 # suitable tag, in the style of linux-gnu.
191 case "${UNAME_VERSION}" in
192 Debian*)
193 release='-gnu'
194 ;;
195 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
197 ;;
198 esac
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200 # contains redundant information, the shorter form:
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
203 exit ;;
204 *:OpenBSD:*:*)
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
214 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;
217 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
220 alpha:OSF1:*:*)
221 case $UNAME_RELEASE in
222 *4.0)
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 ;;
225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 ;;
228 esac
229 # According to Compaq, /usr/sbin/psrinfo has been available on
230 # OSF/1 and Tru64 systems produced since 1995. I hope that
231 # covers most systems running today. This code pipes the CPU
232 # types through head -n 1, so we only detect the type of CPU 0.
233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234 case "$ALPHA_CPU_TYPE" in
235 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
239 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
241 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
243 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
245 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
247 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
249 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
251 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
253 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
259 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
261 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
263 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
265 esac
266 # A Pn.n version is a patched version.
267 # A Vn.n version is a released version.
268 # A Tn.n version is a released field test version.
269 # A Xn.n version is an unreleased experimental baselevel.
270 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
276 Alpha\ *:Windows_NT*:*)
277 # How do we know it's Interix rather than the generic POSIX subsystem?
278 # Should we change UNAME_MACHINE based on the output of uname instead
279 # of the specific Alpha model?
280 echo alpha-pc-interix
281 exit ;;
282 21064:Windows_NT:50:3)
283 echo alpha-dec-winnt3.5
284 exit ;;
285 Amiga*:UNIX_System_V:4.0:*)
286 echo m68k-unknown-sysv4
287 exit ;;
288 *:[Aa]miga[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-amigaos
290 exit ;;
291 *:[Mm]orph[Oo][Ss]:*:*)
292 echo ${UNAME_MACHINE}-unknown-morphos
293 exit ;;
294 *:OS/390:*:*)
295 echo i370-ibm-openedition
296 exit ;;
297 *:z/VM:*:*)
298 echo s390-ibm-zvmoe
299 exit ;;
300 *:OS400:*:*)
301 echo powerpc-ibm-os400
302 exit ;;
303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
304 echo arm-acorn-riscix${UNAME_RELEASE}
305 exit ;;
306 arm:riscos:*:*|arm:RISCOS:*:*)
307 echo arm-unknown-riscos
308 exit ;;
309 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
310 echo hppa1.1-hitachi-hiuxmpp
311 exit ;;
312 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
313 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
314 if test "`(/bin/universe) 2>/dev/null`" = att ; then
315 echo pyramid-pyramid-sysv3
316 else
317 echo pyramid-pyramid-bsd
318 fi
319 exit ;;
320 NILE*:*:*:dcosx)
321 echo pyramid-pyramid-svr4
322 exit ;;
323 DRS?6000:unix:4.0:6*)
324 echo sparc-icl-nx6
325 exit ;;
326 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
327 case `/usr/bin/uname -p` in
328 sparc) echo sparc-icl-nx7; exit ;;
329 esac ;;
330 s390x:SunOS:*:*)
331 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;
333 sun4H:SunOS:5.*:*)
334 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;
336 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
337 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338 exit ;;
339 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
340 echo i386-pc-auroraux${UNAME_RELEASE}
341 exit ;;
342 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
343 eval $set_cc_for_build
344 SUN_ARCH="i386"
345 # If there is a compiler, see if it is configured for 64-bit objects.
346 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
347 # This test works for both compilers.
348 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
349 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
350 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
351 grep IS_64BIT_ARCH >/dev/null
352 then
353 SUN_ARCH="x86_64"
354 fi
355 fi
356 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
357 exit ;;
358 sun4*:SunOS:6*:*)
359 # According to config.sub, this is the proper way to canonicalize
360 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
361 # it's likely to be more like Solaris than SunOS4.
362 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
363 exit ;;
364 sun4*:SunOS:*:*)
365 case "`/usr/bin/arch -k`" in
366 Series*|S4*)
367 UNAME_RELEASE=`uname -v`
368 ;;
369 esac
370 # Japanese Language versions have a version number like `4.1.3-JL'.
371 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
372 exit ;;
373 sun3*:SunOS:*:*)
374 echo m68k-sun-sunos${UNAME_RELEASE}
375 exit ;;
376 sun*:*:4.2BSD:*)
377 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
378 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
379 case "`/bin/arch`" in
380 sun3)
381 echo m68k-sun-sunos${UNAME_RELEASE}
382 ;;
383 sun4)
384 echo sparc-sun-sunos${UNAME_RELEASE}
385 ;;
386 esac
387 exit ;;
388 aushp:SunOS:*:*)
389 echo sparc-auspex-sunos${UNAME_RELEASE}
390 exit ;;
391 # The situation for MiNT is a little confusing. The machine name
392 # can be virtually everything (everything which is not
393 # "atarist" or "atariste" at least should have a processor
394 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
395 # to the lowercase version "mint" (or "freemint"). Finally
396 # the system name "TOS" denotes a system which is actually not
397 # MiNT. But MiNT is downward compatible to TOS, so this should
398 # be no problem.
399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
400 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
404 exit ;;
405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
406 echo m68k-atari-mint${UNAME_RELEASE}
407 exit ;;
408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
417 m68k:machten:*:*)
418 echo m68k-apple-machten${UNAME_RELEASE}
419 exit ;;
420 powerpc:machten:*:*)
421 echo powerpc-apple-machten${UNAME_RELEASE}
422 exit ;;
423 RISC*:Mach:*:*)
424 echo mips-dec-mach_bsd4.3
425 exit ;;
426 RISC*:ULTRIX:*:*)
427 echo mips-dec-ultrix${UNAME_RELEASE}
428 exit ;;
429 VAX*:ULTRIX*:*:*)
430 echo vax-dec-ultrix${UNAME_RELEASE}
431 exit ;;
432 2020:CLIX:*:* | 2430:CLIX:*:*)
433 echo clipper-intergraph-clix${UNAME_RELEASE}
434 exit ;;
435 mips:*:*:UMIPS | mips:*:*:RISCos)
436 eval $set_cc_for_build
437 sed 's/^ //' << EOF >$dummy.c
438 #ifdef __cplusplus
439 #include <stdio.h> /* for printf() prototype */
440 int main (int argc, char *argv[]) {
441 #else
442 int main (argc, argv) int argc; char *argv[]; {
443 #endif
444 #if defined (host_mips) && defined (MIPSEB)
445 #if defined (SYSTYPE_SYSV)
446 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
447 #endif
448 #if defined (SYSTYPE_SVR4)
449 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
450 #endif
451 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
452 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
453 #endif
454 #endif
455 exit (-1);
456 }
457 EOF
458 $CC_FOR_BUILD -o $dummy $dummy.c &&
459 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
460 SYSTEM_NAME=`$dummy $dummyarg` &&
461 { echo "$SYSTEM_NAME"; exit; }
462 echo mips-mips-riscos${UNAME_RELEASE}
463 exit ;;
464 Motorola:PowerMAX_OS:*:*)
465 echo powerpc-motorola-powermax
466 exit ;;
467 Motorola:*:4.3:PL8-*)
468 echo powerpc-harris-powermax
469 exit ;;
470 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
471 echo powerpc-harris-powermax
472 exit ;;
473 Night_Hawk:Power_UNIX:*:*)
474 echo powerpc-harris-powerunix
475 exit ;;
476 m88k:CX/UX:7*:*)
477 echo m88k-harris-cxux7
478 exit ;;
479 m88k:*:4*:R4*)
480 echo m88k-motorola-sysv4
481 exit ;;
482 m88k:*:3*:R3*)
483 echo m88k-motorola-sysv3
484 exit ;;
485 AViiON:dgux:*:*)
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
489 then
490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
491 [ ${TARGET_BINARY_INTERFACE}x = x ]
492 then
493 echo m88k-dg-dgux${UNAME_RELEASE}
494 else
495 echo m88k-dg-dguxbcs${UNAME_RELEASE}
496 fi
497 else
498 echo i586-dg-dgux${UNAME_RELEASE}
499 fi
500 exit ;;
501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
502 echo m88k-dolphin-sysv3
503 exit ;;
504 M88*:*:R3*:*)
505 # Delta 88k system running SVR3
506 echo m88k-motorola-sysv3
507 exit ;;
508 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
509 echo m88k-tektronix-sysv3
510 exit ;;
511 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
512 echo m68k-tektronix-bsd
513 exit ;;
514 *:IRIX*:*:*)
515 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
516 exit ;;
517 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
518 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
519 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
520 i*86:AIX:*:*)
521 echo i386-ibm-aix
522 exit ;;
523 ia64:AIX:*:*)
524 if [ -x /usr/bin/oslevel ] ; then
525 IBM_REV=`/usr/bin/oslevel`
526 else
527 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
528 fi
529 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
530 exit ;;
531 *:AIX:2:3)
532 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
533 eval $set_cc_for_build
534 sed 's/^ //' << EOF >$dummy.c
535 #include <sys/systemcfg.h>
536
537 main()
538 {
539 if (!__power_pc())
540 exit(1);
541 puts("powerpc-ibm-aix3.2.5");
542 exit(0);
543 }
544 EOF
545 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
546 then
547 echo "$SYSTEM_NAME"
548 else
549 echo rs6000-ibm-aix3.2.5
550 fi
551 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
552 echo rs6000-ibm-aix3.2.4
553 else
554 echo rs6000-ibm-aix3.2
555 fi
556 exit ;;
557 *:AIX:*:[4567])
558 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
559 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
560 IBM_ARCH=rs6000
561 else
562 IBM_ARCH=powerpc
563 fi
564 if [ -x /usr/bin/oslevel ] ; then
565 IBM_REV=`/usr/bin/oslevel`
566 else
567 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
568 fi
569 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
570 exit ;;
571 *:AIX:*:*)
572 echo rs6000-ibm-aix
573 exit ;;
574 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
575 echo romp-ibm-bsd4.4
576 exit ;;
577 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
578 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
579 exit ;; # report: romp-ibm BSD 4.3
580 *:BOSX:*:*)
581 echo rs6000-bull-bosx
582 exit ;;
583 DPX/2?00:B.O.S.:*:*)
584 echo m68k-bull-sysv3
585 exit ;;
586 9000/[34]??:4.3bsd:1.*:*)
587 echo m68k-hp-bsd
588 exit ;;
589 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
590 echo m68k-hp-bsd4.4
591 exit ;;
592 9000/[34678]??:HP-UX:*:*)
593 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
594 case "${UNAME_MACHINE}" in
595 9000/31? ) HP_ARCH=m68000 ;;
596 9000/[34]?? ) HP_ARCH=m68k ;;
597 9000/[678][0-9][0-9])
598 if [ -x /usr/bin/getconf ]; then
599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
609 esac ;;
610 esac
611 fi
612 if [ "${HP_ARCH}" = "" ]; then
613 eval $set_cc_for_build
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include <stdlib.h>
618 #include <unistd.h>
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
646 EOF
647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
648 test -z "$HP_ARCH" && HP_ARCH=hppa
649 fi ;;
650 esac
651 if [ ${HP_ARCH} = "hppa2.0w" ]
652 then
653 eval $set_cc_for_build
654
655 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
656 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
657 # generating 64-bit code. GNU and HP use different nomenclature:
658 #
659 # $ CC_FOR_BUILD=cc ./config.guess
660 # => hppa2.0w-hp-hpux11.23
661 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
662 # => hppa64-hp-hpux11.23
663
664 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
665 grep -q __LP64__
666 then
667 HP_ARCH="hppa2.0w"
668 else
669 HP_ARCH="hppa64"
670 fi
671 fi
672 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
673 exit ;;
674 ia64:HP-UX:*:*)
675 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
676 echo ia64-hp-hpux${HPUX_REV}
677 exit ;;
678 3050*:HI-UX:*:*)
679 eval $set_cc_for_build
680 sed 's/^ //' << EOF >$dummy.c
681 #include <unistd.h>
682 int
683 main ()
684 {
685 long cpu = sysconf (_SC_CPU_VERSION);
686 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
687 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
688 results, however. */
689 if (CPU_IS_PA_RISC (cpu))
690 {
691 switch (cpu)
692 {
693 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
694 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
695 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
696 default: puts ("hppa-hitachi-hiuxwe2"); break;
697 }
698 }
699 else if (CPU_IS_HP_MC68K (cpu))
700 puts ("m68k-hitachi-hiuxwe2");
701 else puts ("unknown-hitachi-hiuxwe2");
702 exit (0);
703 }
704 EOF
705 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
706 { echo "$SYSTEM_NAME"; exit; }
707 echo unknown-hitachi-hiuxwe2
708 exit ;;
709 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
710 echo hppa1.1-hp-bsd
711 exit ;;
712 9000/8??:4.3bsd:*:*)
713 echo hppa1.0-hp-bsd
714 exit ;;
715 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
716 echo hppa1.0-hp-mpeix
717 exit ;;
718 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
719 echo hppa1.1-hp-osf
720 exit ;;
721 hp8??:OSF1:*:*)
722 echo hppa1.0-hp-osf
723 exit ;;
724 i*86:OSF1:*:*)
725 if [ -x /usr/sbin/sysversion ] ; then
726 echo ${UNAME_MACHINE}-unknown-osf1mk
727 else
728 echo ${UNAME_MACHINE}-unknown-osf1
729 fi
730 exit ;;
731 parisc*:Lites*:*:*)
732 echo hppa1.1-hp-lites
733 exit ;;
734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
735 echo c1-convex-bsd
736 exit ;;
737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
738 if getsysinfo -f scalar_acc
739 then echo c32-convex-bsd
740 else echo c2-convex-bsd
741 fi
742 exit ;;
743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
744 echo c34-convex-bsd
745 exit ;;
746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
747 echo c38-convex-bsd
748 exit ;;
749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
750 echo c4-convex-bsd
751 exit ;;
752 CRAY*Y-MP:*:*:*)
753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
754 exit ;;
755 CRAY*[A-Z]90:*:*:*)
756 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
757 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
758 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
759 -e 's/\.[^.]*$/.X/'
760 exit ;;
761 CRAY*TS:*:*:*)
762 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 exit ;;
764 CRAY*T3E:*:*:*)
765 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
766 exit ;;
767 CRAY*SV1:*:*:*)
768 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
769 exit ;;
770 *:UNICOS/mp:*:*)
771 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
772 exit ;;
773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
774 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
779 5000:UNIX_System_V:4.*:*)
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
783 exit ;;
784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
786 exit ;;
787 sparc*:BSD/OS:*:*)
788 echo sparc-unknown-bsdi${UNAME_RELEASE}
789 exit ;;
790 *:BSD/OS:*:*)
791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
792 exit ;;
793 *:FreeBSD:*:*)
794 case ${UNAME_MACHINE} in
795 pc98)
796 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 amd64)
798 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799 *)
800 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
801 esac
802 exit ;;
803 i*:CYGWIN*:*)
804 echo ${UNAME_MACHINE}-pc-cygwin
805 exit ;;
806 *:MINGW*:*)
807 echo ${UNAME_MACHINE}-pc-mingw32
808 exit ;;
809 i*:windows32*:*)
810 # uname -m includes "-pc" on this system.
811 echo ${UNAME_MACHINE}-mingw32
812 exit ;;
813 i*:PW*:*)
814 echo ${UNAME_MACHINE}-pc-pw32
815 exit ;;
816 *:Interix*:*)
817 case ${UNAME_MACHINE} in
818 x86)
819 echo i586-pc-interix${UNAME_RELEASE}
820 exit ;;
821 authenticamd | genuineintel | EM64T)
822 echo x86_64-unknown-interix${UNAME_RELEASE}
823 exit ;;
824 IA64)
825 echo ia64-unknown-interix${UNAME_RELEASE}
826 exit ;;
827 esac ;;
828 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
829 echo i${UNAME_MACHINE}-pc-mks
830 exit ;;
831 8664:Windows_NT:*)
832 echo x86_64-pc-mks
833 exit ;;
834 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
835 # How do we know it's Interix rather than the generic POSIX subsystem?
836 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
837 # UNAME_MACHINE based on the output of uname instead of i386?
838 echo i586-pc-interix
839 exit ;;
840 i*:UWIN*:*)
841 echo ${UNAME_MACHINE}-pc-uwin
842 exit ;;
843 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
844 echo x86_64-unknown-cygwin
845 exit ;;
846 p*:CYGWIN*:*)
847 echo powerpcle-unknown-cygwin
848 exit ;;
849 prep*:SunOS:5.*:*)
850 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
851 exit ;;
852 *:GNU:*:*)
853 # the GNU system
854 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
855 exit ;;
856 *:GNU/*:*:*)
857 # other systems with GNU libc and userland
858 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
859 exit ;;
860 i*86:Minix:*:*)
861 echo ${UNAME_MACHINE}-pc-minix
862 exit ;;
863 alpha:Linux:*:*)
864 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
865 EV5) UNAME_MACHINE=alphaev5 ;;
866 EV56) UNAME_MACHINE=alphaev56 ;;
867 PCA56) UNAME_MACHINE=alphapca56 ;;
868 PCA57) UNAME_MACHINE=alphapca56 ;;
869 EV6) UNAME_MACHINE=alphaev6 ;;
870 EV67) UNAME_MACHINE=alphaev67 ;;
871 EV68*) UNAME_MACHINE=alphaev68 ;;
872 esac
873 objdump --private-headers /bin/sh | grep -q ld.so.1
874 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
875 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
876 exit ;;
877 arm*:Linux:*:*)
878 eval $set_cc_for_build
879 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
880 | grep -q __ARM_EABI__
881 then
882 echo ${UNAME_MACHINE}-unknown-linux-gnu
883 else
884 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
885 | grep -q __ARM_PCS_VFP
886 then
887 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
888 else
889 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
890 fi
891 fi
892 exit ;;
893 avr32*:Linux:*:*)
894 echo ${UNAME_MACHINE}-unknown-linux-gnu
895 exit ;;
896 cris:Linux:*:*)
897 echo cris-axis-linux-gnu
898 exit ;;
899 crisv32:Linux:*:*)
900 echo crisv32-axis-linux-gnu
901 exit ;;
902 frv:Linux:*:*)
903 echo frv-unknown-linux-gnu
904 exit ;;
905 i*86:Linux:*:*)
906 LIBC=gnu
907 eval $set_cc_for_build
908 sed 's/^ //' << EOF >$dummy.c
909 #ifdef __dietlibc__
910 LIBC=dietlibc
911 #endif
912 EOF
913 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
914 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
915 exit ;;
916 ia64:Linux:*:*)
917 echo ${UNAME_MACHINE}-unknown-linux-gnu
918 exit ;;
919 m32r*:Linux:*:*)
920 echo ${UNAME_MACHINE}-unknown-linux-gnu
921 exit ;;
922 m68*:Linux:*:*)
923 echo ${UNAME_MACHINE}-unknown-linux-gnu
924 exit ;;
925 mips:Linux:*:* | mips64:Linux:*:*)
926 eval $set_cc_for_build
927 sed 's/^ //' << EOF >$dummy.c
928 #undef CPU
929 #undef ${UNAME_MACHINE}
930 #undef ${UNAME_MACHINE}el
931 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
932 CPU=${UNAME_MACHINE}el
933 #else
934 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
935 CPU=${UNAME_MACHINE}
936 #else
937 CPU=
938 #endif
939 #endif
940 EOF
941 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
942 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
943 ;;
944 or32:Linux:*:*)
945 echo or32-unknown-linux-gnu
946 exit ;;
947 padre:Linux:*:*)
948 echo sparc-unknown-linux-gnu
949 exit ;;
950 parisc64:Linux:*:* | hppa64:Linux:*:*)
951 echo hppa64-unknown-linux-gnu
952 exit ;;
953 parisc:Linux:*:* | hppa:Linux:*:*)
954 # Look for CPU level
955 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
956 PA7*) echo hppa1.1-unknown-linux-gnu ;;
957 PA8*) echo hppa2.0-unknown-linux-gnu ;;
958 *) echo hppa-unknown-linux-gnu ;;
959 esac
960 exit ;;
961 ppc64:Linux:*:*)
962 echo powerpc64-unknown-linux-gnu
963 exit ;;
964 ppc:Linux:*:*)
965 echo powerpc-unknown-linux-gnu
966 exit ;;
967 s390:Linux:*:* | s390x:Linux:*:*)
968 echo ${UNAME_MACHINE}-ibm-linux
969 exit ;;
970 sh64*:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-gnu
972 exit ;;
973 sh*:Linux:*:*)
974 echo ${UNAME_MACHINE}-unknown-linux-gnu
975 exit ;;
976 sparc:Linux:*:* | sparc64:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-gnu
978 exit ;;
979 tile*:Linux:*:*)
980 echo ${UNAME_MACHINE}-tilera-linux-gnu
981 exit ;;
982 vax:Linux:*:*)
983 echo ${UNAME_MACHINE}-dec-linux-gnu
984 exit ;;
985 x86_64:Linux:*:*)
986 echo x86_64-unknown-linux-gnu
987 exit ;;
988 xtensa*:Linux:*:*)
989 echo ${UNAME_MACHINE}-unknown-linux-gnu
990 exit ;;
991 i*86:DYNIX/ptx:4*:*)
992 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
993 # earlier versions are messed up and put the nodename in both
994 # sysname and nodename.
995 echo i386-sequent-sysv4
996 exit ;;
997 i*86:UNIX_SV:4.2MP:2.*)
998 # Unixware is an offshoot of SVR4, but it has its own version
999 # number series starting with 2...
1000 # I am not positive that other SVR4 systems won't match this,
1001 # I just have to hope. -- rms.
1002 # Use sysv4.2uw... so that sysv4* matches it.
1003 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1004 exit ;;
1005 i*86:OS/2:*:*)
1006 # If we were able to find `uname', then EMX Unix compatibility
1007 # is probably installed.
1008 echo ${UNAME_MACHINE}-pc-os2-emx
1009 exit ;;
1010 i*86:XTS-300:*:STOP)
1011 echo ${UNAME_MACHINE}-unknown-stop
1012 exit ;;
1013 i*86:atheos:*:*)
1014 echo ${UNAME_MACHINE}-unknown-atheos
1015 exit ;;
1016 i*86:syllable:*:*)
1017 echo ${UNAME_MACHINE}-pc-syllable
1018 exit ;;
1019 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1020 echo i386-unknown-lynxos${UNAME_RELEASE}
1021 exit ;;
1022 i*86:*DOS:*:*)
1023 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1024 exit ;;
1025 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1026 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1027 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1028 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1029 else
1030 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1031 fi
1032 exit ;;
1033 i*86:*:5:[678]*)
1034 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1035 case `/bin/uname -X | grep "^Machine"` in
1036 *486*) UNAME_MACHINE=i486 ;;
1037 *Pentium) UNAME_MACHINE=i586 ;;
1038 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1039 esac
1040 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1041 exit ;;
1042 i*86:*:3.2:*)
1043 if test -f /usr/options/cb.name; then
1044 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1045 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1046 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1047 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1048 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1049 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1050 && UNAME_MACHINE=i586
1051 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1052 && UNAME_MACHINE=i686
1053 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1054 && UNAME_MACHINE=i686
1055 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1056 else
1057 echo ${UNAME_MACHINE}-pc-sysv32
1058 fi
1059 exit ;;
1060 pc:*:*:*)
1061 # Left here for compatibility:
1062 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1063 # the processor, so we play safe by assuming i586.
1064 # Note: whatever this is, it MUST be the same as what config.sub
1065 # prints for the "djgpp" host, or else GDB configury will decide that
1066 # this is a cross-build.
1067 echo i586-pc-msdosdjgpp
1068 exit ;;
1069 Intel:Mach:3*:*)
1070 echo i386-pc-mach3
1071 exit ;;
1072 paragon:*:*:*)
1073 echo i860-intel-osf1
1074 exit ;;
1075 i860:*:4.*:*) # i860-SVR4
1076 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1077 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1078 else # Add other i860-SVR4 vendors below as they are discovered.
1079 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1080 fi
1081 exit ;;
1082 mini*:CTIX:SYS*5:*)
1083 # "miniframe"
1084 echo m68010-convergent-sysv
1085 exit ;;
1086 mc68k:UNIX:SYSTEM5:3.51m)
1087 echo m68k-convergent-sysv
1088 exit ;;
1089 M680?0:D-NIX:5.3:*)
1090 echo m68k-diab-dnix
1091 exit ;;
1092 M68*:*:R3V[5678]*:*)
1093 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1094 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)
1095 OS_REL=''
1096 test -r /etc/.relid \
1097 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1098 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1099 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1100 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1101 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1102 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1103 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1104 && { echo i486-ncr-sysv4; exit; } ;;
1105 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1106 OS_REL='.3'
1107 test -r /etc/.relid \
1108 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1109 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1110 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1111 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1112 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1113 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1114 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1115 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1116 echo m68k-unknown-lynxos${UNAME_RELEASE}
1117 exit ;;
1118 mc68030:UNIX_System_V:4.*:*)
1119 echo m68k-atari-sysv4
1120 exit ;;
1121 TSUNAMI:LynxOS:2.*:*)
1122 echo sparc-unknown-lynxos${UNAME_RELEASE}
1123 exit ;;
1124 rs6000:LynxOS:2.*:*)
1125 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1126 exit ;;
1127 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1128 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1129 exit ;;
1130 SM[BE]S:UNIX_SV:*:*)
1131 echo mips-dde-sysv${UNAME_RELEASE}
1132 exit ;;
1133 RM*:ReliantUNIX-*:*:*)
1134 echo mips-sni-sysv4
1135 exit ;;
1136 RM*:SINIX-*:*:*)
1137 echo mips-sni-sysv4
1138 exit ;;
1139 *:SINIX-*:*:*)
1140 if uname -p 2>/dev/null >/dev/null ; then
1141 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1142 echo ${UNAME_MACHINE}-sni-sysv4
1143 else
1144 echo ns32k-sni-sysv
1145 fi
1146 exit ;;
1147 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1148 # says <Richard.M.Bartel@ccMail.Census.GOV>
1149 echo i586-unisys-sysv4
1150 exit ;;
1151 *:UNIX_System_V:4*:FTX*)
1152 # From Gerald Hewes <hewes@openmarket.com>.
1153 # How about differentiating between stratus architectures? -djm
1154 echo hppa1.1-stratus-sysv4
1155 exit ;;
1156 *:*:*:FTX*)
1157 # From seanf@swdc.stratus.com.
1158 echo i860-stratus-sysv4
1159 exit ;;
1160 i*86:VOS:*:*)
1161 # From Paul.Green@stratus.com.
1162 echo ${UNAME_MACHINE}-stratus-vos
1163 exit ;;
1164 *:VOS:*:*)
1165 # From Paul.Green@stratus.com.
1166 echo hppa1.1-stratus-vos
1167 exit ;;
1168 mc68*:A/UX:*:*)
1169 echo m68k-apple-aux${UNAME_RELEASE}
1170 exit ;;
1171 news*:NEWS-OS:6*:*)
1172 echo mips-sony-newsos6
1173 exit ;;
1174 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1175 if [ -d /usr/nec ]; then
1176 echo mips-nec-sysv${UNAME_RELEASE}
1177 else
1178 echo mips-unknown-sysv${UNAME_RELEASE}
1179 fi
1180 exit ;;
1181 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1182 echo powerpc-be-beos
1183 exit ;;
1184 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1185 echo powerpc-apple-beos
1186 exit ;;
1187 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1188 echo i586-pc-beos
1189 exit ;;
1190 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1191 echo i586-pc-haiku
1192 exit ;;
1193 SX-4:SUPER-UX:*:*)
1194 echo sx4-nec-superux${UNAME_RELEASE}
1195 exit ;;
1196 SX-5:SUPER-UX:*:*)
1197 echo sx5-nec-superux${UNAME_RELEASE}
1198 exit ;;
1199 SX-6:SUPER-UX:*:*)
1200 echo sx6-nec-superux${UNAME_RELEASE}
1201 exit ;;
1202 SX-7:SUPER-UX:*:*)
1203 echo sx7-nec-superux${UNAME_RELEASE}
1204 exit ;;
1205 SX-8:SUPER-UX:*:*)
1206 echo sx8-nec-superux${UNAME_RELEASE}
1207 exit ;;
1208 SX-8R:SUPER-UX:*:*)
1209 echo sx8r-nec-superux${UNAME_RELEASE}
1210 exit ;;
1211 Power*:Rhapsody:*:*)
1212 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1213 exit ;;
1214 *:Rhapsody:*:*)
1215 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1216 exit ;;
1217 *:Darwin:*:*)
1218 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1219 case $UNAME_PROCESSOR in
1220 i386)
1221 eval $set_cc_for_build
1222 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1223 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1224 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1225 grep IS_64BIT_ARCH >/dev/null
1226 then
1227 UNAME_PROCESSOR="x86_64"
1228 fi
1229 fi ;;
1230 unknown) UNAME_PROCESSOR=powerpc ;;
1231 esac
1232 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1233 exit ;;
1234 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1235 UNAME_PROCESSOR=`uname -p`
1236 if test "$UNAME_PROCESSOR" = "x86"; then
1237 UNAME_PROCESSOR=i386
1238 UNAME_MACHINE=pc
1239 fi
1240 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1241 exit ;;
1242 *:QNX:*:4*)
1243 echo i386-pc-qnx
1244 exit ;;
1245 NEO-?:NONSTOP_KERNEL:*:*)
1246 echo neo-tandem-nsk${UNAME_RELEASE}
1247 exit ;;
1248 NSE-?:NONSTOP_KERNEL:*:*)
1249 echo nse-tandem-nsk${UNAME_RELEASE}
1250 exit ;;
1251 NSR-?:NONSTOP_KERNEL:*:*)
1252 echo nsr-tandem-nsk${UNAME_RELEASE}
1253 exit ;;
1254 *:NonStop-UX:*:*)
1255 echo mips-compaq-nonstopux
1256 exit ;;
1257 BS2000:POSIX*:*:*)
1258 echo bs2000-siemens-sysv
1259 exit ;;
1260 DS/*:UNIX_System_V:*:*)
1261 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1262 exit ;;
1263 *:Plan9:*:*)
1264 # "uname -m" is not consistent, so use $cputype instead. 386
1265 # is converted to i386 for consistency with other x86
1266 # operating systems.
1267 if test "$cputype" = "386"; then
1268 UNAME_MACHINE=i386
1269 else
1270 UNAME_MACHINE="$cputype"
1271 fi
1272 echo ${UNAME_MACHINE}-unknown-plan9
1273 exit ;;
1274 *:TOPS-10:*:*)
1275 echo pdp10-unknown-tops10
1276 exit ;;
1277 *:TENEX:*:*)
1278 echo pdp10-unknown-tenex
1279 exit ;;
1280 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1281 echo pdp10-dec-tops20
1282 exit ;;
1283 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1284 echo pdp10-xkl-tops20
1285 exit ;;
1286 *:TOPS-20:*:*)
1287 echo pdp10-unknown-tops20
1288 exit ;;
1289 *:ITS:*:*)
1290 echo pdp10-unknown-its
1291 exit ;;
1292 SEI:*:*:SEIUX)
1293 echo mips-sei-seiux${UNAME_RELEASE}
1294 exit ;;
1295 *:DragonFly:*:*)
1296 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1297 exit ;;
1298 *:*VMS:*:*)
1299 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1300 case "${UNAME_MACHINE}" in
1301 A*) echo alpha-dec-vms ; exit ;;
1302 I*) echo ia64-dec-vms ; exit ;;
1303 V*) echo vax-dec-vms ; exit ;;
1304 esac ;;
1305 *:XENIX:*:SysV)
1306 echo i386-pc-xenix
1307 exit ;;
1308 i*86:skyos:*:*)
1309 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1310 exit ;;
1311 i*86:rdos:*:*)
1312 echo ${UNAME_MACHINE}-pc-rdos
1313 exit ;;
1314 i*86:AROS:*:*)
1315 echo ${UNAME_MACHINE}-pc-aros
1316 exit ;;
1317 esac
1318
1319 #echo '(No uname command or uname output not recognized.)' 1>&2
1320 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1321
1322 eval $set_cc_for_build
1323 cat >$dummy.c <<EOF
1324 #ifdef _SEQUENT_
1325 # include <sys/types.h>
1326 # include <sys/utsname.h>
1327 #endif
1328 main ()
1329 {
1330 #if defined (sony)
1331 #if defined (MIPSEB)
1332 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1333 I don't know.... */
1334 printf ("mips-sony-bsd\n"); exit (0);
1335 #else
1336 #include <sys/param.h>
1337 printf ("m68k-sony-newsos%s\n",
1338 #ifdef NEWSOS4
1339 "4"
1340 #else
1341 ""
1342 #endif
1343 ); exit (0);
1344 #endif
1345 #endif
1346
1347 #if defined (__arm) && defined (__acorn) && defined (__unix)
1348 printf ("arm-acorn-riscix\n"); exit (0);
1349 #endif
1350
1351 #if defined (hp300) && !defined (hpux)
1352 printf ("m68k-hp-bsd\n"); exit (0);
1353 #endif
1354
1355 #if defined (NeXT)
1356 #if !defined (__ARCHITECTURE__)
1357 #define __ARCHITECTURE__ "m68k"
1358 #endif
1359 int version;
1360 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1361 if (version < 4)
1362 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1363 else
1364 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1365 exit (0);
1366 #endif
1367
1368 #if defined (MULTIMAX) || defined (n16)
1369 #if defined (UMAXV)
1370 printf ("ns32k-encore-sysv\n"); exit (0);
1371 #else
1372 #if defined (CMU)
1373 printf ("ns32k-encore-mach\n"); exit (0);
1374 #else
1375 printf ("ns32k-encore-bsd\n"); exit (0);
1376 #endif
1377 #endif
1378 #endif
1379
1380 #if defined (__386BSD__)
1381 printf ("i386-pc-bsd\n"); exit (0);
1382 #endif
1383
1384 #if defined (sequent)
1385 #if defined (i386)
1386 printf ("i386-sequent-dynix\n"); exit (0);
1387 #endif
1388 #if defined (ns32000)
1389 printf ("ns32k-sequent-dynix\n"); exit (0);
1390 #endif
1391 #endif
1392
1393 #if defined (_SEQUENT_)
1394 struct utsname un;
1395
1396 uname(&un);
1397
1398 if (strncmp(un.version, "V2", 2) == 0) {
1399 printf ("i386-sequent-ptx2\n"); exit (0);
1400 }
1401 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1402 printf ("i386-sequent-ptx1\n"); exit (0);
1403 }
1404 printf ("i386-sequent-ptx\n"); exit (0);
1405
1406 #endif
1407
1408 #if defined (vax)
1409 # if !defined (ultrix)
1410 # include <sys/param.h>
1411 # if defined (BSD)
1412 # if BSD == 43
1413 printf ("vax-dec-bsd4.3\n"); exit (0);
1414 # else
1415 # if BSD == 199006
1416 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1417 # else
1418 printf ("vax-dec-bsd\n"); exit (0);
1419 # endif
1420 # endif
1421 # else
1422 printf ("vax-dec-bsd\n"); exit (0);
1423 # endif
1424 # else
1425 printf ("vax-dec-ultrix\n"); exit (0);
1426 # endif
1427 #endif
1428
1429 #if defined (alliant) && defined (i860)
1430 printf ("i860-alliant-bsd\n"); exit (0);
1431 #endif
1432
1433 exit (1);
1434 }
1435 EOF
1436
1437 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1438 { echo "$SYSTEM_NAME"; exit; }
1439
1440 # Apollos put the system type in the environment.
1441
1442 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1443
1444 # Convex versions that predate uname can use getsysinfo(1)
1445
1446 if [ -x /usr/convex/getsysinfo ]
1447 then
1448 case `getsysinfo -f cpu_type` in
1449 c1*)
1450 echo c1-convex-bsd
1451 exit ;;
1452 c2*)
1453 if getsysinfo -f scalar_acc
1454 then echo c32-convex-bsd
1455 else echo c2-convex-bsd
1456 fi
1457 exit ;;
1458 c34*)
1459 echo c34-convex-bsd
1460 exit ;;
1461 c38*)
1462 echo c38-convex-bsd
1463 exit ;;
1464 c4*)
1465 echo c4-convex-bsd
1466 exit ;;
1467 esac
1468 fi
1469
1470 cat >&2 <<EOF
1471 $0: unable to guess system type
1472
1473 This script, last modified $timestamp, has failed to recognize
1474 the operating system you are using. It is advised that you
1475 download the most up to date version of the config scripts from
1476
1477 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1478 and
1479 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1480
1481 If the version you run ($0) is already up to date, please
1482 send the following data and any information you think might be
1483 pertinent to <config-patches@gnu.org> in order to provide the needed
1484 information to handle your system.
1485
1486 config.guess timestamp = $timestamp
1487
1488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1492
1493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1494 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1495
1496 hostinfo = `(hostinfo) 2>/dev/null`
1497 /bin/universe = `(/bin/universe) 2>/dev/null`
1498 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1499 /bin/arch = `(/bin/arch) 2>/dev/null`
1500 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1502
1503 UNAME_MACHINE = ${UNAME_MACHINE}
1504 UNAME_RELEASE = ${UNAME_RELEASE}
1505 UNAME_SYSTEM = ${UNAME_SYSTEM}
1506 UNAME_VERSION = ${UNAME_VERSION}
1507 EOF
1508
1509 exit 1
1510
1511 # Local variables:
1512 # eval: (add-hook 'write-file-hooks 'time-stamp)
1513 # time-stamp-start: "timestamp='"
1514 # time-stamp-format: "%:y-%02m-%02d"
1515 # time-stamp-end: "'"
1516 # 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-2010 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 _LT_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* | cegcc*)
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 ecc*)
79 wl='-Wl,'
80 ;;
81 icc* | ifort*)
82 wl='-Wl,'
83 ;;
84 lf95*)
85 wl='-Wl,'
86 ;;
87 pgcc | pgf77 | pgf90)
88 wl='-Wl,'
89 ;;
90 ccc*)
91 wl='-Wl,'
92 ;;
93 como)
94 wl='-lopt='
95 ;;
96 *)
97 case `$CC -V 2>&1 | sed 5q` in
98 *Sun\ C*)
99 wl='-Wl,'
100 ;;
101 esac
102 ;;
103 esac
104 ;;
105 osf3* | osf4* | osf5*)
106 wl='-Wl,'
107 ;;
108 rdos*)
109 ;;
110 solaris*)
111 wl='-Wl,'
112 ;;
113 sunos4*)
114 wl='-Qoption ld '
115 ;;
116 sysv4 | sysv4.2uw2* | sysv4.3*)
117 wl='-Wl,'
118 ;;
119 sysv4*MP*)
120 ;;
121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
122 wl='-Wl,'
123 ;;
124 unicos*)
125 wl='-Wl,'
126 ;;
127 uts4*)
128 ;;
129 esac
130 fi
131
132 # Code taken from libtool.m4's _LT_LINKER_SHLIBS.
133
134 hardcode_libdir_flag_spec=
135 hardcode_libdir_separator=
136 hardcode_direct=no
137 hardcode_minus_L=no
138
139 case "$host_os" in
140 cygwin* | mingw* | pw32* | cegcc*)
141 # FIXME: the MSVC++ port hasn't been tested in a loooong time
142 # When not using gcc, we currently assume that we are using
143 # Microsoft Visual C++.
144 if test "$GCC" != yes; then
145 with_gnu_ld=no
146 fi
147 ;;
148 interix*)
149 # we just hope/assume this is gcc and not c89 (= MSVC++)
150 with_gnu_ld=yes
151 ;;
152 openbsd*)
153 with_gnu_ld=no
154 ;;
155 esac
156
157 ld_shlibs=yes
158 if test "$with_gnu_ld" = yes; then
159 # Set some defaults for GNU ld with shared library support. These
160 # are reset later if shared libraries are not supported. Putting them
161 # here allows them to be overridden if necessary.
162 # Unlike libtool, we use -rpath here, not --rpath, since the documented
163 # option of GNU ld is called -rpath, not --rpath.
164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
165 case "$host_os" in
166 aix[3-9]*)
167 # On AIX/PPC, the GNU linker is very broken
168 if test "$host_cpu" != ia64; then
169 ld_shlibs=no
170 fi
171 ;;
172 amigaos*)
173 hardcode_libdir_flag_spec='-L$libdir'
174 hardcode_minus_L=yes
175 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
176 # that the semantics of dynamic libraries on AmigaOS, at least up
177 # to version 4, is to share data among multiple programs linked
178 # with the same dynamic library. Since this doesn't match the
179 # behavior of shared libraries on other platforms, we cannot use
180 # them.
181 ld_shlibs=no
182 ;;
183 beos*)
184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
185 :
186 else
187 ld_shlibs=no
188 fi
189 ;;
190 cygwin* | mingw* | pw32* | cegcc*)
191 # hardcode_libdir_flag_spec is actually meaningless, as there is
192 # no search path for DLLs.
193 hardcode_libdir_flag_spec='-L$libdir'
194 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
195 :
196 else
197 ld_shlibs=no
198 fi
199 ;;
200 interix[3-9]*)
201 hardcode_direct=no
202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
203 ;;
204 gnu* | linux* | k*bsd*-gnu)
205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
206 :
207 else
208 ld_shlibs=no
209 fi
210 ;;
211 netbsd*)
212 ;;
213 solaris*)
214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
215 ld_shlibs=no
216 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
217 :
218 else
219 ld_shlibs=no
220 fi
221 ;;
222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
223 case `$LD -v 2>&1` in
224 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
225 ld_shlibs=no
226 ;;
227 *)
228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
229 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
230 else
231 ld_shlibs=no
232 fi
233 ;;
234 esac
235 ;;
236 sunos4*)
237 hardcode_direct=yes
238 ;;
239 *)
240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
241 :
242 else
243 ld_shlibs=no
244 fi
245 ;;
246 esac
247 if test "$ld_shlibs" = no; then
248 hardcode_libdir_flag_spec=
249 fi
250 else
251 case "$host_os" in
252 aix3*)
253 # Note: this linker hardcodes the directories in LIBPATH if there
254 # are no directories specified by -L.
255 hardcode_minus_L=yes
256 if test "$GCC" = yes; then
257 # Neither direct hardcoding nor static linking is supported with a
258 # broken collect2.
259 hardcode_direct=unsupported
260 fi
261 ;;
262 aix[4-9]*)
263 if test "$host_cpu" = ia64; then
264 # On IA64, the linker does run time linking by default, so we don't
265 # have to do anything special.
266 aix_use_runtimelinking=no
267 else
268 aix_use_runtimelinking=no
269 # Test if we are trying to use run time linking or normal
270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
271 # need to do runtime linking.
272 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
273 for ld_flag in $LDFLAGS; do
274 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
275 aix_use_runtimelinking=yes
276 break
277 fi
278 done
279 ;;
280 esac
281 fi
282 hardcode_direct=yes
283 hardcode_libdir_separator=':'
284 if test "$GCC" = yes; then
285 case $host_os in aix4.[012]|aix4.[012].*)
286 collect2name=`${CC} -print-prog-name=collect2`
287 if test -f "$collect2name" && \
288 strings "$collect2name" | grep resolve_lib_name >/dev/null
289 then
290 # We have reworked collect2
291 :
292 else
293 # We have old collect2
294 hardcode_direct=unsupported
295 hardcode_minus_L=yes
296 hardcode_libdir_flag_spec='-L$libdir'
297 hardcode_libdir_separator=
298 fi
299 ;;
300 esac
301 fi
302 # Begin _LT_AC_SYS_LIBPATH_AIX.
303 echo 'int main () { return 0; }' > conftest.c
304 ${CC} ${LDFLAGS} conftest.c -o conftest
305 aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
306 }'`
307 if test -z "$aix_libpath"; then
308 aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
309 }'`
310 fi
311 if test -z "$aix_libpath"; then
312 aix_libpath="/usr/lib:/lib"
313 fi
314 rm -f conftest.c conftest
315 # End _LT_AC_SYS_LIBPATH_AIX.
316 if test "$aix_use_runtimelinking" = yes; then
317 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
318 else
319 if test "$host_cpu" = ia64; then
320 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
321 else
322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
323 fi
324 fi
325 ;;
326 amigaos*)
327 hardcode_libdir_flag_spec='-L$libdir'
328 hardcode_minus_L=yes
329 # see comment about different semantics on the GNU ld section
330 ld_shlibs=no
331 ;;
332 bsdi[45]*)
333 ;;
334 cygwin* | mingw* | pw32* | cegcc*)
335 # When not using gcc, we currently assume that we are using
336 # Microsoft Visual C++.
337 # hardcode_libdir_flag_spec is actually meaningless, as there is
338 # no search path for DLLs.
339 hardcode_libdir_flag_spec=' '
340 libext=lib
341 ;;
342 darwin* | rhapsody*)
343 hardcode_direct=no
344 if test "$GCC" = yes ; then
345 :
346 else
347 case $cc_basename in
348 xlc*)
349 ;;
350 *)
351 ld_shlibs=no
352 ;;
353 esac
354 fi
355 ;;
356 dgux*)
357 hardcode_libdir_flag_spec='-L$libdir'
358 ;;
359 freebsd1*)
360 ld_shlibs=no
361 ;;
362 freebsd2.2*)
363 hardcode_libdir_flag_spec='-R$libdir'
364 hardcode_direct=yes
365 ;;
366 freebsd2*)
367 hardcode_direct=yes
368 hardcode_minus_L=yes
369 ;;
370 freebsd* | dragonfly*)
371 hardcode_libdir_flag_spec='-R$libdir'
372 hardcode_direct=yes
373 ;;
374 hpux9*)
375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
376 hardcode_libdir_separator=:
377 hardcode_direct=yes
378 # hardcode_minus_L: Not really in the search PATH,
379 # but as the default location of the library.
380 hardcode_minus_L=yes
381 ;;
382 hpux10*)
383 if test "$with_gnu_ld" = no; then
384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
385 hardcode_libdir_separator=:
386 hardcode_direct=yes
387 # hardcode_minus_L: Not really in the search PATH,
388 # but as the default location of the library.
389 hardcode_minus_L=yes
390 fi
391 ;;
392 hpux11*)
393 if test "$with_gnu_ld" = no; then
394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
395 hardcode_libdir_separator=:
396 case $host_cpu in
397 hppa*64*|ia64*)
398 hardcode_direct=no
399 ;;
400 *)
401 hardcode_direct=yes
402 # hardcode_minus_L: Not really in the search PATH,
403 # but as the default location of the library.
404 hardcode_minus_L=yes
405 ;;
406 esac
407 fi
408 ;;
409 irix5* | irix6* | nonstopux*)
410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
411 hardcode_libdir_separator=:
412 ;;
413 netbsd*)
414 hardcode_libdir_flag_spec='-R$libdir'
415 hardcode_direct=yes
416 ;;
417 newsos6)
418 hardcode_direct=yes
419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
420 hardcode_libdir_separator=:
421 ;;
422 openbsd*)
423 if test -f /usr/libexec/ld.so; then
424 hardcode_direct=yes
425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
427 else
428 case "$host_os" in
429 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
430 hardcode_libdir_flag_spec='-R$libdir'
431 ;;
432 *)
433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
434 ;;
435 esac
436 fi
437 else
438 ld_shlibs=no
439 fi
440 ;;
441 os2*)
442 hardcode_libdir_flag_spec='-L$libdir'
443 hardcode_minus_L=yes
444 ;;
445 osf3*)
446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
447 hardcode_libdir_separator=:
448 ;;
449 osf4* | osf5*)
450 if test "$GCC" = yes; then
451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
452 else
453 # Both cc and cxx compiler support -rpath directly
454 hardcode_libdir_flag_spec='-rpath $libdir'
455 fi
456 hardcode_libdir_separator=:
457 ;;
458 solaris*)
459 hardcode_libdir_flag_spec='-R$libdir'
460 ;;
461 sunos4*)
462 hardcode_libdir_flag_spec='-L$libdir'
463 hardcode_direct=yes
464 hardcode_minus_L=yes
465 ;;
466 sysv4)
467 case $host_vendor in
468 sni)
469 hardcode_direct=yes # is this really true???
470 ;;
471 siemens)
472 hardcode_direct=no
473 ;;
474 motorola)
475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
476 ;;
477 esac
478 ;;
479 sysv4.3*)
480 ;;
481 sysv4*MP*)
482 if test -d /usr/nec; then
483 ld_shlibs=yes
484 fi
485 ;;
486 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
487 ;;
488 sysv5* | sco3.2v5* | sco5v6*)
489 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
490 hardcode_libdir_separator=':'
491 ;;
492 uts4*)
493 hardcode_libdir_flag_spec='-L$libdir'
494 ;;
495 *)
496 ld_shlibs=no
497 ;;
498 esac
499 fi
500
501 # Check dynamic linker characteristics
502 # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
503 # Unlike libtool.m4, here we don't care about _all_ names of the library, but
504 # only about the one the linker finds when passed -lNAME. This is the last
505 # element of library_names_spec in libtool.m4, or possibly two of them if the
506 # linker has special search rules.
507 library_names_spec= # the last element of library_names_spec in libtool.m4
508 libname_spec='lib$name'
509 case "$host_os" in
510 aix3*)
511 library_names_spec='$libname.a'
512 ;;
513 aix[4-9]*)
514 library_names_spec='$libname$shrext'
515 ;;
516 amigaos*)
517 library_names_spec='$libname.a'
518 ;;
519 beos*)
520 library_names_spec='$libname$shrext'
521 ;;
522 bsdi[45]*)
523 library_names_spec='$libname$shrext'
524 ;;
525 cygwin* | mingw* | pw32* | cegcc*)
526 shrext=.dll
527 library_names_spec='$libname.dll.a $libname.lib'
528 ;;
529 darwin* | rhapsody*)
530 shrext=.dylib
531 library_names_spec='$libname$shrext'
532 ;;
533 dgux*)
534 library_names_spec='$libname$shrext'
535 ;;
536 freebsd1*)
537 ;;
538 freebsd* | dragonfly*)
539 case "$host_os" in
540 freebsd[123]*)
541 library_names_spec='$libname$shrext$versuffix' ;;
542 *)
543 library_names_spec='$libname$shrext' ;;
544 esac
545 ;;
546 gnu*)
547 library_names_spec='$libname$shrext'
548 ;;
549 hpux9* | hpux10* | hpux11*)
550 case $host_cpu in
551 ia64*)
552 shrext=.so
553 ;;
554 hppa*64*)
555 shrext=.sl
556 ;;
557 *)
558 shrext=.sl
559 ;;
560 esac
561 library_names_spec='$libname$shrext'
562 ;;
563 interix[3-9]*)
564 library_names_spec='$libname$shrext'
565 ;;
566 irix5* | irix6* | nonstopux*)
567 library_names_spec='$libname$shrext'
568 case "$host_os" in
569 irix5* | nonstopux*)
570 libsuff= shlibsuff=
571 ;;
572 *)
573 case $LD in
574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
577 *) libsuff= shlibsuff= ;;
578 esac
579 ;;
580 esac
581 ;;
582 linux*oldld* | linux*aout* | linux*coff*)
583 ;;
584 linux* | k*bsd*-gnu)
585 library_names_spec='$libname$shrext'
586 ;;
587 knetbsd*-gnu)
588 library_names_spec='$libname$shrext'
589 ;;
590 netbsd*)
591 library_names_spec='$libname$shrext'
592 ;;
593 newsos6)
594 library_names_spec='$libname$shrext'
595 ;;
596 nto-qnx*)
597 library_names_spec='$libname$shrext'
598 ;;
599 openbsd*)
600 library_names_spec='$libname$shrext$versuffix'
601 ;;
602 os2*)
603 libname_spec='$name'
604 shrext=.dll
605 library_names_spec='$libname.a'
606 ;;
607 osf3* | osf4* | osf5*)
608 library_names_spec='$libname$shrext'
609 ;;
610 rdos*)
611 ;;
612 solaris*)
613 library_names_spec='$libname$shrext'
614 ;;
615 sunos4*)
616 library_names_spec='$libname$shrext$versuffix'
617 ;;
618 sysv4 | sysv4.3*)
619 library_names_spec='$libname$shrext'
620 ;;
621 sysv4*MP*)
622 library_names_spec='$libname$shrext'
623 ;;
624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
625 library_names_spec='$libname$shrext'
626 ;;
627 uts4*)
628 library_names_spec='$libname$shrext'
629 ;;
630 esac
631
632 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
633 escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
634 shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
635 escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
636 escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
637 escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
638
639 LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
640
641 # How to pass a linker flag through the compiler.
642 wl="$escaped_wl"
643
644 # Static library suffix (normally "a").
645 libext="$libext"
646
647 # Shared library suffix (normally "so").
648 shlibext="$shlibext"
649
650 # Format of library name prefix.
651 libname_spec="$escaped_libname_spec"
652
653 # Library names that the linker finds when passed -lNAME.
654 library_names_spec="$escaped_library_names_spec"
655
656 # Flag to hardcode \$libdir into a binary during linking.
657 # This must work even if \$libdir does not exist.
658 hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
659
660 # Whether we need a single -rpath flag with a separated argument.
661 hardcode_libdir_separator="$hardcode_libdir_separator"
662
663 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
664 # resulting binary.
665 hardcode_direct="$hardcode_direct"
666
667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
668 # resulting binary.
669 hardcode_minus_L="$hardcode_minus_L"
670
671 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, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-03-23'
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 GNU 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 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
43
44 # This file is supposed to be the same for all GNU packages
45 # and recognize all the CPU types, system types and aliases
46 # that are meaningful with *any* GNU software.
47 # Each package is responsible for reporting which valid configurations
48 # it does not support. The user should be able to distinguish
49 # a failure to support a valid configuration from a meaningless
50 # configuration.
51
52 # The goal of this file is to map all the various variations of a given
53 # machine specification into a single specification in the form:
54 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
55 # or in some cases, the newer four-part form:
56 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
57 # It is wrong to echo any other type of specification.
58
59 me=`echo "$0" | sed -e 's,.*/,,'`
60
61 usage="\
62 Usage: $0 [OPTION] CPU-MFR-OPSYS
63 $0 [OPTION] ALIAS
64
65 Canonicalize a configuration name.
66
67 Operation modes:
68 -h, --help print this help, then exit
69 -t, --time-stamp print date of last modification, then exit
70 -v, --version print version number, then exit
71
72 Report bugs and patches to <config-patches@gnu.org>."
73
74 version="\
75 GNU config.sub ($timestamp)
76
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
79 Software Foundation, Inc.
80
81 This is free software; see the source for copying conditions. There is NO
82 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
84 help="
85 Try \`$me --help' for more information."
86
87 # Parse command line
88 while test $# -gt 0 ; do
89 case $1 in
90 --time-stamp | --time* | -t )
91 echo "$timestamp" ; exit ;;
92 --version | -v )
93 echo "$version" ; exit ;;
94 --help | --h* | -h )
95 echo "$usage"; exit ;;
96 -- ) # Stop option processing
97 shift; break ;;
98 - ) # Use stdin as input.
99 break ;;
100 -* )
101 echo "$me: invalid option $1$help"
102 exit 1 ;;
103
104 *local*)
105 # First pass through any local machine types.
106 echo $1
107 exit ;;
108
109 * )
110 break ;;
111 esac
112 done
113
114 case $# in
115 0) echo "$me: missing argument$help" >&2
116 exit 1;;
117 1) ;;
118 *) echo "$me: too many arguments$help" >&2
119 exit 1;;
120 esac
121
122 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
123 # Here we must recognize all the valid KERNEL-OS combinations.
124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125 case $maybe_os in
126 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \
130 storm-chaos* | os2-emx* | rtmk-nova*)
131 os=-$maybe_os
132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133 ;;
134 *)
135 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136 if [ $basic_machine != $1 ]
137 then os=`echo $1 | sed 's/.*-/-/'`
138 else os=; fi
139 ;;
140 esac
141
142 ### Let's recognize common machines as not being operating systems so
143 ### that things like config.sub decstation-3100 work. We also
144 ### recognize some manufacturers as not being operating systems, so we
145 ### can provide default operating systems below.
146 case $os in
147 -sun*os*)
148 # Prevent following clause from handling this invalid input.
149 ;;
150 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
151 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
152 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156 -apple | -axis | -knuth | -cray | -microblaze)
157 os=
158 basic_machine=$1
159 ;;
160 -bluegene*)
161 os=-cnk
162 ;;
163 -sim | -cisco | -oki | -wec | -winbond)
164 os=
165 basic_machine=$1
166 ;;
167 -scout)
168 ;;
169 -wrs)
170 os=-vxworks
171 basic_machine=$1
172 ;;
173 -chorusos*)
174 os=-chorusos
175 basic_machine=$1
176 ;;
177 -chorusrdb)
178 os=-chorusrdb
179 basic_machine=$1
180 ;;
181 -hiux*)
182 os=-hiuxwe2
183 ;;
184 -sco6)
185 os=-sco5v6
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
188 -sco5)
189 os=-sco3.2v5
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191 ;;
192 -sco4)
193 os=-sco3.2v4
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco3.2.[4-9]*)
197 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199 ;;
200 -sco3.2v[4-9]*)
201 # Don't forget version if it is 3.2v4 or newer.
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 ;;
204 -sco5v6*)
205 # Don't forget version if it is 3.2v4 or newer.
206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 ;;
208 -sco*)
209 os=-sco3.2v2
210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 ;;
212 -udk*)
213 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
214 ;;
215 -isc)
216 os=-isc2.2
217 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -clix*)
220 basic_machine=clipper-intergraph
221 ;;
222 -isc*)
223 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -windowsnt*)
232 os=`echo $os | sed -e 's/windowsnt/winnt/'`
233 ;;
234 -psos*)
235 os=-psos
236 ;;
237 -mint | -mint[0-9]*)
238 basic_machine=m68k-atari
239 os=-mint
240 ;;
241 esac
242
243 # Decode aliases for certain CPU-COMPANY combinations.
244 case $basic_machine in
245 # Recognize the basic CPU types without company name.
246 # Some are omitted here because they have special meanings below.
247 1750a | 580 \
248 | a29k \
249 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251 | am33_2.0 \
252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
253 | bfin \
254 | c4x | clipper \
255 | d10v | d30v | dlx | dsp16xx \
256 | fido | fr30 | frv \
257 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
258 | i370 | i860 | i960 | ia64 \
259 | ip2k | iq2000 \
260 | lm32 \
261 | m32c | m32r | m32rle | m68000 | m68k | m88k \
262 | maxq | mb | microblaze | mcore | mep | metag \
263 | mips | mipsbe | mipseb | mipsel | mipsle \
264 | mips16 \
265 | mips64 | mips64el \
266 | mips64octeon | mips64octeonel \
267 | mips64orion | mips64orionel \
268 | mips64r5900 | mips64r5900el \
269 | mips64vr | mips64vrel \
270 | mips64vr4100 | mips64vr4100el \
271 | mips64vr4300 | mips64vr4300el \
272 | mips64vr5000 | mips64vr5000el \
273 | mips64vr5900 | mips64vr5900el \
274 | mipsisa32 | mipsisa32el \
275 | mipsisa32r2 | mipsisa32r2el \
276 | mipsisa64 | mipsisa64el \
277 | mipsisa64r2 | mipsisa64r2el \
278 | mipsisa64sb1 | mipsisa64sb1el \
279 | mipsisa64sr71k | mipsisa64sr71kel \
280 | mipstx39 | mipstx39el \
281 | mn10200 | mn10300 \
282 | moxie \
283 | mt \
284 | msp430 \
285 | nds32 | nds32le | nds32be \
286 | nios | nios2 \
287 | ns16k | ns32k \
288 | open8 \
289 | or32 \
290 | pdp10 | pdp11 | pj | pjl \
291 | powerpc | powerpc64 | powerpc64le | powerpcle \
292 | pyramid \
293 | rx \
294 | score \
295 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
296 | sh64 | sh64le \
297 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
298 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
299 | spu \
300 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
301 | ubicom32 \
302 | v850 | v850e \
303 | we32k \
304 | x86 | xc16x | xstormy16 | xtensa \
305 | z8k | z80)
306 basic_machine=$basic_machine-unknown
307 ;;
308 c54x)
309 basic_machine=tic54x-unknown
310 ;;
311 c55x)
312 basic_machine=tic55x-unknown
313 ;;
314 c6x)
315 basic_machine=tic6x-unknown
316 ;;
317 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
318 # Motorola 68HC11/12.
319 basic_machine=$basic_machine-unknown
320 os=-none
321 ;;
322 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
323 ;;
324 ms1)
325 basic_machine=mt-unknown
326 ;;
327
328 strongarm | thumb | xscale)
329 basic_machine=arm-unknown
330 ;;
331
332 xscaleeb)
333 basic_machine=armeb-unknown
334 ;;
335
336 xscaleel)
337 basic_machine=armel-unknown
338 ;;
339
340 # We use `pc' rather than `unknown'
341 # because (1) that's what they normally are, and
342 # (2) the word "unknown" tends to confuse beginning users.
343 i*86 | x86_64)
344 basic_machine=$basic_machine-pc
345 ;;
346 # Object if more than one company name word.
347 *-*-*)
348 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
349 exit 1
350 ;;
351 # Recognize the basic CPU types with company name.
352 580-* \
353 | a29k-* \
354 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
355 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
356 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
357 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
358 | avr-* | avr32-* \
359 | bfin-* | bs2000-* \
360 | c[123]* | c30-* | [cjt]90-* | c4x-* \
361 | clipper-* | craynv-* | cydra-* \
362 | d10v-* | d30v-* | dlx-* \
363 | elxsi-* \
364 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
365 | h8300-* | h8500-* \
366 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
367 | i*86-* | i860-* | i960-* | ia64-* \
368 | ip2k-* | iq2000-* \
369 | lm32-* \
370 | m32c-* | m32r-* | m32rle-* \
371 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
372 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
373 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
374 | mips16-* \
375 | mips64-* | mips64el-* \
376 | mips64octeon-* | mips64octeonel-* \
377 | mips64orion-* | mips64orionel-* \
378 | mips64r5900-* | mips64r5900el-* \
379 | mips64vr-* | mips64vrel-* \
380 | mips64vr4100-* | mips64vr4100el-* \
381 | mips64vr4300-* | mips64vr4300el-* \
382 | mips64vr5000-* | mips64vr5000el-* \
383 | mips64vr5900-* | mips64vr5900el-* \
384 | mipsisa32-* | mipsisa32el-* \
385 | mipsisa32r2-* | mipsisa32r2el-* \
386 | mipsisa64-* | mipsisa64el-* \
387 | mipsisa64r2-* | mipsisa64r2el-* \
388 | mipsisa64sb1-* | mipsisa64sb1el-* \
389 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
390 | mipstx39-* | mipstx39el-* \
391 | mmix-* \
392 | mt-* \
393 | msp430-* \
394 | nds32-* | nds32le-* | nds32be-* \
395 | nios-* | nios2-* \
396 | none-* | np1-* | ns16k-* | ns32k-* \
397 | open8-* \
398 | orion-* \
399 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
400 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
401 | pyramid-* \
402 | romp-* | rs6000-* | rx-* \
403 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
404 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
405 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
406 | sparclite-* \
407 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
408 | tahoe-* \
409 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
410 | tile-* | tilegx-* \
411 | tron-* \
412 | ubicom32-* \
413 | v850-* | v850e-* | vax-* \
414 | we32k-* \
415 | x86-* | x86_64-* | xc16x-* | xps100-* \
416 | xstormy16-* | xtensa*-* \
417 | ymp-* \
418 | z8k-* | z80-*)
419 ;;
420 # Recognize the basic CPU types without company name, with glob match.
421 xtensa*)
422 basic_machine=$basic_machine-unknown
423 ;;
424 # Recognize the various machine names and aliases which stand
425 # for a CPU type and a company and sometimes even an OS.
426 386bsd)
427 basic_machine=i386-unknown
428 os=-bsd
429 ;;
430 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
431 basic_machine=m68000-att
432 ;;
433 3b*)
434 basic_machine=we32k-att
435 ;;
436 a29khif)
437 basic_machine=a29k-amd
438 os=-udi
439 ;;
440 abacus)
441 basic_machine=abacus-unknown
442 ;;
443 adobe68k)
444 basic_machine=m68010-adobe
445 os=-scout
446 ;;
447 alliant | fx80)
448 basic_machine=fx80-alliant
449 ;;
450 altos | altos3068)
451 basic_machine=m68k-altos
452 ;;
453 am29k)
454 basic_machine=a29k-none
455 os=-bsd
456 ;;
457 amd64)
458 basic_machine=x86_64-pc
459 ;;
460 amd64-*)
461 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
462 ;;
463 amdahl)
464 basic_machine=580-amdahl
465 os=-sysv
466 ;;
467 amiga | amiga-*)
468 basic_machine=m68k-unknown
469 ;;
470 amigaos | amigados)
471 basic_machine=m68k-unknown
472 os=-amigaos
473 ;;
474 amigaunix | amix)
475 basic_machine=m68k-unknown
476 os=-sysv4
477 ;;
478 apollo68)
479 basic_machine=m68k-apollo
480 os=-sysv
481 ;;
482 apollo68bsd)
483 basic_machine=m68k-apollo
484 os=-bsd
485 ;;
486 aros)
487 basic_machine=i386-pc
488 os=-aros
489 ;;
490 aux)
491 basic_machine=m68k-apple
492 os=-aux
493 ;;
494 balance)
495 basic_machine=ns32k-sequent
496 os=-dynix
497 ;;
498 blackfin)
499 basic_machine=bfin-unknown
500 os=-linux
501 ;;
502 blackfin-*)
503 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
504 os=-linux
505 ;;
506 bluegene*)
507 basic_machine=powerpc-ibm
508 os=-cnk
509 ;;
510 c54x-*)
511 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
512 ;;
513 c55x-*)
514 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
515 ;;
516 c6x-*)
517 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
518 ;;
519 c90)
520 basic_machine=c90-cray
521 os=-unicos
522 ;;
523 cegcc)
524 basic_machine=arm-unknown
525 os=-cegcc
526 ;;
527 convex-c1)
528 basic_machine=c1-convex
529 os=-bsd
530 ;;
531 convex-c2)
532 basic_machine=c2-convex
533 os=-bsd
534 ;;
535 convex-c32)
536 basic_machine=c32-convex
537 os=-bsd
538 ;;
539 convex-c34)
540 basic_machine=c34-convex
541 os=-bsd
542 ;;
543 convex-c38)
544 basic_machine=c38-convex
545 os=-bsd
546 ;;
547 cray | j90)
548 basic_machine=j90-cray
549 os=-unicos
550 ;;
551 craynv)
552 basic_machine=craynv-cray
553 os=-unicosmp
554 ;;
555 cr16 | cr16-*)
556 basic_machine=cr16-unknown
557 os=-elf
558 ;;
559 crds | unos)
560 basic_machine=m68k-crds
561 ;;
562 crisv32 | crisv32-* | etraxfs*)
563 basic_machine=crisv32-axis
564 ;;
565 cris | cris-* | etrax*)
566 basic_machine=cris-axis
567 ;;
568 crx)
569 basic_machine=crx-unknown
570 os=-elf
571 ;;
572 da30 | da30-*)
573 basic_machine=m68k-da30
574 ;;
575 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
576 basic_machine=mips-dec
577 ;;
578 decsystem10* | dec10*)
579 basic_machine=pdp10-dec
580 os=-tops10
581 ;;
582 decsystem20* | dec20*)
583 basic_machine=pdp10-dec
584 os=-tops20
585 ;;
586 delta | 3300 | motorola-3300 | motorola-delta \
587 | 3300-motorola | delta-motorola)
588 basic_machine=m68k-motorola
589 ;;
590 delta88)
591 basic_machine=m88k-motorola
592 os=-sysv3
593 ;;
594 dicos)
595 basic_machine=i686-pc
596 os=-dicos
597 ;;
598 djgpp)
599 basic_machine=i586-pc
600 os=-msdosdjgpp
601 ;;
602 dpx20 | dpx20-*)
603 basic_machine=rs6000-bull
604 os=-bosx
605 ;;
606 dpx2* | dpx2*-bull)
607 basic_machine=m68k-bull
608 os=-sysv3
609 ;;
610 ebmon29k)
611 basic_machine=a29k-amd
612 os=-ebmon
613 ;;
614 elxsi)
615 basic_machine=elxsi-elxsi
616 os=-bsd
617 ;;
618 encore | umax | mmax)
619 basic_machine=ns32k-encore
620 ;;
621 es1800 | OSE68k | ose68k | ose | OSE)
622 basic_machine=m68k-ericsson
623 os=-ose
624 ;;
625 fx2800)
626 basic_machine=i860-alliant
627 ;;
628 genix)
629 basic_machine=ns32k-ns
630 ;;
631 gmicro)
632 basic_machine=tron-gmicro
633 os=-sysv
634 ;;
635 go32)
636 basic_machine=i386-pc
637 os=-go32
638 ;;
639 h3050r* | hiux*)
640 basic_machine=hppa1.1-hitachi
641 os=-hiuxwe2
642 ;;
643 h8300hms)
644 basic_machine=h8300-hitachi
645 os=-hms
646 ;;
647 h8300xray)
648 basic_machine=h8300-hitachi
649 os=-xray
650 ;;
651 h8500hms)
652 basic_machine=h8500-hitachi
653 os=-hms
654 ;;
655 harris)
656 basic_machine=m88k-harris
657 os=-sysv3
658 ;;
659 hp300-*)
660 basic_machine=m68k-hp
661 ;;
662 hp300bsd)
663 basic_machine=m68k-hp
664 os=-bsd
665 ;;
666 hp300hpux)
667 basic_machine=m68k-hp
668 os=-hpux
669 ;;
670 hp3k9[0-9][0-9] | hp9[0-9][0-9])
671 basic_machine=hppa1.0-hp
672 ;;
673 hp9k2[0-9][0-9] | hp9k31[0-9])
674 basic_machine=m68000-hp
675 ;;
676 hp9k3[2-9][0-9])
677 basic_machine=m68k-hp
678 ;;
679 hp9k6[0-9][0-9] | hp6[0-9][0-9])
680 basic_machine=hppa1.0-hp
681 ;;
682 hp9k7[0-79][0-9] | hp7[0-79][0-9])
683 basic_machine=hppa1.1-hp
684 ;;
685 hp9k78[0-9] | hp78[0-9])
686 # FIXME: really hppa2.0-hp
687 basic_machine=hppa1.1-hp
688 ;;
689 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
690 # FIXME: really hppa2.0-hp
691 basic_machine=hppa1.1-hp
692 ;;
693 hp9k8[0-9][13679] | hp8[0-9][13679])
694 basic_machine=hppa1.1-hp
695 ;;
696 hp9k8[0-9][0-9] | hp8[0-9][0-9])
697 basic_machine=hppa1.0-hp
698 ;;
699 hppa-next)
700 os=-nextstep3
701 ;;
702 hppaosf)
703 basic_machine=hppa1.1-hp
704 os=-osf
705 ;;
706 hppro)
707 basic_machine=hppa1.1-hp
708 os=-proelf
709 ;;
710 i370-ibm* | ibm*)
711 basic_machine=i370-ibm
712 ;;
713 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
714 i*86v32)
715 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
716 os=-sysv32
717 ;;
718 i*86v4*)
719 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
720 os=-sysv4
721 ;;
722 i*86v)
723 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
724 os=-sysv
725 ;;
726 i*86sol2)
727 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
728 os=-solaris2
729 ;;
730 i386mach)
731 basic_machine=i386-mach
732 os=-mach
733 ;;
734 i386-vsta | vsta)
735 basic_machine=i386-unknown
736 os=-vsta
737 ;;
738 iris | iris4d)
739 basic_machine=mips-sgi
740 case $os in
741 -irix*)
742 ;;
743 *)
744 os=-irix4
745 ;;
746 esac
747 ;;
748 isi68 | isi)
749 basic_machine=m68k-isi
750 os=-sysv
751 ;;
752 m68knommu)
753 basic_machine=m68k-unknown
754 os=-linux
755 ;;
756 m68knommu-*)
757 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
758 os=-linux
759 ;;
760 m88k-omron*)
761 basic_machine=m88k-omron
762 ;;
763 magnum | m3230)
764 basic_machine=mips-mips
765 os=-sysv
766 ;;
767 merlin)
768 basic_machine=ns32k-utek
769 os=-sysv
770 ;;
771 microblaze)
772 basic_machine=microblaze-xilinx
773 ;;
774 mingw32)
775 basic_machine=i386-pc
776 os=-mingw32
777 ;;
778 mingw32ce)
779 basic_machine=arm-unknown
780 os=-mingw32ce
781 ;;
782 miniframe)
783 basic_machine=m68000-convergent
784 ;;
785 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
786 basic_machine=m68k-atari
787 os=-mint
788 ;;
789 mips3*-*)
790 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
791 ;;
792 mips3*)
793 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
794 ;;
795 monitor)
796 basic_machine=m68k-rom68k
797 os=-coff
798 ;;
799 morphos)
800 basic_machine=powerpc-unknown
801 os=-morphos
802 ;;
803 msdos)
804 basic_machine=i386-pc
805 os=-msdos
806 ;;
807 ms1-*)
808 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
809 ;;
810 mvs)
811 basic_machine=i370-ibm
812 os=-mvs
813 ;;
814 ncr3000)
815 basic_machine=i486-ncr
816 os=-sysv4
817 ;;
818 netbsd386)
819 basic_machine=i386-unknown
820 os=-netbsd
821 ;;
822 netwinder)
823 basic_machine=armv4l-rebel
824 os=-linux
825 ;;
826 news | news700 | news800 | news900)
827 basic_machine=m68k-sony
828 os=-newsos
829 ;;
830 news1000)
831 basic_machine=m68030-sony
832 os=-newsos
833 ;;
834 news-3600 | risc-news)
835 basic_machine=mips-sony
836 os=-newsos
837 ;;
838 necv70)
839 basic_machine=v70-nec
840 os=-sysv
841 ;;
842 next | m*-next )
843 basic_machine=m68k-next
844 case $os in
845 -nextstep* )
846 ;;
847 -ns2*)
848 os=-nextstep2
849 ;;
850 *)
851 os=-nextstep3
852 ;;
853 esac
854 ;;
855 nh3000)
856 basic_machine=m68k-harris
857 os=-cxux
858 ;;
859 nh[45]000)
860 basic_machine=m88k-harris
861 os=-cxux
862 ;;
863 nindy960)
864 basic_machine=i960-intel
865 os=-nindy
866 ;;
867 mon960)
868 basic_machine=i960-intel
869 os=-mon960
870 ;;
871 nonstopux)
872 basic_machine=mips-compaq
873 os=-nonstopux
874 ;;
875 np1)
876 basic_machine=np1-gould
877 ;;
878 neo-tandem)
879 basic_machine=neo-tandem
880 ;;
881 nse-tandem)
882 basic_machine=nse-tandem
883 ;;
884 nsr-tandem)
885 basic_machine=nsr-tandem
886 ;;
887 op50n-* | op60c-*)
888 basic_machine=hppa1.1-oki
889 os=-proelf
890 ;;
891 openrisc | openrisc-*)
892 basic_machine=or32-unknown
893 ;;
894 os400)
895 basic_machine=powerpc-ibm
896 os=-os400
897 ;;
898 OSE68000 | ose68000)
899 basic_machine=m68000-ericsson
900 os=-ose
901 ;;
902 os68k)
903 basic_machine=m68k-none
904 os=-os68k
905 ;;
906 pa-hitachi)
907 basic_machine=hppa1.1-hitachi
908 os=-hiuxwe2
909 ;;
910 paragon)
911 basic_machine=i860-intel
912 os=-osf
913 ;;
914 parisc)
915 basic_machine=hppa-unknown
916 os=-linux
917 ;;
918 parisc-*)
919 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
920 os=-linux
921 ;;
922 pbd)
923 basic_machine=sparc-tti
924 ;;
925 pbb)
926 basic_machine=m68k-tti
927 ;;
928 pc532 | pc532-*)
929 basic_machine=ns32k-pc532
930 ;;
931 pc98)
932 basic_machine=i386-pc
933 ;;
934 pc98-*)
935 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
936 ;;
937 pentium | p5 | k5 | k6 | nexgen | viac3)
938 basic_machine=i586-pc
939 ;;
940 pentiumpro | p6 | 6x86 | athlon | athlon_*)
941 basic_machine=i686-pc
942 ;;
943 pentiumii | pentium2 | pentiumiii | pentium3)
944 basic_machine=i686-pc
945 ;;
946 pentium4)
947 basic_machine=i786-pc
948 ;;
949 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
950 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
951 ;;
952 pentiumpro-* | p6-* | 6x86-* | athlon-*)
953 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
954 ;;
955 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
956 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
957 ;;
958 pentium4-*)
959 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
960 ;;
961 pn)
962 basic_machine=pn-gould
963 ;;
964 power) basic_machine=power-ibm
965 ;;
966 ppc | ppcbe) basic_machine=powerpc-unknown
967 ;;
968 ppc-* | ppcbe-*)
969 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
970 ;;
971 ppcle | powerpclittle | ppc-le | powerpc-little)
972 basic_machine=powerpcle-unknown
973 ;;
974 ppcle-* | powerpclittle-*)
975 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
976 ;;
977 ppc64) basic_machine=powerpc64-unknown
978 ;;
979 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
980 ;;
981 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
982 basic_machine=powerpc64le-unknown
983 ;;
984 ppc64le-* | powerpc64little-*)
985 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
986 ;;
987 ps2)
988 basic_machine=i386-ibm
989 ;;
990 pw32)
991 basic_machine=i586-unknown
992 os=-pw32
993 ;;
994 rdos)
995 basic_machine=i386-pc
996 os=-rdos
997 ;;
998 rom68k)
999 basic_machine=m68k-rom68k
1000 os=-coff
1001 ;;
1002 rm[46]00)
1003 basic_machine=mips-siemens
1004 ;;
1005 rtpc | rtpc-*)
1006 basic_machine=romp-ibm
1007 ;;
1008 s390 | s390-*)
1009 basic_machine=s390-ibm
1010 ;;
1011 s390x | s390x-*)
1012 basic_machine=s390x-ibm
1013 ;;
1014 sa29200)
1015 basic_machine=a29k-amd
1016 os=-udi
1017 ;;
1018 sb1)
1019 basic_machine=mipsisa64sb1-unknown
1020 ;;
1021 sb1el)
1022 basic_machine=mipsisa64sb1el-unknown
1023 ;;
1024 sde)
1025 basic_machine=mipsisa32-sde
1026 os=-elf
1027 ;;
1028 sei)
1029 basic_machine=mips-sei
1030 os=-seiux
1031 ;;
1032 sequent)
1033 basic_machine=i386-sequent
1034 ;;
1035 sh)
1036 basic_machine=sh-hitachi
1037 os=-hms
1038 ;;
1039 sh5el)
1040 basic_machine=sh5le-unknown
1041 ;;
1042 sh64)
1043 basic_machine=sh64-unknown
1044 ;;
1045 sparclite-wrs | simso-wrs)
1046 basic_machine=sparclite-wrs
1047 os=-vxworks
1048 ;;
1049 sps7)
1050 basic_machine=m68k-bull
1051 os=-sysv2
1052 ;;
1053 spur)
1054 basic_machine=spur-unknown
1055 ;;
1056 st2000)
1057 basic_machine=m68k-tandem
1058 ;;
1059 stratus)
1060 basic_machine=i860-stratus
1061 os=-sysv4
1062 ;;
1063 strongarm-* | thumb-*)
1064 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1065 ;;
1066 sun2)
1067 basic_machine=m68000-sun
1068 ;;
1069 sun2os3)
1070 basic_machine=m68000-sun
1071 os=-sunos3
1072 ;;
1073 sun2os4)
1074 basic_machine=m68000-sun
1075 os=-sunos4
1076 ;;
1077 sun3os3)
1078 basic_machine=m68k-sun
1079 os=-sunos3
1080 ;;
1081 sun3os4)
1082 basic_machine=m68k-sun
1083 os=-sunos4
1084 ;;
1085 sun4os3)
1086 basic_machine=sparc-sun
1087 os=-sunos3
1088 ;;
1089 sun4os4)
1090 basic_machine=sparc-sun
1091 os=-sunos4
1092 ;;
1093 sun4sol2)
1094 basic_machine=sparc-sun
1095 os=-solaris2
1096 ;;
1097 sun3 | sun3-*)
1098 basic_machine=m68k-sun
1099 ;;
1100 sun4)
1101 basic_machine=sparc-sun
1102 ;;
1103 sun386 | sun386i | roadrunner)
1104 basic_machine=i386-sun
1105 ;;
1106 sv1)
1107 basic_machine=sv1-cray
1108 os=-unicos
1109 ;;
1110 symmetry)
1111 basic_machine=i386-sequent
1112 os=-dynix
1113 ;;
1114 t3e)
1115 basic_machine=alphaev5-cray
1116 os=-unicos
1117 ;;
1118 t90)
1119 basic_machine=t90-cray
1120 os=-unicos
1121 ;;
1122 # This must be matched before tile*.
1123 tilegx*)
1124 basic_machine=tilegx-unknown
1125 os=-linux-gnu
1126 ;;
1127 tile*)
1128 basic_machine=tile-unknown
1129 os=-linux-gnu
1130 ;;
1131 tx39)
1132 basic_machine=mipstx39-unknown
1133 ;;
1134 tx39el)
1135 basic_machine=mipstx39el-unknown
1136 ;;
1137 toad1)
1138 basic_machine=pdp10-xkl
1139 os=-tops20
1140 ;;
1141 tower | tower-32)
1142 basic_machine=m68k-ncr
1143 ;;
1144 tpf)
1145 basic_machine=s390x-ibm
1146 os=-tpf
1147 ;;
1148 udi29k)
1149 basic_machine=a29k-amd
1150 os=-udi
1151 ;;
1152 ultra3)
1153 basic_machine=a29k-nyu
1154 os=-sym1
1155 ;;
1156 v810 | necv810)
1157 basic_machine=v810-nec
1158 os=-none
1159 ;;
1160 vaxv)
1161 basic_machine=vax-dec
1162 os=-sysv
1163 ;;
1164 vms)
1165 basic_machine=vax-dec
1166 os=-vms
1167 ;;
1168 vpp*|vx|vx-*)
1169 basic_machine=f301-fujitsu
1170 ;;
1171 vxworks960)
1172 basic_machine=i960-wrs
1173 os=-vxworks
1174 ;;
1175 vxworks68)
1176 basic_machine=m68k-wrs
1177 os=-vxworks
1178 ;;
1179 vxworks29k)
1180 basic_machine=a29k-wrs
1181 os=-vxworks
1182 ;;
1183 w65*)
1184 basic_machine=w65-wdc
1185 os=-none
1186 ;;
1187 w89k-*)
1188 basic_machine=hppa1.1-winbond
1189 os=-proelf
1190 ;;
1191 xbox)
1192 basic_machine=i686-pc
1193 os=-mingw32
1194 ;;
1195 xps | xps100)
1196 basic_machine=xps100-honeywell
1197 ;;
1198 xscale-* | xscalee[bl]-*)
1199 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1200 ;;
1201 ymp)
1202 basic_machine=ymp-cray
1203 os=-unicos
1204 ;;
1205 z8k-*-coff)
1206 basic_machine=z8k-unknown
1207 os=-sim
1208 ;;
1209 z80-*-coff)
1210 basic_machine=z80-unknown
1211 os=-sim
1212 ;;
1213 none)
1214 basic_machine=none-none
1215 os=-none
1216 ;;
1217
1218 # Here we handle the default manufacturer of certain CPU types. It is in
1219 # some cases the only manufacturer, in others, it is the most popular.
1220 w89k)
1221 basic_machine=hppa1.1-winbond
1222 ;;
1223 op50n)
1224 basic_machine=hppa1.1-oki
1225 ;;
1226 op60c)
1227 basic_machine=hppa1.1-oki
1228 ;;
1229 romp)
1230 basic_machine=romp-ibm
1231 ;;
1232 mmix)
1233 basic_machine=mmix-knuth
1234 ;;
1235 rs6000)
1236 basic_machine=rs6000-ibm
1237 ;;
1238 vax)
1239 basic_machine=vax-dec
1240 ;;
1241 pdp10)
1242 # there are many clones, so DEC is not a safe bet
1243 basic_machine=pdp10-unknown
1244 ;;
1245 pdp11)
1246 basic_machine=pdp11-dec
1247 ;;
1248 we32k)
1249 basic_machine=we32k-att
1250 ;;
1251 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1252 basic_machine=sh-unknown
1253 ;;
1254 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1255 basic_machine=sparc-sun
1256 ;;
1257 cydra)
1258 basic_machine=cydra-cydrome
1259 ;;
1260 orion)
1261 basic_machine=orion-highlevel
1262 ;;
1263 orion105)
1264 basic_machine=clipper-highlevel
1265 ;;
1266 mac | mpw | mac-mpw)
1267 basic_machine=m68k-apple
1268 ;;
1269 pmac | pmac-mpw)
1270 basic_machine=powerpc-apple
1271 ;;
1272 *-unknown)
1273 # Make sure to match an already-canonicalized machine name.
1274 ;;
1275 *)
1276 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1277 exit 1
1278 ;;
1279 esac
1280
1281 # Here we canonicalize certain aliases for manufacturers.
1282 case $basic_machine in
1283 *-digital*)
1284 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1285 ;;
1286 *-commodore*)
1287 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1288 ;;
1289 *)
1290 ;;
1291 esac
1292
1293 # Decode manufacturer-specific aliases for certain operating systems.
1294
1295 if [ x"$os" != x"" ]
1296 then
1297 case $os in
1298 # First match some system type aliases
1299 # that might get confused with valid system types.
1300 # -solaris* is a basic system type, with this one exception.
1301 -auroraux)
1302 os=-auroraux
1303 ;;
1304 -solaris1 | -solaris1.*)
1305 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1306 ;;
1307 -solaris)
1308 os=-solaris2
1309 ;;
1310 -svr4*)
1311 os=-sysv4
1312 ;;
1313 -unixware*)
1314 os=-sysv4.2uw
1315 ;;
1316 -gnu/linux*)
1317 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1318 ;;
1319 # First accept the basic system types.
1320 # The portable systems comes first.
1321 # Each alternative MUST END IN A *, to match a version number.
1322 # -sysv* is not here because it comes later, after sysvr4.
1323 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1324 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1325 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1326 | -sym* | -kopensolaris* \
1327 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1328 | -aos* | -aros* \
1329 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1330 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1331 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1332 | -openbsd* | -solidbsd* \
1333 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1334 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1335 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1336 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1337 | -chorusos* | -chorusrdb* | -cegcc* \
1338 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1339 | -mingw32* | -linux-gnu* | -linux-android* \
1340 | -linux-newlib* | -linux-uclibc* \
1341 | -uxpv* | -beos* | -mpeix* | -udk* \
1342 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1343 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1344 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1345 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1346 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1347 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1348 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1349 # Remember, each alternative MUST END IN *, to match a version number.
1350 ;;
1351 -qnx*)
1352 case $basic_machine in
1353 x86-* | i*86-*)
1354 ;;
1355 *)
1356 os=-nto$os
1357 ;;
1358 esac
1359 ;;
1360 -nto-qnx*)
1361 ;;
1362 -nto*)
1363 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1364 ;;
1365 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1366 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1367 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1368 ;;
1369 -mac*)
1370 os=`echo $os | sed -e 's|mac|macos|'`
1371 ;;
1372 -linux-dietlibc)
1373 os=-linux-dietlibc
1374 ;;
1375 -linux*)
1376 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1377 ;;
1378 -sunos5*)
1379 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1380 ;;
1381 -sunos6*)
1382 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1383 ;;
1384 -opened*)
1385 os=-openedition
1386 ;;
1387 -os400*)
1388 os=-os400
1389 ;;
1390 -wince*)
1391 os=-wince
1392 ;;
1393 -osfrose*)
1394 os=-osfrose
1395 ;;
1396 -osf*)
1397 os=-osf
1398 ;;
1399 -utek*)
1400 os=-bsd
1401 ;;
1402 -dynix*)
1403 os=-bsd
1404 ;;
1405 -acis*)
1406 os=-aos
1407 ;;
1408 -atheos*)
1409 os=-atheos
1410 ;;
1411 -syllable*)
1412 os=-syllable
1413 ;;
1414 -386bsd)
1415 os=-bsd
1416 ;;
1417 -ctix* | -uts*)
1418 os=-sysv
1419 ;;
1420 -nova*)
1421 os=-rtmk-nova
1422 ;;
1423 -ns2 )
1424 os=-nextstep2
1425 ;;
1426 -nsk*)
1427 os=-nsk
1428 ;;
1429 # Preserve the version number of sinix5.
1430 -sinix5.*)
1431 os=`echo $os | sed -e 's|sinix|sysv|'`
1432 ;;
1433 -sinix*)
1434 os=-sysv4
1435 ;;
1436 -tpf*)
1437 os=-tpf
1438 ;;
1439 -triton*)
1440 os=-sysv3
1441 ;;
1442 -oss*)
1443 os=-sysv3
1444 ;;
1445 -svr4)
1446 os=-sysv4
1447 ;;
1448 -svr3)
1449 os=-sysv3
1450 ;;
1451 -sysvr4)
1452 os=-sysv4
1453 ;;
1454 # This must come after -sysvr4.
1455 -sysv*)
1456 ;;
1457 -ose*)
1458 os=-ose
1459 ;;
1460 -es1800*)
1461 os=-ose
1462 ;;
1463 -xenix)
1464 os=-xenix
1465 ;;
1466 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1467 os=-mint
1468 ;;
1469 -aros*)
1470 os=-aros
1471 ;;
1472 -kaos*)
1473 os=-kaos
1474 ;;
1475 -zvmoe)
1476 os=-zvmoe
1477 ;;
1478 -dicos*)
1479 os=-dicos
1480 ;;
1481 -nacl*)
1482 ;;
1483 -none)
1484 ;;
1485 *)
1486 # Get rid of the `-' at the beginning of $os.
1487 os=`echo $os | sed 's/[^-]*-//'`
1488 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1489 exit 1
1490 ;;
1491 esac
1492 else
1493
1494 # Here we handle the default operating systems that come with various machines.
1495 # The value should be what the vendor currently ships out the door with their
1496 # machine or put another way, the most popular os provided with the machine.
1497
1498 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1499 # "-sun"), then you have to tell the case statement up towards the top
1500 # that MANUFACTURER isn't an operating system. Otherwise, code above
1501 # will signal an error saying that MANUFACTURER isn't an operating
1502 # system, and we'll never get to this point.
1503
1504 case $basic_machine in
1505 score-*)
1506 os=-elf
1507 ;;
1508 spu-*)
1509 os=-elf
1510 ;;
1511 *-acorn)
1512 os=-riscix1.2
1513 ;;
1514 arm*-rebel)
1515 os=-linux
1516 ;;
1517 arm*-semi)
1518 os=-aout
1519 ;;
1520 c4x-* | tic4x-*)
1521 os=-coff
1522 ;;
1523 tic54x-*)
1524 os=-coff
1525 ;;
1526 tic55x-*)
1527 os=-coff
1528 ;;
1529 tic6x-*)
1530 os=-coff
1531 ;;
1532 # This must come before the *-dec entry.
1533 pdp10-*)
1534 os=-tops20
1535 ;;
1536 pdp11-*)
1537 os=-none
1538 ;;
1539 *-dec | vax-*)
1540 os=-ultrix4.2
1541 ;;
1542 m68*-apollo)
1543 os=-domain
1544 ;;
1545 i386-sun)
1546 os=-sunos4.0.2
1547 ;;
1548 m68000-sun)
1549 os=-sunos3
1550 # This also exists in the configure program, but was not the
1551 # default.
1552 # os=-sunos4
1553 ;;
1554 m68*-cisco)
1555 os=-aout
1556 ;;
1557 mep-*)
1558 os=-elf
1559 ;;
1560 mips*-cisco)
1561 os=-elf
1562 ;;
1563 mips*-*)
1564 os=-elf
1565 ;;
1566 or32-*)
1567 os=-coff
1568 ;;
1569 *-tti) # must be before sparc entry or we get the wrong os.
1570 os=-sysv3
1571 ;;
1572 sparc-* | *-sun)
1573 os=-sunos4.1.1
1574 ;;
1575 *-be)
1576 os=-beos
1577 ;;
1578 *-haiku)
1579 os=-haiku
1580 ;;
1581 *-ibm)
1582 os=-aix
1583 ;;
1584 *-knuth)
1585 os=-mmixware
1586 ;;
1587 *-wec)
1588 os=-proelf
1589 ;;
1590 *-winbond)
1591 os=-proelf
1592 ;;
1593 *-oki)
1594 os=-proelf
1595 ;;
1596 *-hp)
1597 os=-hpux
1598 ;;
1599 *-hitachi)
1600 os=-hiux
1601 ;;
1602 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1603 os=-sysv
1604 ;;
1605 *-cbm)
1606 os=-amigaos
1607 ;;
1608 *-dg)
1609 os=-dgux
1610 ;;
1611 *-dolphin)
1612 os=-sysv3
1613 ;;
1614 m68k-ccur)
1615 os=-rtu
1616 ;;
1617 m88k-omron*)
1618 os=-luna
1619 ;;
1620 *-next )
1621 os=-nextstep
1622 ;;
1623 *-sequent)
1624 os=-ptx
1625 ;;
1626 *-crds)
1627 os=-unos
1628 ;;
1629 *-ns)
1630 os=-genix
1631 ;;
1632 i370-*)
1633 os=-mvs
1634 ;;
1635 *-next)
1636 os=-nextstep3
1637 ;;
1638 *-gould)
1639 os=-sysv
1640 ;;
1641 *-highlevel)
1642 os=-bsd
1643 ;;
1644 *-encore)
1645 os=-bsd
1646 ;;
1647 *-sgi)
1648 os=-irix
1649 ;;
1650 *-siemens)
1651 os=-sysv4
1652 ;;
1653 *-masscomp)
1654 os=-rtu
1655 ;;
1656 f30[01]-fujitsu | f700-fujitsu)
1657 os=-uxpv
1658 ;;
1659 *-rom68k)
1660 os=-coff
1661 ;;
1662 *-*bug)
1663 os=-coff
1664 ;;
1665 *-apple)
1666 os=-macos
1667 ;;
1668 *-atari*)
1669 os=-mint
1670 ;;
1671 *)
1672 os=-none
1673 ;;
1674 esac
1675 fi
1676
1677 # Here we handle the case where we know the os, and the CPU type, but not the
1678 # manufacturer. We pick the logical manufacturer.
1679 vendor=unknown
1680 case $basic_machine in
1681 *-unknown)
1682 case $os in
1683 -riscix*)
1684 vendor=acorn
1685 ;;
1686 -sunos*)
1687 vendor=sun
1688 ;;
1689 -cnk*|-aix*)
1690 vendor=ibm
1691 ;;
1692 -beos*)
1693 vendor=be
1694 ;;
1695 -hpux*)
1696 vendor=hp
1697 ;;
1698 -mpeix*)
1699 vendor=hp
1700 ;;
1701 -hiux*)
1702 vendor=hitachi
1703 ;;
1704 -unos*)
1705 vendor=crds
1706 ;;
1707 -dgux*)
1708 vendor=dg
1709 ;;
1710 -luna*)
1711 vendor=omron
1712 ;;
1713 -genix*)
1714 vendor=ns
1715 ;;
1716 -mvs* | -opened*)
1717 vendor=ibm
1718 ;;
1719 -os400*)
1720 vendor=ibm
1721 ;;
1722 -ptx*)
1723 vendor=sequent
1724 ;;
1725 -tpf*)
1726 vendor=ibm
1727 ;;
1728 -vxsim* | -vxworks* | -windiss*)
1729 vendor=wrs
1730 ;;
1731 -aux*)
1732 vendor=apple
1733 ;;
1734 -hms*)
1735 vendor=hitachi
1736 ;;
1737 -mpw* | -macos*)
1738 vendor=apple
1739 ;;
1740 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1741 vendor=atari
1742 ;;
1743 -vos*)
1744 vendor=stratus
1745 ;;
1746 esac
1747 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1748 ;;
1749 esac
1750
1751 echo $basic_machine$os
1752 exit
1753
1754 # Local variables:
1755 # eval: (add-hook 'write-file-hooks 'time-stamp)
1756 # time-stamp-start: "timestamp='"
1757 # time-stamp-format: "%:y-%02m-%02d"
1758 # time-stamp-end: "'"
1759 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 # Preserve -v and -x to the replacement shell.
226 BASH_ENV=/dev/null
227 ENV=/dev/null
228 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 export CONFIG_SHELL
230 case $- in # ((((
231 *v*x* | *x*v* ) as_opts=-vx ;;
232 *v* ) as_opts=-v ;;
233 *x* ) as_opts=-x ;;
234 * ) as_opts= ;;
235 esac
236 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
237 fi
238
239 if test x$as_have_required = xno; then :
240 $as_echo "$0: This script requires a shell more modern than all"
241 $as_echo "$0: the shells that I found on your system."
242 if test x${ZSH_VERSION+set} = xset ; then
243 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
244 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
245 else
246 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
247 $0: including any error possibly output before this
248 $0: message. Then install a modern shell, or manually run
249 $0: the script under such a shell if you do have one."
250 fi
251 exit 1
252 fi
253 fi
254 fi
255 SHELL=${CONFIG_SHELL-/bin/sh}
256 export SHELL
257 # Unset more variables known to interfere with behavior of common tools.
258 CLICOLOR_FORCE= GREP_OPTIONS=
259 unset CLICOLOR_FORCE GREP_OPTIONS
260
261 ## --------------------- ##
262 ## M4sh Shell Functions. ##
263 ## --------------------- ##
264 # as_fn_unset VAR
265 # ---------------
266 # Portably unset VAR.
267 as_fn_unset ()
268 {
269 { eval $1=; unset $1;}
270 }
271 as_unset=as_fn_unset
272
273 # as_fn_set_status STATUS
274 # -----------------------
275 # Set $? to STATUS, without forking.
276 as_fn_set_status ()
277 {
278 return $1
279 } # as_fn_set_status
280
281 # as_fn_exit STATUS
282 # -----------------
283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 as_fn_exit ()
285 {
286 set +e
287 as_fn_set_status $1
288 exit $1
289 } # as_fn_exit
290
291 # as_fn_mkdir_p
292 # -------------
293 # Create "$as_dir" as a directory, including parents if necessary.
294 as_fn_mkdir_p ()
295 {
296
297 case $as_dir in #(
298 -*) as_dir=./$as_dir;;
299 esac
300 test -d "$as_dir" || eval $as_mkdir_p || {
301 as_dirs=
302 while :; do
303 case $as_dir in #(
304 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
305 *) as_qdir=$as_dir;;
306 esac
307 as_dirs="'$as_qdir' $as_dirs"
308 as_dir=`$as_dirname -- "$as_dir" ||
309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
310 X"$as_dir" : 'X\(//\)[^/]' \| \
311 X"$as_dir" : 'X\(//\)$' \| \
312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
313 $as_echo X"$as_dir" |
314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)[^/].*/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)$/{
323 s//\1/
324 q
325 }
326 /^X\(\/\).*/{
327 s//\1/
328 q
329 }
330 s/.*/./; q'`
331 test -d "$as_dir" && break
332 done
333 test -z "$as_dirs" || eval "mkdir $as_dirs"
334 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335
336
337 } # as_fn_mkdir_p
338 # as_fn_append VAR VALUE
339 # ----------------------
340 # Append the text in VALUE to the end of the definition contained in VAR. Take
341 # advantage of any shell optimizations that allow amortized linear growth over
342 # repeated appends, instead of the typical quadratic growth present in naive
343 # implementations.
344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
345 eval 'as_fn_append ()
346 {
347 eval $1+=\$2
348 }'
349 else
350 as_fn_append ()
351 {
352 eval $1=\$$1\$2
353 }
354 fi # as_fn_append
355
356 # as_fn_arith ARG...
357 # ------------------
358 # Perform arithmetic evaluation on the ARGs, and store the result in the
359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
360 # must be portable across $(()) and expr.
361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 eval 'as_fn_arith ()
363 {
364 as_val=$(( $* ))
365 }'
366 else
367 as_fn_arith ()
368 {
369 as_val=`expr "$@" || test $? -eq 1`
370 }
371 fi # as_fn_arith
372
373
374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
375 # ----------------------------------------
376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
378 # script with STATUS, using 1 if that was 0.
379 as_fn_error ()
380 {
381 as_status=$1; test $as_status -eq 0 && as_status=1
382 if test "$4"; then
383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 fi
386 $as_echo "$as_me: error: $2" >&2
387 as_fn_exit $as_status
388 } # as_fn_error
389
390 if expr a : '\(a\)' >/dev/null 2>&1 &&
391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
392 as_expr=expr
393 else
394 as_expr=false
395 fi
396
397 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 as_basename=basename
399 else
400 as_basename=false
401 fi
402
403 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
404 as_dirname=dirname
405 else
406 as_dirname=false
407 fi
408
409 as_me=`$as_basename -- "$0" ||
410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
411 X"$0" : 'X\(//\)$' \| \
412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 $as_echo X/"$0" |
414 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\/\)$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\).*/{
423 s//\1/
424 q
425 }
426 s/.*/./; q'`
427
428 # Avoid depending upon Character Ranges.
429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
432 as_cr_digits='0123456789'
433 as_cr_alnum=$as_cr_Letters$as_cr_digits
434
435
436 as_lineno_1=$LINENO as_lineno_1a=$LINENO
437 as_lineno_2=$LINENO as_lineno_2a=$LINENO
438 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
439 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
440 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in #(((((
469 -n*)
470 case `echo 'xy\c'` in
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 xy) ECHO_C='\c';;
473 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
474 ECHO_T=' ';;
475 esac;;
476 *)
477 ECHO_N='-n';;
478 esac
479
480 rm -f conf$$ conf$$.exe conf$$.file
481 if test -d conf$$.dir; then
482 rm -f conf$$.dir/conf$$.file
483 else
484 rm -f conf$$.dir
485 mkdir conf$$.dir 2>/dev/null
486 fi
487 if (echo >conf$$.file) 2>/dev/null; then
488 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 as_ln_s='ln -s'
490 # ... but there are two gotchas:
491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
493 # In both cases, we have to default to `cp -p'.
494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 as_ln_s='cp -p'
496 elif ln conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s=ln
498 else
499 as_ln_s='cp -p'
500 fi
501 else
502 as_ln_s='cp -p'
503 fi
504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
505 rmdir conf$$.dir 2>/dev/null
506
507 if mkdir -p . 2>/dev/null; then
508 as_mkdir_p='mkdir -p "$as_dir"'
509 else
510 test -d ./-p && rmdir ./-p
511 as_mkdir_p=false
512 fi
513
514 if test -x / >/dev/null 2>&1; then
515 as_test_x='test -x'
516 else
517 if ls -dL / >/dev/null 2>&1; then
518 as_ls_L_option=L
519 else
520 as_ls_L_option=
521 fi
522 as_test_x='
523 eval sh -c '\''
524 if test -d "$1"; then
525 test -d "$1/.";
526 else
527 case $1 in #(
528 -*)set "./$1";;
529 esac;
530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
531 ???[sx]*):;;*)false;;esac;fi
532 '\'' sh
533 '
534 fi
535 as_executable_p=$as_test_x
536
537 # Sed expression to map a string onto a valid CPP name.
538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539
540 # Sed expression to map a string onto a valid variable name.
541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545
546 test -n "$DJDIR" || exec 7<&0 </dev/null
547 exec 6>&1
548
549 # Name of the host.
550 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
551 # so uname gets run too.
552 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554 #
555 # Initializations.
556 #
557 ac_default_prefix=/usr/local
558 ac_clean_files=
559 ac_config_libobj_dir=.
560 LIBOBJS=
561 cross_compiling=no
562 subdirs=
563 MFLAGS=
564 MAKEFLAGS=
565
566 # Identity of this package.
567 PACKAGE_NAME=
568 PACKAGE_TARNAME=
569 PACKAGE_VERSION=
570 PACKAGE_STRING=
571 PACKAGE_BUGREPORT=
572 PACKAGE_URL=
573
574 ac_unique_file="src/hdate.h"
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 # include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 # include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 gt_needs=
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIBOBJS
616 WITH_HCAL_FALSE
617 WITH_HCAL_TRUE
618 DATADIRNAME
619 POSUB
620 LTLIBINTL
621 LIBINTL
622 INTLLIBS
623 LTLIBICONV
624 LIBICONV
625 INTL_MACOSX_LIBS
626 XGETTEXT_EXTRA_OPTIONS
627 MSGMERGE
628 XGETTEXT_015
629 XGETTEXT
630 GMSGFMT_015
631 MSGFMT_015
632 GMSGFMT
633 MSGFMT
634 GETTEXT_MACRO_VERSION
635 USE_NLS
636 WITH_PERL_FALSE
637 WITH_PERL_TRUE
638 PE_MODULES_PATH
639 PE_CFLAGS
640 have_perl
641 WITH_PHP_FALSE
642 WITH_PHP_TRUE
643 PH_MODULES_PATH
644 PH_INCLUDE_PATH
645 PH_CONFIG_PATH
646 have_php_config
647 have_php
648 WITH_RUBY_FALSE
649 WITH_RUBY_TRUE
650 RU_MODULES_PATH
651 RU_CFLAGS
652 RU_VERSION
653 have_ruby
654 WITH_PYTHON_FALSE
655 WITH_PYTHON_TRUE
656 PY_MODULES_PATH
657 PY_CFLAGS
658 PY_VERSION
659 have_python
660 WITH_FPC_FALSE
661 WITH_FPC_TRUE
662 WITH_GPC_FALSE
663 WITH_GPC_TRUE
664 WITH_GPC_FPC_FALSE
665 WITH_GPC_FPC_TRUE
666 GP_MODULES_PATH
667 have_gpc
668 PA_MODULES_PATH
669 PA_VERSION
670 have_fpc
671 have_swig
672 PKG_CONFIG
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 SED
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 LIBTOOL
699 LN_S
700 EGREP
701 GREP
702 CPP
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 MAINT
720 MAINTAINER_MODE_FALSE
721 MAINTAINER_MODE_TRUE
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 VERSION_INFO
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_maintainer_mode
788 enable_dependency_tracking
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_fpc
797 enable_gpc
798 enable_python
799 with_python_sitelib_dir
800 enable_ruby
801 with_ruby_sitelib_dir
802 enable_php
803 with_php_sitelib_dir
804 enable_perl
805 with_perl_sitelib_dir
806 enable_nls
807 enable_rpath
808 with_libiconv_prefix
809 with_libintl_prefix
810 enable_hcal
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CPP'
821
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1277 If a cross compiler is detected then cross compile mode will be used" >&2
1278 elif test "x$build_alias" != "x$host_alias"; then
1279 cross_compiling=yes
1280 fi
1281 fi
1282
1283 ac_tool_prefix=
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
1286 test "$silent" = yes && exec 6>/dev/null
1287
1288
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error $? "pwd does not report name of working directory"
1295
1296
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)[^/].*/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\).*/{
1320 s//\1/
1321 q
1322 }
1323 s/.*/./; q'`
1324 srcdir=$ac_confdir
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 srcdir=..
1327 fi
1328 else
1329 ac_srcdir_defaulted=no
1330 fi
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334 fi
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338 pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 srcdir=.
1342 fi
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1355
1356 #
1357 # Report the --help message.
1358 #
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1362 cat <<_ACEOF
1363 \`configure' configures this package to adapt to many kinds of systems.
1364
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1366
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1369
1370 Defaults for the options are specified in brackets.
1371
1372 Configuration:
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking ...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1382
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 [PREFIX]
1388
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1393
1394 For better control, use the options below.
1395
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1417
1418 cat <<\_ACEOF
1419
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 _ACEOF
1429 fi
1430
1431 if test -n "$ac_init_help"; then
1432
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-maintainer-mode enable make rules and dependencies not useful
1440 (and sometimes confusing) to the casual installer
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --disable-fpc do not build free pascal binding
1449 --disable-gpc do not build gnu pascal binding
1450 --disable-python do not build python binding
1451 --disable-ruby do not build ruby binding
1452 --disable-php do not build php binding
1453 --disable-perl do not build perl binding
1454 --disable-nls do not use Native Language Support
1455 --disable-rpath do not hardcode runtime library paths
1456 --disable-hcal do not build hcal/hdate utility programs
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-sysroot=DIR Search for dependent libraries within DIR
1465 (or the compiler's sysroot if not specified).
1466 --with-python-sitelib-dir=PATH
1467 path to python site lib
1468 --with-ruby-sitelib-dir=PATH
1469 path to ruby site lib
1470 --with-php-sitelib-dir=PATH
1471 path to php site lib
1472 --with-perl-sitelib-dir=PATH
1473 path to perl site lib
1474 --with-gnu-ld assume the C compiler uses GNU ld default=no
1475 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1476 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1477 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1478 --without-libintl-prefix don't search for libintl in includedir and libdir
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to the package provider.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 configure
1557 generated by GNU Autoconf 2.68
1558
1559 Copyright (C) 2010 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 $as_test_x conftest$ac_exeext
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_link
1653
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } > conftest.i && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685 fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_cpp
1690
1691 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1694 # the include files in INCLUDES and setting the cache variable VAR
1695 # accordingly.
1696 ac_fn_c_check_header_mongrel ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if eval \${$3+:} false; then :
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 fi
1705 eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 else
1709 # Is the header compilable?
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1711 $as_echo_n "checking $2 usability... " >&6; }
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718 ac_header_compiler=yes
1719 else
1720 ac_header_compiler=no
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1724 $as_echo "$ac_header_compiler" >&6; }
1725
1726 # Is the header present?
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1728 $as_echo_n "checking $2 presence... " >&6; }
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_cpp "$LINENO"; then :
1734 ac_header_preproc=yes
1735 else
1736 ac_header_preproc=no
1737 fi
1738 rm -f conftest.err conftest.i conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1740 $as_echo "$ac_header_preproc" >&6; }
1741
1742 # So? What about this header?
1743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1744 yes:no: )
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1746 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 ;;
1750 no:yes:* )
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1752 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1754 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1756 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1758 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 ;;
1762 esac
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 eval "$3=\$ac_header_compiler"
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 fi
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776 } # ac_fn_c_check_header_mongrel
1777
1778 # ac_fn_c_try_run LINENO
1779 # ----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781 # that executables *can* be run.
1782 ac_fn_c_try_run ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>&5
1793 ac_status=$?
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796 { { case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_try") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; }; }; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: program exited with status $ac_status" >&5
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=$ac_status
1813 fi
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_run
1819
1820 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists and can be compiled using the include files in
1823 # INCLUDES, setting the cache variable VAR accordingly.
1824 ac_fn_c_check_header_compile ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831 else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_header_compile
1850
1851 # ac_fn_c_check_func LINENO FUNC VAR
1852 # ----------------------------------
1853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1854 ac_fn_c_check_func ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866 #define $2 innocuous_$2
1867
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1872
1873 #ifdef __STDC__
1874 # include <limits.h>
1875 #else
1876 # include <assert.h>
1877 #endif
1878
1879 #undef $2
1880
1881 /* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1884 #ifdef __cplusplus
1885 extern "C"
1886 #endif
1887 char $2 ();
1888 /* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891 #if defined __stub_$2 || defined __stub___$2
1892 choke me
1893 #endif
1894
1895 int
1896 main ()
1897 {
1898 return $2 ();
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_link "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_func
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1920
1921 It was created by $as_me, which was
1922 generated by GNU Autoconf 2.68. Invocation command line was
1923
1924 $ $0 $@
1925
1926 _ACEOF
1927 exec 5>>config.log
1928 {
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1933
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1942
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950
1951 _ASUNAME
1952
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 $as_echo "PATH: $as_dir"
1959 done
1960 IFS=$as_save_IFS
1961
1962 } >&5
1963
1964 cat >&5 <<_ACEOF
1965
1966
1967 ## ----------- ##
1968 ## Core tests. ##
1969 ## ----------- ##
1970
1971 _ACEOF
1972
1973
1974 # Keep a trace of the command line.
1975 # Strip out --no-create and --no-recursion so they do not pile up.
1976 # Strip out --silent because we don't want to record it for future runs.
1977 # Also quote any args containing shell meta-characters.
1978 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_configure_args=
1980 ac_configure_args0=
1981 ac_configure_args1=
1982 ac_must_keep_next=false
1983 for ac_pass in 1 2
1984 do
1985 for ac_arg
1986 do
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 esac
1995 case $ac_pass in
1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997 2)
1998 as_fn_append ac_configure_args1 " '$ac_arg'"
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2010 ;;
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2013 fi
2014 as_fn_append ac_configure_args " '$ac_arg'"
2015 ;;
2016 esac
2017 done
2018 done
2019 { ac_configure_args0=; unset ac_configure_args0;}
2020 { ac_configure_args1=; unset ac_configure_args1;}
2021
2022 # When interrupted or exit'd, cleanup temporary files, and complete
2023 # config.log. We remove comments because anyway the quotes in there
2024 # would cause problems or look ugly.
2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027 trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2029 {
2030 echo
2031
2032 $as_echo "## ---------------- ##
2033 ## Cache variables. ##
2034 ## ---------------- ##"
2035 echo
2036 # The following way of writing the cache mishandles newlines in values,
2037 (
2038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in #(
2041 *${as_nl}*)
2042 case $ac_var in #(
2043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045 esac
2046 case $ac_var in #(
2047 _ | IFS | as_nl) ;; #(
2048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049 *) { eval $ac_var=; unset $ac_var;} ;;
2050 esac ;;
2051 esac
2052 done
2053 (set) 2>&1 |
2054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055 *${as_nl}ac_space=\ *)
2056 sed -n \
2057 "s/'\''/'\''\\\\'\'''\''/g;
2058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059 ;; #(
2060 *)
2061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062 ;;
2063 esac |
2064 sort
2065 )
2066 echo
2067
2068 $as_echo "## ----------------- ##
2069 ## Output variables. ##
2070 ## ----------------- ##"
2071 echo
2072 for ac_var in $ac_subst_vars
2073 do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in
2076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 esac
2078 $as_echo "$ac_var='\''$ac_val'\''"
2079 done | sort
2080 echo
2081
2082 if test -n "$ac_subst_files"; then
2083 $as_echo "## ------------------- ##
2084 ## File substitutions. ##
2085 ## ------------------- ##"
2086 echo
2087 for ac_var in $ac_subst_files
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096 fi
2097
2098 if test -s confdefs.h; then
2099 $as_echo "## ----------- ##
2100 ## confdefs.h. ##
2101 ## ----------- ##"
2102 echo
2103 cat confdefs.h
2104 echo
2105 fi
2106 test "$ac_signal" != 0 &&
2107 $as_echo "$as_me: caught signal $ac_signal"
2108 $as_echo "$as_me: exit $exit_status"
2109 } >&5
2110 rm -f core *.core core.conftest.* &&
2111 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112 exit $exit_status
2113 ' 0
2114 for ac_signal in 1 2 13 15; do
2115 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116 done
2117 ac_signal=0
2118
2119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2120 rm -f -r conftest* confdefs.h
2121
2122 $as_echo "/* confdefs.h */" > confdefs.h
2123
2124 # Predefined preprocessor variables.
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_NAME "$PACKAGE_NAME"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_STRING "$PACKAGE_STRING"
2140 _ACEOF
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_URL "$PACKAGE_URL"
2148 _ACEOF
2149
2150
2151 # Let the site file select an alternate cache file if it wants to.
2152 # Prefer an explicitly selected file to automatically selected ones.
2153 ac_site_file1=NONE
2154 ac_site_file2=NONE
2155 if test -n "$CONFIG_SITE"; then
2156 # We do not want a PATH search for config.site.
2157 case $CONFIG_SITE in #((
2158 -*) ac_site_file1=./$CONFIG_SITE;;
2159 */*) ac_site_file1=$CONFIG_SITE;;
2160 *) ac_site_file1=./$CONFIG_SITE;;
2161 esac
2162 elif test "x$prefix" != xNONE; then
2163 ac_site_file1=$prefix/share/config.site
2164 ac_site_file2=$prefix/etc/config.site
2165 else
2166 ac_site_file1=$ac_default_prefix/share/config.site
2167 ac_site_file2=$ac_default_prefix/etc/config.site
2168 fi
2169 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2170 do
2171 test "x$ac_site_file" = xNONE && continue
2172 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2174 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2175 sed 's/^/| /' "$ac_site_file" >&5
2176 . "$ac_site_file" \
2177 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179 as_fn_error $? "failed to load site script $ac_site_file
2180 See \`config.log' for more details" "$LINENO" 5; }
2181 fi
2182 done
2183
2184 if test -r "$cache_file"; then
2185 # Some versions of bash will fail to source /dev/null (special files
2186 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189 $as_echo "$as_me: loading cache $cache_file" >&6;}
2190 case $cache_file in
2191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192 *) . "./$cache_file";;
2193 esac
2194 fi
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197 $as_echo "$as_me: creating cache $cache_file" >&6;}
2198 >$cache_file
2199 fi
2200
2201 gt_needs="$gt_needs "
2202 # Check that the precious variables saved in the cache have kept the same
2203 # value.
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 eval ac_new_set=\$ac_env_${ac_var}_set
2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 eval ac_new_val=\$ac_env_${ac_var}_value
2210 case $ac_old_set,$ac_new_set in
2211 set,)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,set)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,);;
2220 *)
2221 if test "x$ac_old_val" != "x$ac_new_val"; then
2222 # differences in whitespace do not lead to failure.
2223 ac_old_val_w=`echo x $ac_old_val`
2224 ac_new_val_w=`echo x $ac_new_val`
2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228 ac_cache_corrupted=:
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 eval $ac_var=\$ac_old_val
2233 fi
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2238 fi;;
2239 esac
2240 # Pass precious variables to config.status.
2241 if test "$ac_new_set" = set; then
2242 case $ac_new_val in
2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 *) ac_arg=$ac_var=$ac_new_val ;;
2245 esac
2246 case " $ac_configure_args " in
2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 esac
2250 fi
2251 done
2252 if $ac_cache_corrupted; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2258 fi
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2262
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268
2269
2270
2271 PACKAGE=libhdate
2272 LIBHDATE_MAJOR_VERSION=1
2273 LIBHDATE_MINOR_VERSION=6
2274 LIBHDATE_MICRO_VERSION=0
2275
2276 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
2277
2278 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:0
2279
2280
2281
2282 am__api_version='1.11'
2283
2284 ac_aux_dir=
2285 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2286 if test -f "$ac_dir/install-sh"; then
2287 ac_aux_dir=$ac_dir
2288 ac_install_sh="$ac_aux_dir/install-sh -c"
2289 break
2290 elif test -f "$ac_dir/install.sh"; then
2291 ac_aux_dir=$ac_dir
2292 ac_install_sh="$ac_aux_dir/install.sh -c"
2293 break
2294 elif test -f "$ac_dir/shtool"; then
2295 ac_aux_dir=$ac_dir
2296 ac_install_sh="$ac_aux_dir/shtool install -c"
2297 break
2298 fi
2299 done
2300 if test -z "$ac_aux_dir"; then
2301 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2302 fi
2303
2304 # These three variables are undocumented and unsupported,
2305 # and are intended to be withdrawn in a future Autoconf release.
2306 # They can cause serious problems if a builder's source tree is in a directory
2307 # whose full name contains unusual characters.
2308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311
2312
2313 # Find a good install program. We prefer a C program (faster),
2314 # so one script is as good as another. But avoid the broken or
2315 # incompatible versions:
2316 # SysV /etc/install, /usr/sbin/install
2317 # SunOS /usr/etc/install
2318 # IRIX /sbin/install
2319 # AIX /bin/install
2320 # AmigaOS /C/install, which installs bootblocks on floppy discs
2321 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2322 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2323 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2324 # OS/2's system install, which has a completely different semantic
2325 # ./install, which can be erroneously created by make from ./install.sh.
2326 # Reject install programs that cannot install multiple files.
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2328 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2329 if test -z "$INSTALL"; then
2330 if ${ac_cv_path_install+:} false; then :
2331 $as_echo_n "(cached) " >&6
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 # Account for people who put trailing slashes in PATH elements.
2339 case $as_dir/ in #((
2340 ./ | .// | /[cC]/* | \
2341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2342 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2343 /usr/ucb/* ) ;;
2344 *)
2345 # OSF1 and SCO ODT 3.0 have their own names for install.
2346 # Don't use installbsd from OSF since it installs stuff as root
2347 # by default.
2348 for ac_prog in ginstall scoinst install; do
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2351 if test $ac_prog = install &&
2352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2353 # AIX install. It has an incompatible calling convention.
2354 :
2355 elif test $ac_prog = install &&
2356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2357 # program-specific install script used by HP pwplus--don't use.
2358 :
2359 else
2360 rm -rf conftest.one conftest.two conftest.dir
2361 echo one > conftest.one
2362 echo two > conftest.two
2363 mkdir conftest.dir
2364 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2365 test -s conftest.one && test -s conftest.two &&
2366 test -s conftest.dir/conftest.one &&
2367 test -s conftest.dir/conftest.two
2368 then
2369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2370 break 3
2371 fi
2372 fi
2373 fi
2374 done
2375 done
2376 ;;
2377 esac
2378
2379 done
2380 IFS=$as_save_IFS
2381
2382 rm -rf conftest.one conftest.two conftest.dir
2383
2384 fi
2385 if test "${ac_cv_path_install+set}" = set; then
2386 INSTALL=$ac_cv_path_install
2387 else
2388 # As a last resort, use the slow shell script. Don't cache a
2389 # value for INSTALL within a source directory, because that will
2390 # break other packages using the cache if that directory is
2391 # removed, or if the value is a relative name.
2392 INSTALL=$ac_install_sh
2393 fi
2394 fi
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2396 $as_echo "$INSTALL" >&6; }
2397
2398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2399 # It thinks the first close brace ends the variable substitution.
2400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2401
2402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2403
2404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2405
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2407 $as_echo_n "checking whether build environment is sane... " >&6; }
2408 # Just in case
2409 sleep 1
2410 echo timestamp > conftest.file
2411 # Reject unsafe characters in $srcdir or the absolute working directory
2412 # name. Accept space and tab only in the latter.
2413 am_lf='
2414 '
2415 case `pwd` in
2416 *[\\\"\#\$\&\'\`$am_lf]*)
2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418 esac
2419 case $srcdir in
2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2421 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2422 esac
2423
2424 # Do `set' in a subshell so we don't clobber the current shell's
2425 # arguments. Must try -L first in case configure is actually a
2426 # symlink; some systems play weird games with the mod time of symlinks
2427 # (eg FreeBSD returns the mod time of the symlink's containing
2428 # directory).
2429 if (
2430 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2431 if test "$*" = "X"; then
2432 # -L didn't work.
2433 set X `ls -t "$srcdir/configure" conftest.file`
2434 fi
2435 rm -f conftest.file
2436 if test "$*" != "X $srcdir/configure conftest.file" \
2437 && test "$*" != "X conftest.file $srcdir/configure"; then
2438
2439 # If neither matched, then we have a broken ls. This can happen
2440 # if, for instance, CONFIG_SHELL is bash and it inherits a
2441 # broken ls alias from the environment. This has actually
2442 # happened. Such a system could not be considered "sane".
2443 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2444 alias in your environment" "$LINENO" 5
2445 fi
2446
2447 test "$2" = conftest.file
2448 )
2449 then
2450 # Ok.
2451 :
2452 else
2453 as_fn_error $? "newly created file is older than distributed files!
2454 Check your system clock" "$LINENO" 5
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2457 $as_echo "yes" >&6; }
2458 test "$program_prefix" != NONE &&
2459 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2460 # Use a double $ so make ignores it.
2461 test "$program_suffix" != NONE &&
2462 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2463 # Double any \ or $.
2464 # By default was `s,x,x', remove it if useless.
2465 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2466 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2467
2468 # expand $ac_aux_dir to an absolute path
2469 am_aux_dir=`cd $ac_aux_dir && pwd`
2470
2471 if test x"${MISSING+set}" != xset; then
2472 case $am_aux_dir in
2473 *\ * | *\ *)
2474 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2475 *)
2476 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2477 esac
2478 fi
2479 # Use eval to expand $SHELL
2480 if eval "$MISSING --run true"; then
2481 am_missing_run="$MISSING --run "
2482 else
2483 am_missing_run=
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2485 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2486 fi
2487
2488 if test x"${install_sh}" != xset; then
2489 case $am_aux_dir in
2490 *\ * | *\ *)
2491 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2492 *)
2493 install_sh="\${SHELL} $am_aux_dir/install-sh"
2494 esac
2495 fi
2496
2497 # Installed binaries are usually stripped using `strip' when the user
2498 # run `make install-strip'. However `strip' might not be the right
2499 # tool to use in cross-compilation environments, therefore Automake
2500 # will honor the `STRIP' environment variable to overrule this program.
2501 if test "$cross_compiling" != no; then
2502 if test -n "$ac_tool_prefix"; then
2503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2504 set dummy ${ac_tool_prefix}strip; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_STRIP+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$STRIP"; then
2511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 STRIP=$ac_cv_prog_STRIP
2531 if test -n "$STRIP"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2533 $as_echo "$STRIP" >&6; }
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539
2540 fi
2541 if test -z "$ac_cv_prog_STRIP"; then
2542 ac_ct_STRIP=$STRIP
2543 # Extract the first word of "strip", so it can be a program name with args.
2544 set dummy strip; ac_word=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 if test -n "$ac_ct_STRIP"; then
2551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_ac_ct_STRIP="strip"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2563 fi
2564 done
2565 done
2566 IFS=$as_save_IFS
2567
2568 fi
2569 fi
2570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2571 if test -n "$ac_ct_STRIP"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2573 $as_echo "$ac_ct_STRIP" >&6; }
2574 else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576 $as_echo "no" >&6; }
2577 fi
2578
2579 if test "x$ac_ct_STRIP" = x; then
2580 STRIP=":"
2581 else
2582 case $cross_compiling:$ac_tool_warned in
2583 yes:)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2586 ac_tool_warned=yes ;;
2587 esac
2588 STRIP=$ac_ct_STRIP
2589 fi
2590 else
2591 STRIP="$ac_cv_prog_STRIP"
2592 fi
2593
2594 fi
2595 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2596
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2598 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2599 if test -z "$MKDIR_P"; then
2600 if ${ac_cv_path_mkdir+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2605 do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_prog in mkdir gmkdir; do
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2611 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2612 'mkdir (GNU coreutils) '* | \
2613 'mkdir (coreutils) '* | \
2614 'mkdir (fileutils) '4.1*)
2615 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2616 break 3;;
2617 esac
2618 done
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624
2625 test -d ./--version && rmdir ./--version
2626 if test "${ac_cv_path_mkdir+set}" = set; then
2627 MKDIR_P="$ac_cv_path_mkdir -p"
2628 else
2629 # As a last resort, use the slow shell script. Don't cache a
2630 # value for MKDIR_P within a source directory, because that will
2631 # break other packages using the cache if that directory is
2632 # removed, or if the value is a relative name.
2633 MKDIR_P="$ac_install_sh -d"
2634 fi
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2637 $as_echo "$MKDIR_P" >&6; }
2638
2639 mkdir_p="$MKDIR_P"
2640 case $mkdir_p in
2641 [\\/$]* | ?:[\\/]*) ;;
2642 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2643 esac
2644
2645 for ac_prog in gawk mawk nawk awk
2646 do
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_AWK+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$AWK"; then
2655 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
2665 $as_echo "$as_me:${as_lineno-$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 AWK=$ac_cv_prog_AWK
2675 if test -n "$AWK"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2677 $as_echo "$AWK" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684 test -n "$AWK" && break
2685 done
2686
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2688 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2689 set x ${MAKE-make}
2690 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2691 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 cat >conftest.make <<\_ACEOF
2695 SHELL = /bin/sh
2696 all:
2697 @echo '@@@%%%=$(MAKE)=@@@%%%'
2698 _ACEOF
2699 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2700 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2701 *@@@%%%=?*=@@@%%%*)
2702 eval ac_cv_prog_make_${ac_make}_set=yes;;
2703 *)
2704 eval ac_cv_prog_make_${ac_make}_set=no;;
2705 esac
2706 rm -f conftest.make
2707 fi
2708 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710 $as_echo "yes" >&6; }
2711 SET_MAKE=
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 SET_MAKE="MAKE=${MAKE-make}"
2716 fi
2717
2718 rm -rf .tst 2>/dev/null
2719 mkdir .tst 2>/dev/null
2720 if test -d .tst; then
2721 am__leading_dot=.
2722 else
2723 am__leading_dot=_
2724 fi
2725 rmdir .tst 2>/dev/null
2726
2727 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2728 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2729 # is not polluted with repeated "-I."
2730 am__isrc=' -I$(srcdir)'
2731 # test to see if srcdir already configured
2732 if test -f $srcdir/config.status; then
2733 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2734 fi
2735 fi
2736
2737 # test whether we have cygpath
2738 if test -z "$CYGPATH_W"; then
2739 if (cygpath --version) >/dev/null 2>/dev/null; then
2740 CYGPATH_W='cygpath -w'
2741 else
2742 CYGPATH_W=echo
2743 fi
2744 fi
2745
2746
2747 # Define the identity of the package.
2748 PACKAGE=$PACKAGE
2749 VERSION=$VERSION
2750
2751
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE "$PACKAGE"
2754 _ACEOF
2755
2756
2757 cat >>confdefs.h <<_ACEOF
2758 #define VERSION "$VERSION"
2759 _ACEOF
2760
2761 # Some tools Automake needs.
2762
2763 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2764
2765
2766 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2767
2768
2769 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2770
2771
2772 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2773
2774
2775 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2776
2777 # We need awk for the "check" target. The system "awk" is bad on
2778 # some platforms.
2779 # Always define AMTAR for backward compatibility.
2780
2781 AMTAR=${AMTAR-"${am_missing_run}tar"}
2782
2783 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2784
2785
2786
2787
2788
2789
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2791 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2792 # Check whether --enable-maintainer-mode was given.
2793 if test "${enable_maintainer_mode+set}" = set; then :
2794 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2795 else
2796 USE_MAINTAINER_MODE=no
2797 fi
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2800 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2801 if test $USE_MAINTAINER_MODE = yes; then
2802 MAINTAINER_MODE_TRUE=
2803 MAINTAINER_MODE_FALSE='#'
2804 else
2805 MAINTAINER_MODE_TRUE='#'
2806 MAINTAINER_MODE_FALSE=
2807 fi
2808
2809 MAINT=$MAINTAINER_MODE_TRUE
2810
2811
2812
2813 DEPDIR="${am__leading_dot}deps"
2814
2815 ac_config_commands="$ac_config_commands depfiles"
2816
2817
2818 am_make=${MAKE-make}
2819 cat > confinc << 'END'
2820 am__doit:
2821 @echo this is the am__doit target
2822 .PHONY: am__doit
2823 END
2824 # If we don't find an include directive, just comment out the code.
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2826 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2827 am__include="#"
2828 am__quote=
2829 _am_result=none
2830 # First try GNU make style include.
2831 echo "include confinc" > confmf
2832 # Ignore all kinds of additional output from `make'.
2833 case `$am_make -s -f confmf 2> /dev/null` in #(
2834 *the\ am__doit\ target*)
2835 am__include=include
2836 am__quote=
2837 _am_result=GNU
2838 ;;
2839 esac
2840 # Now try BSD make style include.
2841 if test "$am__include" = "#"; then
2842 echo '.include "confinc"' > confmf
2843 case `$am_make -s -f confmf 2> /dev/null` in #(
2844 *the\ am__doit\ target*)
2845 am__include=.include
2846 am__quote="\""
2847 _am_result=BSD
2848 ;;
2849 esac
2850 fi
2851
2852
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2854 $as_echo "$_am_result" >&6; }
2855 rm -f confinc confmf
2856
2857 # Check whether --enable-dependency-tracking was given.
2858 if test "${enable_dependency_tracking+set}" = set; then :
2859 enableval=$enable_dependency_tracking;
2860 fi
2861
2862 if test "x$enable_dependency_tracking" != xno; then
2863 am_depcomp="$ac_aux_dir/depcomp"
2864 AMDEPBACKSLASH='\'
2865 fi
2866 if test "x$enable_dependency_tracking" != xno; then
2867 AMDEP_TRUE=
2868 AMDEP_FALSE='#'
2869 else
2870 AMDEP_TRUE='#'
2871 AMDEP_FALSE=
2872 fi
2873
2874
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 fi
2919 if test -z "$ac_cv_prog_CC"; then
2920 ac_ct_CC=$CC
2921 # Extract the first word of "gcc", so it can be a program name with args.
2922 set dummy gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_ac_ct_CC="gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957 if test "x$ac_ct_CC" = x; then
2958 CC=""
2959 else
2960 case $cross_compiling:$ac_tool_warned in
2961 yes:)
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964 ac_tool_warned=yes ;;
2965 esac
2966 CC=$ac_ct_CC
2967 fi
2968 else
2969 CC="$ac_cv_prog_CC"
2970 fi
2971
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_CC="${ac_tool_prefix}cc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011 fi
3012 fi
3013 if test -z "$CC"; then
3014 # Extract the first word of "cc", so it can be a program name with args.
3015 set dummy cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 ac_prog_rejected=no
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033 ac_prog_rejected=yes
3034 continue
3035 fi
3036 ac_cv_prog_CC="cc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 if test $ac_prog_rejected = yes; then
3045 # We found a bogon in the path, so make sure we never use it.
3046 set dummy $ac_cv_prog_CC
3047 shift
3048 if test $# != 0; then
3049 # We chose a different compiler from the bogus one.
3050 # However, it has the same basename, so the bogon will be chosen
3051 # first if we set CC to just the basename; use the full file name.
3052 shift
3053 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3054 fi
3055 fi
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 fi
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 for ac_prog in cl.exe
3072 do
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 test -n "$CC" && break
3111 done
3112 fi
3113 if test -z "$CC"; then
3114 ac_ct_CC=$CC
3115 for ac_prog in cl.exe
3116 do
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$ac_ct_CC"; then
3125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_ac_ct_CC="$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 test -n "$ac_ct_CC" && break
3155 done
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3167 fi
3168 fi
3169
3170 fi
3171
3172
3173 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "no acceptable C compiler found in \$PATH
3176 See \`config.log' for more details" "$LINENO" 5; }
3177
3178 # Provide some information about the compiler.
3179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3180 set X $ac_compile
3181 ac_compiler=$2
3182 for ac_option in --version -v -V -qversion; do
3183 { { ac_try="$ac_compiler $ac_option >&5"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3191 ac_status=$?
3192 if test -s conftest.err; then
3193 sed '10a\
3194 ... rest of stderr output deleted ...
3195 10q' conftest.err >conftest.er1
3196 cat conftest.er1 >&5
3197 fi
3198 rm -f conftest.er1 conftest.err
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }
3201 done
3202
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3218 # of exeext.
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3220 $as_echo_n "checking whether the C compiler works... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3222
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3225
3226 ac_rmfiles=
3227 for ac_file in $ac_files
3228 do
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3232 esac
3233 done
3234 rm -f $ac_rmfiles
3235
3236 if { { ac_try="$ac_link_default"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_link_default") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; then :
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3251 # Autoconf.
3252 for ac_file in $ac_files ''
3253 do
3254 test -f "$ac_file" || continue
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3257 ;;
3258 [ab].out )
3259 # We found the default executable, but exeext='' is most
3260 # certainly right.
3261 break;;
3262 *.* )
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3264 then :; else
3265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 fi
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3271 # actually working.
3272 break;;
3273 * )
3274 break;;
3275 esac
3276 done
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3278
3279 else
3280 ac_file=''
3281 fi
3282 if test -z "$ac_file"; then :
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error 77 "C compiler cannot create executables
3291 See \`config.log' for more details" "$LINENO" 5; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3301
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3320 # `rm'.
3321 for ac_file in conftest.exe conftest conftest.*; do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 break;;
3327 * ) break;;
3328 esac
3329 done
3330 else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details" "$LINENO" 5; }
3335 fi
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3339
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3342 ac_exeext=$EXEEXT
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345 #include <stdio.h>
3346 int
3347 main ()
3348 {
3349 FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run. If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362 { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 if { ac_try='./conftest$ac_cv_exeext'
3374 { { case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; }; then
3384 cross_compiling=no
3385 else
3386 if test "$cross_compiling" = maybe; then
3387 cross_compiling=yes
3388 else
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details" "$LINENO" 5; }
3394 fi
3395 fi
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3399
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if ${ac_cv_objext+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_compile") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 for ac_file in conftest.o conftest.obj conftest.*; do
3431 test -f "$ac_file" || continue;
3432 case $ac_file in
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435 break;;
3436 esac
3437 done
3438 else
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details" "$LINENO" 5; }
3446 fi
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3452 ac_objext=$OBJEXT
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if ${ac_cv_c_compiler_gnu+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464 #ifndef __GNUC__
3465 choke me
3466 #endif
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473 ac_compiler_gnu=yes
3474 else
3475 ac_compiler_gnu=no
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3484 GCC=yes
3485 else
3486 GCC=
3487 fi
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if ${ac_cv_prog_cc_g+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 ac_save_c_werror_flag=$ac_c_werror_flag
3496 ac_c_werror_flag=yes
3497 ac_cv_prog_cc_g=no
3498 CFLAGS="-g"
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501
3502 int
3503 main ()
3504 {
3505
3506 ;
3507 return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_prog_cc_g=yes
3512 else
3513 CFLAGS=""
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516
3517 int
3518 main ()
3519 {
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526
3527 else
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3529 CFLAGS="-g"
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532
3533 int
3534 main ()
3535 {
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542 ac_cv_prog_cc_g=yes
3543 fi
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554 CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556 if test "$GCC" = yes; then
3557 CFLAGS="-g -O2"
3558 else
3559 CFLAGS="-g"
3560 fi
3561 else
3562 if test "$GCC" = yes; then
3563 CFLAGS="-O2"
3564 else
3565 CFLAGS=
3566 fi
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if ${ac_cv_prog_cc_c89+:} false; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 ac_cv_prog_cc_c89=no
3574 ac_save_CC=$CC
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 #include <stdarg.h>
3578 #include <stdio.h>
3579 #include <sys/types.h>
3580 #include <sys/stat.h>
3581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3582 struct buf { int x; };
3583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3584 static char *e (p, i)
3585 char **p;
3586 int i;
3587 {
3588 return p[i];
3589 }
3590 static char *f (char * (*g) (char **, int), char **p, ...)
3591 {
3592 char *s;
3593 va_list v;
3594 va_start (v,p);
3595 s = g (p, va_arg (v,int));
3596 va_end (v);
3597 return s;
3598 }
3599
3600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3601 function prototypes and stuff, but not '\xHH' hex character constants.
3602 These don't provoke an error unfortunately, instead are silently treated
3603 as 'x'. The following induces an error, until -std is added to get
3604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3605 array size at least. It's necessary to write '\x00'==0 to get something
3606 that's true only with -std. */
3607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3608
3609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3610 inside strings and character constants. */
3611 #define FOO(x) 'x'
3612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3613
3614 int test (int i, double x);
3615 struct s1 {int (*f) (int a);};
3616 struct s2 {int (*f) (double a);};
3617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3618 int argc;
3619 char **argv;
3620 int
3621 main ()
3622 {
3623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630 do
3631 CC="$ac_save_CC $ac_arg"
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_cv_prog_cc_c89=$ac_arg
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext
3636 test "x$ac_cv_prog_cc_c89" != "xno" && break
3637 done
3638 rm -f conftest.$ac_ext
3639 CC=$ac_save_CC
3640
3641 fi
3642 # AC_CACHE_VAL
3643 case "x$ac_cv_prog_cc_c89" in
3644 x)
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3646 $as_echo "none needed" >&6; } ;;
3647 xno)
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3649 $as_echo "unsupported" >&6; } ;;
3650 *)
3651 CC="$CC $ac_cv_prog_cc_c89"
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3654 esac
3655 if test "x$ac_cv_prog_cc_c89" != xno; then :
3656
3657 fi
3658
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665 depcc="$CC" am_compiler_list=
3666
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3668 $as_echo_n "checking dependency style of $depcc... " >&6; }
3669 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3673 # We make a subdir and do the tests there. Otherwise we can end up
3674 # making bogus files that we don't know about and never remove. For
3675 # instance it was reported that on HP-UX the gcc test will end up
3676 # making a dummy file named `D' -- because `-MD' means `put the output
3677 # in D'.
3678 mkdir conftest.dir
3679 # Copy depcomp to subdir because otherwise we won't find it if we're
3680 # using a relative directory.
3681 cp "$am_depcomp" conftest.dir
3682 cd conftest.dir
3683 # We will build objects and dependencies in a subdirectory because
3684 # it helps to detect inapplicable dependency modes. For instance
3685 # both Tru64's cc and ICC support -MD to output dependencies as a
3686 # side effect of compilation, but ICC will put the dependencies in
3687 # the current directory while Tru64 will put them in the object
3688 # directory.
3689 mkdir sub
3690
3691 am_cv_CC_dependencies_compiler_type=none
3692 if test "$am_compiler_list" = ""; then
3693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3694 fi
3695 am__universal=false
3696 case " $depcc " in #(
3697 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3698 esac
3699
3700 for depmode in $am_compiler_list; do
3701 # Setup a source with many dependencies, because some compilers
3702 # like to wrap large dependency lists on column 80 (with \), and
3703 # we should not choose a depcomp mode which is confused by this.
3704 #
3705 # We need to recreate these files for each test, as the compiler may
3706 # overwrite some of them when testing with obscure command lines.
3707 # This happens at least with the AIX C compiler.
3708 : > sub/conftest.c
3709 for i in 1 2 3 4 5 6; do
3710 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3711 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3712 # Solaris 8's {/usr,}/bin/sh.
3713 touch sub/conftst$i.h
3714 done
3715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3716
3717 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3718 # mode. It turns out that the SunPro C++ compiler does not properly
3719 # handle `-M -o', and we need to detect this. Also, some Intel
3720 # versions had trouble with output in subdirs
3721 am__obj=sub/conftest.${OBJEXT-o}
3722 am__minus_obj="-o $am__obj"
3723 case $depmode in
3724 gcc)
3725 # This depmode causes a compiler race in universal mode.
3726 test "$am__universal" = false || continue
3727 ;;
3728 nosideeffect)
3729 # after this tag, mechanisms are not by side-effect, so they'll
3730 # only be used when explicitly requested
3731 if test "x$enable_dependency_tracking" = xyes; then
3732 continue
3733 else
3734 break
3735 fi
3736 ;;
3737 msvisualcpp | msvcmsys)
3738 # This compiler won't grok `-c -o', but also, the minuso test has
3739 # not run yet. These depmodes are late enough in the game, and
3740 # so weak that their functioning should not be impacted.
3741 am__obj=conftest.${OBJEXT-o}
3742 am__minus_obj=
3743 ;;
3744 none) break ;;
3745 esac
3746 if depmode=$depmode \
3747 source=sub/conftest.c object=$am__obj \
3748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3749 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3750 >/dev/null 2>conftest.err &&
3751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3755 # icc doesn't choke on unknown options, it will just issue warnings
3756 # or remarks (even with -Werror). So we grep stderr for any message
3757 # that says an option was ignored or not supported.
3758 # When given -MP, icc 7.0 and 7.1 complain thusly:
3759 # icc: Command line warning: ignoring option '-M'; no argument required
3760 # The diagnosis changed in icc 8.0:
3761 # icc: Command line remark: option '-MP' not supported
3762 if (grep 'ignoring option' conftest.err ||
3763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3764 am_cv_CC_dependencies_compiler_type=$depmode
3765 break
3766 fi
3767 fi
3768 done
3769
3770 cd ..
3771 rm -rf conftest.dir
3772 else
3773 am_cv_CC_dependencies_compiler_type=none
3774 fi
3775
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3778 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3779 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3780
3781 if
3782 test "x$enable_dependency_tracking" != xno \
3783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3784 am__fastdepCC_TRUE=
3785 am__fastdepCC_FALSE='#'
3786 else
3787 am__fastdepCC_TRUE='#'
3788 am__fastdepCC_FALSE=
3789 fi
3790
3791
3792
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3794 $as_echo_n "checking for library containing strerror... " >&6; }
3795 if ${ac_cv_search_strerror+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 ac_func_search_save_LIBS=$LIBS
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801
3802 /* Override any GCC internal prototype to avoid an error.
3803 Use char because int might match the return type of a GCC
3804 builtin and then its argument prototype would still apply. */
3805 #ifdef __cplusplus
3806 extern "C"
3807 #endif
3808 char strerror ();
3809 int
3810 main ()
3811 {
3812 return strerror ();
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 for ac_lib in '' cposix; do
3818 if test -z "$ac_lib"; then
3819 ac_res="none required"
3820 else
3821 ac_res=-l$ac_lib
3822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3823 fi
3824 if ac_fn_c_try_link "$LINENO"; then :
3825 ac_cv_search_strerror=$ac_res
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext \
3828 conftest$ac_exeext
3829 if ${ac_cv_search_strerror+:} false; then :
3830 break
3831 fi
3832 done
3833 if ${ac_cv_search_strerror+:} false; then :
3834
3835 else
3836 ac_cv_search_strerror=no
3837 fi
3838 rm conftest.$ac_ext
3839 LIBS=$ac_func_search_save_LIBS
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3842 $as_echo "$ac_cv_search_strerror" >&6; }
3843 ac_res=$ac_cv_search_strerror
3844 if test "$ac_res" != no; then :
3845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3846
3847 fi
3848
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3855 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3856 # On Suns, sometimes $CPP names a directory.
3857 if test -n "$CPP" && test -d "$CPP"; then
3858 CPP=
3859 fi
3860 if test -z "$CPP"; then
3861 if ${ac_cv_prog_CPP+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 # Double quotes because CPP needs to be expanded
3865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3866 do
3867 ac_preproc_ok=false
3868 for ac_c_preproc_warn_flag in '' yes
3869 do
3870 # Use a header file that comes with gcc, so configuring glibc
3871 # with a fresh cross-compiler works.
3872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3873 # <limits.h> exists even on freestanding compilers.
3874 # On the NeXT, cc -E runs the code through the compiler's parser,
3875 # not just through cpp. "Syntax error" is here to catch this case.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #ifdef __STDC__
3879 # include <limits.h>
3880 #else
3881 # include <assert.h>
3882 #endif
3883 Syntax error
3884 _ACEOF
3885 if ac_fn_c_try_cpp "$LINENO"; then :
3886
3887 else
3888 # Broken: fails on valid input.
3889 continue
3890 fi
3891 rm -f conftest.err conftest.i conftest.$ac_ext
3892
3893 # OK, works on sane cases. Now check whether nonexistent headers
3894 # can be detected and how.
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <ac_nonexistent.h>
3898 _ACEOF
3899 if ac_fn_c_try_cpp "$LINENO"; then :
3900 # Broken: success on invalid input.
3901 continue
3902 else
3903 # Passes both tests.
3904 ac_preproc_ok=:
3905 break
3906 fi
3907 rm -f conftest.err conftest.i conftest.$ac_ext
3908
3909 done
3910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911 rm -f conftest.i conftest.err conftest.$ac_ext
3912 if $ac_preproc_ok; then :
3913 break
3914 fi
3915
3916 done
3917 ac_cv_prog_CPP=$CPP
3918
3919 fi
3920 CPP=$ac_cv_prog_CPP
3921 else
3922 ac_cv_prog_CPP=$CPP
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3925 $as_echo "$CPP" >&6; }
3926 ac_preproc_ok=false
3927 for ac_c_preproc_warn_flag in '' yes
3928 do
3929 # Use a header file that comes with gcc, so configuring glibc
3930 # with a fresh cross-compiler works.
3931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932 # <limits.h> exists even on freestanding compilers.
3933 # On the NeXT, cc -E runs the code through the compiler's parser,
3934 # not just through cpp. "Syntax error" is here to catch this case.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #ifdef __STDC__
3938 # include <limits.h>
3939 #else
3940 # include <assert.h>
3941 #endif
3942 Syntax error
3943 _ACEOF
3944 if ac_fn_c_try_cpp "$LINENO"; then :
3945
3946 else
3947 # Broken: fails on valid input.
3948 continue
3949 fi
3950 rm -f conftest.err conftest.i conftest.$ac_ext
3951
3952 # OK, works on sane cases. Now check whether nonexistent headers
3953 # can be detected and how.
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <ac_nonexistent.h>
3957 _ACEOF
3958 if ac_fn_c_try_cpp "$LINENO"; then :
3959 # Broken: success on invalid input.
3960 continue
3961 else
3962 # Passes both tests.
3963 ac_preproc_ok=:
3964 break
3965 fi
3966 rm -f conftest.err conftest.i conftest.$ac_ext
3967
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.i conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then :
3972
3973 else
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3977 See \`config.log' for more details" "$LINENO" 5; }
3978 fi
3979
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3989 if ${ac_cv_path_GREP+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -z "$GREP"; then
3993 ac_path_GREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in grep ggrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004 # Check for GNU ac_path_GREP and select it if it is found.
4005 # Check for GNU $ac_path_GREP
4006 case `"$ac_path_GREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009 *)
4010 ac_count=0
4011 $as_echo_n 0123456789 >"conftest.in"
4012 while :
4013 do
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 $as_echo 'GREP' >> "conftest.nl"
4018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 as_fn_arith $ac_count + 1 && ac_count=$as_val
4021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_GREP="$ac_path_GREP"
4024 ac_path_GREP_max=$ac_count
4025 fi
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032 $ac_path_GREP_found && break 3
4033 done
4034 done
4035 done
4036 IFS=$as_save_IFS
4037 if test -z "$ac_cv_path_GREP"; then
4038 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4039 fi
4040 else
4041 ac_cv_path_GREP=$GREP
4042 fi
4043
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4046 $as_echo "$ac_cv_path_GREP" >&6; }
4047 GREP="$ac_cv_path_GREP"
4048
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4051 $as_echo_n "checking for egrep... " >&6; }
4052 if ${ac_cv_path_EGREP+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4056 then ac_cv_path_EGREP="$GREP -E"
4057 else
4058 if test -z "$EGREP"; then
4059 ac_path_EGREP_found=false
4060 # Loop through the user's path and test for each of PROGNAME-LIST
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4063 do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_prog in egrep; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4069 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4070 # Check for GNU ac_path_EGREP and select it if it is found.
4071 # Check for GNU $ac_path_EGREP
4072 case `"$ac_path_EGREP" --version 2>&1` in
4073 *GNU*)
4074 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4075 *)
4076 ac_count=0
4077 $as_echo_n 0123456789 >"conftest.in"
4078 while :
4079 do
4080 cat "conftest.in" "conftest.in" >"conftest.tmp"
4081 mv "conftest.tmp" "conftest.in"
4082 cp "conftest.in" "conftest.nl"
4083 $as_echo 'EGREP' >> "conftest.nl"
4084 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086 as_fn_arith $ac_count + 1 && ac_count=$as_val
4087 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4088 # Best one so far, save it but keep looking for a better one
4089 ac_cv_path_EGREP="$ac_path_EGREP"
4090 ac_path_EGREP_max=$ac_count
4091 fi
4092 # 10*(2^10) chars as input seems more than enough
4093 test $ac_count -gt 10 && break
4094 done
4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096 esac
4097
4098 $ac_path_EGREP_found && break 3
4099 done
4100 done
4101 done
4102 IFS=$as_save_IFS
4103 if test -z "$ac_cv_path_EGREP"; then
4104 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4105 fi
4106 else
4107 ac_cv_path_EGREP=$EGREP
4108 fi
4109
4110 fi
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4113 $as_echo "$ac_cv_path_EGREP" >&6; }
4114 EGREP="$ac_cv_path_EGREP"
4115
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4118 $as_echo_n "checking for ANSI C header files... " >&6; }
4119 if ${ac_cv_header_stdc+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <stdlib.h>
4125 #include <stdarg.h>
4126 #include <string.h>
4127 #include <float.h>
4128
4129 int
4130 main ()
4131 {
4132
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_header_stdc=yes
4139 else
4140 ac_cv_header_stdc=no
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143
4144 if test $ac_cv_header_stdc = yes; then
4145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <string.h>
4149
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "memchr" >/dev/null 2>&1; then :
4153
4154 else
4155 ac_cv_header_stdc=no
4156 fi
4157 rm -f conftest*
4158
4159 fi
4160
4161 if test $ac_cv_header_stdc = yes; then
4162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdlib.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "free" >/dev/null 2>&1; then :
4170
4171 else
4172 ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4180 if test "$cross_compiling" = yes; then :
4181 :
4182 else
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <ctype.h>
4186 #include <stdlib.h>
4187 #if ((' ' & 0x0FF) == 0x020)
4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190 #else
4191 # define ISLOWER(c) \
4192 (('a' <= (c) && (c) <= 'i') \
4193 || ('j' <= (c) && (c) <= 'r') \
4194 || ('s' <= (c) && (c) <= 'z'))
4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196 #endif
4197
4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199 int
4200 main ()
4201 {
4202 int i;
4203 for (i = 0; i < 256; i++)
4204 if (XOR (islower (i), ISLOWER (i))
4205 || toupper (i) != TOUPPER (i))
4206 return 2;
4207 return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_run "$LINENO"; then :
4211
4212 else
4213 ac_cv_header_stdc=no
4214 fi
4215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4216 conftest.$ac_objext conftest.beam conftest.$ac_ext
4217 fi
4218
4219 fi
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4222 $as_echo "$ac_cv_header_stdc" >&6; }
4223 if test $ac_cv_header_stdc = yes; then
4224
4225 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4226
4227 fi
4228
4229 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4231 inttypes.h stdint.h unistd.h
4232 do :
4233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4235 "
4236 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4237 cat >>confdefs.h <<_ACEOF
4238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4239 _ACEOF
4240
4241 fi
4242
4243 done
4244
4245
4246
4247 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4248 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4249 MINIX=yes
4250 else
4251 MINIX=
4252 fi
4253
4254
4255 if test "$MINIX" = yes; then
4256
4257 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4258
4259
4260 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4261
4262
4263 $as_echo "#define _MINIX 1" >>confdefs.h
4264
4265 fi
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4269 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4270 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 # define __EXTENSIONS__ 1
4277 $ac_includes_default
4278 int
4279 main ()
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_safe_to_define___extensions__=yes
4288 else
4289 ac_cv_safe_to_define___extensions__=no
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4294 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4295 test $ac_cv_safe_to_define___extensions__ = yes &&
4296 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4297
4298 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4299
4300 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4301
4302 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4303
4304 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4305
4306
4307
4308
4309 ac_ext=c
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_CC+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 CC=$ac_cv_prog_CC
4343 if test -n "$CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352 fi
4353 if test -z "$ac_cv_prog_CC"; then
4354 ac_ct_CC=$CC
4355 # Extract the first word of "gcc", so it can be a program name with args.
4356 set dummy gcc; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$ac_ct_CC"; then
4363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_ac_ct_CC="gcc"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4383 if test -n "$ac_ct_CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4385 $as_echo "$ac_ct_CC" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391 if test "x$ac_ct_CC" = x; then
4392 CC=""
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400 CC=$ac_ct_CC
4401 fi
4402 else
4403 CC="$ac_cv_prog_CC"
4404 fi
4405
4406 if test -z "$CC"; then
4407 if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4409 set dummy ${ac_tool_prefix}cc; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_CC+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_CC="${ac_tool_prefix}cc"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 CC=$ac_cv_prog_CC
4436 if test -n "$CC"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438 $as_echo "$CC" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444
4445 fi
4446 fi
4447 if test -z "$CC"; then
4448 # Extract the first word of "cc", so it can be a program name with args.
4449 set dummy cc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_CC+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4457 else
4458 ac_prog_rejected=no
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467 ac_prog_rejected=yes
4468 continue
4469 fi
4470 ac_cv_prog_CC="cc"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4473 fi
4474 done
4475 done
4476 IFS=$as_save_IFS
4477
4478 if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_CC
4481 shift
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set CC to just the basename; use the full file name.
4486 shift
4487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4488 fi
4489 fi
4490 fi
4491 fi
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495 $as_echo "$CC" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4499 fi
4500
4501
4502 fi
4503 if test -z "$CC"; then
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in cl.exe
4506 do
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_CC+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$CC"; then
4515 ac_cv_prog_CC="$CC" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 CC=$ac_cv_prog_CC
4535 if test -n "$CC"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4537 $as_echo "$CC" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544 test -n "$CC" && break
4545 done
4546 fi
4547 if test -z "$CC"; then
4548 ac_ct_CC=$CC
4549 for ac_prog in cl.exe
4550 do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_CC"; then
4559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_ac_ct_CC="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4579 if test -n "$ac_ct_CC"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4581 $as_echo "$ac_ct_CC" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 test -n "$ac_ct_CC" && break
4589 done
4590
4591 if test "x$ac_ct_CC" = x; then
4592 CC=""
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 CC=$ac_ct_CC
4601 fi
4602 fi
4603
4604 fi
4605
4606
4607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "no acceptable C compiler found in \$PATH
4610 See \`config.log' for more details" "$LINENO" 5; }
4611
4612 # Provide some information about the compiler.
4613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4614 set X $ac_compile
4615 ac_compiler=$2
4616 for ac_option in --version -v -V -qversion; do
4617 { { ac_try="$ac_compiler $ac_option >&5"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4623 $as_echo "$ac_try_echo"; } >&5
4624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4625 ac_status=$?
4626 if test -s conftest.err; then
4627 sed '10a\
4628 ... rest of stderr output deleted ...
4629 10q' conftest.err >conftest.er1
4630 cat conftest.er1 >&5
4631 fi
4632 rm -f conftest.er1 conftest.err
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }
4635 done
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4638 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4639 if ${ac_cv_c_compiler_gnu+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644
4645 int
4646 main ()
4647 {
4648 #ifndef __GNUC__
4649 choke me
4650 #endif
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_compiler_gnu=yes
4658 else
4659 ac_compiler_gnu=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4666 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4667 if test $ac_compiler_gnu = yes; then
4668 GCC=yes
4669 else
4670 GCC=
4671 fi
4672 ac_test_CFLAGS=${CFLAGS+set}
4673 ac_save_CFLAGS=$CFLAGS
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4675 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4676 if ${ac_cv_prog_cc_g+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 ac_save_c_werror_flag=$ac_c_werror_flag
4680 ac_c_werror_flag=yes
4681 ac_cv_prog_cc_g=no
4682 CFLAGS="-g"
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685
4686 int
4687 main ()
4688 {
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_prog_cc_g=yes
4696 else
4697 CFLAGS=""
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700
4701 int
4702 main ()
4703 {
4704
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710
4711 else
4712 ac_c_werror_flag=$ac_save_c_werror_flag
4713 CFLAGS="-g"
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716
4717 int
4718 main ()
4719 {
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_cv_prog_cc_g=yes
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ac_c_werror_flag=$ac_save_c_werror_flag
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4736 $as_echo "$ac_cv_prog_cc_g" >&6; }
4737 if test "$ac_test_CFLAGS" = set; then
4738 CFLAGS=$ac_save_CFLAGS
4739 elif test $ac_cv_prog_cc_g = yes; then
4740 if test "$GCC" = yes; then
4741 CFLAGS="-g -O2"
4742 else
4743 CFLAGS="-g"
4744 fi
4745 else
4746 if test "$GCC" = yes; then
4747 CFLAGS="-O2"
4748 else
4749 CFLAGS=
4750 fi
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4753 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4754 if ${ac_cv_prog_cc_c89+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 ac_cv_prog_cc_c89=no
4758 ac_save_CC=$CC
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <stdarg.h>
4762 #include <stdio.h>
4763 #include <sys/types.h>
4764 #include <sys/stat.h>
4765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4766 struct buf { int x; };
4767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4768 static char *e (p, i)
4769 char **p;
4770 int i;
4771 {
4772 return p[i];
4773 }
4774 static char *f (char * (*g) (char **, int), char **p, ...)
4775 {
4776 char *s;
4777 va_list v;
4778 va_start (v,p);
4779 s = g (p, va_arg (v,int));
4780 va_end (v);
4781 return s;
4782 }
4783
4784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4785 function prototypes and stuff, but not '\xHH' hex character constants.
4786 These don't provoke an error unfortunately, instead are silently treated
4787 as 'x'. The following induces an error, until -std is added to get
4788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4789 array size at least. It's necessary to write '\x00'==0 to get something
4790 that's true only with -std. */
4791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4792
4793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4794 inside strings and character constants. */
4795 #define FOO(x) 'x'
4796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4797
4798 int test (int i, double x);
4799 struct s1 {int (*f) (int a);};
4800 struct s2 {int (*f) (double a);};
4801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4802 int argc;
4803 char **argv;
4804 int
4805 main ()
4806 {
4807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4808 ;
4809 return 0;
4810 }
4811 _ACEOF
4812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4814 do
4815 CC="$ac_save_CC $ac_arg"
4816 if ac_fn_c_try_compile "$LINENO"; then :
4817 ac_cv_prog_cc_c89=$ac_arg
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext
4820 test "x$ac_cv_prog_cc_c89" != "xno" && break
4821 done
4822 rm -f conftest.$ac_ext
4823 CC=$ac_save_CC
4824
4825 fi
4826 # AC_CACHE_VAL
4827 case "x$ac_cv_prog_cc_c89" in
4828 x)
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4830 $as_echo "none needed" >&6; } ;;
4831 xno)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4833 $as_echo "unsupported" >&6; } ;;
4834 *)
4835 CC="$CC $ac_cv_prog_cc_c89"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4837 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4838 esac
4839 if test "x$ac_cv_prog_cc_c89" != xno; then :
4840
4841 fi
4842
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848
4849 depcc="$CC" am_compiler_list=
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4852 $as_echo_n "checking dependency style of $depcc... " >&6; }
4853 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4857 # We make a subdir and do the tests there. Otherwise we can end up
4858 # making bogus files that we don't know about and never remove. For
4859 # instance it was reported that on HP-UX the gcc test will end up
4860 # making a dummy file named `D' -- because `-MD' means `put the output
4861 # in D'.
4862 mkdir conftest.dir
4863 # Copy depcomp to subdir because otherwise we won't find it if we're
4864 # using a relative directory.
4865 cp "$am_depcomp" conftest.dir
4866 cd conftest.dir
4867 # We will build objects and dependencies in a subdirectory because
4868 # it helps to detect inapplicable dependency modes. For instance
4869 # both Tru64's cc and ICC support -MD to output dependencies as a
4870 # side effect of compilation, but ICC will put the dependencies in
4871 # the current directory while Tru64 will put them in the object
4872 # directory.
4873 mkdir sub
4874
4875 am_cv_CC_dependencies_compiler_type=none
4876 if test "$am_compiler_list" = ""; then
4877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4878 fi
4879 am__universal=false
4880 case " $depcc " in #(
4881 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4882 esac
4883
4884 for depmode in $am_compiler_list; do
4885 # Setup a source with many dependencies, because some compilers
4886 # like to wrap large dependency lists on column 80 (with \), and
4887 # we should not choose a depcomp mode which is confused by this.
4888 #
4889 # We need to recreate these files for each test, as the compiler may
4890 # overwrite some of them when testing with obscure command lines.
4891 # This happens at least with the AIX C compiler.
4892 : > sub/conftest.c
4893 for i in 1 2 3 4 5 6; do
4894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4896 # Solaris 8's {/usr,}/bin/sh.
4897 touch sub/conftst$i.h
4898 done
4899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4900
4901 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4902 # mode. It turns out that the SunPro C++ compiler does not properly
4903 # handle `-M -o', and we need to detect this. Also, some Intel
4904 # versions had trouble with output in subdirs
4905 am__obj=sub/conftest.${OBJEXT-o}
4906 am__minus_obj="-o $am__obj"
4907 case $depmode in
4908 gcc)
4909 # This depmode causes a compiler race in universal mode.
4910 test "$am__universal" = false || continue
4911 ;;
4912 nosideeffect)
4913 # after this tag, mechanisms are not by side-effect, so they'll
4914 # only be used when explicitly requested
4915 if test "x$enable_dependency_tracking" = xyes; then
4916 continue
4917 else
4918 break
4919 fi
4920 ;;
4921 msvisualcpp | msvcmsys)
4922 # This compiler won't grok `-c -o', but also, the minuso test has
4923 # not run yet. These depmodes are late enough in the game, and
4924 # so weak that their functioning should not be impacted.
4925 am__obj=conftest.${OBJEXT-o}
4926 am__minus_obj=
4927 ;;
4928 none) break ;;
4929 esac
4930 if depmode=$depmode \
4931 source=sub/conftest.c object=$am__obj \
4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934 >/dev/null 2>conftest.err &&
4935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939 # icc doesn't choke on unknown options, it will just issue warnings
4940 # or remarks (even with -Werror). So we grep stderr for any message
4941 # that says an option was ignored or not supported.
4942 # When given -MP, icc 7.0 and 7.1 complain thusly:
4943 # icc: Command line warning: ignoring option '-M'; no argument required
4944 # The diagnosis changed in icc 8.0:
4945 # icc: Command line remark: option '-MP' not supported
4946 if (grep 'ignoring option' conftest.err ||
4947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948 am_cv_CC_dependencies_compiler_type=$depmode
4949 break
4950 fi
4951 fi
4952 done
4953
4954 cd ..
4955 rm -rf conftest.dir
4956 else
4957 am_cv_CC_dependencies_compiler_type=none
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4962 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4964
4965 if
4966 test "x$enable_dependency_tracking" != xno \
4967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4968 am__fastdepCC_TRUE=
4969 am__fastdepCC_FALSE='#'
4970 else
4971 am__fastdepCC_TRUE='#'
4972 am__fastdepCC_FALSE=
4973 fi
4974
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4978 $as_echo_n "checking whether ln -s works... " >&6; }
4979 LN_S=$as_ln_s
4980 if test "$LN_S" = "ln -s"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4982 $as_echo "yes" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4985 $as_echo "no, using $LN_S" >&6; }
4986 fi
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4990 set x ${MAKE-make}
4991 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4992 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 cat >conftest.make <<\_ACEOF
4996 SHELL = /bin/sh
4997 all:
4998 @echo '@@@%%%=$(MAKE)=@@@%%%'
4999 _ACEOF
5000 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5001 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5002 *@@@%%%=?*=@@@%%%*)
5003 eval ac_cv_prog_make_${ac_make}_set=yes;;
5004 *)
5005 eval ac_cv_prog_make_${ac_make}_set=no;;
5006 esac
5007 rm -f conftest.make
5008 fi
5009 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5011 $as_echo "yes" >&6; }
5012 SET_MAKE=
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 SET_MAKE="MAKE=${MAKE-make}"
5017 fi
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5020 $as_echo_n "checking for ANSI C header files... " >&6; }
5021 if ${ac_cv_header_stdc+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026 #include <stdlib.h>
5027 #include <stdarg.h>
5028 #include <string.h>
5029 #include <float.h>
5030
5031 int
5032 main ()
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_header_stdc=yes
5041 else
5042 ac_cv_header_stdc=no
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045
5046 if test $ac_cv_header_stdc = yes; then
5047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #include <string.h>
5051
5052 _ACEOF
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054 $EGREP "memchr" >/dev/null 2>&1; then :
5055
5056 else
5057 ac_cv_header_stdc=no
5058 fi
5059 rm -f conftest*
5060
5061 fi
5062
5063 if test $ac_cv_header_stdc = yes; then
5064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <stdlib.h>
5068
5069 _ACEOF
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071 $EGREP "free" >/dev/null 2>&1; then :
5072
5073 else
5074 ac_cv_header_stdc=no
5075 fi
5076 rm -f conftest*
5077
5078 fi
5079
5080 if test $ac_cv_header_stdc = yes; then
5081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5082 if test "$cross_compiling" = yes; then :
5083 :
5084 else
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 #include <ctype.h>
5088 #include <stdlib.h>
5089 #if ((' ' & 0x0FF) == 0x020)
5090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5092 #else
5093 # define ISLOWER(c) \
5094 (('a' <= (c) && (c) <= 'i') \
5095 || ('j' <= (c) && (c) <= 'r') \
5096 || ('s' <= (c) && (c) <= 'z'))
5097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5098 #endif
5099
5100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5101 int
5102 main ()
5103 {
5104 int i;
5105 for (i = 0; i < 256; i++)
5106 if (XOR (islower (i), ISLOWER (i))
5107 || toupper (i) != TOUPPER (i))
5108 return 2;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_run "$LINENO"; then :
5113
5114 else
5115 ac_cv_header_stdc=no
5116 fi
5117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5118 conftest.$ac_objext conftest.beam conftest.$ac_ext
5119 fi
5120
5121 fi
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5124 $as_echo "$ac_cv_header_stdc" >&6; }
5125 if test $ac_cv_header_stdc = yes; then
5126
5127 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5128
5129 fi
5130
5131 case `pwd` in
5132 *\ * | *\ *)
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5134 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5135 esac
5136
5137
5138
5139 macro_version='2.4.2'
5140 macro_revision='1.3337'
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 ltmain="$ac_aux_dir/ltmain.sh"
5155
5156 # Make sure we can run config.sub.
5157 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5158 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5161 $as_echo_n "checking build system type... " >&6; }
5162 if ${ac_cv_build+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 ac_build_alias=$build_alias
5166 test "x$ac_build_alias" = x &&
5167 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5168 test "x$ac_build_alias" = x &&
5169 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5171 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5172
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5175 $as_echo "$ac_cv_build" >&6; }
5176 case $ac_cv_build in
5177 *-*-*) ;;
5178 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5179 esac
5180 build=$ac_cv_build
5181 ac_save_IFS=$IFS; IFS='-'
5182 set x $ac_cv_build
5183 shift
5184 build_cpu=$1
5185 build_vendor=$2
5186 shift; shift
5187 # Remember, the first character of IFS is used to create $*,
5188 # except with old shells:
5189 build_os=$*
5190 IFS=$ac_save_IFS
5191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5192
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5195 $as_echo_n "checking host system type... " >&6; }
5196 if ${ac_cv_host+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if test "x$host_alias" = x; then
5200 ac_cv_host=$ac_cv_build
5201 else
5202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5204 fi
5205
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5208 $as_echo "$ac_cv_host" >&6; }
5209 case $ac_cv_host in
5210 *-*-*) ;;
5211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5212 esac
5213 host=$ac_cv_host
5214 ac_save_IFS=$IFS; IFS='-'
5215 set x $ac_cv_host
5216 shift
5217 host_cpu=$1
5218 host_vendor=$2
5219 shift; shift
5220 # Remember, the first character of IFS is used to create $*,
5221 # except with old shells:
5222 host_os=$*
5223 IFS=$ac_save_IFS
5224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5225
5226
5227 # Backslashify metacharacters that are still active within
5228 # double-quoted strings.
5229 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5230
5231 # Same as above, but do not quote variable references.
5232 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5233
5234 # Sed substitution to delay expansion of an escaped shell variable in a
5235 # double_quote_subst'ed string.
5236 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5237
5238 # Sed substitution to delay expansion of an escaped single quote.
5239 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5240
5241 # Sed substitution to avoid accidental globbing in evaled expressions
5242 no_glob_subst='s/\*/\\\*/g'
5243
5244 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5245 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5246 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5249 $as_echo_n "checking how to print strings... " >&6; }
5250 # Test print first, because it will be a builtin if present.
5251 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5252 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5253 ECHO='print -r --'
5254 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5255 ECHO='printf %s\n'
5256 else
5257 # Use this function as a fallback that always works.
5258 func_fallback_echo ()
5259 {
5260 eval 'cat <<_LTECHO_EOF
5261 $1
5262 _LTECHO_EOF'
5263 }
5264 ECHO='func_fallback_echo'
5265 fi
5266
5267 # func_echo_all arg...
5268 # Invoke $ECHO with all args, space-separated.
5269 func_echo_all ()
5270 {
5271 $ECHO ""
5272 }
5273
5274 case "$ECHO" in
5275 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5276 $as_echo "printf" >&6; } ;;
5277 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5278 $as_echo "print -r" >&6; } ;;
5279 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5280 $as_echo "cat" >&6; } ;;
5281 esac
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5297 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5298 if ${ac_cv_path_SED+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5302 for ac_i in 1 2 3 4 5 6 7; do
5303 ac_script="$ac_script$as_nl$ac_script"
5304 done
5305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5306 { ac_script=; unset ac_script;}
5307 if test -z "$SED"; then
5308 ac_path_SED_found=false
5309 # Loop through the user's path and test for each of PROGNAME-LIST
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_prog in sed gsed; do
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5318 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5319 # Check for GNU ac_path_SED and select it if it is found.
5320 # Check for GNU $ac_path_SED
5321 case `"$ac_path_SED" --version 2>&1` in
5322 *GNU*)
5323 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5324 *)
5325 ac_count=0
5326 $as_echo_n 0123456789 >"conftest.in"
5327 while :
5328 do
5329 cat "conftest.in" "conftest.in" >"conftest.tmp"
5330 mv "conftest.tmp" "conftest.in"
5331 cp "conftest.in" "conftest.nl"
5332 $as_echo '' >> "conftest.nl"
5333 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335 as_fn_arith $ac_count + 1 && ac_count=$as_val
5336 if test $ac_count -gt ${ac_path_SED_max-0}; then
5337 # Best one so far, save it but keep looking for a better one
5338 ac_cv_path_SED="$ac_path_SED"
5339 ac_path_SED_max=$ac_count
5340 fi
5341 # 10*(2^10) chars as input seems more than enough
5342 test $ac_count -gt 10 && break
5343 done
5344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5345 esac
5346
5347 $ac_path_SED_found && break 3
5348 done
5349 done
5350 done
5351 IFS=$as_save_IFS
5352 if test -z "$ac_cv_path_SED"; then
5353 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5354 fi
5355 else
5356 ac_cv_path_SED=$SED
5357 fi
5358
5359 fi
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5361 $as_echo "$ac_cv_path_SED" >&6; }
5362 SED="$ac_cv_path_SED"
5363 rm -f conftest.sed
5364
5365 test -z "$SED" && SED=sed
5366 Xsed="$SED -e 1s/^X//"
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5379 $as_echo_n "checking for fgrep... " >&6; }
5380 if ${ac_cv_path_FGREP+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5384 then ac_cv_path_FGREP="$GREP -F"
5385 else
5386 if test -z "$FGREP"; then
5387 ac_path_FGREP_found=false
5388 # Loop through the user's path and test for each of PROGNAME-LIST
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_prog in fgrep; do
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5397 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5398 # Check for GNU ac_path_FGREP and select it if it is found.
5399 # Check for GNU $ac_path_FGREP
5400 case `"$ac_path_FGREP" --version 2>&1` in
5401 *GNU*)
5402 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5403 *)
5404 ac_count=0
5405 $as_echo_n 0123456789 >"conftest.in"
5406 while :
5407 do
5408 cat "conftest.in" "conftest.in" >"conftest.tmp"
5409 mv "conftest.tmp" "conftest.in"
5410 cp "conftest.in" "conftest.nl"
5411 $as_echo 'FGREP' >> "conftest.nl"
5412 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414 as_fn_arith $ac_count + 1 && ac_count=$as_val
5415 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5416 # Best one so far, save it but keep looking for a better one
5417 ac_cv_path_FGREP="$ac_path_FGREP"
5418 ac_path_FGREP_max=$ac_count
5419 fi
5420 # 10*(2^10) chars as input seems more than enough
5421 test $ac_count -gt 10 && break
5422 done
5423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5424 esac
5425
5426 $ac_path_FGREP_found && break 3
5427 done
5428 done
5429 done
5430 IFS=$as_save_IFS
5431 if test -z "$ac_cv_path_FGREP"; then
5432 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5433 fi
5434 else
5435 ac_cv_path_FGREP=$FGREP
5436 fi
5437
5438 fi
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5441 $as_echo "$ac_cv_path_FGREP" >&6; }
5442 FGREP="$ac_cv_path_FGREP"
5443
5444
5445 test -z "$GREP" && GREP=grep
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465 # Check whether --with-gnu-ld was given.
5466 if test "${with_gnu_ld+set}" = set; then :
5467 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5468 else
5469 with_gnu_ld=no
5470 fi
5471
5472 ac_prog=ld
5473 if test "$GCC" = yes; then
5474 # Check if gcc -print-prog-name=ld gives a path.
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5476 $as_echo_n "checking for ld used by $CC... " >&6; }
5477 case $host in
5478 *-*-mingw*)
5479 # gcc leaves a trailing carriage return which upsets mingw
5480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5481 *)
5482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5483 esac
5484 case $ac_prog in
5485 # Accept absolute paths.
5486 [\\/]* | ?:[\\/]*)
5487 re_direlt='/[^/][^/]*/\.\./'
5488 # Canonicalize the pathname of ld
5489 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5490 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5491 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5492 done
5493 test -z "$LD" && LD="$ac_prog"
5494 ;;
5495 "")
5496 # If it fails, then pretend we aren't using GCC.
5497 ac_prog=ld
5498 ;;
5499 *)
5500 # If it is relative, then search for the first ld in PATH.
5501 with_gnu_ld=unknown
5502 ;;
5503 esac
5504 elif test "$with_gnu_ld" = yes; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5506 $as_echo_n "checking for GNU ld... " >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5509 $as_echo_n "checking for non-GNU ld... " >&6; }
5510 fi
5511 if ${lt_cv_path_LD+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -z "$LD"; then
5515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5516 for ac_dir in $PATH; do
5517 IFS="$lt_save_ifs"
5518 test -z "$ac_dir" && ac_dir=.
5519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5520 lt_cv_path_LD="$ac_dir/$ac_prog"
5521 # Check to see if the program is GNU ld. I'd rather use --version,
5522 # but apparently some variants of GNU ld only accept -v.
5523 # Break only if it was the GNU/non-GNU ld that we prefer.
5524 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5525 *GNU* | *'with BFD'*)
5526 test "$with_gnu_ld" != no && break
5527 ;;
5528 *)
5529 test "$with_gnu_ld" != yes && break
5530 ;;
5531 esac
5532 fi
5533 done
5534 IFS="$lt_save_ifs"
5535 else
5536 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5537 fi
5538 fi
5539
5540 LD="$lt_cv_path_LD"
5541 if test -n "$LD"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5543 $as_echo "$LD" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5550 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5551 if ${lt_cv_prog_gnu_ld+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5555 case `$LD -v 2>&1 </dev/null` in
5556 *GNU* | *'with BFD'*)
5557 lt_cv_prog_gnu_ld=yes
5558 ;;
5559 *)
5560 lt_cv_prog_gnu_ld=no
5561 ;;
5562 esac
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5565 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5566 with_gnu_ld=$lt_cv_prog_gnu_ld
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5577 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5578 if ${lt_cv_path_NM+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$NM"; then
5582 # Let the user override the test.
5583 lt_cv_path_NM="$NM"
5584 else
5585 lt_nm_to_check="${ac_tool_prefix}nm"
5586 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5587 lt_nm_to_check="$lt_nm_to_check nm"
5588 fi
5589 for lt_tmp_nm in $lt_nm_to_check; do
5590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5591 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5592 IFS="$lt_save_ifs"
5593 test -z "$ac_dir" && ac_dir=.
5594 tmp_nm="$ac_dir/$lt_tmp_nm"
5595 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5596 # Check to see if the nm accepts a BSD-compat flag.
5597 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5598 # nm: unknown option "B" ignored
5599 # Tru64's nm complains that /dev/null is an invalid object file
5600 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5601 */dev/null* | *'Invalid file or object type'*)
5602 lt_cv_path_NM="$tmp_nm -B"
5603 break
5604 ;;
5605 *)
5606 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5607 */dev/null*)
5608 lt_cv_path_NM="$tmp_nm -p"
5609 break
5610 ;;
5611 *)
5612 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5613 continue # so that we can try to find one that supports BSD flags
5614 ;;
5615 esac
5616 ;;
5617 esac
5618 fi
5619 done
5620 IFS="$lt_save_ifs"
5621 done
5622 : ${lt_cv_path_NM=no}
5623 fi
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5626 $as_echo "$lt_cv_path_NM" >&6; }
5627 if test "$lt_cv_path_NM" != "no"; then
5628 NM="$lt_cv_path_NM"
5629 else
5630 # Didn't find any BSD compatible name lister, look for dumpbin.
5631 if test -n "$DUMPBIN"; then :
5632 # Let the user override the test.
5633 else
5634 if test -n "$ac_tool_prefix"; then
5635 for ac_prog in dumpbin "link -dump"
5636 do
5637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_DUMPBIN+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -n "$DUMPBIN"; then
5645 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658 done
5659 done
5660 IFS=$as_save_IFS
5661
5662 fi
5663 fi
5664 DUMPBIN=$ac_cv_prog_DUMPBIN
5665 if test -n "$DUMPBIN"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5667 $as_echo "$DUMPBIN" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5671 fi
5672
5673
5674 test -n "$DUMPBIN" && break
5675 done
5676 fi
5677 if test -z "$DUMPBIN"; then
5678 ac_ct_DUMPBIN=$DUMPBIN
5679 for ac_prog in dumpbin "link -dump"
5680 do
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$ac_ct_DUMPBIN"; then
5689 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5701 fi
5702 done
5703 done
5704 IFS=$as_save_IFS
5705
5706 fi
5707 fi
5708 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5709 if test -n "$ac_ct_DUMPBIN"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5711 $as_echo "$ac_ct_DUMPBIN" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 fi
5716
5717
5718 test -n "$ac_ct_DUMPBIN" && break
5719 done
5720
5721 if test "x$ac_ct_DUMPBIN" = x; then
5722 DUMPBIN=":"
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725 yes:)
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728 ac_tool_warned=yes ;;
5729 esac
5730 DUMPBIN=$ac_ct_DUMPBIN
5731 fi
5732 fi
5733
5734 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5735 *COFF*)
5736 DUMPBIN="$DUMPBIN -symbols"
5737 ;;
5738 *)
5739 DUMPBIN=:
5740 ;;
5741 esac
5742 fi
5743
5744 if test "$DUMPBIN" != ":"; then
5745 NM="$DUMPBIN"
5746 fi
5747 fi
5748 test -z "$NM" && NM=nm
5749
5750
5751
5752
5753
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5756 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5757 if ${lt_cv_nm_interface+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 lt_cv_nm_interface="BSD nm"
5761 echo "int some_variable = 0;" > conftest.$ac_ext
5762 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5763 (eval "$ac_compile" 2>conftest.err)
5764 cat conftest.err >&5
5765 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5767 cat conftest.err >&5
5768 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5769 cat conftest.out >&5
5770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5771 lt_cv_nm_interface="MS dumpbin"
5772 fi
5773 rm -f conftest*
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5776 $as_echo "$lt_cv_nm_interface" >&6; }
5777
5778 # find the maximum length of command line arguments
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5780 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5781 if ${lt_cv_sys_max_cmd_len+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 i=0
5785 teststring="ABCD"
5786
5787 case $build_os in
5788 msdosdjgpp*)
5789 # On DJGPP, this test can blow up pretty badly due to problems in libc
5790 # (any single argument exceeding 2000 bytes causes a buffer overrun
5791 # during glob expansion). Even if it were fixed, the result of this
5792 # check would be larger than it should be.
5793 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5794 ;;
5795
5796 gnu*)
5797 # Under GNU Hurd, this test is not required because there is
5798 # no limit to the length of command line arguments.
5799 # Libtool will interpret -1 as no limit whatsoever
5800 lt_cv_sys_max_cmd_len=-1;
5801 ;;
5802
5803 cygwin* | mingw* | cegcc*)
5804 # On Win9x/ME, this test blows up -- it succeeds, but takes
5805 # about 5 minutes as the teststring grows exponentially.
5806 # Worse, since 9x/ME are not pre-emptively multitasking,
5807 # you end up with a "frozen" computer, even though with patience
5808 # the test eventually succeeds (with a max line length of 256k).
5809 # Instead, let's just punt: use the minimum linelength reported by
5810 # all of the supported platforms: 8192 (on NT/2K/XP).
5811 lt_cv_sys_max_cmd_len=8192;
5812 ;;
5813
5814 mint*)
5815 # On MiNT this can take a long time and run out of memory.
5816 lt_cv_sys_max_cmd_len=8192;
5817 ;;
5818
5819 amigaos*)
5820 # On AmigaOS with pdksh, this test takes hours, literally.
5821 # So we just punt and use a minimum line length of 8192.
5822 lt_cv_sys_max_cmd_len=8192;
5823 ;;
5824
5825 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5826 # This has been around since 386BSD, at least. Likely further.
5827 if test -x /sbin/sysctl; then
5828 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5829 elif test -x /usr/sbin/sysctl; then
5830 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5831 else
5832 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5833 fi
5834 # And add a safety zone
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5837 ;;
5838
5839 interix*)
5840 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5841 lt_cv_sys_max_cmd_len=196608
5842 ;;
5843
5844 os2*)
5845 # The test takes a long time on OS/2.
5846 lt_cv_sys_max_cmd_len=8192
5847 ;;
5848
5849 osf*)
5850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5852 # nice to cause kernel panics so lets avoid the loop below.
5853 # First set a reasonable default.
5854 lt_cv_sys_max_cmd_len=16384
5855 #
5856 if test -x /sbin/sysconfig; then
5857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5858 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5859 esac
5860 fi
5861 ;;
5862 sco3.2v5*)
5863 lt_cv_sys_max_cmd_len=102400
5864 ;;
5865 sysv5* | sco5v6* | sysv4.2uw2*)
5866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5867 if test -n "$kargmax"; then
5868 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5869 else
5870 lt_cv_sys_max_cmd_len=32768
5871 fi
5872 ;;
5873 *)
5874 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5875 if test -n "$lt_cv_sys_max_cmd_len"; then
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5878 else
5879 # Make teststring a little bigger before we do anything with it.
5880 # a 1K string should be a reasonable start.
5881 for i in 1 2 3 4 5 6 7 8 ; do
5882 teststring=$teststring$teststring
5883 done
5884 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5885 # If test is not a shell built-in, we'll probably end up computing a
5886 # maximum length that is only half of the actual maximum length, but
5887 # we can't tell.
5888 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5889 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5890 test $i != 17 # 1/2 MB should be enough
5891 do
5892 i=`expr $i + 1`
5893 teststring=$teststring$teststring
5894 done
5895 # Only check the string length outside the loop.
5896 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5897 teststring=
5898 # Add a significant safety factor because C++ compilers can tack on
5899 # massive amounts of additional arguments before passing them to the
5900 # linker. It appears as though 1/2 is a usable value.
5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5902 fi
5903 ;;
5904 esac
5905
5906 fi
5907
5908 if test -n $lt_cv_sys_max_cmd_len ; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5910 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5913 $as_echo "none" >&6; }
5914 fi
5915 max_cmd_len=$lt_cv_sys_max_cmd_len
5916
5917
5918
5919
5920
5921
5922 : ${CP="cp -f"}
5923 : ${MV="mv -f"}
5924 : ${RM="rm -f"}
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5927 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5928 # Try some XSI features
5929 xsi_shell=no
5930 ( _lt_dummy="a/b/c"
5931 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5932 = c,a/b,b/c, \
5933 && eval 'test $(( 1 + 1 )) -eq 2 \
5934 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5935 && xsi_shell=yes
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5937 $as_echo "$xsi_shell" >&6; }
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5941 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5942 lt_shell_append=no
5943 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5944 >/dev/null 2>&1 \
5945 && lt_shell_append=yes
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5947 $as_echo "$lt_shell_append" >&6; }
5948
5949
5950 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5951 lt_unset=unset
5952 else
5953 lt_unset=false
5954 fi
5955
5956
5957
5958
5959
5960 # test EBCDIC or ASCII
5961 case `echo X|tr X '\101'` in
5962 A) # ASCII based system
5963 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5964 lt_SP2NL='tr \040 \012'
5965 lt_NL2SP='tr \015\012 \040\040'
5966 ;;
5967 *) # EBCDIC based system
5968 lt_SP2NL='tr \100 \n'
5969 lt_NL2SP='tr \r\n \100\100'
5970 ;;
5971 esac
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5982 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5983 if ${lt_cv_to_host_file_cmd+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 case $host in
5987 *-*-mingw* )
5988 case $build in
5989 *-*-mingw* ) # actually msys
5990 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5991 ;;
5992 *-*-cygwin* )
5993 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5994 ;;
5995 * ) # otherwise, assume *nix
5996 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5997 ;;
5998 esac
5999 ;;
6000 *-*-cygwin* )
6001 case $build in
6002 *-*-mingw* ) # actually msys
6003 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6004 ;;
6005 *-*-cygwin* )
6006 lt_cv_to_host_file_cmd=func_convert_file_noop
6007 ;;
6008 * ) # otherwise, assume *nix
6009 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6010 ;;
6011 esac
6012 ;;
6013 * ) # unhandled hosts (and "normal" native builds)
6014 lt_cv_to_host_file_cmd=func_convert_file_noop
6015 ;;
6016 esac
6017
6018 fi
6019
6020 to_host_file_cmd=$lt_cv_to_host_file_cmd
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6022 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6023
6024
6025
6026
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6029 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6030 if ${lt_cv_to_tool_file_cmd+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 #assume ordinary cross tools, or native build.
6034 lt_cv_to_tool_file_cmd=func_convert_file_noop
6035 case $host in
6036 *-*-mingw* )
6037 case $build in
6038 *-*-mingw* ) # actually msys
6039 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6040 ;;
6041 esac
6042 ;;
6043 esac
6044
6045 fi
6046
6047 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6049 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6056 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6057 if ${lt_cv_ld_reload_flag+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 lt_cv_ld_reload_flag='-r'
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6063 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6064 reload_flag=$lt_cv_ld_reload_flag
6065 case $reload_flag in
6066 "" | " "*) ;;
6067 *) reload_flag=" $reload_flag" ;;
6068 esac
6069 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6070 case $host_os in
6071 cygwin* | mingw* | pw32* | cegcc*)
6072 if test "$GCC" != yes; then
6073 reload_cmds=false
6074 fi
6075 ;;
6076 darwin*)
6077 if test "$GCC" = yes; then
6078 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6079 else
6080 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6081 fi
6082 ;;
6083 esac
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if ${ac_cv_prog_OBJDUMP+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 if test -n "$OBJDUMP"; then
6102 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 OBJDUMP=$ac_cv_prog_OBJDUMP
6122 if test -n "$OBJDUMP"; then
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6124 $as_echo "$OBJDUMP" >&6; }
6125 else
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_OBJDUMP"; then
6133 ac_ct_OBJDUMP=$OBJDUMP
6134 # Extract the first word of "objdump", so it can be a program name with args.
6135 set dummy objdump; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -n "$ac_ct_OBJDUMP"; then
6142 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6162 if test -n "$ac_ct_OBJDUMP"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6164 $as_echo "$ac_ct_OBJDUMP" >&6; }
6165 else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170 if test "x$ac_ct_OBJDUMP" = x; then
6171 OBJDUMP="false"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179 OBJDUMP=$ac_ct_OBJDUMP
6180 fi
6181 else
6182 OBJDUMP="$ac_cv_prog_OBJDUMP"
6183 fi
6184
6185 test -z "$OBJDUMP" && OBJDUMP=objdump
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6196 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6197 if ${lt_cv_deplibs_check_method+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 lt_cv_file_magic_cmd='$MAGIC_CMD'
6201 lt_cv_file_magic_test_file=
6202 lt_cv_deplibs_check_method='unknown'
6203 # Need to set the preceding variable on all platforms that support
6204 # interlibrary dependencies.
6205 # 'none' -- dependencies not supported.
6206 # `unknown' -- same as none, but documents that we really don't know.
6207 # 'pass_all' -- all dependencies passed with no checks.
6208 # 'test_compile' -- check by making test program.
6209 # 'file_magic [[regex]]' -- check by looking for files in library path
6210 # which responds to the $file_magic_cmd with a given extended regex.
6211 # If you have `file' or equivalent on your system and you're not sure
6212 # whether `pass_all' will *always* work, you probably want this one.
6213
6214 case $host_os in
6215 aix[4-9]*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 beos*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 bsdi[45]*)
6224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6225 lt_cv_file_magic_cmd='/usr/bin/file -L'
6226 lt_cv_file_magic_test_file=/shlib/libc.so
6227 ;;
6228
6229 cygwin*)
6230 # func_win32_libid is a shell function defined in ltmain.sh
6231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6232 lt_cv_file_magic_cmd='func_win32_libid'
6233 ;;
6234
6235 mingw* | pw32*)
6236 # Base MSYS/MinGW do not provide the 'file' command needed by
6237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6238 # unless we find 'file', for example because we are cross-compiling.
6239 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6240 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6241 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6242 lt_cv_file_magic_cmd='func_win32_libid'
6243 else
6244 # Keep this pattern in sync with the one in func_win32_libid.
6245 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6246 lt_cv_file_magic_cmd='$OBJDUMP -f'
6247 fi
6248 ;;
6249
6250 cegcc*)
6251 # use the weaker test based on 'objdump'. See mingw*.
6252 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6253 lt_cv_file_magic_cmd='$OBJDUMP -f'
6254 ;;
6255
6256 darwin* | rhapsody*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259
6260 freebsd* | dragonfly*)
6261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6262 case $host_cpu in
6263 i*86 )
6264 # Not sure whether the presence of OpenBSD here was a mistake.
6265 # Let's accept both of them until this is cleared up.
6266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6267 lt_cv_file_magic_cmd=/usr/bin/file
6268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6269 ;;
6270 esac
6271 else
6272 lt_cv_deplibs_check_method=pass_all
6273 fi
6274 ;;
6275
6276 gnu*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279
6280 haiku*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284 hpux10.20* | hpux11*)
6285 lt_cv_file_magic_cmd=/usr/bin/file
6286 case $host_cpu in
6287 ia64*)
6288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6289 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6290 ;;
6291 hppa*64*)
6292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6293 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6294 ;;
6295 *)
6296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6297 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6298 ;;
6299 esac
6300 ;;
6301
6302 interix[3-9]*)
6303 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6305 ;;
6306
6307 irix5* | irix6* | nonstopux*)
6308 case $LD in
6309 *-32|*"-32 ") libmagic=32-bit;;
6310 *-n32|*"-n32 ") libmagic=N32;;
6311 *-64|*"-64 ") libmagic=64-bit;;
6312 *) libmagic=never-match;;
6313 esac
6314 lt_cv_deplibs_check_method=pass_all
6315 ;;
6316
6317 # This must be glibc/ELF.
6318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
6321
6322 netbsd* | netbsdelf*-gnu)
6323 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6325 else
6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6327 fi
6328 ;;
6329
6330 newos6*)
6331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6332 lt_cv_file_magic_cmd=/usr/bin/file
6333 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6334 ;;
6335
6336 *nto* | *qnx*)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339
6340 openbsd*)
6341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6343 else
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6345 fi
6346 ;;
6347
6348 osf3* | osf4* | osf5*)
6349 lt_cv_deplibs_check_method=pass_all
6350 ;;
6351
6352 rdos*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355
6356 solaris*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359
6360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 sysv4 | sysv4.3*)
6365 case $host_vendor in
6366 motorola)
6367 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]'
6368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6369 ;;
6370 ncr)
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
6373 sequent)
6374 lt_cv_file_magic_cmd='/bin/file'
6375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6376 ;;
6377 sni)
6378 lt_cv_file_magic_cmd='/bin/file'
6379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6380 lt_cv_file_magic_test_file=/lib/libc.so
6381 ;;
6382 siemens)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385 pc)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388 esac
6389 ;;
6390
6391 tpf*)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394 esac
6395
6396 fi
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6398 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6399
6400 file_magic_glob=
6401 want_nocaseglob=no
6402 if test "$build" = "$host"; then
6403 case $host_os in
6404 mingw* | pw32*)
6405 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6406 want_nocaseglob=yes
6407 else
6408 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6409 fi
6410 ;;
6411 esac
6412 fi
6413
6414 file_magic_cmd=$lt_cv_file_magic_cmd
6415 deplibs_check_method=$lt_cv_deplibs_check_method
6416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_DLLTOOL+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$DLLTOOL"; then
6448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 DLLTOOL=$ac_cv_prog_DLLTOOL
6468 if test -n "$DLLTOOL"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6470 $as_echo "$DLLTOOL" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_DLLTOOL"; then
6479 ac_ct_DLLTOOL=$DLLTOOL
6480 # Extract the first word of "dlltool", so it can be a program name with args.
6481 set dummy dlltool; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 if test -n "$ac_ct_DLLTOOL"; then
6488 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6508 if test -n "$ac_ct_DLLTOOL"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6510 $as_echo "$ac_ct_DLLTOOL" >&6; }
6511 else
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516 if test "x$ac_ct_DLLTOOL" = x; then
6517 DLLTOOL="false"
6518 else
6519 case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525 DLLTOOL=$ac_ct_DLLTOOL
6526 fi
6527 else
6528 DLLTOOL="$ac_cv_prog_DLLTOOL"
6529 fi
6530
6531 test -z "$DLLTOOL" && DLLTOOL=dlltool
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6543 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6544 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 lt_cv_sharedlib_from_linklib_cmd='unknown'
6548
6549 case $host_os in
6550 cygwin* | mingw* | pw32* | cegcc*)
6551 # two different shell functions defined in ltmain.sh
6552 # decide which to use based on capabilities of $DLLTOOL
6553 case `$DLLTOOL --help 2>&1` in
6554 *--identify-strict*)
6555 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6556 ;;
6557 *)
6558 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6559 ;;
6560 esac
6561 ;;
6562 *)
6563 # fallback: assume linklib IS sharedlib
6564 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6565 ;;
6566 esac
6567
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6570 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6571 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6572 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6573
6574
6575
6576
6577
6578
6579
6580 if test -n "$ac_tool_prefix"; then
6581 for ac_prog in ar
6582 do
6583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_prog_AR+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 if test -n "$AR"; then
6591 ac_cv_prog_AR="$AR" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 AR=$ac_cv_prog_AR
6611 if test -n "$AR"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6613 $as_echo "$AR" >&6; }
6614 else
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619
6620 test -n "$AR" && break
6621 done
6622 fi
6623 if test -z "$AR"; then
6624 ac_ct_AR=$AR
6625 for ac_prog in ar
6626 do
6627 # Extract the first word of "$ac_prog", so it can be a program name with args.
6628 set dummy $ac_prog; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$ac_ct_AR"; then
6635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_ac_ct_AR="$ac_prog"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655 if test -n "$ac_ct_AR"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6657 $as_echo "$ac_ct_AR" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 test -n "$ac_ct_AR" && break
6665 done
6666
6667 if test "x$ac_ct_AR" = x; then
6668 AR="false"
6669 else
6670 case $cross_compiling:$ac_tool_warned in
6671 yes:)
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 AR=$ac_ct_AR
6677 fi
6678 fi
6679
6680 : ${AR=ar}
6681 : ${AR_FLAGS=cru}
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6694 $as_echo_n "checking for archiver @FILE support... " >&6; }
6695 if ${lt_cv_ar_at_file+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 lt_cv_ar_at_file=no
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701
6702 int
6703 main ()
6704 {
6705
6706 ;
6707 return 0;
6708 }
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 echo conftest.$ac_objext > conftest.lst
6712 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6714 (eval $lt_ar_try) 2>&5
6715 ac_status=$?
6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717 test $ac_status = 0; }
6718 if test "$ac_status" -eq 0; then
6719 # Ensure the archiver fails upon bogus file names.
6720 rm -f conftest.$ac_objext libconftest.a
6721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6722 (eval $lt_ar_try) 2>&5
6723 ac_status=$?
6724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6725 test $ac_status = 0; }
6726 if test "$ac_status" -ne 0; then
6727 lt_cv_ar_at_file=@
6728 fi
6729 fi
6730 rm -f conftest.* libconftest.a
6731
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734
6735 fi
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6737 $as_echo "$lt_cv_ar_at_file" >&6; }
6738
6739 if test "x$lt_cv_ar_at_file" = xno; then
6740 archiver_list_spec=
6741 else
6742 archiver_list_spec=$lt_cv_ar_at_file
6743 fi
6744
6745
6746
6747
6748
6749
6750
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}strip; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_STRIP+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$STRIP"; then
6760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 STRIP=$ac_cv_prog_STRIP
6780 if test -n "$STRIP"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6782 $as_echo "$STRIP" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788
6789 fi
6790 if test -z "$ac_cv_prog_STRIP"; then
6791 ac_ct_STRIP=$STRIP
6792 # Extract the first word of "strip", so it can be a program name with args.
6793 set dummy strip; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$ac_ct_STRIP"; then
6800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_STRIP="strip"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6820 if test -n "$ac_ct_STRIP"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6822 $as_echo "$ac_ct_STRIP" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828 if test "x$ac_ct_STRIP" = x; then
6829 STRIP=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 STRIP=$ac_ct_STRIP
6838 fi
6839 else
6840 STRIP="$ac_cv_prog_STRIP"
6841 fi
6842
6843 test -z "$STRIP" && STRIP=:
6844
6845
6846
6847
6848
6849
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_RANLIB+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$RANLIB"; then
6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6881 $as_echo "$RANLIB" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887
6888 fi
6889 if test -z "$ac_cv_prog_RANLIB"; then
6890 ac_ct_RANLIB=$RANLIB
6891 # Extract the first word of "ranlib", so it can be a program name with args.
6892 set dummy ranlib; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$ac_ct_RANLIB"; then
6899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_RANLIB="ranlib"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919 if test -n "$ac_ct_RANLIB"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6921 $as_echo "$ac_ct_RANLIB" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927 if test "x$ac_ct_RANLIB" = x; then
6928 RANLIB=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936 RANLIB=$ac_ct_RANLIB
6937 fi
6938 else
6939 RANLIB="$ac_cv_prog_RANLIB"
6940 fi
6941
6942 test -z "$RANLIB" && RANLIB=:
6943
6944
6945
6946
6947
6948
6949 # Determine commands to create old-style static archives.
6950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6951 old_postinstall_cmds='chmod 644 $oldlib'
6952 old_postuninstall_cmds=
6953
6954 if test -n "$RANLIB"; then
6955 case $host_os in
6956 openbsd*)
6957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6958 ;;
6959 *)
6960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6961 ;;
6962 esac
6963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6964 fi
6965
6966 case $host_os in
6967 darwin*)
6968 lock_old_archive_extraction=yes ;;
6969 *)
6970 lock_old_archive_extraction=no ;;
6971 esac
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011 # If no C compiler was specified, use CC.
7012 LTCC=${LTCC-"$CC"}
7013
7014 # If no C compiler flags were specified, use CFLAGS.
7015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7016
7017 # Allow CC to be a program name with arguments.
7018 compiler=$CC
7019
7020
7021 # Check for command to grab the raw symbol name followed by C symbol from nm.
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7023 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7024 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027
7028 # These are sane defaults that work on at least a few old systems.
7029 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7030
7031 # Character class describing NM global symbol codes.
7032 symcode='[BCDEGRST]'
7033
7034 # Regexp to match symbols that can be accessed directly from C.
7035 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7036
7037 # Define system-specific variables.
7038 case $host_os in
7039 aix*)
7040 symcode='[BCDT]'
7041 ;;
7042 cygwin* | mingw* | pw32* | cegcc*)
7043 symcode='[ABCDGISTW]'
7044 ;;
7045 hpux*)
7046 if test "$host_cpu" = ia64; then
7047 symcode='[ABCDEGRST]'
7048 fi
7049 ;;
7050 irix* | nonstopux*)
7051 symcode='[BCDEGRST]'
7052 ;;
7053 osf*)
7054 symcode='[BCDEGQRST]'
7055 ;;
7056 solaris*)
7057 symcode='[BDRT]'
7058 ;;
7059 sco3.2v5*)
7060 symcode='[DT]'
7061 ;;
7062 sysv4.2uw2*)
7063 symcode='[DT]'
7064 ;;
7065 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7066 symcode='[ABDT]'
7067 ;;
7068 sysv4)
7069 symcode='[DFNSTU]'
7070 ;;
7071 esac
7072
7073 # If we're using GNU nm, then use its standard symbol codes.
7074 case `$NM -V 2>&1` in
7075 *GNU* | *'with BFD'*)
7076 symcode='[ABCDGIRSTW]' ;;
7077 esac
7078
7079 # Transform an extracted symbol line into a proper C declaration.
7080 # Some systems (esp. on ia64) link data and code symbols differently,
7081 # so use this general approach.
7082 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7083
7084 # Transform an extracted symbol line into symbol name and symbol address
7085 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7086 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7087
7088 # Handle CRLF in mingw tool chain
7089 opt_cr=
7090 case $build_os in
7091 mingw*)
7092 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7093 ;;
7094 esac
7095
7096 # Try without a prefix underscore, then with it.
7097 for ac_symprfx in "" "_"; do
7098
7099 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7100 symxfrm="\\1 $ac_symprfx\\2 \\2"
7101
7102 # Write the raw and C identifiers.
7103 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7104 # Fake it for dumpbin and say T for any non-static function
7105 # and D for any global variable.
7106 # Also find C++ and __fastcall symbols from MSVC++,
7107 # which start with @ or ?.
7108 lt_cv_sys_global_symbol_pipe="$AWK '"\
7109 " {last_section=section; section=\$ 3};"\
7110 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7111 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7112 " \$ 0!~/External *\|/{next};"\
7113 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7114 " {if(hide[section]) next};"\
7115 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7116 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7117 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7118 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7119 " ' prfx=^$ac_symprfx"
7120 else
7121 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7122 fi
7123 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7124
7125 # Check to see that the pipe works correctly.
7126 pipe_works=no
7127
7128 rm -f conftest*
7129 cat > conftest.$ac_ext <<_LT_EOF
7130 #ifdef __cplusplus
7131 extern "C" {
7132 #endif
7133 char nm_test_var;
7134 void nm_test_func(void);
7135 void nm_test_func(void){}
7136 #ifdef __cplusplus
7137 }
7138 #endif
7139 int main(){nm_test_var='a';nm_test_func();return(0);}
7140 _LT_EOF
7141
7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7143 (eval $ac_compile) 2>&5
7144 ac_status=$?
7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; }; then
7147 # Now try to grab the symbols.
7148 nlist=conftest.nm
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7150 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7151 ac_status=$?
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; } && test -s "$nlist"; then
7154 # Try sorting and uniquifying the output.
7155 if sort "$nlist" | uniq > "$nlist"T; then
7156 mv -f "$nlist"T "$nlist"
7157 else
7158 rm -f "$nlist"T
7159 fi
7160
7161 # Make sure that we snagged all the symbols we need.
7162 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7163 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7164 cat <<_LT_EOF > conftest.$ac_ext
7165 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7166 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7167 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7168 relocations are performed -- see ld's documentation on pseudo-relocs. */
7169 # define LT_DLSYM_CONST
7170 #elif defined(__osf__)
7171 /* This system does not cope well with relocations in const data. */
7172 # define LT_DLSYM_CONST
7173 #else
7174 # define LT_DLSYM_CONST const
7175 #endif
7176
7177 #ifdef __cplusplus
7178 extern "C" {
7179 #endif
7180
7181 _LT_EOF
7182 # Now generate the symbol file.
7183 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7184
7185 cat <<_LT_EOF >> conftest.$ac_ext
7186
7187 /* The mapping between symbol names and symbols. */
7188 LT_DLSYM_CONST struct {
7189 const char *name;
7190 void *address;
7191 }
7192 lt__PROGRAM__LTX_preloaded_symbols[] =
7193 {
7194 { "@PROGRAM@", (void *) 0 },
7195 _LT_EOF
7196 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7197 cat <<\_LT_EOF >> conftest.$ac_ext
7198 {0, (void *) 0}
7199 };
7200
7201 /* This works around a problem in FreeBSD linker */
7202 #ifdef FREEBSD_WORKAROUND
7203 static const void *lt_preloaded_setup() {
7204 return lt__PROGRAM__LTX_preloaded_symbols;
7205 }
7206 #endif
7207
7208 #ifdef __cplusplus
7209 }
7210 #endif
7211 _LT_EOF
7212 # Now try linking the two files.
7213 mv conftest.$ac_objext conftstm.$ac_objext
7214 lt_globsym_save_LIBS=$LIBS
7215 lt_globsym_save_CFLAGS=$CFLAGS
7216 LIBS="conftstm.$ac_objext"
7217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7219 (eval $ac_link) 2>&5
7220 ac_status=$?
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7223 pipe_works=yes
7224 fi
7225 LIBS=$lt_globsym_save_LIBS
7226 CFLAGS=$lt_globsym_save_CFLAGS
7227 else
7228 echo "cannot find nm_test_func in $nlist" >&5
7229 fi
7230 else
7231 echo "cannot find nm_test_var in $nlist" >&5
7232 fi
7233 else
7234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7235 fi
7236 else
7237 echo "$progname: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7239 fi
7240 rm -rf conftest* conftst*
7241
7242 # Do not use the global_symbol_pipe unless it works.
7243 if test "$pipe_works" = yes; then
7244 break
7245 else
7246 lt_cv_sys_global_symbol_pipe=
7247 fi
7248 done
7249
7250 fi
7251
7252 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7253 lt_cv_sys_global_symbol_to_cdecl=
7254 fi
7255 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7257 $as_echo "failed" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7260 $as_echo "ok" >&6; }
7261 fi
7262
7263 # Response file support.
7264 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7265 nm_file_list_spec='@'
7266 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7267 nm_file_list_spec='@'
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7297 $as_echo_n "checking for sysroot... " >&6; }
7298
7299 # Check whether --with-sysroot was given.
7300 if test "${with_sysroot+set}" = set; then :
7301 withval=$with_sysroot;
7302 else
7303 with_sysroot=no
7304 fi
7305
7306
7307 lt_sysroot=
7308 case ${with_sysroot} in #(
7309 yes)
7310 if test "$GCC" = yes; then
7311 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7312 fi
7313 ;; #(
7314 /*)
7315 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7316 ;; #(
7317 no|'')
7318 ;; #(
7319 *)
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7321 $as_echo "${with_sysroot}" >&6; }
7322 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7323 ;;
7324 esac
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7327 $as_echo "${lt_sysroot:-no}" >&6; }
7328
7329
7330
7331
7332
7333 # Check whether --enable-libtool-lock was given.
7334 if test "${enable_libtool_lock+set}" = set; then :
7335 enableval=$enable_libtool_lock;
7336 fi
7337
7338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7339
7340 # Some flags need to be propagated to the compiler or linker for good
7341 # libtool support.
7342 case $host in
7343 ia64-*-hpux*)
7344 # Find out which ABI we are using.
7345 echo 'int i;' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 case `/usr/bin/file conftest.$ac_objext` in
7352 *ELF-32*)
7353 HPUX_IA64_MODE="32"
7354 ;;
7355 *ELF-64*)
7356 HPUX_IA64_MODE="64"
7357 ;;
7358 esac
7359 fi
7360 rm -rf conftest*
7361 ;;
7362 *-*-irix6*)
7363 # Find out which ABI we are using.
7364 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366 (eval $ac_compile) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }; then
7370 if test "$lt_cv_prog_gnu_ld" = yes; then
7371 case `/usr/bin/file conftest.$ac_objext` in
7372 *32-bit*)
7373 LD="${LD-ld} -melf32bsmip"
7374 ;;
7375 *N32*)
7376 LD="${LD-ld} -melf32bmipn32"
7377 ;;
7378 *64-bit*)
7379 LD="${LD-ld} -melf64bmip"
7380 ;;
7381 esac
7382 else
7383 case `/usr/bin/file conftest.$ac_objext` in
7384 *32-bit*)
7385 LD="${LD-ld} -32"
7386 ;;
7387 *N32*)
7388 LD="${LD-ld} -n32"
7389 ;;
7390 *64-bit*)
7391 LD="${LD-ld} -64"
7392 ;;
7393 esac
7394 fi
7395 fi
7396 rm -rf conftest*
7397 ;;
7398
7399 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7400 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7401 # Find out which ABI we are using.
7402 echo 'int i;' > conftest.$ac_ext
7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404 (eval $ac_compile) 2>&5
7405 ac_status=$?
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 case `/usr/bin/file conftest.o` in
7409 *32-bit*)
7410 case $host in
7411 x86_64-*kfreebsd*-gnu)
7412 LD="${LD-ld} -m elf_i386_fbsd"
7413 ;;
7414 x86_64-*linux*)
7415 LD="${LD-ld} -m elf_i386"
7416 ;;
7417 ppc64-*linux*|powerpc64-*linux*)
7418 LD="${LD-ld} -m elf32ppclinux"
7419 ;;
7420 s390x-*linux*)
7421 LD="${LD-ld} -m elf_s390"
7422 ;;
7423 sparc64-*linux*)
7424 LD="${LD-ld} -m elf32_sparc"
7425 ;;
7426 esac
7427 ;;
7428 *64-bit*)
7429 case $host in
7430 x86_64-*kfreebsd*-gnu)
7431 LD="${LD-ld} -m elf_x86_64_fbsd"
7432 ;;
7433 x86_64-*linux*)
7434 LD="${LD-ld} -m elf_x86_64"
7435 ;;
7436 ppc*-*linux*|powerpc*-*linux*)
7437 LD="${LD-ld} -m elf64ppc"
7438 ;;
7439 s390*-*linux*|s390*-*tpf*)
7440 LD="${LD-ld} -m elf64_s390"
7441 ;;
7442 sparc*-*linux*)
7443 LD="${LD-ld} -m elf64_sparc"
7444 ;;
7445 esac
7446 ;;
7447 esac
7448 fi
7449 rm -rf conftest*
7450 ;;
7451
7452 *-*-sco3.2v5*)
7453 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7454 SAVE_CFLAGS="$CFLAGS"
7455 CFLAGS="$CFLAGS -belf"
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7457 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7458 if ${lt_cv_cc_needs_belf+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 ac_ext=c
7462 ac_cpp='$CPP $CPPFLAGS'
7463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7466
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469
7470 int
7471 main ()
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479 lt_cv_cc_needs_belf=yes
7480 else
7481 lt_cv_cc_needs_belf=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7485 ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7493 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7494 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7496 CFLAGS="$SAVE_CFLAGS"
7497 fi
7498 ;;
7499 *-*solaris*)
7500 # Find out which ABI we are using.
7501 echo 'int i;' > conftest.$ac_ext
7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7503 (eval $ac_compile) 2>&5
7504 ac_status=$?
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 case `/usr/bin/file conftest.o` in
7508 *64-bit*)
7509 case $lt_cv_prog_gnu_ld in
7510 yes*)
7511 case $host in
7512 i?86-*-solaris*)
7513 LD="${LD-ld} -m elf_x86_64"
7514 ;;
7515 sparc*-*-solaris*)
7516 LD="${LD-ld} -m elf64_sparc"
7517 ;;
7518 esac
7519 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7520 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7521 LD="${LD-ld}_sol2"
7522 fi
7523 ;;
7524 *)
7525 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7526 LD="${LD-ld} -64"
7527 fi
7528 ;;
7529 esac
7530 ;;
7531 esac
7532 fi
7533 rm -rf conftest*
7534 ;;
7535 esac
7536
7537 need_locks="$enable_libtool_lock"
7538
7539 if test -n "$ac_tool_prefix"; then
7540 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7541 set dummy ${ac_tool_prefix}mt; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 if test -n "$MANIFEST_TOOL"; then
7548 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565 fi
7566 fi
7567 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7568 if test -n "$MANIFEST_TOOL"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7570 $as_echo "$MANIFEST_TOOL" >&6; }
7571 else
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575
7576
7577 fi
7578 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7579 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7580 # Extract the first word of "mt", so it can be a program name with args.
7581 set dummy mt; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 if test -n "$ac_ct_MANIFEST_TOOL"; then
7588 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605 fi
7606 fi
7607 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7608 if test -n "$ac_ct_MANIFEST_TOOL"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7610 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7611 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7614 fi
7615
7616 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7617 MANIFEST_TOOL=":"
7618 else
7619 case $cross_compiling:$ac_tool_warned in
7620 yes:)
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7623 ac_tool_warned=yes ;;
7624 esac
7625 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7626 fi
7627 else
7628 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7629 fi
7630
7631 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7633 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7634 if ${lt_cv_path_mainfest_tool+:} false; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 lt_cv_path_mainfest_tool=no
7638 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7639 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7640 cat conftest.err >&5
7641 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7642 lt_cv_path_mainfest_tool=yes
7643 fi
7644 rm -f conftest*
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7647 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7648 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7649 MANIFEST_TOOL=:
7650 fi
7651
7652
7653
7654
7655
7656
7657 case $host_os in
7658 rhapsody* | darwin*)
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 if test -n "$DSYMUTIL"; then
7668 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7677 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7680 fi
7681 done
7682 done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7688 if test -n "$DSYMUTIL"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7690 $as_echo "$DSYMUTIL" >&6; }
7691 else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696
7697 fi
7698 if test -z "$ac_cv_prog_DSYMUTIL"; then
7699 ac_ct_DSYMUTIL=$DSYMUTIL
7700 # Extract the first word of "dsymutil", so it can be a program name with args.
7701 set dummy dsymutil; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 if test -n "$ac_ct_DSYMUTIL"; then
7708 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7728 if test -n "$ac_ct_DSYMUTIL"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7730 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736 if test "x$ac_ct_DSYMUTIL" = x; then
7737 DSYMUTIL=":"
7738 else
7739 case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745 DSYMUTIL=$ac_ct_DSYMUTIL
7746 fi
7747 else
7748 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7749 fi
7750
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_NMEDIT+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$NMEDIT"; then
7760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 NMEDIT=$ac_cv_prog_NMEDIT
7780 if test -n "$NMEDIT"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7782 $as_echo "$NMEDIT" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789 fi
7790 if test -z "$ac_cv_prog_NMEDIT"; then
7791 ac_ct_NMEDIT=$NMEDIT
7792 # Extract the first word of "nmedit", so it can be a program name with args.
7793 set dummy nmedit; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$ac_ct_NMEDIT"; then
7800 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7820 if test -n "$ac_ct_NMEDIT"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7822 $as_echo "$ac_ct_NMEDIT" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828 if test "x$ac_ct_NMEDIT" = x; then
7829 NMEDIT=":"
7830 else
7831 case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837 NMEDIT=$ac_ct_NMEDIT
7838 fi
7839 else
7840 NMEDIT="$ac_cv_prog_NMEDIT"
7841 fi
7842
7843 if test -n "$ac_tool_prefix"; then
7844 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_LIPO+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$LIPO"; then
7852 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865 done
7866 done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 LIPO=$ac_cv_prog_LIPO
7872 if test -n "$LIPO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7874 $as_echo "$LIPO" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 fi
7882 if test -z "$ac_cv_prog_LIPO"; then
7883 ac_ct_LIPO=$LIPO
7884 # Extract the first word of "lipo", so it can be a program name with args.
7885 set dummy lipo; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 if test -n "$ac_ct_LIPO"; then
7892 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_prog_ac_ct_LIPO="lipo"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7904 fi
7905 done
7906 done
7907 IFS=$as_save_IFS
7908
7909 fi
7910 fi
7911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7912 if test -n "$ac_ct_LIPO"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7914 $as_echo "$ac_ct_LIPO" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920 if test "x$ac_ct_LIPO" = x; then
7921 LIPO=":"
7922 else
7923 case $cross_compiling:$ac_tool_warned in
7924 yes:)
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7928 esac
7929 LIPO=$ac_ct_LIPO
7930 fi
7931 else
7932 LIPO="$ac_cv_prog_LIPO"
7933 fi
7934
7935 if test -n "$ac_tool_prefix"; then
7936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}otool; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if ${ac_cv_prog_OTOOL+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 if test -n "$OTOOL"; then
7944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7956 fi
7957 done
7958 done
7959 IFS=$as_save_IFS
7960
7961 fi
7962 fi
7963 OTOOL=$ac_cv_prog_OTOOL
7964 if test -n "$OTOOL"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7966 $as_echo "$OTOOL" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973 fi
7974 if test -z "$ac_cv_prog_OTOOL"; then
7975 ac_ct_OTOOL=$OTOOL
7976 # Extract the first word of "otool", so it can be a program name with args.
7977 set dummy otool; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 if test -n "$ac_ct_OTOOL"; then
7984 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_prog_ac_ct_OTOOL="otool"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8004 if test -n "$ac_ct_OTOOL"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8006 $as_echo "$ac_ct_OTOOL" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 fi
8011
8012 if test "x$ac_ct_OTOOL" = x; then
8013 OTOOL=":"
8014 else
8015 case $cross_compiling:$ac_tool_warned in
8016 yes:)
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019 ac_tool_warned=yes ;;
8020 esac
8021 OTOOL=$ac_ct_OTOOL
8022 fi
8023 else
8024 OTOOL="$ac_cv_prog_OTOOL"
8025 fi
8026
8027 if test -n "$ac_tool_prefix"; then
8028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_prog_OTOOL64+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$OTOOL64"; then
8036 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi
8054 fi
8055 OTOOL64=$ac_cv_prog_OTOOL64
8056 if test -n "$OTOOL64"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8058 $as_echo "$OTOOL64" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064
8065 fi
8066 if test -z "$ac_cv_prog_OTOOL64"; then
8067 ac_ct_OTOOL64=$OTOOL64
8068 # Extract the first word of "otool64", so it can be a program name with args.
8069 set dummy otool64; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 if test -n "$ac_ct_OTOOL64"; then
8076 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8077 else
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8085 ac_cv_prog_ac_ct_OTOOL64="otool64"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089 done
8090 done
8091 IFS=$as_save_IFS
8092
8093 fi
8094 fi
8095 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8096 if test -n "$ac_ct_OTOOL64"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8098 $as_echo "$ac_ct_OTOOL64" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 fi
8103
8104 if test "x$ac_ct_OTOOL64" = x; then
8105 OTOOL64=":"
8106 else
8107 case $cross_compiling:$ac_tool_warned in
8108 yes:)
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8111 ac_tool_warned=yes ;;
8112 esac
8113 OTOOL64=$ac_ct_OTOOL64
8114 fi
8115 else
8116 OTOOL64="$ac_cv_prog_OTOOL64"
8117 fi
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8146 $as_echo_n "checking for -single_module linker flag... " >&6; }
8147 if ${lt_cv_apple_cc_single_mod+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 lt_cv_apple_cc_single_mod=no
8151 if test -z "${LT_MULTI_MODULE}"; then
8152 # By default we will add the -single_module flag. You can override
8153 # by either setting the environment variable LT_MULTI_MODULE
8154 # non-empty at configure time, or by adding -multi_module to the
8155 # link flags.
8156 rm -rf libconftest.dylib*
8157 echo "int foo(void){return 1;}" > conftest.c
8158 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8159 -dynamiclib -Wl,-single_module conftest.c" >&5
8160 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8161 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8162 _lt_result=$?
8163 # If there is a non-empty error log, and "single_module"
8164 # appears in it, assume the flag caused a linker warning
8165 if test -s conftest.err && $GREP single_module conftest.err; then
8166 cat conftest.err >&5
8167 # Otherwise, if the output was created with a 0 exit code from
8168 # the compiler, it worked.
8169 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8170 lt_cv_apple_cc_single_mod=yes
8171 else
8172 cat conftest.err >&5
8173 fi
8174 rm -rf libconftest.dylib*
8175 rm -f conftest.*
8176 fi
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8179 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8183 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_ld_exported_symbols_list=no
8187 save_LDFLAGS=$LDFLAGS
8188 echo "_main" > conftest.sym
8189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192
8193 int
8194 main ()
8195 {
8196
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_link "$LINENO"; then :
8202 lt_cv_ld_exported_symbols_list=yes
8203 else
8204 lt_cv_ld_exported_symbols_list=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LDFLAGS="$save_LDFLAGS"
8209
8210 fi
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8213
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8215 $as_echo_n "checking for -force_load linker flag... " >&6; }
8216 if ${lt_cv_ld_force_load+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 lt_cv_ld_force_load=no
8220 cat > conftest.c << _LT_EOF
8221 int forced_loaded() { return 2;}
8222 _LT_EOF
8223 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8224 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8225 echo "$AR cru libconftest.a conftest.o" >&5
8226 $AR cru libconftest.a conftest.o 2>&5
8227 echo "$RANLIB libconftest.a" >&5
8228 $RANLIB libconftest.a 2>&5
8229 cat > conftest.c << _LT_EOF
8230 int main() { return 0;}
8231 _LT_EOF
8232 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8233 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8234 _lt_result=$?
8235 if test -s conftest.err && $GREP force_load conftest.err; then
8236 cat conftest.err >&5
8237 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8238 lt_cv_ld_force_load=yes
8239 else
8240 cat conftest.err >&5
8241 fi
8242 rm -f conftest.err libconftest.a conftest conftest.c
8243 rm -rf conftest.dSYM
8244
8245 fi
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8247 $as_echo "$lt_cv_ld_force_load" >&6; }
8248 case $host_os in
8249 rhapsody* | darwin1.[012])
8250 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8251 darwin1.*)
8252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8253 darwin*) # darwin 5.x on
8254 # if running on 10.5 or later, the deployment target defaults
8255 # to the OS version, if on x86, and 10.4, the deployment
8256 # target defaults to 10.4. Don't you love it?
8257 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8258 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8260 10.[012]*)
8261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8262 10.*)
8263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8264 esac
8265 ;;
8266 esac
8267 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8268 _lt_dar_single_mod='$single_module'
8269 fi
8270 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8271 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8272 else
8273 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8274 fi
8275 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8276 _lt_dsymutil='~$DSYMUTIL $lib || :'
8277 else
8278 _lt_dsymutil=
8279 fi
8280 ;;
8281 esac
8282
8283 for ac_header in dlfcn.h
8284 do :
8285 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8286 "
8287 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8288 cat >>confdefs.h <<_ACEOF
8289 #define HAVE_DLFCN_H 1
8290 _ACEOF
8291
8292 fi
8293
8294 done
8295
8296
8297
8298
8299
8300 # Set options
8301
8302
8303
8304 enable_dlopen=no
8305
8306
8307 enable_win32_dll=no
8308
8309
8310 # Check whether --enable-shared was given.
8311 if test "${enable_shared+set}" = set; then :
8312 enableval=$enable_shared; p=${PACKAGE-default}
8313 case $enableval in
8314 yes) enable_shared=yes ;;
8315 no) enable_shared=no ;;
8316 *)
8317 enable_shared=no
8318 # Look at the argument we got. We use all the common list separators.
8319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8320 for pkg in $enableval; do
8321 IFS="$lt_save_ifs"
8322 if test "X$pkg" = "X$p"; then
8323 enable_shared=yes
8324 fi
8325 done
8326 IFS="$lt_save_ifs"
8327 ;;
8328 esac
8329 else
8330 enable_shared=yes
8331 fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 # Check whether --enable-static was given.
8342 if test "${enable_static+set}" = set; then :
8343 enableval=$enable_static; p=${PACKAGE-default}
8344 case $enableval in
8345 yes) enable_static=yes ;;
8346 no) enable_static=no ;;
8347 *)
8348 enable_static=no
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351 for pkg in $enableval; do
8352 IFS="$lt_save_ifs"
8353 if test "X$pkg" = "X$p"; then
8354 enable_static=yes
8355 fi
8356 done
8357 IFS="$lt_save_ifs"
8358 ;;
8359 esac
8360 else
8361 enable_static=yes
8362 fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 # Check whether --with-pic was given.
8374 if test "${with_pic+set}" = set; then :
8375 withval=$with_pic; lt_p=${PACKAGE-default}
8376 case $withval in
8377 yes|no) pic_mode=$withval ;;
8378 *)
8379 pic_mode=default
8380 # Look at the argument we got. We use all the common list separators.
8381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8382 for lt_pkg in $withval; do
8383 IFS="$lt_save_ifs"
8384 if test "X$lt_pkg" = "X$lt_p"; then
8385 pic_mode=yes
8386 fi
8387 done
8388 IFS="$lt_save_ifs"
8389 ;;
8390 esac
8391 else
8392 pic_mode=default
8393 fi
8394
8395
8396 test -z "$pic_mode" && pic_mode=default
8397
8398
8399
8400
8401
8402
8403
8404 # Check whether --enable-fast-install was given.
8405 if test "${enable_fast_install+set}" = set; then :
8406 enableval=$enable_fast_install; p=${PACKAGE-default}
8407 case $enableval in
8408 yes) enable_fast_install=yes ;;
8409 no) enable_fast_install=no ;;
8410 *)
8411 enable_fast_install=no
8412 # Look at the argument we got. We use all the common list separators.
8413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8414 for pkg in $enableval; do
8415 IFS="$lt_save_ifs"
8416 if test "X$pkg" = "X$p"; then
8417 enable_fast_install=yes
8418 fi
8419 done
8420 IFS="$lt_save_ifs"
8421 ;;
8422 esac
8423 else
8424 enable_fast_install=yes
8425 fi
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437 # This can be used to rebuild libtool when needed
8438 LIBTOOL_DEPS="$ltmain"
8439
8440 # Always use our own libtool.
8441 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472 test -z "$LN_S" && LN_S="ln -s"
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 if test -n "${ZSH_VERSION+set}" ; then
8488 setopt NO_GLOB_SUBST
8489 fi
8490
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8492 $as_echo_n "checking for objdir... " >&6; }
8493 if ${lt_cv_objdir+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 rm -f .libs 2>/dev/null
8497 mkdir .libs 2>/dev/null
8498 if test -d .libs; then
8499 lt_cv_objdir=.libs
8500 else
8501 # MS-DOS does not allow filenames that begin with a dot.
8502 lt_cv_objdir=_libs
8503 fi
8504 rmdir .libs 2>/dev/null
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8507 $as_echo "$lt_cv_objdir" >&6; }
8508 objdir=$lt_cv_objdir
8509
8510
8511
8512
8513
8514 cat >>confdefs.h <<_ACEOF
8515 #define LT_OBJDIR "$lt_cv_objdir/"
8516 _ACEOF
8517
8518
8519
8520
8521 case $host_os in
8522 aix3*)
8523 # AIX sometimes has problems with the GCC collect2 program. For some
8524 # reason, if we set the COLLECT_NAMES environment variable, the problems
8525 # vanish in a puff of smoke.
8526 if test "X${COLLECT_NAMES+set}" != Xset; then
8527 COLLECT_NAMES=
8528 export COLLECT_NAMES
8529 fi
8530 ;;
8531 esac
8532
8533 # Global variables:
8534 ofile=libtool
8535 can_build_shared=yes
8536
8537 # All known linkers require a `.a' archive for static linking (except MSVC,
8538 # which needs '.lib').
8539 libext=a
8540
8541 with_gnu_ld="$lt_cv_prog_gnu_ld"
8542
8543 old_CC="$CC"
8544 old_CFLAGS="$CFLAGS"
8545
8546 # Set sane defaults for various variables
8547 test -z "$CC" && CC=cc
8548 test -z "$LTCC" && LTCC=$CC
8549 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8550 test -z "$LD" && LD=ld
8551 test -z "$ac_objext" && ac_objext=o
8552
8553 for cc_temp in $compiler""; do
8554 case $cc_temp in
8555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8557 \-*) ;;
8558 *) break;;
8559 esac
8560 done
8561 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8562
8563
8564 # Only perform the check for file, if the check method requires it
8565 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8566 case $deplibs_check_method in
8567 file_magic*)
8568 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8570 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8571 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 case $MAGIC_CMD in
8575 [\\/*] | ?:[\\/]*)
8576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8577 ;;
8578 *)
8579 lt_save_MAGIC_CMD="$MAGIC_CMD"
8580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582 for ac_dir in $ac_dummy; do
8583 IFS="$lt_save_ifs"
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f $ac_dir/${ac_tool_prefix}file; then
8586 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8587 if test -n "$file_magic_test_file"; then
8588 case $deplibs_check_method in
8589 "file_magic "*)
8590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593 $EGREP "$file_magic_regex" > /dev/null; then
8594 :
8595 else
8596 cat <<_LT_EOF 1>&2
8597
8598 *** Warning: the command libtool uses to detect shared libraries,
8599 *** $file_magic_cmd, produces output that libtool cannot recognize.
8600 *** The result is that libtool may fail to recognize shared libraries
8601 *** as such. This will affect the creation of libtool libraries that
8602 *** depend on shared libraries, but programs linked with such libtool
8603 *** libraries will work regardless of this problem. Nevertheless, you
8604 *** may want to report the problem to your system manager and/or to
8605 *** bug-libtool@gnu.org
8606
8607 _LT_EOF
8608 fi ;;
8609 esac
8610 fi
8611 break
8612 fi
8613 done
8614 IFS="$lt_save_ifs"
8615 MAGIC_CMD="$lt_save_MAGIC_CMD"
8616 ;;
8617 esac
8618 fi
8619
8620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8621 if test -n "$MAGIC_CMD"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623 $as_echo "$MAGIC_CMD" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629
8630
8631
8632
8633 if test -z "$lt_cv_path_MAGIC_CMD"; then
8634 if test -n "$ac_tool_prefix"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8636 $as_echo_n "checking for file... " >&6; }
8637 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 case $MAGIC_CMD in
8641 [\\/*] | ?:[\\/]*)
8642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8643 ;;
8644 *)
8645 lt_save_MAGIC_CMD="$MAGIC_CMD"
8646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648 for ac_dir in $ac_dummy; do
8649 IFS="$lt_save_ifs"
8650 test -z "$ac_dir" && ac_dir=.
8651 if test -f $ac_dir/file; then
8652 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8653 if test -n "$file_magic_test_file"; then
8654 case $deplibs_check_method in
8655 "file_magic "*)
8656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659 $EGREP "$file_magic_regex" > /dev/null; then
8660 :
8661 else
8662 cat <<_LT_EOF 1>&2
8663
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such. This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem. Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8672
8673 _LT_EOF
8674 fi ;;
8675 esac
8676 fi
8677 break
8678 fi
8679 done
8680 IFS="$lt_save_ifs"
8681 MAGIC_CMD="$lt_save_MAGIC_CMD"
8682 ;;
8683 esac
8684 fi
8685
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8689 $as_echo "$MAGIC_CMD" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8693 fi
8694
8695
8696 else
8697 MAGIC_CMD=:
8698 fi
8699 fi
8700
8701 fi
8702 ;;
8703 esac
8704
8705 # Use C for the default configuration in the libtool script
8706
8707 lt_save_CC="$CC"
8708 ac_ext=c
8709 ac_cpp='$CPP $CPPFLAGS'
8710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8713
8714
8715 # Source file extension for C test sources.
8716 ac_ext=c
8717
8718 # Object file extension for compiled C test sources.
8719 objext=o
8720 objext=$objext
8721
8722 # Code to be used in simple compile tests
8723 lt_simple_compile_test_code="int some_variable = 0;"
8724
8725 # Code to be used in simple link tests
8726 lt_simple_link_test_code='int main(){return(0);}'
8727
8728
8729
8730
8731
8732
8733
8734 # If no C compiler was specified, use CC.
8735 LTCC=${LTCC-"$CC"}
8736
8737 # If no C compiler flags were specified, use CFLAGS.
8738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8739
8740 # Allow CC to be a program name with arguments.
8741 compiler=$CC
8742
8743 # Save the default compiler, since it gets overwritten when the other
8744 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8745 compiler_DEFAULT=$CC
8746
8747 # save warnings/boilerplate of simple test code
8748 ac_outfile=conftest.$ac_objext
8749 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8750 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8751 _lt_compiler_boilerplate=`cat conftest.err`
8752 $RM conftest*
8753
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8756 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8757 _lt_linker_boilerplate=`cat conftest.err`
8758 $RM -r conftest*
8759
8760
8761 ## CAVEAT EMPTOR:
8762 ## There is no encapsulation within the following macros, do not change
8763 ## the running order or otherwise move them around unless you know exactly
8764 ## what you are doing...
8765 if test -n "$compiler"; then
8766
8767 lt_prog_compiler_no_builtin_flag=
8768
8769 if test "$GCC" = yes; then
8770 case $cc_basename in
8771 nvcc*)
8772 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8773 *)
8774 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8775 esac
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8778 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8779 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 lt_cv_prog_compiler_rtti_exceptions=no
8783 ac_outfile=conftest.$ac_objext
8784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785 lt_compiler_flag="-fno-rtti -fno-exceptions"
8786 # Insert the option either (1) after the last *FLAGS variable, or
8787 # (2) before a word containing "conftest.", or (3) at the end.
8788 # Note that $ac_compile itself does not contain backslashes and begins
8789 # with a dollar sign (not a hyphen), so the echo should work correctly.
8790 # The option is referenced via a variable to avoid confusing sed.
8791 lt_compile=`echo "$ac_compile" | $SED \
8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794 -e 's:$: $lt_compiler_flag:'`
8795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796 (eval "$lt_compile" 2>conftest.err)
8797 ac_status=$?
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 if (exit $ac_status) && test -s "$ac_outfile"; then
8801 # The compiler can only warn and ignore the option if not recognized
8802 # So say no if there are warnings other than the usual output.
8803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8806 lt_cv_prog_compiler_rtti_exceptions=yes
8807 fi
8808 fi
8809 $RM conftest*
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8813 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8814
8815 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8816 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8817 else
8818 :
8819 fi
8820
8821 fi
8822
8823
8824
8825
8826
8827
8828 lt_prog_compiler_wl=
8829 lt_prog_compiler_pic=
8830 lt_prog_compiler_static=
8831
8832
8833 if test "$GCC" = yes; then
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_static='-static'
8836
8837 case $host_os in
8838 aix*)
8839 # All AIX code is PIC.
8840 if test "$host_cpu" = ia64; then
8841 # AIX 5 now supports IA64 processor
8842 lt_prog_compiler_static='-Bstatic'
8843 fi
8844 ;;
8845
8846 amigaos*)
8847 case $host_cpu in
8848 powerpc)
8849 # see comment about AmigaOS4 .so support
8850 lt_prog_compiler_pic='-fPIC'
8851 ;;
8852 m68k)
8853 # FIXME: we need at least 68020 code to build shared libraries, but
8854 # adding the `-m68020' flag to GCC prevents building anything better,
8855 # like `-m68040'.
8856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8857 ;;
8858 esac
8859 ;;
8860
8861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8862 # PIC is the default for these OSes.
8863 ;;
8864
8865 mingw* | cygwin* | pw32* | os2* | cegcc*)
8866 # This hack is so that the source file can tell whether it is being
8867 # built for inclusion in a dll (and should export symbols for example).
8868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8869 # (--disable-auto-import) libraries
8870 lt_prog_compiler_pic='-DDLL_EXPORT'
8871 ;;
8872
8873 darwin* | rhapsody*)
8874 # PIC is the default on this platform
8875 # Common symbols not allowed in MH_DYLIB files
8876 lt_prog_compiler_pic='-fno-common'
8877 ;;
8878
8879 haiku*)
8880 # PIC is the default for Haiku.
8881 # The "-static" flag exists, but is broken.
8882 lt_prog_compiler_static=
8883 ;;
8884
8885 hpux*)
8886 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8887 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8888 # sets the default TLS model and affects inlining.
8889 case $host_cpu in
8890 hppa*64*)
8891 # +Z the default
8892 ;;
8893 *)
8894 lt_prog_compiler_pic='-fPIC'
8895 ;;
8896 esac
8897 ;;
8898
8899 interix[3-9]*)
8900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8901 # Instead, we relocate shared libraries at runtime.
8902 ;;
8903
8904 msdosdjgpp*)
8905 # Just because we use GCC doesn't mean we suddenly get shared libraries
8906 # on systems that don't support them.
8907 lt_prog_compiler_can_build_shared=no
8908 enable_shared=no
8909 ;;
8910
8911 *nto* | *qnx*)
8912 # QNX uses GNU C++, but need to define -shared option too, otherwise
8913 # it will coredump.
8914 lt_prog_compiler_pic='-fPIC -shared'
8915 ;;
8916
8917 sysv4*MP*)
8918 if test -d /usr/nec; then
8919 lt_prog_compiler_pic=-Kconform_pic
8920 fi
8921 ;;
8922
8923 *)
8924 lt_prog_compiler_pic='-fPIC'
8925 ;;
8926 esac
8927
8928 case $cc_basename in
8929 nvcc*) # Cuda Compiler Driver 2.2
8930 lt_prog_compiler_wl='-Xlinker '
8931 if test -n "$lt_prog_compiler_pic"; then
8932 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8933 fi
8934 ;;
8935 esac
8936 else
8937 # PORTME Check for flag to pass linker flags through the system compiler.
8938 case $host_os in
8939 aix*)
8940 lt_prog_compiler_wl='-Wl,'
8941 if test "$host_cpu" = ia64; then
8942 # AIX 5 now supports IA64 processor
8943 lt_prog_compiler_static='-Bstatic'
8944 else
8945 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8946 fi
8947 ;;
8948
8949 mingw* | cygwin* | pw32* | os2* | cegcc*)
8950 # This hack is so that the source file can tell whether it is being
8951 # built for inclusion in a dll (and should export symbols for example).
8952 lt_prog_compiler_pic='-DDLL_EXPORT'
8953 ;;
8954
8955 hpux9* | hpux10* | hpux11*)
8956 lt_prog_compiler_wl='-Wl,'
8957 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8958 # not for PA HP-UX.
8959 case $host_cpu in
8960 hppa*64*|ia64*)
8961 # +Z the default
8962 ;;
8963 *)
8964 lt_prog_compiler_pic='+Z'
8965 ;;
8966 esac
8967 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8968 lt_prog_compiler_static='${wl}-a ${wl}archive'
8969 ;;
8970
8971 irix5* | irix6* | nonstopux*)
8972 lt_prog_compiler_wl='-Wl,'
8973 # PIC (with -KPIC) is the default.
8974 lt_prog_compiler_static='-non_shared'
8975 ;;
8976
8977 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8978 case $cc_basename in
8979 # old Intel for x86_64 which still supported -KPIC.
8980 ecc*)
8981 lt_prog_compiler_wl='-Wl,'
8982 lt_prog_compiler_pic='-KPIC'
8983 lt_prog_compiler_static='-static'
8984 ;;
8985 # icc used to be incompatible with GCC.
8986 # ICC 10 doesn't accept -KPIC any more.
8987 icc* | ifort*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-fPIC'
8990 lt_prog_compiler_static='-static'
8991 ;;
8992 # Lahey Fortran 8.1.
8993 lf95*)
8994 lt_prog_compiler_wl='-Wl,'
8995 lt_prog_compiler_pic='--shared'
8996 lt_prog_compiler_static='--static'
8997 ;;
8998 nagfor*)
8999 # NAG Fortran compiler
9000 lt_prog_compiler_wl='-Wl,-Wl,,'
9001 lt_prog_compiler_pic='-PIC'
9002 lt_prog_compiler_static='-Bstatic'
9003 ;;
9004 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9005 # Portland Group compilers (*not* the Pentium gcc compiler,
9006 # which looks to be a dead project)
9007 lt_prog_compiler_wl='-Wl,'
9008 lt_prog_compiler_pic='-fpic'
9009 lt_prog_compiler_static='-Bstatic'
9010 ;;
9011 ccc*)
9012 lt_prog_compiler_wl='-Wl,'
9013 # All Alpha code is PIC.
9014 lt_prog_compiler_static='-non_shared'
9015 ;;
9016 xl* | bgxl* | bgf* | mpixl*)
9017 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-qpic'
9020 lt_prog_compiler_static='-qstaticlink'
9021 ;;
9022 *)
9023 case `$CC -V 2>&1 | sed 5q` in
9024 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9025 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9026 lt_prog_compiler_pic='-KPIC'
9027 lt_prog_compiler_static='-Bstatic'
9028 lt_prog_compiler_wl=''
9029 ;;
9030 *Sun\ F* | *Sun*Fortran*)
9031 lt_prog_compiler_pic='-KPIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 lt_prog_compiler_wl='-Qoption ld '
9034 ;;
9035 *Sun\ C*)
9036 # Sun C 5.9
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9039 lt_prog_compiler_wl='-Wl,'
9040 ;;
9041 *Intel*\ [CF]*Compiler*)
9042 lt_prog_compiler_wl='-Wl,'
9043 lt_prog_compiler_pic='-fPIC'
9044 lt_prog_compiler_static='-static'
9045 ;;
9046 *Portland\ Group*)
9047 lt_prog_compiler_wl='-Wl,'
9048 lt_prog_compiler_pic='-fpic'
9049 lt_prog_compiler_static='-Bstatic'
9050 ;;
9051 esac
9052 ;;
9053 esac
9054 ;;
9055
9056 newsos6)
9057 lt_prog_compiler_pic='-KPIC'
9058 lt_prog_compiler_static='-Bstatic'
9059 ;;
9060
9061 *nto* | *qnx*)
9062 # QNX uses GNU C++, but need to define -shared option too, otherwise
9063 # it will coredump.
9064 lt_prog_compiler_pic='-fPIC -shared'
9065 ;;
9066
9067 osf3* | osf4* | osf5*)
9068 lt_prog_compiler_wl='-Wl,'
9069 # All OSF/1 code is PIC.
9070 lt_prog_compiler_static='-non_shared'
9071 ;;
9072
9073 rdos*)
9074 lt_prog_compiler_static='-non_shared'
9075 ;;
9076
9077 solaris*)
9078 lt_prog_compiler_pic='-KPIC'
9079 lt_prog_compiler_static='-Bstatic'
9080 case $cc_basename in
9081 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9082 lt_prog_compiler_wl='-Qoption ld ';;
9083 *)
9084 lt_prog_compiler_wl='-Wl,';;
9085 esac
9086 ;;
9087
9088 sunos4*)
9089 lt_prog_compiler_wl='-Qoption ld '
9090 lt_prog_compiler_pic='-PIC'
9091 lt_prog_compiler_static='-Bstatic'
9092 ;;
9093
9094 sysv4 | sysv4.2uw2* | sysv4.3*)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='-KPIC'
9097 lt_prog_compiler_static='-Bstatic'
9098 ;;
9099
9100 sysv4*MP*)
9101 if test -d /usr/nec ;then
9102 lt_prog_compiler_pic='-Kconform_pic'
9103 lt_prog_compiler_static='-Bstatic'
9104 fi
9105 ;;
9106
9107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_pic='-KPIC'
9110 lt_prog_compiler_static='-Bstatic'
9111 ;;
9112
9113 unicos*)
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_can_build_shared=no
9116 ;;
9117
9118 uts4*)
9119 lt_prog_compiler_pic='-pic'
9120 lt_prog_compiler_static='-Bstatic'
9121 ;;
9122
9123 *)
9124 lt_prog_compiler_can_build_shared=no
9125 ;;
9126 esac
9127 fi
9128
9129 case $host_os in
9130 # For platforms which do not support PIC, -DPIC is meaningless:
9131 *djgpp*)
9132 lt_prog_compiler_pic=
9133 ;;
9134 *)
9135 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9136 ;;
9137 esac
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9140 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9141 if ${lt_cv_prog_compiler_pic+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9145 fi
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9147 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9148 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9149
9150 #
9151 # Check to make sure the PIC flag actually works.
9152 #
9153 if test -n "$lt_prog_compiler_pic"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9155 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9156 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 lt_cv_prog_compiler_pic_works=no
9160 ac_outfile=conftest.$ac_objext
9161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9163 # Insert the option either (1) after the last *FLAGS variable, or
9164 # (2) before a word containing "conftest.", or (3) at the end.
9165 # Note that $ac_compile itself does not contain backslashes and begins
9166 # with a dollar sign (not a hyphen), so the echo should work correctly.
9167 # The option is referenced via a variable to avoid confusing sed.
9168 lt_compile=`echo "$ac_compile" | $SED \
9169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171 -e 's:$: $lt_compiler_flag:'`
9172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173 (eval "$lt_compile" 2>conftest.err)
9174 ac_status=$?
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 if (exit $ac_status) && test -s "$ac_outfile"; then
9178 # The compiler can only warn and ignore the option if not recognized
9179 # So say no if there are warnings other than the usual output.
9180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9183 lt_cv_prog_compiler_pic_works=yes
9184 fi
9185 fi
9186 $RM conftest*
9187
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9190 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9191
9192 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9193 case $lt_prog_compiler_pic in
9194 "" | " "*) ;;
9195 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9196 esac
9197 else
9198 lt_prog_compiler_pic=
9199 lt_prog_compiler_can_build_shared=no
9200 fi
9201
9202 fi
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214 #
9215 # Check to make sure the static flag actually works.
9216 #
9217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9220 if ${lt_cv_prog_compiler_static_works+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 lt_cv_prog_compiler_static_works=no
9224 save_LDFLAGS="$LDFLAGS"
9225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9228 # The linker can only warn and ignore the option if not recognized
9229 # So say no if there are warnings
9230 if test -s conftest.err; then
9231 # Append any errors to the config.log.
9232 cat conftest.err 1>&5
9233 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9235 if diff conftest.exp conftest.er2 >/dev/null; then
9236 lt_cv_prog_compiler_static_works=yes
9237 fi
9238 else
9239 lt_cv_prog_compiler_static_works=yes
9240 fi
9241 fi
9242 $RM -r conftest*
9243 LDFLAGS="$save_LDFLAGS"
9244
9245 fi
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9248
9249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9250 :
9251 else
9252 lt_prog_compiler_static=
9253 fi
9254
9255
9256
9257
9258
9259
9260
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9263 if ${lt_cv_prog_compiler_c_o+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 lt_cv_prog_compiler_c_o=no
9267 $RM -r conftest 2>/dev/null
9268 mkdir conftest
9269 cd conftest
9270 mkdir out
9271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9272
9273 lt_compiler_flag="-o out/conftest2.$ac_objext"
9274 # Insert the option either (1) after the last *FLAGS variable, or
9275 # (2) before a word containing "conftest.", or (3) at the end.
9276 # Note that $ac_compile itself does not contain backslashes and begins
9277 # with a dollar sign (not a hyphen), so the echo should work correctly.
9278 lt_compile=`echo "$ac_compile" | $SED \
9279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9281 -e 's:$: $lt_compiler_flag:'`
9282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9283 (eval "$lt_compile" 2>out/conftest.err)
9284 ac_status=$?
9285 cat out/conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9288 then
9289 # The compiler can only warn and ignore the option if not recognized
9290 # So say no if there are warnings
9291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9294 lt_cv_prog_compiler_c_o=yes
9295 fi
9296 fi
9297 chmod u+w . 2>&5
9298 $RM conftest*
9299 # SGI C++ compiler will create directory out/ii_files/ for
9300 # template instantiation
9301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9302 $RM out/* && rmdir out
9303 cd ..
9304 $RM -r conftest
9305 $RM conftest*
9306
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9310
9311
9312
9313
9314
9315
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9318 if ${lt_cv_prog_compiler_c_o+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 lt_cv_prog_compiler_c_o=no
9322 $RM -r conftest 2>/dev/null
9323 mkdir conftest
9324 cd conftest
9325 mkdir out
9326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9327
9328 lt_compiler_flag="-o out/conftest2.$ac_objext"
9329 # Insert the option either (1) after the last *FLAGS variable, or
9330 # (2) before a word containing "conftest.", or (3) at the end.
9331 # Note that $ac_compile itself does not contain backslashes and begins
9332 # with a dollar sign (not a hyphen), so the echo should work correctly.
9333 lt_compile=`echo "$ac_compile" | $SED \
9334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9336 -e 's:$: $lt_compiler_flag:'`
9337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9338 (eval "$lt_compile" 2>out/conftest.err)
9339 ac_status=$?
9340 cat out/conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9343 then
9344 # The compiler can only warn and ignore the option if not recognized
9345 # So say no if there are warnings
9346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9349 lt_cv_prog_compiler_c_o=yes
9350 fi
9351 fi
9352 chmod u+w . 2>&5
9353 $RM conftest*
9354 # SGI C++ compiler will create directory out/ii_files/ for
9355 # template instantiation
9356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9357 $RM out/* && rmdir out
9358 cd ..
9359 $RM -r conftest
9360 $RM conftest*
9361
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9365
9366
9367
9368
9369 hard_links="nottested"
9370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9371 # do not overwrite the value of need_locks provided by the user
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9373 $as_echo_n "checking if we can lock with hard links... " >&6; }
9374 hard_links=yes
9375 $RM conftest*
9376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9377 touch conftest.a
9378 ln conftest.a conftest.b 2>&5 || hard_links=no
9379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9381 $as_echo "$hard_links" >&6; }
9382 if test "$hard_links" = no; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9385 need_locks=warn
9386 fi
9387 else
9388 need_locks=no
9389 fi
9390
9391
9392
9393
9394
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9398
9399 runpath_var=
9400 allow_undefined_flag=
9401 always_export_symbols=no
9402 archive_cmds=
9403 archive_expsym_cmds=
9404 compiler_needs_object=no
9405 enable_shared_with_static_runtimes=no
9406 export_dynamic_flag_spec=
9407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9408 hardcode_automatic=no
9409 hardcode_direct=no
9410 hardcode_direct_absolute=no
9411 hardcode_libdir_flag_spec=
9412 hardcode_libdir_separator=
9413 hardcode_minus_L=no
9414 hardcode_shlibpath_var=unsupported
9415 inherit_rpath=no
9416 link_all_deplibs=unknown
9417 module_cmds=
9418 module_expsym_cmds=
9419 old_archive_from_new_cmds=
9420 old_archive_from_expsyms_cmds=
9421 thread_safe_flag_spec=
9422 whole_archive_flag_spec=
9423 # include_expsyms should be a list of space-separated symbols to be *always*
9424 # included in the symbol list
9425 include_expsyms=
9426 # exclude_expsyms can be an extended regexp of symbols to exclude
9427 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9428 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9429 # as well as any symbol that contains `d'.
9430 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9431 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9432 # platforms (ab)use it in PIC code, but their linkers get confused if
9433 # the symbol is explicitly referenced. Since portable code cannot
9434 # rely on this symbol name, it's probably fine to never include it in
9435 # preloaded symbol tables.
9436 # Exclude shared library initialization/finalization symbols.
9437 extract_expsyms_cmds=
9438
9439 case $host_os in
9440 cygwin* | mingw* | pw32* | cegcc*)
9441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9442 # When not using gcc, we currently assume that we are using
9443 # Microsoft Visual C++.
9444 if test "$GCC" != yes; then
9445 with_gnu_ld=no
9446 fi
9447 ;;
9448 interix*)
9449 # we just hope/assume this is gcc and not c89 (= MSVC++)
9450 with_gnu_ld=yes
9451 ;;
9452 openbsd*)
9453 with_gnu_ld=no
9454 ;;
9455 linux* | k*bsd*-gnu | gnu*)
9456 link_all_deplibs=no
9457 ;;
9458 esac
9459
9460 ld_shlibs=yes
9461
9462 # On some targets, GNU ld is compatible enough with the native linker
9463 # that we're better off using the native interface for both.
9464 lt_use_gnu_ld_interface=no
9465 if test "$with_gnu_ld" = yes; then
9466 case $host_os in
9467 aix*)
9468 # The AIX port of GNU ld has always aspired to compatibility
9469 # with the native linker. However, as the warning in the GNU ld
9470 # block says, versions before 2.19.5* couldn't really create working
9471 # shared libraries, regardless of the interface used.
9472 case `$LD -v 2>&1` in
9473 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9474 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9475 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9476 *)
9477 lt_use_gnu_ld_interface=yes
9478 ;;
9479 esac
9480 ;;
9481 *)
9482 lt_use_gnu_ld_interface=yes
9483 ;;
9484 esac
9485 fi
9486
9487 if test "$lt_use_gnu_ld_interface" = yes; then
9488 # If archive_cmds runs LD, not CC, wlarc should be empty
9489 wlarc='${wl}'
9490
9491 # Set some defaults for GNU ld with shared library support. These
9492 # are reset later if shared libraries are not supported. Putting them
9493 # here allows them to be overridden if necessary.
9494 runpath_var=LD_RUN_PATH
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 export_dynamic_flag_spec='${wl}--export-dynamic'
9497 # ancient GNU ld didn't support --whole-archive et. al.
9498 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9499 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9500 else
9501 whole_archive_flag_spec=
9502 fi
9503 supports_anon_versioning=no
9504 case `$LD -v 2>&1` in
9505 *GNU\ gold*) supports_anon_versioning=yes ;;
9506 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9507 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9508 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9509 *\ 2.11.*) ;; # other 2.11 versions
9510 *) supports_anon_versioning=yes ;;
9511 esac
9512
9513 # See if GNU ld supports shared libraries.
9514 case $host_os in
9515 aix[3-9]*)
9516 # On AIX/PPC, the GNU linker is very broken
9517 if test "$host_cpu" != ia64; then
9518 ld_shlibs=no
9519 cat <<_LT_EOF 1>&2
9520
9521 *** Warning: the GNU linker, at least up to release 2.19, is reported
9522 *** to be unable to reliably create shared libraries on AIX.
9523 *** Therefore, libtool is disabling shared libraries support. If you
9524 *** really care for shared libraries, you may want to install binutils
9525 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9526 *** You will then need to restart the configuration process.
9527
9528 _LT_EOF
9529 fi
9530 ;;
9531
9532 amigaos*)
9533 case $host_cpu in
9534 powerpc)
9535 # see comment about AmigaOS4 .so support
9536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537 archive_expsym_cmds=''
9538 ;;
9539 m68k)
9540 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)'
9541 hardcode_libdir_flag_spec='-L$libdir'
9542 hardcode_minus_L=yes
9543 ;;
9544 esac
9545 ;;
9546
9547 beos*)
9548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 allow_undefined_flag=unsupported
9550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9551 # support --undefined. This deserves some investigation. FIXME
9552 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 else
9554 ld_shlibs=no
9555 fi
9556 ;;
9557
9558 cygwin* | mingw* | pw32* | cegcc*)
9559 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9560 # as there is no search path for DLLs.
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 export_dynamic_flag_spec='${wl}--export-all-symbols'
9563 allow_undefined_flag=unsupported
9564 always_export_symbols=no
9565 enable_shared_with_static_runtimes=yes
9566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9567 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9568
9569 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9571 # If the export-symbols file already is a .def file (1st line
9572 # is EXPORTS), use it as is; otherwise, prepend...
9573 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9574 cp $export_symbols $output_objdir/$soname.def;
9575 else
9576 echo EXPORTS > $output_objdir/$soname.def;
9577 cat $export_symbols >> $output_objdir/$soname.def;
9578 fi~
9579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9580 else
9581 ld_shlibs=no
9582 fi
9583 ;;
9584
9585 haiku*)
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 link_all_deplibs=yes
9588 ;;
9589
9590 interix[3-9]*)
9591 hardcode_direct=no
9592 hardcode_shlibpath_var=no
9593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594 export_dynamic_flag_spec='${wl}-E'
9595 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9596 # Instead, shared libraries are loaded at an image base (0x10000000 by
9597 # default) and relocated if they conflict, which is a slow very memory
9598 # consuming and fragmenting process. To avoid this, we pick a random,
9599 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9600 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9602 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'
9603 ;;
9604
9605 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9606 tmp_diet=no
9607 if test "$host_os" = linux-dietlibc; then
9608 case $cc_basename in
9609 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9610 esac
9611 fi
9612 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9613 && test "$tmp_diet" = no
9614 then
9615 tmp_addflag=' $pic_flag'
9616 tmp_sharedflag='-shared'
9617 case $cc_basename,$host_cpu in
9618 pgcc*) # Portland Group C compiler
9619 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9620 tmp_addflag=' $pic_flag'
9621 ;;
9622 pgf77* | pgf90* | pgf95* | pgfortran*)
9623 # Portland Group f77 and f90 compilers
9624 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9625 tmp_addflag=' $pic_flag -Mnomain' ;;
9626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9627 tmp_addflag=' -i_dynamic' ;;
9628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9629 tmp_addflag=' -i_dynamic -nofor_main' ;;
9630 ifc* | ifort*) # Intel Fortran compiler
9631 tmp_addflag=' -nofor_main' ;;
9632 lf95*) # Lahey Fortran 8.1
9633 whole_archive_flag_spec=
9634 tmp_sharedflag='--shared' ;;
9635 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9636 tmp_sharedflag='-qmkshrobj'
9637 tmp_addflag= ;;
9638 nvcc*) # Cuda Compiler Driver 2.2
9639 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9640 compiler_needs_object=yes
9641 ;;
9642 esac
9643 case `$CC -V 2>&1 | sed 5q` in
9644 *Sun\ C*) # Sun C 5.9
9645 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9646 compiler_needs_object=yes
9647 tmp_sharedflag='-G' ;;
9648 *Sun\ F*) # Sun Fortran 8.3
9649 tmp_sharedflag='-G' ;;
9650 esac
9651 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652
9653 if test "x$supports_anon_versioning" = xyes; then
9654 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9656 echo "local: *; };" >> $output_objdir/$libname.ver~
9657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9658 fi
9659
9660 case $cc_basename in
9661 xlf* | bgf* | bgxlf* | mpixlf*)
9662 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9663 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9666 if test "x$supports_anon_versioning" = xyes; then
9667 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669 echo "local: *; };" >> $output_objdir/$libname.ver~
9670 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9671 fi
9672 ;;
9673 esac
9674 else
9675 ld_shlibs=no
9676 fi
9677 ;;
9678
9679 netbsd* | netbsdelf*-gnu)
9680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9682 wlarc=
9683 else
9684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9686 fi
9687 ;;
9688
9689 solaris*)
9690 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9691 ld_shlibs=no
9692 cat <<_LT_EOF 1>&2
9693
9694 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9695 *** create shared libraries on Solaris systems. Therefore, libtool
9696 *** is disabling shared libraries support. We urge you to upgrade GNU
9697 *** binutils to release 2.9.1 or newer. Another option is to modify
9698 *** your PATH or compiler configuration so that the native linker is
9699 *** used, and then restart.
9700
9701 _LT_EOF
9702 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9705 else
9706 ld_shlibs=no
9707 fi
9708 ;;
9709
9710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9711 case `$LD -v 2>&1` in
9712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9713 ld_shlibs=no
9714 cat <<_LT_EOF 1>&2
9715
9716 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9717 *** reliably create shared libraries on SCO systems. Therefore, libtool
9718 *** is disabling shared libraries support. We urge you to upgrade GNU
9719 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9720 *** your PATH or compiler configuration so that the native linker is
9721 *** used, and then restart.
9722
9723 _LT_EOF
9724 ;;
9725 *)
9726 # For security reasons, it is highly recommended that you always
9727 # use absolute paths for naming shared libraries, and exclude the
9728 # DT_RUNPATH tag from executables and libraries. But doing so
9729 # requires that you compile everything twice, which is a pain.
9730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734 else
9735 ld_shlibs=no
9736 fi
9737 ;;
9738 esac
9739 ;;
9740
9741 sunos4*)
9742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9743 wlarc=
9744 hardcode_direct=yes
9745 hardcode_shlibpath_var=no
9746 ;;
9747
9748 *)
9749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9752 else
9753 ld_shlibs=no
9754 fi
9755 ;;
9756 esac
9757
9758 if test "$ld_shlibs" = no; then
9759 runpath_var=
9760 hardcode_libdir_flag_spec=
9761 export_dynamic_flag_spec=
9762 whole_archive_flag_spec=
9763 fi
9764 else
9765 # PORTME fill in a description of your system's linker (not GNU ld)
9766 case $host_os in
9767 aix3*)
9768 allow_undefined_flag=unsupported
9769 always_export_symbols=yes
9770 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'
9771 # Note: this linker hardcodes the directories in LIBPATH if there
9772 # are no directories specified by -L.
9773 hardcode_minus_L=yes
9774 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9775 # Neither direct hardcoding nor static linking is supported with a
9776 # broken collect2.
9777 hardcode_direct=unsupported
9778 fi
9779 ;;
9780
9781 aix[4-9]*)
9782 if test "$host_cpu" = ia64; then
9783 # On IA64, the linker does run time linking by default, so we don't
9784 # have to do anything special.
9785 aix_use_runtimelinking=no
9786 exp_sym_flag='-Bexport'
9787 no_entry_flag=""
9788 else
9789 # If we're using GNU nm, then we don't want the "-C" option.
9790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9791 # Also, AIX nm treats weak defined symbols like other global
9792 # defined symbols, whereas GNU nm marks them as "W".
9793 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9794 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9795 else
9796 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'
9797 fi
9798 aix_use_runtimelinking=no
9799
9800 # Test if we are trying to use run time linking or normal
9801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9802 # need to do runtime linking.
9803 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9804 for ld_flag in $LDFLAGS; do
9805 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9806 aix_use_runtimelinking=yes
9807 break
9808 fi
9809 done
9810 ;;
9811 esac
9812
9813 exp_sym_flag='-bexport'
9814 no_entry_flag='-bnoentry'
9815 fi
9816
9817 # When large executables or shared objects are built, AIX ld can
9818 # have problems creating the table of contents. If linking a library
9819 # or program results in "error TOC overflow" add -mminimal-toc to
9820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9822
9823 archive_cmds=''
9824 hardcode_direct=yes
9825 hardcode_direct_absolute=yes
9826 hardcode_libdir_separator=':'
9827 link_all_deplibs=yes
9828 file_list_spec='${wl}-f,'
9829
9830 if test "$GCC" = yes; then
9831 case $host_os in aix4.[012]|aix4.[012].*)
9832 # We only want to do this on AIX 4.2 and lower, the check
9833 # below for broken collect2 doesn't work under 4.3+
9834 collect2name=`${CC} -print-prog-name=collect2`
9835 if test -f "$collect2name" &&
9836 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9837 then
9838 # We have reworked collect2
9839 :
9840 else
9841 # We have old collect2
9842 hardcode_direct=unsupported
9843 # It fails to find uninstalled libraries when the uninstalled
9844 # path is not listed in the libpath. Setting hardcode_minus_L
9845 # to unsupported forces relinking
9846 hardcode_minus_L=yes
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_libdir_separator=
9849 fi
9850 ;;
9851 esac
9852 shared_flag='-shared'
9853 if test "$aix_use_runtimelinking" = yes; then
9854 shared_flag="$shared_flag "'${wl}-G'
9855 fi
9856 link_all_deplibs=no
9857 else
9858 # not using gcc
9859 if test "$host_cpu" = ia64; then
9860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9861 # chokes on -Wl,-G. The following line is correct:
9862 shared_flag='-G'
9863 else
9864 if test "$aix_use_runtimelinking" = yes; then
9865 shared_flag='${wl}-G'
9866 else
9867 shared_flag='${wl}-bM:SRE'
9868 fi
9869 fi
9870 fi
9871
9872 export_dynamic_flag_spec='${wl}-bexpall'
9873 # It seems that -bexpall does not export symbols beginning with
9874 # underscore (_), so it is better to generate a list of symbols to export.
9875 always_export_symbols=yes
9876 if test "$aix_use_runtimelinking" = yes; then
9877 # Warning - without using the other runtime loading flags (-brtl),
9878 # -berok will link without error, but may produce a broken library.
9879 allow_undefined_flag='-berok'
9880 # Determine the default libpath from the value encoded in an
9881 # empty executable.
9882 if test "${lt_cv_aix_libpath+set}" = set; then
9883 aix_libpath=$lt_cv_aix_libpath
9884 else
9885 if ${lt_cv_aix_libpath_+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890
9891 int
9892 main ()
9893 {
9894
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"; then :
9900
9901 lt_aix_libpath_sed='
9902 /Import File Strings/,/^$/ {
9903 /^0/ {
9904 s/^0 *\([^ ]*\) *$/\1/
9905 p
9906 }
9907 }'
9908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9909 # Check for a 64-bit object if we didn't find anything.
9910 if test -z "$lt_cv_aix_libpath_"; then
9911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9912 fi
9913 fi
9914 rm -f core conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9916 if test -z "$lt_cv_aix_libpath_"; then
9917 lt_cv_aix_libpath_="/usr/lib:/lib"
9918 fi
9919
9920 fi
9921
9922 aix_libpath=$lt_cv_aix_libpath_
9923 fi
9924
9925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9926 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9927 else
9928 if test "$host_cpu" = ia64; then
9929 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9930 allow_undefined_flag="-z nodefs"
9931 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"
9932 else
9933 # Determine the default libpath from the value encoded in an
9934 # empty executable.
9935 if test "${lt_cv_aix_libpath+set}" = set; then
9936 aix_libpath=$lt_cv_aix_libpath
9937 else
9938 if ${lt_cv_aix_libpath_+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943
9944 int
9945 main ()
9946 {
9947
9948 ;
9949 return 0;
9950 }
9951 _ACEOF
9952 if ac_fn_c_try_link "$LINENO"; then :
9953
9954 lt_aix_libpath_sed='
9955 /Import File Strings/,/^$/ {
9956 /^0/ {
9957 s/^0 *\([^ ]*\) *$/\1/
9958 p
9959 }
9960 }'
9961 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962 # Check for a 64-bit object if we didn't find anything.
9963 if test -z "$lt_cv_aix_libpath_"; then
9964 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9965 fi
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969 if test -z "$lt_cv_aix_libpath_"; then
9970 lt_cv_aix_libpath_="/usr/lib:/lib"
9971 fi
9972
9973 fi
9974
9975 aix_libpath=$lt_cv_aix_libpath_
9976 fi
9977
9978 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9979 # Warning - without using the other run time loading flags,
9980 # -berok will link without error, but may produce a broken library.
9981 no_undefined_flag=' ${wl}-bernotok'
9982 allow_undefined_flag=' ${wl}-berok'
9983 if test "$with_gnu_ld" = yes; then
9984 # We only use this code for GNU lds that support --whole-archive.
9985 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9986 else
9987 # Exported symbols can be pulled into shared objects from archives
9988 whole_archive_flag_spec='$convenience'
9989 fi
9990 archive_cmds_need_lc=yes
9991 # This is similar to how AIX traditionally builds its shared libraries.
9992 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'
9993 fi
9994 fi
9995 ;;
9996
9997 amigaos*)
9998 case $host_cpu in
9999 powerpc)
10000 # see comment about AmigaOS4 .so support
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds=''
10003 ;;
10004 m68k)
10005 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)'
10006 hardcode_libdir_flag_spec='-L$libdir'
10007 hardcode_minus_L=yes
10008 ;;
10009 esac
10010 ;;
10011
10012 bsdi[45]*)
10013 export_dynamic_flag_spec=-rdynamic
10014 ;;
10015
10016 cygwin* | mingw* | pw32* | cegcc*)
10017 # When not using gcc, we currently assume that we are using
10018 # Microsoft Visual C++.
10019 # hardcode_libdir_flag_spec is actually meaningless, as there is
10020 # no search path for DLLs.
10021 case $cc_basename in
10022 cl*)
10023 # Native MSVC
10024 hardcode_libdir_flag_spec=' '
10025 allow_undefined_flag=unsupported
10026 always_export_symbols=yes
10027 file_list_spec='@'
10028 # Tell ltmain to make .lib files, not .a files.
10029 libext=lib
10030 # Tell ltmain to make .dll files, not .so files.
10031 shrext_cmds=".dll"
10032 # FIXME: Setting linknames here is a bad hack.
10033 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10034 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10035 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10036 else
10037 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10038 fi~
10039 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10040 linknames='
10041 # The linker will not automatically build a static lib if we build a DLL.
10042 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10043 enable_shared_with_static_runtimes=yes
10044 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10046 # Don't use ranlib
10047 old_postinstall_cmds='chmod 644 $oldlib'
10048 postlink_cmds='lt_outputfile="@OUTPUT@"~
10049 lt_tool_outputfile="@TOOL_OUTPUT@"~
10050 case $lt_outputfile in
10051 *.exe|*.EXE) ;;
10052 *)
10053 lt_outputfile="$lt_outputfile.exe"
10054 lt_tool_outputfile="$lt_tool_outputfile.exe"
10055 ;;
10056 esac~
10057 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10058 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10059 $RM "$lt_outputfile.manifest";
10060 fi'
10061 ;;
10062 *)
10063 # Assume MSVC wrapper
10064 hardcode_libdir_flag_spec=' '
10065 allow_undefined_flag=unsupported
10066 # Tell ltmain to make .lib files, not .a files.
10067 libext=lib
10068 # Tell ltmain to make .dll files, not .so files.
10069 shrext_cmds=".dll"
10070 # FIXME: Setting linknames here is a bad hack.
10071 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10072 # The linker will automatically build a .lib file if we build a DLL.
10073 old_archive_from_new_cmds='true'
10074 # FIXME: Should let the user specify the lib program.
10075 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10076 enable_shared_with_static_runtimes=yes
10077 ;;
10078 esac
10079 ;;
10080
10081 darwin* | rhapsody*)
10082
10083
10084 archive_cmds_need_lc=no
10085 hardcode_direct=no
10086 hardcode_automatic=yes
10087 hardcode_shlibpath_var=unsupported
10088 if test "$lt_cv_ld_force_load" = "yes"; then
10089 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10090
10091 else
10092 whole_archive_flag_spec=''
10093 fi
10094 link_all_deplibs=yes
10095 allow_undefined_flag="$_lt_dar_allow_undefined"
10096 case $cc_basename in
10097 ifort*) _lt_dar_can_shared=yes ;;
10098 *) _lt_dar_can_shared=$GCC ;;
10099 esac
10100 if test "$_lt_dar_can_shared" = "yes"; then
10101 output_verbose_link_cmd=func_echo_all
10102 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10103 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10104 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10105 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10106
10107 else
10108 ld_shlibs=no
10109 fi
10110
10111 ;;
10112
10113 dgux*)
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10120 # support. Future versions do this automatically, but an explicit c++rt0.o
10121 # does not break anything, and helps significantly (at the cost of a little
10122 # extra space).
10123 freebsd2.2*)
10124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10125 hardcode_libdir_flag_spec='-R$libdir'
10126 hardcode_direct=yes
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10131 freebsd2.*)
10132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_direct=yes
10134 hardcode_minus_L=yes
10135 hardcode_shlibpath_var=no
10136 ;;
10137
10138 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10139 freebsd* | dragonfly*)
10140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10141 hardcode_libdir_flag_spec='-R$libdir'
10142 hardcode_direct=yes
10143 hardcode_shlibpath_var=no
10144 ;;
10145
10146 hpux9*)
10147 if test "$GCC" = yes; then
10148 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10149 else
10150 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'
10151 fi
10152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10153 hardcode_libdir_separator=:
10154 hardcode_direct=yes
10155
10156 # hardcode_minus_L: Not really in the search PATH,
10157 # but as the default location of the library.
10158 hardcode_minus_L=yes
10159 export_dynamic_flag_spec='${wl}-E'
10160 ;;
10161
10162 hpux10*)
10163 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10164 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10165 else
10166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10167 fi
10168 if test "$with_gnu_ld" = no; then
10169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10170 hardcode_libdir_separator=:
10171 hardcode_direct=yes
10172 hardcode_direct_absolute=yes
10173 export_dynamic_flag_spec='${wl}-E'
10174 # hardcode_minus_L: Not really in the search PATH,
10175 # but as the default location of the library.
10176 hardcode_minus_L=yes
10177 fi
10178 ;;
10179
10180 hpux11*)
10181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10182 case $host_cpu in
10183 hppa*64*)
10184 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 ;;
10186 ia64*)
10187 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10188 ;;
10189 *)
10190 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10191 ;;
10192 esac
10193 else
10194 case $host_cpu in
10195 hppa*64*)
10196 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 ;;
10198 ia64*)
10199 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10200 ;;
10201 *)
10202
10203 # Older versions of the 11.00 compiler do not understand -b yet
10204 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10206 $as_echo_n "checking if $CC understands -b... " >&6; }
10207 if ${lt_cv_prog_compiler__b+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 lt_cv_prog_compiler__b=no
10211 save_LDFLAGS="$LDFLAGS"
10212 LDFLAGS="$LDFLAGS -b"
10213 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10215 # The linker can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
10217 if test -s conftest.err; then
10218 # Append any errors to the config.log.
10219 cat conftest.err 1>&5
10220 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10222 if diff conftest.exp conftest.er2 >/dev/null; then
10223 lt_cv_prog_compiler__b=yes
10224 fi
10225 else
10226 lt_cv_prog_compiler__b=yes
10227 fi
10228 fi
10229 $RM -r conftest*
10230 LDFLAGS="$save_LDFLAGS"
10231
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10234 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10235
10236 if test x"$lt_cv_prog_compiler__b" = xyes; then
10237 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10240 fi
10241
10242 ;;
10243 esac
10244 fi
10245 if test "$with_gnu_ld" = no; then
10246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10247 hardcode_libdir_separator=:
10248
10249 case $host_cpu in
10250 hppa*64*|ia64*)
10251 hardcode_direct=no
10252 hardcode_shlibpath_var=no
10253 ;;
10254 *)
10255 hardcode_direct=yes
10256 hardcode_direct_absolute=yes
10257 export_dynamic_flag_spec='${wl}-E'
10258
10259 # hardcode_minus_L: Not really in the search PATH,
10260 # but as the default location of the library.
10261 hardcode_minus_L=yes
10262 ;;
10263 esac
10264 fi
10265 ;;
10266
10267 irix5* | irix6* | nonstopux*)
10268 if test "$GCC" = yes; then
10269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10270 # Try to use the -exported_symbol ld option, if it does not
10271 # work, assume that -exports_file does not work either and
10272 # implicitly export all symbols.
10273 # This should be the same for all languages, so no per-tag cache variable.
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10275 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10276 if ${lt_cv_irix_exported_symbol+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 save_LDFLAGS="$LDFLAGS"
10280 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 int foo (void) { return 0; }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286 lt_cv_irix_exported_symbol=yes
10287 else
10288 lt_cv_irix_exported_symbol=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LDFLAGS="$save_LDFLAGS"
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10295 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10296 if test "$lt_cv_irix_exported_symbol" = yes; then
10297 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10298 fi
10299 else
10300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10302 fi
10303 archive_cmds_need_lc='no'
10304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305 hardcode_libdir_separator=:
10306 inherit_rpath=yes
10307 link_all_deplibs=yes
10308 ;;
10309
10310 netbsd* | netbsdelf*-gnu)
10311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10313 else
10314 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10315 fi
10316 hardcode_libdir_flag_spec='-R$libdir'
10317 hardcode_direct=yes
10318 hardcode_shlibpath_var=no
10319 ;;
10320
10321 newsos6)
10322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323 hardcode_direct=yes
10324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10325 hardcode_libdir_separator=:
10326 hardcode_shlibpath_var=no
10327 ;;
10328
10329 *nto* | *qnx*)
10330 ;;
10331
10332 openbsd*)
10333 if test -f /usr/libexec/ld.so; then
10334 hardcode_direct=yes
10335 hardcode_shlibpath_var=no
10336 hardcode_direct_absolute=yes
10337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10341 export_dynamic_flag_spec='${wl}-E'
10342 else
10343 case $host_os in
10344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_libdir_flag_spec='-R$libdir'
10347 ;;
10348 *)
10349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10351 ;;
10352 esac
10353 fi
10354 else
10355 ld_shlibs=no
10356 fi
10357 ;;
10358
10359 os2*)
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_minus_L=yes
10362 allow_undefined_flag=unsupported
10363 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'
10364 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10365 ;;
10366
10367 osf3*)
10368 if test "$GCC" = yes; then
10369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10370 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10371 else
10372 allow_undefined_flag=' -expect_unresolved \*'
10373 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10374 fi
10375 archive_cmds_need_lc='no'
10376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377 hardcode_libdir_separator=:
10378 ;;
10379
10380 osf4* | osf5*) # as osf3* with the addition of -msym flag
10381 if test "$GCC" = yes; then
10382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10383 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10385 else
10386 allow_undefined_flag=' -expect_unresolved \*'
10387 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10388 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10389 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10390
10391 # Both c and cxx compiler support -rpath directly
10392 hardcode_libdir_flag_spec='-rpath $libdir'
10393 fi
10394 archive_cmds_need_lc='no'
10395 hardcode_libdir_separator=:
10396 ;;
10397
10398 solaris*)
10399 no_undefined_flag=' -z defs'
10400 if test "$GCC" = yes; then
10401 wlarc='${wl}'
10402 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10404 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10405 else
10406 case `$CC -V 2>&1` in
10407 *"Compilers 5.0"*)
10408 wlarc=''
10409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10412 ;;
10413 *)
10414 wlarc='${wl}'
10415 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10418 ;;
10419 esac
10420 fi
10421 hardcode_libdir_flag_spec='-R$libdir'
10422 hardcode_shlibpath_var=no
10423 case $host_os in
10424 solaris2.[0-5] | solaris2.[0-5].*) ;;
10425 *)
10426 # The compiler driver will combine and reorder linker options,
10427 # but understands `-z linker_flag'. GCC discards it without `$wl',
10428 # but is careful enough not to reorder.
10429 # Supported since Solaris 2.6 (maybe 2.5.1?)
10430 if test "$GCC" = yes; then
10431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10432 else
10433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10434 fi
10435 ;;
10436 esac
10437 link_all_deplibs=yes
10438 ;;
10439
10440 sunos4*)
10441 if test "x$host_vendor" = xsequent; then
10442 # Use $CC to link under sequent, because it throws in some extra .o
10443 # files that make .init and .fini sections work.
10444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10445 else
10446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10447 fi
10448 hardcode_libdir_flag_spec='-L$libdir'
10449 hardcode_direct=yes
10450 hardcode_minus_L=yes
10451 hardcode_shlibpath_var=no
10452 ;;
10453
10454 sysv4)
10455 case $host_vendor in
10456 sni)
10457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458 hardcode_direct=yes # is this really true???
10459 ;;
10460 siemens)
10461 ## LD is ld it makes a PLAMLIB
10462 ## CC just makes a GrossModule.
10463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10464 reload_cmds='$CC -r -o $output$reload_objs'
10465 hardcode_direct=no
10466 ;;
10467 motorola)
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10470 ;;
10471 esac
10472 runpath_var='LD_RUN_PATH'
10473 hardcode_shlibpath_var=no
10474 ;;
10475
10476 sysv4.3*)
10477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478 hardcode_shlibpath_var=no
10479 export_dynamic_flag_spec='-Bexport'
10480 ;;
10481
10482 sysv4*MP*)
10483 if test -d /usr/nec; then
10484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10485 hardcode_shlibpath_var=no
10486 runpath_var=LD_RUN_PATH
10487 hardcode_runpath_var=yes
10488 ld_shlibs=yes
10489 fi
10490 ;;
10491
10492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10493 no_undefined_flag='${wl}-z,text'
10494 archive_cmds_need_lc=no
10495 hardcode_shlibpath_var=no
10496 runpath_var='LD_RUN_PATH'
10497
10498 if test "$GCC" = yes; then
10499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501 else
10502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504 fi
10505 ;;
10506
10507 sysv5* | sco3.2v5* | sco5v6*)
10508 # Note: We can NOT use -z defs as we might desire, because we do not
10509 # link with -lc, and that would cause any symbols used from libc to
10510 # always be unresolved, which means just about no library would
10511 # ever link correctly. If we're not using GNU ld we use -z text
10512 # though, which does catch some bad symbols but isn't as heavy-handed
10513 # as -z defs.
10514 no_undefined_flag='${wl}-z,text'
10515 allow_undefined_flag='${wl}-z,nodefs'
10516 archive_cmds_need_lc=no
10517 hardcode_shlibpath_var=no
10518 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10519 hardcode_libdir_separator=':'
10520 link_all_deplibs=yes
10521 export_dynamic_flag_spec='${wl}-Bexport'
10522 runpath_var='LD_RUN_PATH'
10523
10524 if test "$GCC" = yes; then
10525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10527 else
10528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10530 fi
10531 ;;
10532
10533 uts4*)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_libdir_flag_spec='-L$libdir'
10536 hardcode_shlibpath_var=no
10537 ;;
10538
10539 *)
10540 ld_shlibs=no
10541 ;;
10542 esac
10543
10544 if test x$host_vendor = xsni; then
10545 case $host in
10546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10547 export_dynamic_flag_spec='${wl}-Blargedynsym'
10548 ;;
10549 esac
10550 fi
10551 fi
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10554 $as_echo "$ld_shlibs" >&6; }
10555 test "$ld_shlibs" = no && can_build_shared=no
10556
10557 with_gnu_ld=$with_gnu_ld
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 #
10574 # Do we need to explicitly link libc?
10575 #
10576 case "x$archive_cmds_need_lc" in
10577 x|xyes)
10578 # Assume -lc should be added
10579 archive_cmds_need_lc=yes
10580
10581 if test "$enable_shared" = yes && test "$GCC" = yes; then
10582 case $archive_cmds in
10583 *'~'*)
10584 # FIXME: we may have to deal with multi-command sequences.
10585 ;;
10586 '$CC '*)
10587 # Test whether the compiler implicitly links with -lc since on some
10588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10589 # to ld, don't add -lc before -lgcc.
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10592 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 $RM conftest*
10596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10597
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10599 (eval $ac_compile) 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; } 2>conftest.err; then
10603 soname=conftest
10604 lib=conftest
10605 libobjs=conftest.$ac_objext
10606 deplibs=
10607 wl=$lt_prog_compiler_wl
10608 pic_flag=$lt_prog_compiler_pic
10609 compiler_flags=-v
10610 linker_flags=-v
10611 verstring=
10612 output_objdir=.
10613 libname=conftest
10614 lt_save_allow_undefined_flag=$allow_undefined_flag
10615 allow_undefined_flag=
10616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10617 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10618 ac_status=$?
10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620 test $ac_status = 0; }
10621 then
10622 lt_cv_archive_cmds_need_lc=no
10623 else
10624 lt_cv_archive_cmds_need_lc=yes
10625 fi
10626 allow_undefined_flag=$lt_save_allow_undefined_flag
10627 else
10628 cat conftest.err 1>&5
10629 fi
10630 $RM conftest*
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10634 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10635 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10636 ;;
10637 esac
10638 fi
10639 ;;
10640 esac
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10795
10796 if test "$GCC" = yes; then
10797 case $host_os in
10798 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10799 *) lt_awk_arg="/^libraries:/" ;;
10800 esac
10801 case $host_os in
10802 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10803 *) lt_sed_strip_eq="s,=/,/,g" ;;
10804 esac
10805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10806 case $lt_search_path_spec in
10807 *\;*)
10808 # if the path contains ";" then we assume it to be the separator
10809 # otherwise default to the standard path separator (i.e. ":") - it is
10810 # assumed that no part of a normal pathname contains ";" but that should
10811 # okay in the real world where ";" in dirpaths is itself problematic.
10812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10813 ;;
10814 *)
10815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10816 ;;
10817 esac
10818 # Ok, now we have the path, separated by spaces, we can step through it
10819 # and add multilib dir if necessary.
10820 lt_tmp_lt_search_path_spec=
10821 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10822 for lt_sys_path in $lt_search_path_spec; do
10823 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10825 else
10826 test -d "$lt_sys_path" && \
10827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10828 fi
10829 done
10830 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10831 BEGIN {RS=" "; FS="/|\n";} {
10832 lt_foo="";
10833 lt_count=0;
10834 for (lt_i = NF; lt_i > 0; lt_i--) {
10835 if ($lt_i != "" && $lt_i != ".") {
10836 if ($lt_i == "..") {
10837 lt_count++;
10838 } else {
10839 if (lt_count == 0) {
10840 lt_foo="/" $lt_i lt_foo;
10841 } else {
10842 lt_count--;
10843 }
10844 }
10845 }
10846 }
10847 if (lt_foo != "") { lt_freq[lt_foo]++; }
10848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10849 }'`
10850 # AWK program above erroneously prepends '/' to C:/dos/paths
10851 # for these hosts.
10852 case $host_os in
10853 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10854 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10855 esac
10856 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10857 else
10858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10859 fi
10860 library_names_spec=
10861 libname_spec='lib$name'
10862 soname_spec=
10863 shrext_cmds=".so"
10864 postinstall_cmds=
10865 postuninstall_cmds=
10866 finish_cmds=
10867 finish_eval=
10868 shlibpath_var=
10869 shlibpath_overrides_runpath=unknown
10870 version_type=none
10871 dynamic_linker="$host_os ld.so"
10872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10873 need_lib_prefix=unknown
10874 hardcode_into_libs=no
10875
10876 # when you set need_version to no, make sure it does not cause -set_version
10877 # flags to be left without arguments
10878 need_version=unknown
10879
10880 case $host_os in
10881 aix3*)
10882 version_type=linux # correct to gnu/linux during the next big refactor
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10884 shlibpath_var=LIBPATH
10885
10886 # AIX 3 has no versioning support, so we append a major version to the name.
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 ;;
10889
10890 aix[4-9]*)
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 need_lib_prefix=no
10893 need_version=no
10894 hardcode_into_libs=yes
10895 if test "$host_cpu" = ia64; then
10896 # AIX 5 supports IA64
10897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 else
10900 # With GCC up to 2.95.x, collect2 would create an import file
10901 # for dependence libraries. The import file would start with
10902 # the line `#! .'. This would cause the generated library to
10903 # depend on `.', always an invalid library. This was fixed in
10904 # development snapshots of GCC prior to 3.0.
10905 case $host_os in
10906 aix4 | aix4.[01] | aix4.[01].*)
10907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10908 echo ' yes '
10909 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10910 :
10911 else
10912 can_build_shared=no
10913 fi
10914 ;;
10915 esac
10916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10917 # soname into executable. Probably we can add versioning support to
10918 # collect2, so additional links can be useful in future.
10919 if test "$aix_use_runtimelinking" = yes; then
10920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10921 # instead of lib<name>.a to let people know that these are not
10922 # typical AIX shared libraries.
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 else
10925 # We preserve .a as extension for shared libraries through AIX4.2
10926 # and later when we are not doing run time linking.
10927 library_names_spec='${libname}${release}.a $libname.a'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 fi
10930 shlibpath_var=LIBPATH
10931 fi
10932 ;;
10933
10934 amigaos*)
10935 case $host_cpu in
10936 powerpc)
10937 # Since July 2007 AmigaOS4 officially supports .so libraries.
10938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 ;;
10941 m68k)
10942 library_names_spec='$libname.ixlibrary $libname.a'
10943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10944 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10945 ;;
10946 esac
10947 ;;
10948
10949 beos*)
10950 library_names_spec='${libname}${shared_ext}'
10951 dynamic_linker="$host_os ld.so"
10952 shlibpath_var=LIBRARY_PATH
10953 ;;
10954
10955 bsdi[45]*)
10956 version_type=linux # correct to gnu/linux during the next big refactor
10957 need_version=no
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10964 # the default ld.so.conf also contains /usr/contrib/lib and
10965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10966 # libtool to hard-code these into programs
10967 ;;
10968
10969 cygwin* | mingw* | pw32* | cegcc*)
10970 version_type=windows
10971 shrext_cmds=".dll"
10972 need_version=no
10973 need_lib_prefix=no
10974
10975 case $GCC,$cc_basename in
10976 yes,*)
10977 # gcc
10978 library_names_spec='$libname.dll.a'
10979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10980 postinstall_cmds='base_file=`basename \${file}`~
10981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10982 dldir=$destdir/`dirname \$dlpath`~
10983 test -d \$dldir || mkdir -p \$dldir~
10984 $install_prog $dir/$dlname \$dldir/$dlname~
10985 chmod a+x \$dldir/$dlname~
10986 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10987 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10988 fi'
10989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10990 dlpath=$dir/\$dldll~
10991 $RM \$dlpath'
10992 shlibpath_overrides_runpath=yes
10993
10994 case $host_os in
10995 cygwin*)
10996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10998
10999 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11000 ;;
11001 mingw* | cegcc*)
11002 # MinGW DLLs use traditional 'lib' prefix
11003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11004 ;;
11005 pw32*)
11006 # pw32 DLLs use 'pw' prefix rather than 'lib'
11007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11008 ;;
11009 esac
11010 dynamic_linker='Win32 ld.exe'
11011 ;;
11012
11013 *,cl*)
11014 # Native MSVC
11015 libname_spec='$name'
11016 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11017 library_names_spec='${libname}.dll.lib'
11018
11019 case $build_os in
11020 mingw*)
11021 sys_lib_search_path_spec=
11022 lt_save_ifs=$IFS
11023 IFS=';'
11024 for lt_path in $LIB
11025 do
11026 IFS=$lt_save_ifs
11027 # Let DOS variable expansion print the short 8.3 style file name.
11028 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11029 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11030 done
11031 IFS=$lt_save_ifs
11032 # Convert to MSYS style.
11033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11034 ;;
11035 cygwin*)
11036 # Convert to unix form, then to dos form, then back to unix form
11037 # but this time dos style (no spaces!) so that the unix form looks
11038 # like /cygdrive/c/PROGRA~1:/cygdr...
11039 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11040 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11041 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11042 ;;
11043 *)
11044 sys_lib_search_path_spec="$LIB"
11045 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11046 # It is most probably a Windows format PATH.
11047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11048 else
11049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11050 fi
11051 # FIXME: find the short name or the path components, as spaces are
11052 # common. (e.g. "Program Files" -> "PROGRA~1")
11053 ;;
11054 esac
11055
11056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11057 postinstall_cmds='base_file=`basename \${file}`~
11058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11059 dldir=$destdir/`dirname \$dlpath`~
11060 test -d \$dldir || mkdir -p \$dldir~
11061 $install_prog $dir/$dlname \$dldir/$dlname'
11062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11063 dlpath=$dir/\$dldll~
11064 $RM \$dlpath'
11065 shlibpath_overrides_runpath=yes
11066 dynamic_linker='Win32 link.exe'
11067 ;;
11068
11069 *)
11070 # Assume MSVC wrapper
11071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11072 dynamic_linker='Win32 ld.exe'
11073 ;;
11074 esac
11075 # FIXME: first we should search . and the directory the executable is in
11076 shlibpath_var=PATH
11077 ;;
11078
11079 darwin* | rhapsody*)
11080 dynamic_linker="$host_os dyld"
11081 version_type=darwin
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11085 soname_spec='${libname}${release}${major}$shared_ext'
11086 shlibpath_overrides_runpath=yes
11087 shlibpath_var=DYLD_LIBRARY_PATH
11088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11089
11090 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11091 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11092 ;;
11093
11094 dgux*)
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 need_lib_prefix=no
11097 need_version=no
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 ;;
11102
11103 freebsd* | dragonfly*)
11104 # DragonFly does not have aout. When/if they implement a new
11105 # versioning mechanism, adjust this.
11106 if test -x /usr/bin/objformat; then
11107 objformat=`/usr/bin/objformat`
11108 else
11109 case $host_os in
11110 freebsd[23].*) objformat=aout ;;
11111 *) objformat=elf ;;
11112 esac
11113 fi
11114 version_type=freebsd-$objformat
11115 case $version_type in
11116 freebsd-elf*)
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11118 need_version=no
11119 need_lib_prefix=no
11120 ;;
11121 freebsd-*)
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11123 need_version=yes
11124 ;;
11125 esac
11126 shlibpath_var=LD_LIBRARY_PATH
11127 case $host_os in
11128 freebsd2.*)
11129 shlibpath_overrides_runpath=yes
11130 ;;
11131 freebsd3.[01]* | freebsdelf3.[01]*)
11132 shlibpath_overrides_runpath=yes
11133 hardcode_into_libs=yes
11134 ;;
11135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11137 shlibpath_overrides_runpath=no
11138 hardcode_into_libs=yes
11139 ;;
11140 *) # from 4.6 on, and DragonFly
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11143 ;;
11144 esac
11145 ;;
11146
11147 gnu*)
11148 version_type=linux # correct to gnu/linux during the next big refactor
11149 need_lib_prefix=no
11150 need_version=no
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=no
11155 hardcode_into_libs=yes
11156 ;;
11157
11158 haiku*)
11159 version_type=linux # correct to gnu/linux during the next big refactor
11160 need_lib_prefix=no
11161 need_version=no
11162 dynamic_linker="$host_os runtime_loader"
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11168 hardcode_into_libs=yes
11169 ;;
11170
11171 hpux9* | hpux10* | hpux11*)
11172 # Give a soname corresponding to the major version so that dld.sl refuses to
11173 # link against other versions.
11174 version_type=sunos
11175 need_lib_prefix=no
11176 need_version=no
11177 case $host_cpu in
11178 ia64*)
11179 shrext_cmds='.so'
11180 hardcode_into_libs=yes
11181 dynamic_linker="$host_os dld.so"
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 if test "X$HPUX_IA64_MODE" = X32; then
11187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11188 else
11189 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11190 fi
11191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192 ;;
11193 hppa*64*)
11194 shrext_cmds='.sl'
11195 hardcode_into_libs=yes
11196 dynamic_linker="$host_os dld.sl"
11197 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11203 ;;
11204 *)
11205 shrext_cmds='.sl'
11206 dynamic_linker="$host_os dld.sl"
11207 shlibpath_var=SHLIB_PATH
11208 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 ;;
11212 esac
11213 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11214 postinstall_cmds='chmod 555 $lib'
11215 # or fails outright, so override atomically:
11216 install_override_mode=555
11217 ;;
11218
11219 interix[3-9]*)
11220 version_type=linux # correct to gnu/linux during the next big refactor
11221 need_lib_prefix=no
11222 need_version=no
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=no
11228 hardcode_into_libs=yes
11229 ;;
11230
11231 irix5* | irix6* | nonstopux*)
11232 case $host_os in
11233 nonstopux*) version_type=nonstopux ;;
11234 *)
11235 if test "$lt_cv_prog_gnu_ld" = yes; then
11236 version_type=linux # correct to gnu/linux during the next big refactor
11237 else
11238 version_type=irix
11239 fi ;;
11240 esac
11241 need_lib_prefix=no
11242 need_version=no
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11245 case $host_os in
11246 irix5* | nonstopux*)
11247 libsuff= shlibsuff=
11248 ;;
11249 *)
11250 case $LD in # libtool.m4 will add one of these switches to LD
11251 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11252 libsuff= shlibsuff= libmagic=32-bit;;
11253 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11254 libsuff=32 shlibsuff=N32 libmagic=N32;;
11255 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11256 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11257 *) libsuff= shlibsuff= libmagic=never-match;;
11258 esac
11259 ;;
11260 esac
11261 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11262 shlibpath_overrides_runpath=no
11263 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11264 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11265 hardcode_into_libs=yes
11266 ;;
11267
11268 # No shared lib support for Linux oldld, aout, or coff.
11269 linux*oldld* | linux*aout* | linux*coff*)
11270 dynamic_linker=no
11271 ;;
11272
11273 # This must be glibc/ELF.
11274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11275 version_type=linux # correct to gnu/linux during the next big refactor
11276 need_lib_prefix=no
11277 need_version=no
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=no
11283
11284 # Some binutils ld are patched to set DT_RUNPATH
11285 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 lt_cv_shlibpath_overrides_runpath=no
11289 save_LDFLAGS=$LDFLAGS
11290 save_libdir=$libdir
11291 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11292 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295
11296 int
11297 main ()
11298 {
11299
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11306 lt_cv_shlibpath_overrides_runpath=yes
11307 fi
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LDFLAGS=$save_LDFLAGS
11312 libdir=$save_libdir
11313
11314 fi
11315
11316 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11317
11318 # This implies no fast_install, which is unacceptable.
11319 # Some rework will be needed to allow for fast_install
11320 # before this can be enabled.
11321 hardcode_into_libs=yes
11322
11323 # Append ld.so.conf contents to the search path
11324 if test -f /etc/ld.so.conf; then
11325 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11327 fi
11328
11329 # We used to test for /lib/ld.so.1 and disable shared libraries on
11330 # powerpc, because MkLinux only supported shared libraries with the
11331 # GNU dynamic linker. Since this was broken with cross compilers,
11332 # most powerpc-linux boxes support dynamic linking these days and
11333 # people can always --disable-shared, the test was removed, and we
11334 # assume the GNU/Linux dynamic linker is in use.
11335 dynamic_linker='GNU/Linux ld.so'
11336 ;;
11337
11338 netbsdelf*-gnu)
11339 version_type=linux
11340 need_lib_prefix=no
11341 need_version=no
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11343 soname_spec='${libname}${release}${shared_ext}$major'
11344 shlibpath_var=LD_LIBRARY_PATH
11345 shlibpath_overrides_runpath=no
11346 hardcode_into_libs=yes
11347 dynamic_linker='NetBSD ld.elf_so'
11348 ;;
11349
11350 netbsd*)
11351 version_type=sunos
11352 need_lib_prefix=no
11353 need_version=no
11354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11357 dynamic_linker='NetBSD (a.out) ld.so'
11358 else
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 dynamic_linker='NetBSD ld.elf_so'
11362 fi
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=yes
11365 hardcode_into_libs=yes
11366 ;;
11367
11368 newsos6)
11369 version_type=linux # correct to gnu/linux during the next big refactor
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=yes
11373 ;;
11374
11375 *nto* | *qnx*)
11376 version_type=qnx
11377 need_lib_prefix=no
11378 need_version=no
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 shlibpath_overrides_runpath=no
11383 hardcode_into_libs=yes
11384 dynamic_linker='ldqnx.so'
11385 ;;
11386
11387 openbsd*)
11388 version_type=sunos
11389 sys_lib_dlsearch_path_spec="/usr/lib"
11390 need_lib_prefix=no
11391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11392 case $host_os in
11393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11394 *) need_version=no ;;
11395 esac
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11400 case $host_os in
11401 openbsd2.[89] | openbsd2.[89].*)
11402 shlibpath_overrides_runpath=no
11403 ;;
11404 *)
11405 shlibpath_overrides_runpath=yes
11406 ;;
11407 esac
11408 else
11409 shlibpath_overrides_runpath=yes
11410 fi
11411 ;;
11412
11413 os2*)
11414 libname_spec='$name'
11415 shrext_cmds=".dll"
11416 need_lib_prefix=no
11417 library_names_spec='$libname${shared_ext} $libname.a'
11418 dynamic_linker='OS/2 ld.exe'
11419 shlibpath_var=LIBPATH
11420 ;;
11421
11422 osf3* | osf4* | osf5*)
11423 version_type=osf
11424 need_lib_prefix=no
11425 need_version=no
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11431 ;;
11432
11433 rdos*)
11434 dynamic_linker=no
11435 ;;
11436
11437 solaris*)
11438 version_type=linux # correct to gnu/linux during the next big refactor
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 hardcode_into_libs=yes
11446 # ldd complains unless libraries are executable
11447 postinstall_cmds='chmod +x $lib'
11448 ;;
11449
11450 sunos4*)
11451 version_type=sunos
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 if test "$with_gnu_ld" = yes; then
11457 need_lib_prefix=no
11458 fi
11459 need_version=yes
11460 ;;
11461
11462 sysv4 | sysv4.3*)
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 case $host_vendor in
11468 sni)
11469 shlibpath_overrides_runpath=no
11470 need_lib_prefix=no
11471 runpath_var=LD_RUN_PATH
11472 ;;
11473 siemens)
11474 need_lib_prefix=no
11475 ;;
11476 motorola)
11477 need_lib_prefix=no
11478 need_version=no
11479 shlibpath_overrides_runpath=no
11480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11481 ;;
11482 esac
11483 ;;
11484
11485 sysv4*MP*)
11486 if test -d /usr/nec ;then
11487 version_type=linux # correct to gnu/linux during the next big refactor
11488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11489 soname_spec='$libname${shared_ext}.$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 fi
11492 ;;
11493
11494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11495 version_type=freebsd-elf
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11503 if test "$with_gnu_ld" = yes; then
11504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11505 else
11506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11507 case $host_os in
11508 sco3.2v5*)
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11510 ;;
11511 esac
11512 fi
11513 sys_lib_dlsearch_path_spec='/usr/lib'
11514 ;;
11515
11516 tpf*)
11517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 need_lib_prefix=no
11520 need_version=no
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=no
11524 hardcode_into_libs=yes
11525 ;;
11526
11527 uts4*)
11528 version_type=linux # correct to gnu/linux during the next big refactor
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 ;;
11533
11534 *)
11535 dynamic_linker=no
11536 ;;
11537 esac
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11539 $as_echo "$dynamic_linker" >&6; }
11540 test "$dynamic_linker" = no && can_build_shared=no
11541
11542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11543 if test "$GCC" = yes; then
11544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11545 fi
11546
11547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11549 fi
11550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11551 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11552 fi
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11646 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11647 hardcode_action=
11648 if test -n "$hardcode_libdir_flag_spec" ||
11649 test -n "$runpath_var" ||
11650 test "X$hardcode_automatic" = "Xyes" ; then
11651
11652 # We can hardcode non-existent directories.
11653 if test "$hardcode_direct" != no &&
11654 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11655 # have to relink, otherwise we might link with an installed library
11656 # when we should be linking with a yet-to-be-installed one
11657 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11658 test "$hardcode_minus_L" != no; then
11659 # Linking always hardcodes the temporary library directory.
11660 hardcode_action=relink
11661 else
11662 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11663 hardcode_action=immediate
11664 fi
11665 else
11666 # We cannot hardcode anything, or else we can only hardcode existing
11667 # directories.
11668 hardcode_action=unsupported
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11671 $as_echo "$hardcode_action" >&6; }
11672
11673 if test "$hardcode_action" = relink ||
11674 test "$inherit_rpath" = yes; then
11675 # Fast installation is not supported
11676 enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678 test "$enable_shared" = no; then
11679 # Fast installation is not necessary
11680 enable_fast_install=needless
11681 fi
11682
11683
11684
11685
11686
11687
11688 if test "x$enable_dlopen" != xyes; then
11689 enable_dlopen=unknown
11690 enable_dlopen_self=unknown
11691 enable_dlopen_self_static=unknown
11692 else
11693 lt_cv_dlopen=no
11694 lt_cv_dlopen_libs=
11695
11696 case $host_os in
11697 beos*)
11698 lt_cv_dlopen="load_add_on"
11699 lt_cv_dlopen_libs=
11700 lt_cv_dlopen_self=yes
11701 ;;
11702
11703 mingw* | pw32* | cegcc*)
11704 lt_cv_dlopen="LoadLibrary"
11705 lt_cv_dlopen_libs=
11706 ;;
11707
11708 cygwin*)
11709 lt_cv_dlopen="dlopen"
11710 lt_cv_dlopen_libs=
11711 ;;
11712
11713 darwin*)
11714 # if libdl is installed we need to link against it
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11716 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11717 if ${ac_cv_lib_dl_dlopen+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-ldl $LIBS"
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char dlopen ();
11732 int
11733 main ()
11734 {
11735 return dlopen ();
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dl_dlopen=yes
11742 else
11743 ac_cv_lib_dl_dlopen=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11753 else
11754
11755 lt_cv_dlopen="dyld"
11756 lt_cv_dlopen_libs=
11757 lt_cv_dlopen_self=yes
11758
11759 fi
11760
11761 ;;
11762
11763 *)
11764 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11765 if test "x$ac_cv_func_shl_load" = xyes; then :
11766 lt_cv_dlopen="shl_load"
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11769 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11770 if ${ac_cv_lib_dld_shl_load+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-ldld $LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11777
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char shl_load ();
11785 int
11786 main ()
11787 {
11788 return shl_load ();
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 ac_cv_lib_dld_shl_load=yes
11795 else
11796 ac_cv_lib_dld_shl_load=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11801 fi
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11804 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11806 else
11807 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11808 if test "x$ac_cv_func_dlopen" = xyes; then :
11809 lt_cv_dlopen="dlopen"
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if ${ac_cv_lib_dl_dlopen+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-ldl $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dlopen ();
11828 int
11829 main ()
11830 {
11831 return dlopen ();
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837 ac_cv_lib_dl_dlopen=yes
11838 else
11839 ac_cv_lib_dl_dlopen=no
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11851 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11852 if ${ac_cv_lib_svld_dlopen+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lsvld $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char dlopen ();
11867 int
11868 main ()
11869 {
11870 return dlopen ();
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_lib_svld_dlopen=yes
11877 else
11878 ac_cv_lib_svld_dlopen=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11885 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11886 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11890 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11891 if ${ac_cv_lib_dld_dld_link+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-ldld $LIBS"
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11898
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11902 #ifdef __cplusplus
11903 extern "C"
11904 #endif
11905 char dld_link ();
11906 int
11907 main ()
11908 {
11909 return dld_link ();
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_lib_dld_dld_link=yes
11916 else
11917 ac_cv_lib_dld_dld_link=no
11918 fi
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11924 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11925 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11926 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11927 fi
11928
11929
11930 fi
11931
11932
11933 fi
11934
11935
11936 fi
11937
11938
11939 fi
11940
11941
11942 fi
11943
11944 ;;
11945 esac
11946
11947 if test "x$lt_cv_dlopen" != xno; then
11948 enable_dlopen=yes
11949 else
11950 enable_dlopen=no
11951 fi
11952
11953 case $lt_cv_dlopen in
11954 dlopen)
11955 save_CPPFLAGS="$CPPFLAGS"
11956 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11957
11958 save_LDFLAGS="$LDFLAGS"
11959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11960
11961 save_LIBS="$LIBS"
11962 LIBS="$lt_cv_dlopen_libs $LIBS"
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11965 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11966 if ${lt_cv_dlopen_self+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 if test "$cross_compiling" = yes; then :
11970 lt_cv_dlopen_self=cross
11971 else
11972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11973 lt_status=$lt_dlunknown
11974 cat > conftest.$ac_ext <<_LT_EOF
11975 #line $LINENO "configure"
11976 #include "confdefs.h"
11977
11978 #if HAVE_DLFCN_H
11979 #include <dlfcn.h>
11980 #endif
11981
11982 #include <stdio.h>
11983
11984 #ifdef RTLD_GLOBAL
11985 # define LT_DLGLOBAL RTLD_GLOBAL
11986 #else
11987 # ifdef DL_GLOBAL
11988 # define LT_DLGLOBAL DL_GLOBAL
11989 # else
11990 # define LT_DLGLOBAL 0
11991 # endif
11992 #endif
11993
11994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11995 find out it does not work in some platform. */
11996 #ifndef LT_DLLAZY_OR_NOW
11997 # ifdef RTLD_LAZY
11998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11999 # else
12000 # ifdef DL_LAZY
12001 # define LT_DLLAZY_OR_NOW DL_LAZY
12002 # else
12003 # ifdef RTLD_NOW
12004 # define LT_DLLAZY_OR_NOW RTLD_NOW
12005 # else
12006 # ifdef DL_NOW
12007 # define LT_DLLAZY_OR_NOW DL_NOW
12008 # else
12009 # define LT_DLLAZY_OR_NOW 0
12010 # endif
12011 # endif
12012 # endif
12013 # endif
12014 #endif
12015
12016 /* When -fvisbility=hidden is used, assume the code has been annotated
12017 correspondingly for the symbols needed. */
12018 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019 int fnord () __attribute__((visibility("default")));
12020 #endif
12021
12022 int fnord () { return 42; }
12023 int main ()
12024 {
12025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12026 int status = $lt_dlunknown;
12027
12028 if (self)
12029 {
12030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12031 else
12032 {
12033 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12034 else puts (dlerror ());
12035 }
12036 /* dlclose (self); */
12037 }
12038 else
12039 puts (dlerror ());
12040
12041 return status;
12042 }
12043 _LT_EOF
12044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12045 (eval $ac_link) 2>&5
12046 ac_status=$?
12047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12049 (./conftest; exit; ) >&5 2>/dev/null
12050 lt_status=$?
12051 case x$lt_status in
12052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12054 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12055 esac
12056 else :
12057 # compilation failed
12058 lt_cv_dlopen_self=no
12059 fi
12060 fi
12061 rm -fr conftest*
12062
12063
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12066 $as_echo "$lt_cv_dlopen_self" >&6; }
12067
12068 if test "x$lt_cv_dlopen_self" = xyes; then
12069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12071 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self_static+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 if test "$cross_compiling" = yes; then :
12076 lt_cv_dlopen_self_static=cross
12077 else
12078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12079 lt_status=$lt_dlunknown
12080 cat > conftest.$ac_ext <<_LT_EOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083
12084 #if HAVE_DLFCN_H
12085 #include <dlfcn.h>
12086 #endif
12087
12088 #include <stdio.h>
12089
12090 #ifdef RTLD_GLOBAL
12091 # define LT_DLGLOBAL RTLD_GLOBAL
12092 #else
12093 # ifdef DL_GLOBAL
12094 # define LT_DLGLOBAL DL_GLOBAL
12095 # else
12096 # define LT_DLGLOBAL 0
12097 # endif
12098 #endif
12099
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101 find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12103 # ifdef RTLD_LAZY
12104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12105 # else
12106 # ifdef DL_LAZY
12107 # define LT_DLLAZY_OR_NOW DL_LAZY
12108 # else
12109 # ifdef RTLD_NOW
12110 # define LT_DLLAZY_OR_NOW RTLD_NOW
12111 # else
12112 # ifdef DL_NOW
12113 # define LT_DLLAZY_OR_NOW DL_NOW
12114 # else
12115 # define LT_DLLAZY_OR_NOW 0
12116 # endif
12117 # endif
12118 # endif
12119 # endif
12120 #endif
12121
12122 /* When -fvisbility=hidden is used, assume the code has been annotated
12123 correspondingly for the symbols needed. */
12124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 int fnord () __attribute__((visibility("default")));
12126 #endif
12127
12128 int fnord () { return 42; }
12129 int main ()
12130 {
12131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132 int status = $lt_dlunknown;
12133
12134 if (self)
12135 {
12136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12137 else
12138 {
12139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 else puts (dlerror ());
12141 }
12142 /* dlclose (self); */
12143 }
12144 else
12145 puts (dlerror ());
12146
12147 return status;
12148 }
12149 _LT_EOF
12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151 (eval $ac_link) 2>&5
12152 ac_status=$?
12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12155 (./conftest; exit; ) >&5 2>/dev/null
12156 lt_status=$?
12157 case x$lt_status in
12158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12161 esac
12162 else :
12163 # compilation failed
12164 lt_cv_dlopen_self_static=no
12165 fi
12166 fi
12167 rm -fr conftest*
12168
12169
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12172 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12173 fi
12174
12175 CPPFLAGS="$save_CPPFLAGS"
12176 LDFLAGS="$save_LDFLAGS"
12177 LIBS="$save_LIBS"
12178 ;;
12179 esac
12180
12181 case $lt_cv_dlopen_self in
12182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12183 *) enable_dlopen_self=unknown ;;
12184 esac
12185
12186 case $lt_cv_dlopen_self_static in
12187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12188 *) enable_dlopen_self_static=unknown ;;
12189 esac
12190 fi
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208 striplib=
12209 old_striplib=
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12211 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12212 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12213 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12214 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; }
12217 else
12218 # FIXME - insert some real tests, host_os isn't really good enough
12219 case $host_os in
12220 darwin*)
12221 if test -n "$STRIP" ; then
12222 striplib="$STRIP -x"
12223 old_striplib="$STRIP -S"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230 ;;
12231 *)
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234 ;;
12235 esac
12236 fi
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249 # Report which library types will actually be built
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12253 $as_echo "$can_build_shared" >&6; }
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12256 $as_echo_n "checking whether to build shared libraries... " >&6; }
12257 test "$can_build_shared" = "no" && enable_shared=no
12258
12259 # On AIX, shared libraries and static libraries use the same namespace, and
12260 # are all built from PIC.
12261 case $host_os in
12262 aix3*)
12263 test "$enable_shared" = yes && enable_static=no
12264 if test -n "$RANLIB"; then
12265 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12266 postinstall_cmds='$RANLIB $lib'
12267 fi
12268 ;;
12269
12270 aix[4-9]*)
12271 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12272 test "$enable_shared" = yes && enable_static=no
12273 fi
12274 ;;
12275 esac
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12277 $as_echo "$enable_shared" >&6; }
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12280 $as_echo_n "checking whether to build static libraries... " >&6; }
12281 # Make sure either enable_shared or enable_static is yes.
12282 test "$enable_shared" = yes || enable_static=yes
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12284 $as_echo "$enable_static" >&6; }
12285
12286
12287
12288
12289 fi
12290 ac_ext=c
12291 ac_cpp='$CPP $CPPFLAGS'
12292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12295
12296 CC="$lt_save_CC"
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 ac_config_commands="$ac_config_commands libtool"
12313
12314
12315
12316
12317 # Only expand once:
12318
12319
12320
12321
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12323 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12324 # Check whether --enable-maintainer-mode was given.
12325 if test "${enable_maintainer_mode+set}" = set; then :
12326 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12327 else
12328 USE_MAINTAINER_MODE=no
12329 fi
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12332 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12333 if test $USE_MAINTAINER_MODE = yes; then
12334 MAINTAINER_MODE_TRUE=
12335 MAINTAINER_MODE_FALSE='#'
12336 else
12337 MAINTAINER_MODE_TRUE='#'
12338 MAINTAINER_MODE_FALSE=
12339 fi
12340
12341 MAINT=$MAINTAINER_MODE_TRUE
12342
12343
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12346 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12347 if ${ac_cv_c_const+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352
12353 int
12354 main ()
12355 {
12356 /* FIXME: Include the comments suggested by Paul. */
12357 #ifndef __cplusplus
12358 /* Ultrix mips cc rejects this. */
12359 typedef int charset[2];
12360 const charset cs;
12361 /* SunOS 4.1.1 cc rejects this. */
12362 char const *const *pcpcc;
12363 char **ppc;
12364 /* NEC SVR4.0.2 mips cc rejects this. */
12365 struct point {int x, y;};
12366 static struct point const zero = {0,0};
12367 /* AIX XL C 1.02.0.0 rejects this.
12368 It does not let you subtract one const X* pointer from another in
12369 an arm of an if-expression whose if-part is not a constant
12370 expression */
12371 const char *g = "string";
12372 pcpcc = &g + (g ? g-g : 0);
12373 /* HPUX 7.0 cc rejects these. */
12374 ++pcpcc;
12375 ppc = (char**) pcpcc;
12376 pcpcc = (char const *const *) ppc;
12377 { /* SCO 3.2v4 cc rejects this. */
12378 char *t;
12379 char const *s = 0 ? (char *) 0 : (char const *) 0;
12380
12381 *t++ = 0;
12382 if (s) return 0;
12383 }
12384 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12385 int x[] = {25, 17};
12386 const int *foo = &x[0];
12387 ++foo;
12388 }
12389 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12390 typedef const int *iptr;
12391 iptr p = 0;
12392 ++p;
12393 }
12394 { /* AIX XL C 1.02.0.0 rejects this saying
12395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12396 struct s { int j; const int *ap[3]; };
12397 struct s *b; b->j = 5;
12398 }
12399 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12400 const int foo = 10;
12401 if (!foo) return 0;
12402 }
12403 return !cs[0] && !zero.x;
12404 #endif
12405
12406 ;
12407 return 0;
12408 }
12409 _ACEOF
12410 if ac_fn_c_try_compile "$LINENO"; then :
12411 ac_cv_c_const=yes
12412 else
12413 ac_cv_c_const=no
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12418 $as_echo "$ac_cv_c_const" >&6; }
12419 if test $ac_cv_c_const = no; then
12420
12421 $as_echo "#define const /**/" >>confdefs.h
12422
12423 fi
12424
12425
12426 # Extract the first word of "pkg-config", so it can be a program name with args.
12427 set dummy pkg-config; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 case $PKG_CONFIG in
12434 [\\/]* | ?:[\\/]*)
12435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12436 ;;
12437 *)
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12440 do
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12448 fi
12449 done
12450 done
12451 IFS=$as_save_IFS
12452
12453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12454 ;;
12455 esac
12456 fi
12457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12458 if test -n "$PKG_CONFIG"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12460 $as_echo "$PKG_CONFIG" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 fi
12465
12466
12467
12468 CFLAGS=
12469 LIBS=-lm
12470
12471
12472 # Extract the first word of ""swig"", so it can be a program name with args.
12473 set dummy "swig"; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475 $as_echo_n "checking for $ac_word... " >&6; }
12476 if ${ac_cv_prog_have_swig+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 if test -n "$have_swig"; then
12480 ac_cv_prog_have_swig="$have_swig" # Let the user override the test.
12481 else
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_prog_have_swig="yes"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12492 fi
12493 done
12494 done
12495 IFS=$as_save_IFS
12496
12497 test -z "$ac_cv_prog_have_swig" && ac_cv_prog_have_swig="no"
12498 fi
12499 fi
12500 have_swig=$ac_cv_prog_have_swig
12501 if test -n "$have_swig"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_swig" >&5
12503 $as_echo "$have_swig" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508
12509
12510
12511
12512 # Extract the first word of ""fpc"", so it can be a program name with args.
12513 set dummy "fpc"; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_prog_have_fpc+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test -n "$have_fpc"; then
12520 ac_cv_prog_have_fpc="$have_fpc" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12529 ac_cv_prog_have_fpc="yes"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12532 fi
12533 done
12534 done
12535 IFS=$as_save_IFS
12536
12537 test -z "$ac_cv_prog_have_fpc" && ac_cv_prog_have_fpc="no"
12538 fi
12539 fi
12540 have_fpc=$ac_cv_prog_have_fpc
12541 if test -n "$have_fpc"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fpc" >&5
12543 $as_echo "$have_fpc" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 fi
12548
12549
12550
12551 build_fpc=$have_fpc
12552
12553 # Check whether --enable-fpc was given.
12554 if test "${enable_fpc+set}" = set; then :
12555 enableval=$enable_fpc; build_fpc=no
12556 else
12557 build_fpc=$have_fpc
12558 fi
12559
12560
12561 if test "$have_fpc" = "yes"; then
12562 PA_VERSION=`fpc -iV`
12563 PA_TPR=`fpc -iTP`
12564 PA_TOS=`fpc -iTO`
12565 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
12566
12567
12568 fi
12569
12570
12571 # Extract the first word of ""gpc"", so it can be a program name with args.
12572 set dummy "gpc"; ac_word=$2
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574 $as_echo_n "checking for $ac_word... " >&6; }
12575 if ${ac_cv_prog_have_gpc+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 if test -n "$have_gpc"; then
12579 ac_cv_prog_have_gpc="$have_gpc" # Let the user override the test.
12580 else
12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582 for as_dir in $PATH
12583 do
12584 IFS=$as_save_IFS
12585 test -z "$as_dir" && as_dir=.
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12588 ac_cv_prog_have_gpc="yes"
12589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590 break 2
12591 fi
12592 done
12593 done
12594 IFS=$as_save_IFS
12595
12596 test -z "$ac_cv_prog_have_gpc" && ac_cv_prog_have_gpc="no"
12597 fi
12598 fi
12599 have_gpc=$ac_cv_prog_have_gpc
12600 if test -n "$have_gpc"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gpc" >&5
12602 $as_echo "$have_gpc" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609
12610 build_gpc=$have_gpc
12611
12612 # Check whether --enable-gpc was given.
12613 if test "${enable_gpc+set}" = set; then :
12614 enableval=$enable_gpc; build_gpc=no
12615 else
12616 build_gpc=$have_gpc
12617 fi
12618
12619
12620 if test "$have_gpc" = "yes"; then
12621 GP_MODULES_PATH=`gpc -print-search-dirs | grep install | cut -d' ' -f 2`
12622
12623 fi
12624
12625
12626 if test "$build_fpc" = "yes" -a "$build_gpc" = "yes" ; then
12627 WITH_GPC_FPC_TRUE=
12628 WITH_GPC_FPC_FALSE='#'
12629 else
12630 WITH_GPC_FPC_TRUE='#'
12631 WITH_GPC_FPC_FALSE=
12632 fi
12633
12634 if test "$build_gpc" = "yes" -a "$build_fpc" != "yes" ; then
12635 WITH_GPC_TRUE=
12636 WITH_GPC_FALSE='#'
12637 else
12638 WITH_GPC_TRUE='#'
12639 WITH_GPC_FALSE=
12640 fi
12641
12642 if test "$build_gpc" != "yes" -a "$build_fpc" = "yes" ; then
12643 WITH_FPC_TRUE=
12644 WITH_FPC_FALSE='#'
12645 else
12646 WITH_FPC_TRUE='#'
12647 WITH_FPC_FALSE=
12648 fi
12649
12650
12651
12652 # Extract the first word of ""python"", so it can be a program name with args.
12653 set dummy "python"; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if ${ac_cv_prog_have_python+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 if test -n "$have_python"; then
12660 ac_cv_prog_have_python="$have_python" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12669 ac_cv_prog_have_python="yes"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12672 fi
12673 done
12674 done
12675 IFS=$as_save_IFS
12676
12677 test -z "$ac_cv_prog_have_python" && ac_cv_prog_have_python="no"
12678 fi
12679 fi
12680 have_python=$ac_cv_prog_have_python
12681 if test -n "$have_python"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_python" >&5
12683 $as_echo "$have_python" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688
12689
12690
12691 build_python=$have_python
12692
12693 # Check whether --enable-python was given.
12694 if test "${enable_python+set}" = set; then :
12695 enableval=$enable_python; build_python=no
12696 else
12697 build_python=$have_python
12698 fi
12699
12700
12701
12702 # Check whether --with-python-sitelib-dir was given.
12703 if test "${with_python_sitelib_dir+set}" = set; then :
12704 withval=$with_python_sitelib_dir;
12705 fi
12706
12707
12708 if test "$have_python" = "yes"; then
12709 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
12710 PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PY_PREFIX/include/python$PY_VERSION/Python.h" >&5
12712 $as_echo_n "checking for $PY_PREFIX/include/python$PY_VERSION/Python.h... " >&6; }
12713 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12715 $as_echo "yes" >&6; }
12716 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
12717
12718 if test "$with_python_sitelib_dir" = "" ; then
12719 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/dist-packages"
12720 else
12721 PY_MODULES_PATH=$with_python_sitelib_dir
12722 fi
12723
12724
12725
12726
12727 if test "$have_swig" = "no"; then
12728 build_python=no
12729 fi
12730 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733 build_python=no
12734 fi
12735 fi
12736
12737 if test "$build_python" = "yes"; then
12738 WITH_PYTHON_TRUE=
12739 WITH_PYTHON_FALSE='#'
12740 else
12741 WITH_PYTHON_TRUE='#'
12742 WITH_PYTHON_FALSE=
12743 fi
12744
12745
12746
12747 # Extract the first word of ""ruby"", so it can be a program name with args.
12748 set dummy "ruby"; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if ${ac_cv_prog_have_ruby+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 if test -n "$have_ruby"; then
12755 ac_cv_prog_have_ruby="$have_ruby" # Let the user override the test.
12756 else
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12759 do
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12764 ac_cv_prog_have_ruby="yes"
12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 break 2
12767 fi
12768 done
12769 done
12770 IFS=$as_save_IFS
12771
12772 test -z "$ac_cv_prog_have_ruby" && ac_cv_prog_have_ruby="no"
12773 fi
12774 fi
12775 have_ruby=$ac_cv_prog_have_ruby
12776 if test -n "$have_ruby"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ruby" >&5
12778 $as_echo "$have_ruby" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 fi
12783
12784
12785
12786 build_ruby=$have_ruby
12787
12788 # Check whether --enable-ruby was given.
12789 if test "${enable_ruby+set}" = set; then :
12790 enableval=$enable_ruby; build_ruby=no
12791 else
12792 build_ruby=$have_ruby
12793 fi
12794
12795
12796
12797 # Check whether --with-ruby-sitelib-dir was given.
12798 if test "${with_ruby_sitelib_dir+set}" = set; then :
12799 withval=$with_ruby_sitelib_dir;
12800 fi
12801
12802
12803 if test "$have_ruby" = "yes"; then
12804 RU_PREFIX=`ruby -e 'require "mkmf"; puts $topdir'`
12805 RU_VERSION=`ruby -e "require 'mkmf'; puts config_string('MAJOR')"`
12806 RU_VERSION+=.`ruby -e "require 'mkmf'; puts config_string('MINOR')"`
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RU_PREFIX/ruby.h" >&5
12808 $as_echo_n "checking for $RU_PREFIX/ruby.h... " >&6; }
12809 if test -f $RU_PREFIX/ruby.h; then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12811 $as_echo "yes" >&6; }
12812 RU_CFLAGS="-I$RU_PREFIX"
12813
12814 if test "$with_ruby_sitelib_dir" = "" ; then
12815 RU_MODULES_PATH="$RU_PREFIX"
12816 else
12817 RU_MODULES_PATH=$with_ruby_sitelib_dir
12818 fi
12819
12820
12821
12822
12823 if test "$have_swig" = "no"; then
12824 build_ruby=no
12825 fi
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12829 build_ruby=no
12830 fi
12831 fi
12832
12833 if test "$build_ruby" = "yes"; then
12834 WITH_RUBY_TRUE=
12835 WITH_RUBY_FALSE='#'
12836 else
12837 WITH_RUBY_TRUE='#'
12838 WITH_RUBY_FALSE=
12839 fi
12840
12841
12842
12843 # Extract the first word of ""php"", so it can be a program name with args.
12844 set dummy "php"; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if ${ac_cv_prog_have_php+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 if test -n "$have_php"; then
12851 ac_cv_prog_have_php="$have_php" # Let the user override the test.
12852 else
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12855 do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12860 ac_cv_prog_have_php="yes"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12863 fi
12864 done
12865 done
12866 IFS=$as_save_IFS
12867
12868 test -z "$ac_cv_prog_have_php" && ac_cv_prog_have_php="no"
12869 fi
12870 fi
12871 have_php=$ac_cv_prog_have_php
12872 if test -n "$have_php"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php" >&5
12874 $as_echo "$have_php" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 fi
12879
12880
12881
12882 build_php=$have_php
12883
12884 # Check whether --enable-php was given.
12885 if test "${enable_php+set}" = set; then :
12886 enableval=$enable_php; build_php=no
12887 else
12888 build_php=$have_php
12889 fi
12890
12891
12892
12893 # Check whether --with-php-sitelib-dir was given.
12894 if test "${with_php_sitelib_dir+set}" = set; then :
12895 withval=$with_php_sitelib_dir;
12896 fi
12897
12898
12899 if test "$have_php" = "yes"; then
12900 # Extract the first word of ""php-config5"", so it can be a program name with args.
12901 set dummy "php-config5"; ac_word=$2
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903 $as_echo_n "checking for $ac_word... " >&6; }
12904 if ${ac_cv_prog_have_php_config+:} false; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 if test -n "$have_php_config"; then
12908 ac_cv_prog_have_php_config="$have_php_config" # Let the user override the test.
12909 else
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in $PATH
12912 do
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12917 ac_cv_prog_have_php_config="yes"
12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 break 2
12920 fi
12921 done
12922 done
12923 IFS=$as_save_IFS
12924
12925 test -z "$ac_cv_prog_have_php_config" && ac_cv_prog_have_php_config="no"
12926 fi
12927 fi
12928 have_php_config=$ac_cv_prog_have_php_config
12929 if test -n "$have_php_config"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php_config" >&5
12931 $as_echo "$have_php_config" >&6; }
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936
12937
12938 if test "$have_php_config" = "yes"; then
12939
12940 PH_CONFIG_PATH=`php --ini | grep "Scan" | cut -d: -f2 | sed 's/\s//g'`
12941 PH_INCLUDE_PATH=`php -r "echo get_include_path();" | cut -f2 -d:`
12942 if test "$with_php_sitelib_dir" = "" ; then
12943 PH_MODULES_PATH=`php-config5 --extension-dir`
12944 else
12945 PH_MODULES_PATH=$with_php_sitelib_dir
12946 fi
12947
12948
12949
12950
12951 if test "$have_swig" = "no"; then
12952 build_php=no
12953 fi
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 build_php=no
12958 fi
12959 fi
12960
12961 if test "$build_php" = "yes"; then
12962 WITH_PHP_TRUE=
12963 WITH_PHP_FALSE='#'
12964 else
12965 WITH_PHP_TRUE='#'
12966 WITH_PHP_FALSE=
12967 fi
12968
12969
12970
12971 # Extract the first word of ""perl"", so it can be a program name with args.
12972 set dummy "perl"; ac_word=$2
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12974 $as_echo_n "checking for $ac_word... " >&6; }
12975 if ${ac_cv_prog_have_perl+:} false; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 if test -n "$have_perl"; then
12979 ac_cv_prog_have_perl="$have_perl" # Let the user override the test.
12980 else
12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982 for as_dir in $PATH
12983 do
12984 IFS=$as_save_IFS
12985 test -z "$as_dir" && as_dir=.
12986 for ac_exec_ext in '' $ac_executable_extensions; do
12987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12988 ac_cv_prog_have_perl="yes"
12989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12990 break 2
12991 fi
12992 done
12993 done
12994 IFS=$as_save_IFS
12995
12996 test -z "$ac_cv_prog_have_perl" && ac_cv_prog_have_perl="no"
12997 fi
12998 fi
12999 have_perl=$ac_cv_prog_have_perl
13000 if test -n "$have_perl"; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_perl" >&5
13002 $as_echo "$have_perl" >&6; }
13003 else
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005 $as_echo "no" >&6; }
13006 fi
13007
13008
13009
13010 build_perl=$have_perl
13011
13012 # Check whether --enable-perl was given.
13013 if test "${enable_perl+set}" = set; then :
13014 enableval=$enable_perl; build_perl=no
13015 else
13016 build_perl=$have_perl
13017 fi
13018
13019
13020
13021 # Check whether --with-perl-sitelib-dir was given.
13022 if test "${with_perl_sitelib_dir+set}" = set; then :
13023 withval=$with_perl_sitelib_dir;
13024 fi
13025
13026
13027 if test "$have_perl" = "yes"; then
13028 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PE_PREFIX/CORE/perl.h" >&5
13030 $as_echo_n "checking for $PE_PREFIX/CORE/perl.h... " >&6; }
13031 if test -f $PE_PREFIX/CORE/perl.h; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13033 $as_echo "yes" >&6; }
13034 PE_CFLAGS="-I$PE_PREFIX/CORE "
13035 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
13036
13037 if test "$with_perl_sitelib_dir" = "" ; then
13038 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
13039 else
13040 PE_MODULES_PATH=$with_perl_sitelib_dir
13041 fi
13042
13043
13044
13045 if test "x$have_swig" = "xno"; then
13046 build_perl=no
13047 fi
13048 else
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050 $as_echo "no" >&6; }
13051 build_perl=no
13052 fi
13053 fi
13054
13055 if test "$build_perl" = "yes"; then
13056 WITH_PERL_TRUE=
13057 WITH_PERL_FALSE='#'
13058 else
13059 WITH_PERL_TRUE='#'
13060 WITH_PERL_FALSE=
13061 fi
13062
13063
13064
13065
13066 ALL_LINGUAS="he es_MX ru fr sv"
13067
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13069 $as_echo_n "checking whether NLS is requested... " >&6; }
13070 # Check whether --enable-nls was given.
13071 if test "${enable_nls+set}" = set; then :
13072 enableval=$enable_nls; USE_NLS=$enableval
13073 else
13074 USE_NLS=yes
13075 fi
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13078 $as_echo "$USE_NLS" >&6; }
13079
13080
13081
13082
13083 GETTEXT_MACRO_VERSION=0.18
13084
13085
13086
13087
13088 # Prepare PATH_SEPARATOR.
13089 # The user is always right.
13090 if test "${PATH_SEPARATOR+set}" != set; then
13091 echo "#! /bin/sh" >conf$$.sh
13092 echo "exit 0" >>conf$$.sh
13093 chmod +x conf$$.sh
13094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13095 PATH_SEPARATOR=';'
13096 else
13097 PATH_SEPARATOR=:
13098 fi
13099 rm -f conf$$.sh
13100 fi
13101
13102 # Find out how to test for executable files. Don't use a zero-byte file,
13103 # as systems may use methods other than mode bits to determine executability.
13104 cat >conf$$.file <<_ASEOF
13105 #! /bin/sh
13106 exit 0
13107 _ASEOF
13108 chmod +x conf$$.file
13109 if test -x conf$$.file >/dev/null 2>&1; then
13110 ac_executable_p="test -x"
13111 else
13112 ac_executable_p="test -f"
13113 fi
13114 rm -f conf$$.file
13115
13116 # Extract the first word of "msgfmt", so it can be a program name with args.
13117 set dummy msgfmt; ac_word=$2
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119 $as_echo_n "checking for $ac_word... " >&6; }
13120 if ${ac_cv_path_MSGFMT+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 case "$MSGFMT" in
13124 [\\/]* | ?:[\\/]*)
13125 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13126 ;;
13127 *)
13128 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13129 for ac_dir in $PATH; do
13130 IFS="$ac_save_IFS"
13131 test -z "$ac_dir" && ac_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13134 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13135 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13136 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13137 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13138 break 2
13139 fi
13140 fi
13141 done
13142 done
13143 IFS="$ac_save_IFS"
13144 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13145 ;;
13146 esac
13147 fi
13148 MSGFMT="$ac_cv_path_MSGFMT"
13149 if test "$MSGFMT" != ":"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13151 $as_echo "$MSGFMT" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156
13157 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13158 set dummy gmsgfmt; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if ${ac_cv_path_GMSGFMT+:} false; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 case $GMSGFMT in
13165 [\\/]* | ?:[\\/]*)
13166 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13167 ;;
13168 *)
13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13171 do
13172 IFS=$as_save_IFS
13173 test -z "$as_dir" && as_dir=.
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13178 break 2
13179 fi
13180 done
13181 done
13182 IFS=$as_save_IFS
13183
13184 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13185 ;;
13186 esac
13187 fi
13188 GMSGFMT=$ac_cv_path_GMSGFMT
13189 if test -n "$GMSGFMT"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13191 $as_echo "$GMSGFMT" >&6; }
13192 else
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13195 fi
13196
13197
13198
13199 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13200 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13201 *) MSGFMT_015=$MSGFMT ;;
13202 esac
13203
13204 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13205 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13206 *) GMSGFMT_015=$GMSGFMT ;;
13207 esac
13208
13209
13210
13211 # Prepare PATH_SEPARATOR.
13212 # The user is always right.
13213 if test "${PATH_SEPARATOR+set}" != set; then
13214 echo "#! /bin/sh" >conf$$.sh
13215 echo "exit 0" >>conf$$.sh
13216 chmod +x conf$$.sh
13217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13218 PATH_SEPARATOR=';'
13219 else
13220 PATH_SEPARATOR=:
13221 fi
13222 rm -f conf$$.sh
13223 fi
13224
13225 # Find out how to test for executable files. Don't use a zero-byte file,
13226 # as systems may use methods other than mode bits to determine executability.
13227 cat >conf$$.file <<_ASEOF
13228 #! /bin/sh
13229 exit 0
13230 _ASEOF
13231 chmod +x conf$$.file
13232 if test -x conf$$.file >/dev/null 2>&1; then
13233 ac_executable_p="test -x"
13234 else
13235 ac_executable_p="test -f"
13236 fi
13237 rm -f conf$$.file
13238
13239 # Extract the first word of "xgettext", so it can be a program name with args.
13240 set dummy xgettext; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if ${ac_cv_path_XGETTEXT+:} false; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 case "$XGETTEXT" in
13247 [\\/]* | ?:[\\/]*)
13248 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13249 ;;
13250 *)
13251 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13252 for ac_dir in $PATH; do
13253 IFS="$ac_save_IFS"
13254 test -z "$ac_dir" && ac_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13257 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13258 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13259 (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
13260 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13261 break 2
13262 fi
13263 fi
13264 done
13265 done
13266 IFS="$ac_save_IFS"
13267 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13268 ;;
13269 esac
13270 fi
13271 XGETTEXT="$ac_cv_path_XGETTEXT"
13272 if test "$XGETTEXT" != ":"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13274 $as_echo "$XGETTEXT" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13278 fi
13279
13280 rm -f messages.po
13281
13282 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13283 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13284 *) XGETTEXT_015=$XGETTEXT ;;
13285 esac
13286
13287
13288
13289 # Prepare PATH_SEPARATOR.
13290 # The user is always right.
13291 if test "${PATH_SEPARATOR+set}" != set; then
13292 echo "#! /bin/sh" >conf$$.sh
13293 echo "exit 0" >>conf$$.sh
13294 chmod +x conf$$.sh
13295 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13296 PATH_SEPARATOR=';'
13297 else
13298 PATH_SEPARATOR=:
13299 fi
13300 rm -f conf$$.sh
13301 fi
13302
13303 # Find out how to test for executable files. Don't use a zero-byte file,
13304 # as systems may use methods other than mode bits to determine executability.
13305 cat >conf$$.file <<_ASEOF
13306 #! /bin/sh
13307 exit 0
13308 _ASEOF
13309 chmod +x conf$$.file
13310 if test -x conf$$.file >/dev/null 2>&1; then
13311 ac_executable_p="test -x"
13312 else
13313 ac_executable_p="test -f"
13314 fi
13315 rm -f conf$$.file
13316
13317 # Extract the first word of "msgmerge", so it can be a program name with args.
13318 set dummy msgmerge; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_path_MSGMERGE+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 case "$MSGMERGE" in
13325 [\\/]* | ?:[\\/]*)
13326 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13327 ;;
13328 *)
13329 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13330 for ac_dir in $PATH; do
13331 IFS="$ac_save_IFS"
13332 test -z "$ac_dir" && ac_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13335 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13336 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13337 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13338 break 2
13339 fi
13340 fi
13341 done
13342 done
13343 IFS="$ac_save_IFS"
13344 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13345 ;;
13346 esac
13347 fi
13348 MSGMERGE="$ac_cv_path_MSGMERGE"
13349 if test "$MSGMERGE" != ":"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13351 $as_echo "$MSGMERGE" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355 fi
13356
13357
13358 test -n "$localedir" || localedir='${datadir}/locale'
13359
13360
13361 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13362
13363
13364 ac_config_commands="$ac_config_commands po-directories"
13365
13366
13367
13368 if test "X$prefix" = "XNONE"; then
13369 acl_final_prefix="$ac_default_prefix"
13370 else
13371 acl_final_prefix="$prefix"
13372 fi
13373 if test "X$exec_prefix" = "XNONE"; then
13374 acl_final_exec_prefix='${prefix}'
13375 else
13376 acl_final_exec_prefix="$exec_prefix"
13377 fi
13378 acl_save_prefix="$prefix"
13379 prefix="$acl_final_prefix"
13380 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13381 prefix="$acl_save_prefix"
13382
13383
13384 # Check whether --with-gnu-ld was given.
13385 if test "${with_gnu_ld+set}" = set; then :
13386 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13387 else
13388 with_gnu_ld=no
13389 fi
13390
13391 # Prepare PATH_SEPARATOR.
13392 # The user is always right.
13393 if test "${PATH_SEPARATOR+set}" != set; then
13394 echo "#! /bin/sh" >conf$$.sh
13395 echo "exit 0" >>conf$$.sh
13396 chmod +x conf$$.sh
13397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13398 PATH_SEPARATOR=';'
13399 else
13400 PATH_SEPARATOR=:
13401 fi
13402 rm -f conf$$.sh
13403 fi
13404 ac_prog=ld
13405 if test "$GCC" = yes; then
13406 # Check if gcc -print-prog-name=ld gives a path.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13408 $as_echo_n "checking for ld used by GCC... " >&6; }
13409 case $host in
13410 *-*-mingw*)
13411 # gcc leaves a trailing carriage return which upsets mingw
13412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13413 *)
13414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13415 esac
13416 case $ac_prog in
13417 # Accept absolute paths.
13418 [\\/]* | [A-Za-z]:[\\/]*)
13419 re_direlt='/[^/][^/]*/\.\./'
13420 # Canonicalize the path of ld
13421 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13423 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13424 done
13425 test -z "$LD" && LD="$ac_prog"
13426 ;;
13427 "")
13428 # If it fails, then pretend we aren't using GCC.
13429 ac_prog=ld
13430 ;;
13431 *)
13432 # If it is relative, then search for the first ld in PATH.
13433 with_gnu_ld=unknown
13434 ;;
13435 esac
13436 elif test "$with_gnu_ld" = yes; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13438 $as_echo_n "checking for GNU ld... " >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13441 $as_echo_n "checking for non-GNU ld... " >&6; }
13442 fi
13443 if ${acl_cv_path_LD+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 if test -z "$LD"; then
13447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13448 for ac_dir in $PATH; do
13449 test -z "$ac_dir" && ac_dir=.
13450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13451 acl_cv_path_LD="$ac_dir/$ac_prog"
13452 # Check to see if the program is GNU ld. I'd rather use --version,
13453 # but apparently some GNU ld's only accept -v.
13454 # Break only if it was the GNU/non-GNU ld that we prefer.
13455 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13456 *GNU* | *'with BFD'*)
13457 test "$with_gnu_ld" != no && break ;;
13458 *)
13459 test "$with_gnu_ld" != yes && break ;;
13460 esac
13461 fi
13462 done
13463 IFS="$ac_save_ifs"
13464 else
13465 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13466 fi
13467 fi
13468
13469 LD="$acl_cv_path_LD"
13470 if test -n "$LD"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13472 $as_echo "$LD" >&6; }
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13479 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13480 if ${acl_cv_prog_gnu_ld+:} false; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13484 case `$LD -v 2>&1 </dev/null` in
13485 *GNU* | *'with BFD'*)
13486 acl_cv_prog_gnu_ld=yes ;;
13487 *)
13488 acl_cv_prog_gnu_ld=no ;;
13489 esac
13490 fi
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13492 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13493 with_gnu_ld=$acl_cv_prog_gnu_ld
13494
13495
13496
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13499 $as_echo_n "checking for shared library run path origin... " >&6; }
13500 if ${acl_cv_rpath+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503
13504 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13505 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13506 . ./conftest.sh
13507 rm -f ./conftest.sh
13508 acl_cv_rpath=done
13509
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13512 $as_echo "$acl_cv_rpath" >&6; }
13513 wl="$acl_cv_wl"
13514 acl_libext="$acl_cv_libext"
13515 acl_shlibext="$acl_cv_shlibext"
13516 acl_libname_spec="$acl_cv_libname_spec"
13517 acl_library_names_spec="$acl_cv_library_names_spec"
13518 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13519 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13520 acl_hardcode_direct="$acl_cv_hardcode_direct"
13521 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13522 # Check whether --enable-rpath was given.
13523 if test "${enable_rpath+set}" = set; then :
13524 enableval=$enable_rpath; :
13525 else
13526 enable_rpath=yes
13527 fi
13528
13529
13530
13531
13532 acl_libdirstem=lib
13533 acl_libdirstem2=
13534 case "$host_os" in
13535 solaris*)
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13537 $as_echo_n "checking for 64-bit host... " >&6; }
13538 if ${gl_cv_solaris_64bit+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543
13544 #ifdef _LP64
13545 sixtyfour bits
13546 #endif
13547
13548 _ACEOF
13549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13550 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13551 gl_cv_solaris_64bit=yes
13552 else
13553 gl_cv_solaris_64bit=no
13554 fi
13555 rm -f conftest*
13556
13557
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13560 $as_echo "$gl_cv_solaris_64bit" >&6; }
13561 if test $gl_cv_solaris_64bit = yes; then
13562 acl_libdirstem=lib/64
13563 case "$host_cpu" in
13564 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13565 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13566 esac
13567 fi
13568 ;;
13569 *)
13570 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13571 if test -n "$searchpath"; then
13572 acl_save_IFS="${IFS= }"; IFS=":"
13573 for searchdir in $searchpath; do
13574 if test -d "$searchdir"; then
13575 case "$searchdir" in
13576 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13577 */../ | */.. )
13578 # Better ignore directories of this form. They are misleading.
13579 ;;
13580 *) searchdir=`cd "$searchdir" && pwd`
13581 case "$searchdir" in
13582 */lib64 ) acl_libdirstem=lib64 ;;
13583 esac ;;
13584 esac
13585 fi
13586 done
13587 IFS="$acl_save_IFS"
13588 fi
13589 ;;
13590 esac
13591 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604 use_additional=yes
13605
13606 acl_save_prefix="$prefix"
13607 prefix="$acl_final_prefix"
13608 acl_save_exec_prefix="$exec_prefix"
13609 exec_prefix="$acl_final_exec_prefix"
13610
13611 eval additional_includedir=\"$includedir\"
13612 eval additional_libdir=\"$libdir\"
13613
13614 exec_prefix="$acl_save_exec_prefix"
13615 prefix="$acl_save_prefix"
13616
13617
13618 # Check whether --with-libiconv-prefix was given.
13619 if test "${with_libiconv_prefix+set}" = set; then :
13620 withval=$with_libiconv_prefix;
13621 if test "X$withval" = "Xno"; then
13622 use_additional=no
13623 else
13624 if test "X$withval" = "X"; then
13625
13626 acl_save_prefix="$prefix"
13627 prefix="$acl_final_prefix"
13628 acl_save_exec_prefix="$exec_prefix"
13629 exec_prefix="$acl_final_exec_prefix"
13630
13631 eval additional_includedir=\"$includedir\"
13632 eval additional_libdir=\"$libdir\"
13633
13634 exec_prefix="$acl_save_exec_prefix"
13635 prefix="$acl_save_prefix"
13636
13637 else
13638 additional_includedir="$withval/include"
13639 additional_libdir="$withval/$acl_libdirstem"
13640 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13641 && ! test -d "$withval/$acl_libdirstem"; then
13642 additional_libdir="$withval/$acl_libdirstem2"
13643 fi
13644 fi
13645 fi
13646
13647 fi
13648
13649 LIBICONV=
13650 LTLIBICONV=
13651 INCICONV=
13652 LIBICONV_PREFIX=
13653 HAVE_LIBICONV=
13654 rpathdirs=
13655 ltrpathdirs=
13656 names_already_handled=
13657 names_next_round='iconv '
13658 while test -n "$names_next_round"; do
13659 names_this_round="$names_next_round"
13660 names_next_round=
13661 for name in $names_this_round; do
13662 already_handled=
13663 for n in $names_already_handled; do
13664 if test "$n" = "$name"; then
13665 already_handled=yes
13666 break
13667 fi
13668 done
13669 if test -z "$already_handled"; then
13670 names_already_handled="$names_already_handled $name"
13671 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13672 eval value=\"\$HAVE_LIB$uppername\"
13673 if test -n "$value"; then
13674 if test "$value" = yes; then
13675 eval value=\"\$LIB$uppername\"
13676 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13677 eval value=\"\$LTLIB$uppername\"
13678 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13679 else
13680 :
13681 fi
13682 else
13683 found_dir=
13684 found_la=
13685 found_so=
13686 found_a=
13687 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13688 if test -n "$acl_shlibext"; then
13689 shrext=".$acl_shlibext" # typically: shrext=.so
13690 else
13691 shrext=
13692 fi
13693 if test $use_additional = yes; then
13694 dir="$additional_libdir"
13695 if test -n "$acl_shlibext"; then
13696 if test -f "$dir/$libname$shrext"; then
13697 found_dir="$dir"
13698 found_so="$dir/$libname$shrext"
13699 else
13700 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13701 ver=`(cd "$dir" && \
13702 for f in "$libname$shrext".*; do echo "$f"; done \
13703 | sed -e "s,^$libname$shrext\\\\.,," \
13704 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13705 | sed 1q ) 2>/dev/null`
13706 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13707 found_dir="$dir"
13708 found_so="$dir/$libname$shrext.$ver"
13709 fi
13710 else
13711 eval library_names=\"$acl_library_names_spec\"
13712 for f in $library_names; do
13713 if test -f "$dir/$f"; then
13714 found_dir="$dir"
13715 found_so="$dir/$f"
13716 break
13717 fi
13718 done
13719 fi
13720 fi
13721 fi
13722 if test "X$found_dir" = "X"; then
13723 if test -f "$dir/$libname.$acl_libext"; then
13724 found_dir="$dir"
13725 found_a="$dir/$libname.$acl_libext"
13726 fi
13727 fi
13728 if test "X$found_dir" != "X"; then
13729 if test -f "$dir/$libname.la"; then
13730 found_la="$dir/$libname.la"
13731 fi
13732 fi
13733 fi
13734 if test "X$found_dir" = "X"; then
13735 for x in $LDFLAGS $LTLIBICONV; do
13736
13737 acl_save_prefix="$prefix"
13738 prefix="$acl_final_prefix"
13739 acl_save_exec_prefix="$exec_prefix"
13740 exec_prefix="$acl_final_exec_prefix"
13741 eval x=\"$x\"
13742 exec_prefix="$acl_save_exec_prefix"
13743 prefix="$acl_save_prefix"
13744
13745 case "$x" in
13746 -L*)
13747 dir=`echo "X$x" | sed -e 's/^X-L//'`
13748 if test -n "$acl_shlibext"; then
13749 if test -f "$dir/$libname$shrext"; then
13750 found_dir="$dir"
13751 found_so="$dir/$libname$shrext"
13752 else
13753 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13754 ver=`(cd "$dir" && \
13755 for f in "$libname$shrext".*; do echo "$f"; done \
13756 | sed -e "s,^$libname$shrext\\\\.,," \
13757 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13758 | sed 1q ) 2>/dev/null`
13759 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13760 found_dir="$dir"
13761 found_so="$dir/$libname$shrext.$ver"
13762 fi
13763 else
13764 eval library_names=\"$acl_library_names_spec\"
13765 for f in $library_names; do
13766 if test -f "$dir/$f"; then
13767 found_dir="$dir"
13768 found_so="$dir/$f"
13769 break
13770 fi
13771 done
13772 fi
13773 fi
13774 fi
13775 if test "X$found_dir" = "X"; then
13776 if test -f "$dir/$libname.$acl_libext"; then
13777 found_dir="$dir"
13778 found_a="$dir/$libname.$acl_libext"
13779 fi
13780 fi
13781 if test "X$found_dir" != "X"; then
13782 if test -f "$dir/$libname.la"; then
13783 found_la="$dir/$libname.la"
13784 fi
13785 fi
13786 ;;
13787 esac
13788 if test "X$found_dir" != "X"; then
13789 break
13790 fi
13791 done
13792 fi
13793 if test "X$found_dir" != "X"; then
13794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13795 if test "X$found_so" != "X"; then
13796 if test "$enable_rpath" = no \
13797 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13798 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13800 else
13801 haveit=
13802 for x in $ltrpathdirs; do
13803 if test "X$x" = "X$found_dir"; then
13804 haveit=yes
13805 break
13806 fi
13807 done
13808 if test -z "$haveit"; then
13809 ltrpathdirs="$ltrpathdirs $found_dir"
13810 fi
13811 if test "$acl_hardcode_direct" = yes; then
13812 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13813 else
13814 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13816 haveit=
13817 for x in $rpathdirs; do
13818 if test "X$x" = "X$found_dir"; then
13819 haveit=yes
13820 break
13821 fi
13822 done
13823 if test -z "$haveit"; then
13824 rpathdirs="$rpathdirs $found_dir"
13825 fi
13826 else
13827 haveit=
13828 for x in $LDFLAGS $LIBICONV; do
13829
13830 acl_save_prefix="$prefix"
13831 prefix="$acl_final_prefix"
13832 acl_save_exec_prefix="$exec_prefix"
13833 exec_prefix="$acl_final_exec_prefix"
13834 eval x=\"$x\"
13835 exec_prefix="$acl_save_exec_prefix"
13836 prefix="$acl_save_prefix"
13837
13838 if test "X$x" = "X-L$found_dir"; then
13839 haveit=yes
13840 break
13841 fi
13842 done
13843 if test -z "$haveit"; then
13844 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13845 fi
13846 if test "$acl_hardcode_minus_L" != no; then
13847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13848 else
13849 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13850 fi
13851 fi
13852 fi
13853 fi
13854 else
13855 if test "X$found_a" != "X"; then
13856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13857 else
13858 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13859 fi
13860 fi
13861 additional_includedir=
13862 case "$found_dir" in
13863 */$acl_libdirstem | */$acl_libdirstem/)
13864 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13865 if test "$name" = 'iconv'; then
13866 LIBICONV_PREFIX="$basedir"
13867 fi
13868 additional_includedir="$basedir/include"
13869 ;;
13870 */$acl_libdirstem2 | */$acl_libdirstem2/)
13871 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13872 if test "$name" = 'iconv'; then
13873 LIBICONV_PREFIX="$basedir"
13874 fi
13875 additional_includedir="$basedir/include"
13876 ;;
13877 esac
13878 if test "X$additional_includedir" != "X"; then
13879 if test "X$additional_includedir" != "X/usr/include"; then
13880 haveit=
13881 if test "X$additional_includedir" = "X/usr/local/include"; then
13882 if test -n "$GCC"; then
13883 case $host_os in
13884 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13885 esac
13886 fi
13887 fi
13888 if test -z "$haveit"; then
13889 for x in $CPPFLAGS $INCICONV; do
13890
13891 acl_save_prefix="$prefix"
13892 prefix="$acl_final_prefix"
13893 acl_save_exec_prefix="$exec_prefix"
13894 exec_prefix="$acl_final_exec_prefix"
13895 eval x=\"$x\"
13896 exec_prefix="$acl_save_exec_prefix"
13897 prefix="$acl_save_prefix"
13898
13899 if test "X$x" = "X-I$additional_includedir"; then
13900 haveit=yes
13901 break
13902 fi
13903 done
13904 if test -z "$haveit"; then
13905 if test -d "$additional_includedir"; then
13906 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13907 fi
13908 fi
13909 fi
13910 fi
13911 fi
13912 if test -n "$found_la"; then
13913 save_libdir="$libdir"
13914 case "$found_la" in
13915 */* | *\\*) . "$found_la" ;;
13916 *) . "./$found_la" ;;
13917 esac
13918 libdir="$save_libdir"
13919 for dep in $dependency_libs; do
13920 case "$dep" in
13921 -L*)
13922 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13923 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13924 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13925 haveit=
13926 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13927 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13928 if test -n "$GCC"; then
13929 case $host_os in
13930 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13931 esac
13932 fi
13933 fi
13934 if test -z "$haveit"; then
13935 haveit=
13936 for x in $LDFLAGS $LIBICONV; do
13937
13938 acl_save_prefix="$prefix"
13939 prefix="$acl_final_prefix"
13940 acl_save_exec_prefix="$exec_prefix"
13941 exec_prefix="$acl_final_exec_prefix"
13942 eval x=\"$x\"
13943 exec_prefix="$acl_save_exec_prefix"
13944 prefix="$acl_save_prefix"
13945
13946 if test "X$x" = "X-L$additional_libdir"; then
13947 haveit=yes
13948 break
13949 fi
13950 done
13951 if test -z "$haveit"; then
13952 if test -d "$additional_libdir"; then
13953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13954 fi
13955 fi
13956 haveit=
13957 for x in $LDFLAGS $LTLIBICONV; do
13958
13959 acl_save_prefix="$prefix"
13960 prefix="$acl_final_prefix"
13961 acl_save_exec_prefix="$exec_prefix"
13962 exec_prefix="$acl_final_exec_prefix"
13963 eval x=\"$x\"
13964 exec_prefix="$acl_save_exec_prefix"
13965 prefix="$acl_save_prefix"
13966
13967 if test "X$x" = "X-L$additional_libdir"; then
13968 haveit=yes
13969 break
13970 fi
13971 done
13972 if test -z "$haveit"; then
13973 if test -d "$additional_libdir"; then
13974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13975 fi
13976 fi
13977 fi
13978 fi
13979 ;;
13980 -R*)
13981 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13982 if test "$enable_rpath" != no; then
13983 haveit=
13984 for x in $rpathdirs; do
13985 if test "X$x" = "X$dir"; then
13986 haveit=yes
13987 break
13988 fi
13989 done
13990 if test -z "$haveit"; then
13991 rpathdirs="$rpathdirs $dir"
13992 fi
13993 haveit=
13994 for x in $ltrpathdirs; do
13995 if test "X$x" = "X$dir"; then
13996 haveit=yes
13997 break
13998 fi
13999 done
14000 if test -z "$haveit"; then
14001 ltrpathdirs="$ltrpathdirs $dir"
14002 fi
14003 fi
14004 ;;
14005 -l*)
14006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14007 ;;
14008 *.la)
14009 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14010 ;;
14011 *)
14012 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14014 ;;
14015 esac
14016 done
14017 fi
14018 else
14019 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14020 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14021 fi
14022 fi
14023 fi
14024 done
14025 done
14026 if test "X$rpathdirs" != "X"; then
14027 if test -n "$acl_hardcode_libdir_separator"; then
14028 alldirs=
14029 for found_dir in $rpathdirs; do
14030 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14031 done
14032 acl_save_libdir="$libdir"
14033 libdir="$alldirs"
14034 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14035 libdir="$acl_save_libdir"
14036 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14037 else
14038 for found_dir in $rpathdirs; do
14039 acl_save_libdir="$libdir"
14040 libdir="$found_dir"
14041 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14042 libdir="$acl_save_libdir"
14043 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14044 done
14045 fi
14046 fi
14047 if test "X$ltrpathdirs" != "X"; then
14048 for found_dir in $ltrpathdirs; do
14049 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14050 done
14051 fi
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14084 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14085 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 gt_save_LIBS="$LIBS"
14089 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <CoreFoundation/CFPreferences.h>
14093 int
14094 main ()
14095 {
14096 CFPreferencesCopyAppValue(NULL, NULL)
14097 ;
14098 return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_c_try_link "$LINENO"; then :
14102 gt_cv_func_CFPreferencesCopyAppValue=yes
14103 else
14104 gt_cv_func_CFPreferencesCopyAppValue=no
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext \
14107 conftest$ac_exeext conftest.$ac_ext
14108 LIBS="$gt_save_LIBS"
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14111 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14112 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14113
14114 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14115
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14118 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14119 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 gt_save_LIBS="$LIBS"
14123 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14126 #include <CoreFoundation/CFLocale.h>
14127 int
14128 main ()
14129 {
14130 CFLocaleCopyCurrent();
14131 ;
14132 return 0;
14133 }
14134 _ACEOF
14135 if ac_fn_c_try_link "$LINENO"; then :
14136 gt_cv_func_CFLocaleCopyCurrent=yes
14137 else
14138 gt_cv_func_CFLocaleCopyCurrent=no
14139 fi
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LIBS="$gt_save_LIBS"
14143 fi
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14145 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14146 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14147
14148 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14149
14150 fi
14151 INTL_MACOSX_LIBS=
14152 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14153 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14154 fi
14155
14156
14157
14158
14159
14160
14161 LIBINTL=
14162 LTLIBINTL=
14163 POSUB=
14164
14165 case " $gt_needs " in
14166 *" need-formatstring-macros "*) gt_api_version=3 ;;
14167 *" need-ngettext "*) gt_api_version=2 ;;
14168 *) gt_api_version=1 ;;
14169 esac
14170 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14171 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14172
14173 if test "$USE_NLS" = "yes"; then
14174 gt_use_preinstalled_gnugettext=no
14175
14176
14177 if test $gt_api_version -ge 3; then
14178 gt_revision_test_code='
14179 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14180 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14181 #endif
14182 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14183 '
14184 else
14185 gt_revision_test_code=
14186 fi
14187 if test $gt_api_version -ge 2; then
14188 gt_expression_test_code=' + * ngettext ("", "", 0)'
14189 else
14190 gt_expression_test_code=
14191 fi
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14194 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14195 if eval \${$gt_func_gnugettext_libc+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <libintl.h>
14201 $gt_revision_test_code
14202 extern int _nl_msg_cat_cntr;
14203 extern int *_nl_domain_bindings;
14204 int
14205 main ()
14206 {
14207 bindtextdomain ("", "");
14208 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14209 ;
14210 return 0;
14211 }
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214 eval "$gt_func_gnugettext_libc=yes"
14215 else
14216 eval "$gt_func_gnugettext_libc=no"
14217 fi
14218 rm -f core conftest.err conftest.$ac_objext \
14219 conftest$ac_exeext conftest.$ac_ext
14220 fi
14221 eval ac_res=\$$gt_func_gnugettext_libc
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14223 $as_echo "$ac_res" >&6; }
14224
14225 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14226
14227
14228
14229
14230
14231 am_save_CPPFLAGS="$CPPFLAGS"
14232
14233 for element in $INCICONV; do
14234 haveit=
14235 for x in $CPPFLAGS; do
14236
14237 acl_save_prefix="$prefix"
14238 prefix="$acl_final_prefix"
14239 acl_save_exec_prefix="$exec_prefix"
14240 exec_prefix="$acl_final_exec_prefix"
14241 eval x=\"$x\"
14242 exec_prefix="$acl_save_exec_prefix"
14243 prefix="$acl_save_prefix"
14244
14245 if test "X$x" = "X$element"; then
14246 haveit=yes
14247 break
14248 fi
14249 done
14250 if test -z "$haveit"; then
14251 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14252 fi
14253 done
14254
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14257 $as_echo_n "checking for iconv... " >&6; }
14258 if ${am_cv_func_iconv+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261
14262 am_cv_func_iconv="no, consider installing GNU libiconv"
14263 am_cv_lib_iconv=no
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14266 #include <stdlib.h>
14267 #include <iconv.h>
14268 int
14269 main ()
14270 {
14271 iconv_t cd = iconv_open("","");
14272 iconv(cd,NULL,NULL,NULL,NULL);
14273 iconv_close(cd);
14274 ;
14275 return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279 am_cv_func_iconv=yes
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 if test "$am_cv_func_iconv" != yes; then
14284 am_save_LIBS="$LIBS"
14285 LIBS="$LIBS $LIBICONV"
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14288 #include <stdlib.h>
14289 #include <iconv.h>
14290 int
14291 main ()
14292 {
14293 iconv_t cd = iconv_open("","");
14294 iconv(cd,NULL,NULL,NULL,NULL);
14295 iconv_close(cd);
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 if ac_fn_c_try_link "$LINENO"; then :
14301 am_cv_lib_iconv=yes
14302 am_cv_func_iconv=yes
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14306 LIBS="$am_save_LIBS"
14307 fi
14308
14309 fi
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14311 $as_echo "$am_cv_func_iconv" >&6; }
14312 if test "$am_cv_func_iconv" = yes; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14314 $as_echo_n "checking for working iconv... " >&6; }
14315 if ${am_cv_func_iconv_works+:} false; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318
14319 am_save_LIBS="$LIBS"
14320 if test $am_cv_lib_iconv = yes; then
14321 LIBS="$LIBS $LIBICONV"
14322 fi
14323 if test "$cross_compiling" = yes; then :
14324 case "$host_os" in
14325 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14326 *) am_cv_func_iconv_works="guessing yes" ;;
14327 esac
14328 else
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331
14332 #include <iconv.h>
14333 #include <string.h>
14334 int main ()
14335 {
14336 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14337 returns. */
14338 {
14339 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14340 if (cd_utf8_to_88591 != (iconv_t)(-1))
14341 {
14342 static const char input[] = "\342\202\254"; /* EURO SIGN */
14343 char buf[10];
14344 const char *inptr = input;
14345 size_t inbytesleft = strlen (input);
14346 char *outptr = buf;
14347 size_t outbytesleft = sizeof (buf);
14348 size_t res = iconv (cd_utf8_to_88591,
14349 (char **) &inptr, &inbytesleft,
14350 &outptr, &outbytesleft);
14351 if (res == 0)
14352 return 1;
14353 }
14354 }
14355 /* Test against Solaris 10 bug: Failures are not distinguishable from
14356 successful returns. */
14357 {
14358 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14359 if (cd_ascii_to_88591 != (iconv_t)(-1))
14360 {
14361 static const char input[] = "\263";
14362 char buf[10];
14363 const char *inptr = input;
14364 size_t inbytesleft = strlen (input);
14365 char *outptr = buf;
14366 size_t outbytesleft = sizeof (buf);
14367 size_t res = iconv (cd_ascii_to_88591,
14368 (char **) &inptr, &inbytesleft,
14369 &outptr, &outbytesleft);
14370 if (res == 0)
14371 return 1;
14372 }
14373 }
14374 #if 0 /* This bug could be worked around by the caller. */
14375 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14376 {
14377 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14378 if (cd_88591_to_utf8 != (iconv_t)(-1))
14379 {
14380 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14381 char buf[50];
14382 const char *inptr = input;
14383 size_t inbytesleft = strlen (input);
14384 char *outptr = buf;
14385 size_t outbytesleft = sizeof (buf);
14386 size_t res = iconv (cd_88591_to_utf8,
14387 (char **) &inptr, &inbytesleft,
14388 &outptr, &outbytesleft);
14389 if ((int)res > 0)
14390 return 1;
14391 }
14392 }
14393 #endif
14394 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14395 provided. */
14396 if (/* Try standardized names. */
14397 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14398 /* Try IRIX, OSF/1 names. */
14399 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14400 /* Try AIX names. */
14401 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14402 /* Try HP-UX names. */
14403 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14404 return 1;
14405 return 0;
14406 }
14407 _ACEOF
14408 if ac_fn_c_try_run "$LINENO"; then :
14409 am_cv_func_iconv_works=yes
14410 else
14411 am_cv_func_iconv_works=no
14412 fi
14413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14414 conftest.$ac_objext conftest.beam conftest.$ac_ext
14415 fi
14416
14417 LIBS="$am_save_LIBS"
14418
14419 fi
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14421 $as_echo "$am_cv_func_iconv_works" >&6; }
14422 case "$am_cv_func_iconv_works" in
14423 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14424 *) am_func_iconv=yes ;;
14425 esac
14426 else
14427 am_func_iconv=no am_cv_lib_iconv=no
14428 fi
14429 if test "$am_func_iconv" = yes; then
14430
14431 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14432
14433 fi
14434 if test "$am_cv_lib_iconv" = yes; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14436 $as_echo_n "checking how to link with libiconv... " >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14438 $as_echo "$LIBICONV" >&6; }
14439 else
14440 CPPFLAGS="$am_save_CPPFLAGS"
14441 LIBICONV=
14442 LTLIBICONV=
14443 fi
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455 use_additional=yes
14456
14457 acl_save_prefix="$prefix"
14458 prefix="$acl_final_prefix"
14459 acl_save_exec_prefix="$exec_prefix"
14460 exec_prefix="$acl_final_exec_prefix"
14461
14462 eval additional_includedir=\"$includedir\"
14463 eval additional_libdir=\"$libdir\"
14464
14465 exec_prefix="$acl_save_exec_prefix"
14466 prefix="$acl_save_prefix"
14467
14468
14469 # Check whether --with-libintl-prefix was given.
14470 if test "${with_libintl_prefix+set}" = set; then :
14471 withval=$with_libintl_prefix;
14472 if test "X$withval" = "Xno"; then
14473 use_additional=no
14474 else
14475 if test "X$withval" = "X"; then
14476
14477 acl_save_prefix="$prefix"
14478 prefix="$acl_final_prefix"
14479 acl_save_exec_prefix="$exec_prefix"
14480 exec_prefix="$acl_final_exec_prefix"
14481
14482 eval additional_includedir=\"$includedir\"
14483 eval additional_libdir=\"$libdir\"
14484
14485 exec_prefix="$acl_save_exec_prefix"
14486 prefix="$acl_save_prefix"
14487
14488 else
14489 additional_includedir="$withval/include"
14490 additional_libdir="$withval/$acl_libdirstem"
14491 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14492 && ! test -d "$withval/$acl_libdirstem"; then
14493 additional_libdir="$withval/$acl_libdirstem2"
14494 fi
14495 fi
14496 fi
14497
14498 fi
14499
14500 LIBINTL=
14501 LTLIBINTL=
14502 INCINTL=
14503 LIBINTL_PREFIX=
14504 HAVE_LIBINTL=
14505 rpathdirs=
14506 ltrpathdirs=
14507 names_already_handled=
14508 names_next_round='intl '
14509 while test -n "$names_next_round"; do
14510 names_this_round="$names_next_round"
14511 names_next_round=
14512 for name in $names_this_round; do
14513 already_handled=
14514 for n in $names_already_handled; do
14515 if test "$n" = "$name"; then
14516 already_handled=yes
14517 break
14518 fi
14519 done
14520 if test -z "$already_handled"; then
14521 names_already_handled="$names_already_handled $name"
14522 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14523 eval value=\"\$HAVE_LIB$uppername\"
14524 if test -n "$value"; then
14525 if test "$value" = yes; then
14526 eval value=\"\$LIB$uppername\"
14527 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14528 eval value=\"\$LTLIB$uppername\"
14529 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14530 else
14531 :
14532 fi
14533 else
14534 found_dir=
14535 found_la=
14536 found_so=
14537 found_a=
14538 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14539 if test -n "$acl_shlibext"; then
14540 shrext=".$acl_shlibext" # typically: shrext=.so
14541 else
14542 shrext=
14543 fi
14544 if test $use_additional = yes; then
14545 dir="$additional_libdir"
14546 if test -n "$acl_shlibext"; then
14547 if test -f "$dir/$libname$shrext"; then
14548 found_dir="$dir"
14549 found_so="$dir/$libname$shrext"
14550 else
14551 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14552 ver=`(cd "$dir" && \
14553 for f in "$libname$shrext".*; do echo "$f"; done \
14554 | sed -e "s,^$libname$shrext\\\\.,," \
14555 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14556 | sed 1q ) 2>/dev/null`
14557 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14558 found_dir="$dir"
14559 found_so="$dir/$libname$shrext.$ver"
14560 fi
14561 else
14562 eval library_names=\"$acl_library_names_spec\"
14563 for f in $library_names; do
14564 if test -f "$dir/$f"; then
14565 found_dir="$dir"
14566 found_so="$dir/$f"
14567 break
14568 fi
14569 done
14570 fi
14571 fi
14572 fi
14573 if test "X$found_dir" = "X"; then
14574 if test -f "$dir/$libname.$acl_libext"; then
14575 found_dir="$dir"
14576 found_a="$dir/$libname.$acl_libext"
14577 fi
14578 fi
14579 if test "X$found_dir" != "X"; then
14580 if test -f "$dir/$libname.la"; then
14581 found_la="$dir/$libname.la"
14582 fi
14583 fi
14584 fi
14585 if test "X$found_dir" = "X"; then
14586 for x in $LDFLAGS $LTLIBINTL; do
14587
14588 acl_save_prefix="$prefix"
14589 prefix="$acl_final_prefix"
14590 acl_save_exec_prefix="$exec_prefix"
14591 exec_prefix="$acl_final_exec_prefix"
14592 eval x=\"$x\"
14593 exec_prefix="$acl_save_exec_prefix"
14594 prefix="$acl_save_prefix"
14595
14596 case "$x" in
14597 -L*)
14598 dir=`echo "X$x" | sed -e 's/^X-L//'`
14599 if test -n "$acl_shlibext"; then
14600 if test -f "$dir/$libname$shrext"; then
14601 found_dir="$dir"
14602 found_so="$dir/$libname$shrext"
14603 else
14604 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14605 ver=`(cd "$dir" && \
14606 for f in "$libname$shrext".*; do echo "$f"; done \
14607 | sed -e "s,^$libname$shrext\\\\.,," \
14608 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14609 | sed 1q ) 2>/dev/null`
14610 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14611 found_dir="$dir"
14612 found_so="$dir/$libname$shrext.$ver"
14613 fi
14614 else
14615 eval library_names=\"$acl_library_names_spec\"
14616 for f in $library_names; do
14617 if test -f "$dir/$f"; then
14618 found_dir="$dir"
14619 found_so="$dir/$f"
14620 break
14621 fi
14622 done
14623 fi
14624 fi
14625 fi
14626 if test "X$found_dir" = "X"; then
14627 if test -f "$dir/$libname.$acl_libext"; then
14628 found_dir="$dir"
14629 found_a="$dir/$libname.$acl_libext"
14630 fi
14631 fi
14632 if test "X$found_dir" != "X"; then
14633 if test -f "$dir/$libname.la"; then
14634 found_la="$dir/$libname.la"
14635 fi
14636 fi
14637 ;;
14638 esac
14639 if test "X$found_dir" != "X"; then
14640 break
14641 fi
14642 done
14643 fi
14644 if test "X$found_dir" != "X"; then
14645 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14646 if test "X$found_so" != "X"; then
14647 if test "$enable_rpath" = no \
14648 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14649 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14650 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14651 else
14652 haveit=
14653 for x in $ltrpathdirs; do
14654 if test "X$x" = "X$found_dir"; then
14655 haveit=yes
14656 break
14657 fi
14658 done
14659 if test -z "$haveit"; then
14660 ltrpathdirs="$ltrpathdirs $found_dir"
14661 fi
14662 if test "$acl_hardcode_direct" = yes; then
14663 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14664 else
14665 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14666 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14667 haveit=
14668 for x in $rpathdirs; do
14669 if test "X$x" = "X$found_dir"; then
14670 haveit=yes
14671 break
14672 fi
14673 done
14674 if test -z "$haveit"; then
14675 rpathdirs="$rpathdirs $found_dir"
14676 fi
14677 else
14678 haveit=
14679 for x in $LDFLAGS $LIBINTL; do
14680
14681 acl_save_prefix="$prefix"
14682 prefix="$acl_final_prefix"
14683 acl_save_exec_prefix="$exec_prefix"
14684 exec_prefix="$acl_final_exec_prefix"
14685 eval x=\"$x\"
14686 exec_prefix="$acl_save_exec_prefix"
14687 prefix="$acl_save_prefix"
14688
14689 if test "X$x" = "X-L$found_dir"; then
14690 haveit=yes
14691 break
14692 fi
14693 done
14694 if test -z "$haveit"; then
14695 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14696 fi
14697 if test "$acl_hardcode_minus_L" != no; then
14698 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14699 else
14700 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14701 fi
14702 fi
14703 fi
14704 fi
14705 else
14706 if test "X$found_a" != "X"; then
14707 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14708 else
14709 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14710 fi
14711 fi
14712 additional_includedir=
14713 case "$found_dir" in
14714 */$acl_libdirstem | */$acl_libdirstem/)
14715 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14716 if test "$name" = 'intl'; then
14717 LIBINTL_PREFIX="$basedir"
14718 fi
14719 additional_includedir="$basedir/include"
14720 ;;
14721 */$acl_libdirstem2 | */$acl_libdirstem2/)
14722 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14723 if test "$name" = 'intl'; then
14724 LIBINTL_PREFIX="$basedir"
14725 fi
14726 additional_includedir="$basedir/include"
14727 ;;
14728 esac
14729 if test "X$additional_includedir" != "X"; then
14730 if test "X$additional_includedir" != "X/usr/include"; then
14731 haveit=
14732 if test "X$additional_includedir" = "X/usr/local/include"; then
14733 if test -n "$GCC"; then
14734 case $host_os in
14735 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14736 esac
14737 fi
14738 fi
14739 if test -z "$haveit"; then
14740 for x in $CPPFLAGS $INCINTL; do
14741
14742 acl_save_prefix="$prefix"
14743 prefix="$acl_final_prefix"
14744 acl_save_exec_prefix="$exec_prefix"
14745 exec_prefix="$acl_final_exec_prefix"
14746 eval x=\"$x\"
14747 exec_prefix="$acl_save_exec_prefix"
14748 prefix="$acl_save_prefix"
14749
14750 if test "X$x" = "X-I$additional_includedir"; then
14751 haveit=yes
14752 break
14753 fi
14754 done
14755 if test -z "$haveit"; then
14756 if test -d "$additional_includedir"; then
14757 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14758 fi
14759 fi
14760 fi
14761 fi
14762 fi
14763 if test -n "$found_la"; then
14764 save_libdir="$libdir"
14765 case "$found_la" in
14766 */* | *\\*) . "$found_la" ;;
14767 *) . "./$found_la" ;;
14768 esac
14769 libdir="$save_libdir"
14770 for dep in $dependency_libs; do
14771 case "$dep" in
14772 -L*)
14773 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14774 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14775 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14776 haveit=
14777 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14778 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14779 if test -n "$GCC"; then
14780 case $host_os in
14781 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14782 esac
14783 fi
14784 fi
14785 if test -z "$haveit"; then
14786 haveit=
14787 for x in $LDFLAGS $LIBINTL; do
14788
14789 acl_save_prefix="$prefix"
14790 prefix="$acl_final_prefix"
14791 acl_save_exec_prefix="$exec_prefix"
14792 exec_prefix="$acl_final_exec_prefix"
14793 eval x=\"$x\"
14794 exec_prefix="$acl_save_exec_prefix"
14795 prefix="$acl_save_prefix"
14796
14797 if test "X$x" = "X-L$additional_libdir"; then
14798 haveit=yes
14799 break
14800 fi
14801 done
14802 if test -z "$haveit"; then
14803 if test -d "$additional_libdir"; then
14804 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14805 fi
14806 fi
14807 haveit=
14808 for x in $LDFLAGS $LTLIBINTL; do
14809
14810 acl_save_prefix="$prefix"
14811 prefix="$acl_final_prefix"
14812 acl_save_exec_prefix="$exec_prefix"
14813 exec_prefix="$acl_final_exec_prefix"
14814 eval x=\"$x\"
14815 exec_prefix="$acl_save_exec_prefix"
14816 prefix="$acl_save_prefix"
14817
14818 if test "X$x" = "X-L$additional_libdir"; then
14819 haveit=yes
14820 break
14821 fi
14822 done
14823 if test -z "$haveit"; then
14824 if test -d "$additional_libdir"; then
14825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14826 fi
14827 fi
14828 fi
14829 fi
14830 ;;
14831 -R*)
14832 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14833 if test "$enable_rpath" != no; then
14834 haveit=
14835 for x in $rpathdirs; do
14836 if test "X$x" = "X$dir"; then
14837 haveit=yes
14838 break
14839 fi
14840 done
14841 if test -z "$haveit"; then
14842 rpathdirs="$rpathdirs $dir"
14843 fi
14844 haveit=
14845 for x in $ltrpathdirs; do
14846 if test "X$x" = "X$dir"; then
14847 haveit=yes
14848 break
14849 fi
14850 done
14851 if test -z "$haveit"; then
14852 ltrpathdirs="$ltrpathdirs $dir"
14853 fi
14854 fi
14855 ;;
14856 -l*)
14857 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14858 ;;
14859 *.la)
14860 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14861 ;;
14862 *)
14863 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14864 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14865 ;;
14866 esac
14867 done
14868 fi
14869 else
14870 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14871 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14872 fi
14873 fi
14874 fi
14875 done
14876 done
14877 if test "X$rpathdirs" != "X"; then
14878 if test -n "$acl_hardcode_libdir_separator"; then
14879 alldirs=
14880 for found_dir in $rpathdirs; do
14881 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14882 done
14883 acl_save_libdir="$libdir"
14884 libdir="$alldirs"
14885 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14886 libdir="$acl_save_libdir"
14887 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14888 else
14889 for found_dir in $rpathdirs; do
14890 acl_save_libdir="$libdir"
14891 libdir="$found_dir"
14892 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14893 libdir="$acl_save_libdir"
14894 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14895 done
14896 fi
14897 fi
14898 if test "X$ltrpathdirs" != "X"; then
14899 for found_dir in $ltrpathdirs; do
14900 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14901 done
14902 fi
14903
14904
14905
14906
14907
14908
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14910 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14911 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 gt_save_CPPFLAGS="$CPPFLAGS"
14915 CPPFLAGS="$CPPFLAGS $INCINTL"
14916 gt_save_LIBS="$LIBS"
14917 LIBS="$LIBS $LIBINTL"
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 #include <libintl.h>
14921 $gt_revision_test_code
14922 extern int _nl_msg_cat_cntr;
14923 extern
14924 #ifdef __cplusplus
14925 "C"
14926 #endif
14927 const char *_nl_expand_alias (const char *);
14928 int
14929 main ()
14930 {
14931 bindtextdomain ("", "");
14932 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14933 ;
14934 return 0;
14935 }
14936 _ACEOF
14937 if ac_fn_c_try_link "$LINENO"; then :
14938 eval "$gt_func_gnugettext_libintl=yes"
14939 else
14940 eval "$gt_func_gnugettext_libintl=no"
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext \
14943 conftest$ac_exeext conftest.$ac_ext
14944 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14945 LIBS="$LIBS $LIBICONV"
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14948 #include <libintl.h>
14949 $gt_revision_test_code
14950 extern int _nl_msg_cat_cntr;
14951 extern
14952 #ifdef __cplusplus
14953 "C"
14954 #endif
14955 const char *_nl_expand_alias (const char *);
14956 int
14957 main ()
14958 {
14959 bindtextdomain ("", "");
14960 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14961 ;
14962 return 0;
14963 }
14964 _ACEOF
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 LIBINTL="$LIBINTL $LIBICONV"
14967 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14968 eval "$gt_func_gnugettext_libintl=yes"
14969
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14973 fi
14974 CPPFLAGS="$gt_save_CPPFLAGS"
14975 LIBS="$gt_save_LIBS"
14976 fi
14977 eval ac_res=\$$gt_func_gnugettext_libintl
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14979 $as_echo "$ac_res" >&6; }
14980 fi
14981
14982 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14983 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14984 && test "$PACKAGE" != gettext-runtime \
14985 && test "$PACKAGE" != gettext-tools; }; then
14986 gt_use_preinstalled_gnugettext=yes
14987 else
14988 LIBINTL=
14989 LTLIBINTL=
14990 INCINTL=
14991 fi
14992
14993
14994
14995 if test -n "$INTL_MACOSX_LIBS"; then
14996 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14997 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14998 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14999 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15000 fi
15001 fi
15002
15003 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15004 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15005
15006 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15007
15008 else
15009 USE_NLS=no
15010 fi
15011 fi
15012
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15014 $as_echo_n "checking whether to use NLS... " >&6; }
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15016 $as_echo "$USE_NLS" >&6; }
15017 if test "$USE_NLS" = "yes"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15019 $as_echo_n "checking where the gettext function comes from... " >&6; }
15020 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15021 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15022 gt_source="external libintl"
15023 else
15024 gt_source="libc"
15025 fi
15026 else
15027 gt_source="included intl directory"
15028 fi
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15030 $as_echo "$gt_source" >&6; }
15031 fi
15032
15033 if test "$USE_NLS" = "yes"; then
15034
15035 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15036 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15038 $as_echo_n "checking how to link with libintl... " >&6; }
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15040 $as_echo "$LIBINTL" >&6; }
15041
15042 for element in $INCINTL; do
15043 haveit=
15044 for x in $CPPFLAGS; do
15045
15046 acl_save_prefix="$prefix"
15047 prefix="$acl_final_prefix"
15048 acl_save_exec_prefix="$exec_prefix"
15049 exec_prefix="$acl_final_exec_prefix"
15050 eval x=\"$x\"
15051 exec_prefix="$acl_save_exec_prefix"
15052 prefix="$acl_save_prefix"
15053
15054 if test "X$x" = "X$element"; then
15055 haveit=yes
15056 break
15057 fi
15058 done
15059 if test -z "$haveit"; then
15060 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15061 fi
15062 done
15063
15064 fi
15065
15066
15067 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15068
15069
15070 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15071
15072 fi
15073
15074 POSUB=po
15075 fi
15076
15077
15078
15079 INTLLIBS="$LIBINTL"
15080
15081
15082
15083
15084
15085
15086
15087
15088 if test "$DATADIRNAME" = ""; then
15089 DATADIRNAME="share"
15090
15091 fi
15092
15093 localepath=`eval eval echo ${localedir}`
15094
15095 cat >>confdefs.h <<_ACEOF
15096 #define PACKAGE_LOCALE_DIR "${localepath}"
15097 _ACEOF
15098
15099
15100
15101 build_hcal=yes
15102
15103 # Check whether --enable-hcal was given.
15104 if test "${enable_hcal+set}" = set; then :
15105 enableval=$enable_hcal; build_hcal=no
15106 else
15107 build_hcal=yes
15108 fi
15109
15110
15111 if test "$build_hcal" = "yes"; then
15112 WITH_HCAL_TRUE=
15113 WITH_HCAL_FALSE='#'
15114 else
15115 WITH_HCAL_TRUE='#'
15116 WITH_HCAL_FALSE=
15117 fi
15118
15119
15120
15121
15122
15123
15124
15125 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 examples/bindings/pascal/Makefile bindings/Makefile bindings/python/Makefile bindings/perl/Makefile bindings/pascal/Makefile bindings/ruby/Makefile bindings/php/Makefile"
15126
15127 cat >confcache <<\_ACEOF
15128 # This file is a shell script that caches the results of configure
15129 # tests run on this system so they can be shared between configure
15130 # scripts and configure runs, see configure's option --config-cache.
15131 # It is not useful on other systems. If it contains results you don't
15132 # want to keep, you may remove or edit it.
15133 #
15134 # config.status only pays attention to the cache file if you give it
15135 # the --recheck option to rerun configure.
15136 #
15137 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15138 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15139 # following values.
15140
15141 _ACEOF
15142
15143 # The following way of writing the cache mishandles newlines in values,
15144 # but we know of no workaround that is simple, portable, and efficient.
15145 # So, we kill variables containing newlines.
15146 # Ultrix sh set writes to stderr and can't be redirected directly,
15147 # and sets the high bit in the cache file unless we assign to the vars.
15148 (
15149 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15150 eval ac_val=\$$ac_var
15151 case $ac_val in #(
15152 *${as_nl}*)
15153 case $ac_var in #(
15154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15155 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15156 esac
15157 case $ac_var in #(
15158 _ | IFS | as_nl) ;; #(
15159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15160 *) { eval $ac_var=; unset $ac_var;} ;;
15161 esac ;;
15162 esac
15163 done
15164
15165 (set) 2>&1 |
15166 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15167 *${as_nl}ac_space=\ *)
15168 # `set' does not quote correctly, so add quotes: double-quote
15169 # substitution turns \\\\ into \\, and sed turns \\ into \.
15170 sed -n \
15171 "s/'/'\\\\''/g;
15172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15173 ;; #(
15174 *)
15175 # `set' quotes correctly as required by POSIX, so do not add quotes.
15176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15177 ;;
15178 esac |
15179 sort
15180 ) |
15181 sed '
15182 /^ac_cv_env_/b end
15183 t clear
15184 :clear
15185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15186 t end
15187 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15188 :end' >>confcache
15189 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15190 if test -w "$cache_file"; then
15191 if test "x$cache_file" != "x/dev/null"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15193 $as_echo "$as_me: updating cache $cache_file" >&6;}
15194 if test ! -f "$cache_file" || test -h "$cache_file"; then
15195 cat confcache >"$cache_file"
15196 else
15197 case $cache_file in #(
15198 */* | ?:*)
15199 mv -f confcache "$cache_file"$$ &&
15200 mv -f "$cache_file"$$ "$cache_file" ;; #(
15201 *)
15202 mv -f confcache "$cache_file" ;;
15203 esac
15204 fi
15205 fi
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15209 fi
15210 fi
15211 rm -f confcache
15212
15213 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15214 # Let make expand exec_prefix.
15215 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15216
15217 # Transform confdefs.h into DEFS.
15218 # Protect against shell expansion while executing Makefile rules.
15219 # Protect against Makefile macro expansion.
15220 #
15221 # If the first sed substitution is executed (which looks for macros that
15222 # take arguments), then branch to the quote section. Otherwise,
15223 # look for a macro that doesn't take arguments.
15224 ac_script='
15225 :mline
15226 /\\$/{
15227 N
15228 s,\\\n,,
15229 b mline
15230 }
15231 t clear
15232 :clear
15233 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15234 t quote
15235 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15236 t quote
15237 b any
15238 :quote
15239 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15240 s/\[/\\&/g
15241 s/\]/\\&/g
15242 s/\$/$$/g
15243 H
15244 :any
15245 ${
15246 g
15247 s/^\n//
15248 s/\n/ /g
15249 p
15250 }
15251 '
15252 DEFS=`sed -n "$ac_script" confdefs.h`
15253
15254
15255 ac_libobjs=
15256 ac_ltlibobjs=
15257 U=
15258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15259 # 1. Remove the extension, and $U if already installed.
15260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15261 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15263 # will be set to the directory where LIBOBJS objects are built.
15264 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15265 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15266 done
15267 LIBOBJS=$ac_libobjs
15268
15269 LTLIBOBJS=$ac_ltlibobjs
15270
15271
15272 if test -n "$EXEEXT"; then
15273 am__EXEEXT_TRUE=
15274 am__EXEEXT_FALSE='#'
15275 else
15276 am__EXEEXT_TRUE='#'
15277 am__EXEEXT_FALSE=
15278 fi
15279
15280 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15281 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15283 fi
15284 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15285 as_fn_error $? "conditional \"AMDEP\" was never defined.
15286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15287 fi
15288 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15289 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15291 fi
15292 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15293 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15295 fi
15296 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15297 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15299 fi
15300 if test -z "${WITH_GPC_FPC_TRUE}" && test -z "${WITH_GPC_FPC_FALSE}"; then
15301 as_fn_error $? "conditional \"WITH_GPC_FPC\" was never defined.
15302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15303 fi
15304 if test -z "${WITH_GPC_TRUE}" && test -z "${WITH_GPC_FALSE}"; then
15305 as_fn_error $? "conditional \"WITH_GPC\" was never defined.
15306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15307 fi
15308 if test -z "${WITH_FPC_TRUE}" && test -z "${WITH_FPC_FALSE}"; then
15309 as_fn_error $? "conditional \"WITH_FPC\" was never defined.
15310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15311 fi
15312 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
15313 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
15314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15315 fi
15316 if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
15317 as_fn_error $? "conditional \"WITH_RUBY\" was never defined.
15318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319 fi
15320 if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
15321 as_fn_error $? "conditional \"WITH_PHP\" was never defined.
15322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323 fi
15324 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
15325 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
15326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327 fi
15328 if test -z "${WITH_HCAL_TRUE}" && test -z "${WITH_HCAL_FALSE}"; then
15329 as_fn_error $? "conditional \"WITH_HCAL\" was never defined.
15330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331 fi
15332
15333 : "${CONFIG_STATUS=./config.status}"
15334 ac_write_fail=0
15335 ac_clean_files_save=$ac_clean_files
15336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15338 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15339 as_write_fail=0
15340 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15341 #! $SHELL
15342 # Generated by $as_me.
15343 # Run this file to recreate the current configuration.
15344 # Compiler output produced by configure, useful for debugging
15345 # configure, is in config.log if it exists.
15346
15347 debug=false
15348 ac_cs_recheck=false
15349 ac_cs_silent=false
15350
15351 SHELL=\${CONFIG_SHELL-$SHELL}
15352 export SHELL
15353 _ASEOF
15354 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15355 ## -------------------- ##
15356 ## M4sh Initialization. ##
15357 ## -------------------- ##
15358
15359 # Be more Bourne compatible
15360 DUALCASE=1; export DUALCASE # for MKS sh
15361 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15362 emulate sh
15363 NULLCMD=:
15364 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15365 # is contrary to our usage. Disable this feature.
15366 alias -g '${1+"$@"}'='"$@"'
15367 setopt NO_GLOB_SUBST
15368 else
15369 case `(set -o) 2>/dev/null` in #(
15370 *posix*) :
15371 set -o posix ;; #(
15372 *) :
15373 ;;
15374 esac
15375 fi
15376
15377
15378 as_nl='
15379 '
15380 export as_nl
15381 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15382 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15383 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15385 # Prefer a ksh shell builtin over an external printf program on Solaris,
15386 # but without wasting forks for bash or zsh.
15387 if test -z "$BASH_VERSION$ZSH_VERSION" \
15388 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15389 as_echo='print -r --'
15390 as_echo_n='print -rn --'
15391 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15392 as_echo='printf %s\n'
15393 as_echo_n='printf %s'
15394 else
15395 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15396 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15397 as_echo_n='/usr/ucb/echo -n'
15398 else
15399 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15400 as_echo_n_body='eval
15401 arg=$1;
15402 case $arg in #(
15403 *"$as_nl"*)
15404 expr "X$arg" : "X\\(.*\\)$as_nl";
15405 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15406 esac;
15407 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15408 '
15409 export as_echo_n_body
15410 as_echo_n='sh -c $as_echo_n_body as_echo'
15411 fi
15412 export as_echo_body
15413 as_echo='sh -c $as_echo_body as_echo'
15414 fi
15415
15416 # The user is always right.
15417 if test "${PATH_SEPARATOR+set}" != set; then
15418 PATH_SEPARATOR=:
15419 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15420 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15421 PATH_SEPARATOR=';'
15422 }
15423 fi
15424
15425
15426 # IFS
15427 # We need space, tab and new line, in precisely that order. Quoting is
15428 # there to prevent editors from complaining about space-tab.
15429 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15430 # splitting by setting IFS to empty value.)
15431 IFS=" "" $as_nl"
15432
15433 # Find who we are. Look in the path if we contain no directory separator.
15434 as_myself=
15435 case $0 in #((
15436 *[\\/]* ) as_myself=$0 ;;
15437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15438 for as_dir in $PATH
15439 do
15440 IFS=$as_save_IFS
15441 test -z "$as_dir" && as_dir=.
15442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15443 done
15444 IFS=$as_save_IFS
15445
15446 ;;
15447 esac
15448 # We did not find ourselves, most probably we were run as `sh COMMAND'
15449 # in which case we are not to be found in the path.
15450 if test "x$as_myself" = x; then
15451 as_myself=$0
15452 fi
15453 if test ! -f "$as_myself"; then
15454 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15455 exit 1
15456 fi
15457
15458 # Unset variables that we do not need and which cause bugs (e.g. in
15459 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15460 # suppresses any "Segmentation fault" message there. '((' could
15461 # trigger a bug in pdksh 5.2.14.
15462 for as_var in BASH_ENV ENV MAIL MAILPATH
15463 do eval test x\${$as_var+set} = xset \
15464 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15465 done
15466 PS1='$ '
15467 PS2='> '
15468 PS4='+ '
15469
15470 # NLS nuisances.
15471 LC_ALL=C
15472 export LC_ALL
15473 LANGUAGE=C
15474 export LANGUAGE
15475
15476 # CDPATH.
15477 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15478
15479
15480 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15481 # ----------------------------------------
15482 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15483 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15484 # script with STATUS, using 1 if that was 0.
15485 as_fn_error ()
15486 {
15487 as_status=$1; test $as_status -eq 0 && as_status=1
15488 if test "$4"; then
15489 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15490 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15491 fi
15492 $as_echo "$as_me: error: $2" >&2
15493 as_fn_exit $as_status
15494 } # as_fn_error
15495
15496
15497 # as_fn_set_status STATUS
15498 # -----------------------
15499 # Set $? to STATUS, without forking.
15500 as_fn_set_status ()
15501 {
15502 return $1
15503 } # as_fn_set_status
15504
15505 # as_fn_exit STATUS
15506 # -----------------
15507 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15508 as_fn_exit ()
15509 {
15510 set +e
15511 as_fn_set_status $1
15512 exit $1
15513 } # as_fn_exit
15514
15515 # as_fn_unset VAR
15516 # ---------------
15517 # Portably unset VAR.
15518 as_fn_unset ()
15519 {
15520 { eval $1=; unset $1;}
15521 }
15522 as_unset=as_fn_unset
15523 # as_fn_append VAR VALUE
15524 # ----------------------
15525 # Append the text in VALUE to the end of the definition contained in VAR. Take
15526 # advantage of any shell optimizations that allow amortized linear growth over
15527 # repeated appends, instead of the typical quadratic growth present in naive
15528 # implementations.
15529 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15530 eval 'as_fn_append ()
15531 {
15532 eval $1+=\$2
15533 }'
15534 else
15535 as_fn_append ()
15536 {
15537 eval $1=\$$1\$2
15538 }
15539 fi # as_fn_append
15540
15541 # as_fn_arith ARG...
15542 # ------------------
15543 # Perform arithmetic evaluation on the ARGs, and store the result in the
15544 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15545 # must be portable across $(()) and expr.
15546 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15547 eval 'as_fn_arith ()
15548 {
15549 as_val=$(( $* ))
15550 }'
15551 else
15552 as_fn_arith ()
15553 {
15554 as_val=`expr "$@" || test $? -eq 1`
15555 }
15556 fi # as_fn_arith
15557
15558
15559 if expr a : '\(a\)' >/dev/null 2>&1 &&
15560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15561 as_expr=expr
15562 else
15563 as_expr=false
15564 fi
15565
15566 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15567 as_basename=basename
15568 else
15569 as_basename=false
15570 fi
15571
15572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15573 as_dirname=dirname
15574 else
15575 as_dirname=false
15576 fi
15577
15578 as_me=`$as_basename -- "$0" ||
15579 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15580 X"$0" : 'X\(//\)$' \| \
15581 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15582 $as_echo X/"$0" |
15583 sed '/^.*\/\([^/][^/]*\)\/*$/{
15584 s//\1/
15585 q
15586 }
15587 /^X\/\(\/\/\)$/{
15588 s//\1/
15589 q
15590 }
15591 /^X\/\(\/\).*/{
15592 s//\1/
15593 q
15594 }
15595 s/.*/./; q'`
15596
15597 # Avoid depending upon Character Ranges.
15598 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15599 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15600 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15601 as_cr_digits='0123456789'
15602 as_cr_alnum=$as_cr_Letters$as_cr_digits
15603
15604 ECHO_C= ECHO_N= ECHO_T=
15605 case `echo -n x` in #(((((
15606 -n*)
15607 case `echo 'xy\c'` in
15608 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15609 xy) ECHO_C='\c';;
15610 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15611 ECHO_T=' ';;
15612 esac;;
15613 *)
15614 ECHO_N='-n';;
15615 esac
15616
15617 rm -f conf$$ conf$$.exe conf$$.file
15618 if test -d conf$$.dir; then
15619 rm -f conf$$.dir/conf$$.file
15620 else
15621 rm -f conf$$.dir
15622 mkdir conf$$.dir 2>/dev/null
15623 fi
15624 if (echo >conf$$.file) 2>/dev/null; then
15625 if ln -s conf$$.file conf$$ 2>/dev/null; then
15626 as_ln_s='ln -s'
15627 # ... but there are two gotchas:
15628 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15629 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15630 # In both cases, we have to default to `cp -p'.
15631 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15632 as_ln_s='cp -p'
15633 elif ln conf$$.file conf$$ 2>/dev/null; then
15634 as_ln_s=ln
15635 else
15636 as_ln_s='cp -p'
15637 fi
15638 else
15639 as_ln_s='cp -p'
15640 fi
15641 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15642 rmdir conf$$.dir 2>/dev/null
15643
15644
15645 # as_fn_mkdir_p
15646 # -------------
15647 # Create "$as_dir" as a directory, including parents if necessary.
15648 as_fn_mkdir_p ()
15649 {
15650
15651 case $as_dir in #(
15652 -*) as_dir=./$as_dir;;
15653 esac
15654 test -d "$as_dir" || eval $as_mkdir_p || {
15655 as_dirs=
15656 while :; do
15657 case $as_dir in #(
15658 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15659 *) as_qdir=$as_dir;;
15660 esac
15661 as_dirs="'$as_qdir' $as_dirs"
15662 as_dir=`$as_dirname -- "$as_dir" ||
15663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15664 X"$as_dir" : 'X\(//\)[^/]' \| \
15665 X"$as_dir" : 'X\(//\)$' \| \
15666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15667 $as_echo X"$as_dir" |
15668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15669 s//\1/
15670 q
15671 }
15672 /^X\(\/\/\)[^/].*/{
15673 s//\1/
15674 q
15675 }
15676 /^X\(\/\/\)$/{
15677 s//\1/
15678 q
15679 }
15680 /^X\(\/\).*/{
15681 s//\1/
15682 q
15683 }
15684 s/.*/./; q'`
15685 test -d "$as_dir" && break
15686 done
15687 test -z "$as_dirs" || eval "mkdir $as_dirs"
15688 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15689
15690
15691 } # as_fn_mkdir_p
15692 if mkdir -p . 2>/dev/null; then
15693 as_mkdir_p='mkdir -p "$as_dir"'
15694 else
15695 test -d ./-p && rmdir ./-p
15696 as_mkdir_p=false
15697 fi
15698
15699 if test -x / >/dev/null 2>&1; then
15700 as_test_x='test -x'
15701 else
15702 if ls -dL / >/dev/null 2>&1; then
15703 as_ls_L_option=L
15704 else
15705 as_ls_L_option=
15706 fi
15707 as_test_x='
15708 eval sh -c '\''
15709 if test -d "$1"; then
15710 test -d "$1/.";
15711 else
15712 case $1 in #(
15713 -*)set "./$1";;
15714 esac;
15715 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15716 ???[sx]*):;;*)false;;esac;fi
15717 '\'' sh
15718 '
15719 fi
15720 as_executable_p=$as_test_x
15721
15722 # Sed expression to map a string onto a valid CPP name.
15723 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15724
15725 # Sed expression to map a string onto a valid variable name.
15726 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15727
15728
15729 exec 6>&1
15730 ## ----------------------------------- ##
15731 ## Main body of $CONFIG_STATUS script. ##
15732 ## ----------------------------------- ##
15733 _ASEOF
15734 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15735
15736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737 # Save the log message, to keep $0 and so on meaningful, and to
15738 # report actual input values of CONFIG_FILES etc. instead of their
15739 # values after options handling.
15740 ac_log="
15741 This file was extended by $as_me, which was
15742 generated by GNU Autoconf 2.68. Invocation command line was
15743
15744 CONFIG_FILES = $CONFIG_FILES
15745 CONFIG_HEADERS = $CONFIG_HEADERS
15746 CONFIG_LINKS = $CONFIG_LINKS
15747 CONFIG_COMMANDS = $CONFIG_COMMANDS
15748 $ $0 $@
15749
15750 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15751 "
15752
15753 _ACEOF
15754
15755 case $ac_config_files in *"
15756 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15757 esac
15758
15759
15760
15761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15762 # Files that config.status was made for.
15763 config_files="$ac_config_files"
15764 config_commands="$ac_config_commands"
15765
15766 _ACEOF
15767
15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769 ac_cs_usage="\
15770 \`$as_me' instantiates files and other configuration actions
15771 from templates according to the current configuration. Unless the files
15772 and actions are specified as TAGs, all are instantiated by default.
15773
15774 Usage: $0 [OPTION]... [TAG]...
15775
15776 -h, --help print this help, then exit
15777 -V, --version print version number and configuration settings, then exit
15778 --config print configuration, then exit
15779 -q, --quiet, --silent
15780 do not print progress messages
15781 -d, --debug don't remove temporary files
15782 --recheck update $as_me by reconfiguring in the same conditions
15783 --file=FILE[:TEMPLATE]
15784 instantiate the configuration file FILE
15785
15786 Configuration files:
15787 $config_files
15788
15789 Configuration commands:
15790 $config_commands
15791
15792 Report bugs to the package provider."
15793
15794 _ACEOF
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15797 ac_cs_version="\\
15798 config.status
15799 configured by $0, generated by GNU Autoconf 2.68,
15800 with options \\"\$ac_cs_config\\"
15801
15802 Copyright (C) 2010 Free Software Foundation, Inc.
15803 This config.status script is free software; the Free Software Foundation
15804 gives unlimited permission to copy, distribute and modify it."
15805
15806 ac_pwd='$ac_pwd'
15807 srcdir='$srcdir'
15808 INSTALL='$INSTALL'
15809 MKDIR_P='$MKDIR_P'
15810 AWK='$AWK'
15811 test -n "\$AWK" || AWK=awk
15812 _ACEOF
15813
15814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815 # The default lists apply if the user does not specify any file.
15816 ac_need_defaults=:
15817 while test $# != 0
15818 do
15819 case $1 in
15820 --*=?*)
15821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15823 ac_shift=:
15824 ;;
15825 --*=)
15826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15827 ac_optarg=
15828 ac_shift=:
15829 ;;
15830 *)
15831 ac_option=$1
15832 ac_optarg=$2
15833 ac_shift=shift
15834 ;;
15835 esac
15836
15837 case $ac_option in
15838 # Handling of the options.
15839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15840 ac_cs_recheck=: ;;
15841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15842 $as_echo "$ac_cs_version"; exit ;;
15843 --config | --confi | --conf | --con | --co | --c )
15844 $as_echo "$ac_cs_config"; exit ;;
15845 --debug | --debu | --deb | --de | --d | -d )
15846 debug=: ;;
15847 --file | --fil | --fi | --f )
15848 $ac_shift
15849 case $ac_optarg in
15850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15851 '') as_fn_error $? "missing file argument" ;;
15852 esac
15853 as_fn_append CONFIG_FILES " '$ac_optarg'"
15854 ac_need_defaults=false;;
15855 --he | --h | --help | --hel | -h )
15856 $as_echo "$ac_cs_usage"; exit ;;
15857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15858 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15859 ac_cs_silent=: ;;
15860
15861 # This is an error.
15862 -*) as_fn_error $? "unrecognized option: \`$1'
15863 Try \`$0 --help' for more information." ;;
15864
15865 *) as_fn_append ac_config_targets " $1"
15866 ac_need_defaults=false ;;
15867
15868 esac
15869 shift
15870 done
15871
15872 ac_configure_extra_args=
15873
15874 if $ac_cs_silent; then
15875 exec 6>/dev/null
15876 ac_configure_extra_args="$ac_configure_extra_args --silent"
15877 fi
15878
15879 _ACEOF
15880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15881 if \$ac_cs_recheck; then
15882 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15883 shift
15884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15885 CONFIG_SHELL='$SHELL'
15886 export CONFIG_SHELL
15887 exec "\$@"
15888 fi
15889
15890 _ACEOF
15891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15892 exec 5>>config.log
15893 {
15894 echo
15895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15896 ## Running $as_me. ##
15897 _ASBOX
15898 $as_echo "$ac_log"
15899 } >&5
15900
15901 _ACEOF
15902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903 #
15904 # INIT-COMMANDS
15905 #
15906 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15907
15908
15909 # The HP-UX ksh and POSIX shell print the target directory to stdout
15910 # if CDPATH is set.
15911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15912
15913 sed_quote_subst='$sed_quote_subst'
15914 double_quote_subst='$double_quote_subst'
15915 delay_variable_subst='$delay_variable_subst'
15916 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15917 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15918 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15919 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15920 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15921 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15922 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15923 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15924 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15925 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15926 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15927 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15928 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15929 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15930 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15931 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15932 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15933 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15934 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15935 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15936 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15937 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15938 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15939 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15940 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15941 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15942 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15943 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15944 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15945 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15946 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15947 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15948 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15949 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15950 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15951 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15952 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15953 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15954 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15955 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15956 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15957 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15958 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15959 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15960 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15961 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15962 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15963 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15964 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15965 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15966 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15967 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15968 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15969 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15971 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15972 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15973 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15974 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15975 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15976 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15979 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15980 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15981 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15982 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15983 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15984 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15985 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15986 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15987 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15988 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15989 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15990 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15991 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15992 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15993 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15994 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15995 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15996 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15997 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15998 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15999 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16000 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16001 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16002 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16003 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16004 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16005 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16006 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16007 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16008 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16009 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16010 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16011 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16012 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16013 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16014 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16020 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16021 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16022 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16023 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16024 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16025 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16026 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16027 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16028 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16029 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16030 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16031 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16032 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16033 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16034 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16035 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16036 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16037 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16038 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16039 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16040 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16041 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16042 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16043 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16044 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16045 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16046
16047 LTCC='$LTCC'
16048 LTCFLAGS='$LTCFLAGS'
16049 compiler='$compiler_DEFAULT'
16050
16051 # A function that is used when there is no print builtin or printf.
16052 func_fallback_echo ()
16053 {
16054 eval 'cat <<_LTECHO_EOF
16055 \$1
16056 _LTECHO_EOF'
16057 }
16058
16059 # Quote evaled strings.
16060 for var in SHELL \
16061 ECHO \
16062 PATH_SEPARATOR \
16063 SED \
16064 GREP \
16065 EGREP \
16066 FGREP \
16067 LD \
16068 NM \
16069 LN_S \
16070 lt_SP2NL \
16071 lt_NL2SP \
16072 reload_flag \
16073 OBJDUMP \
16074 deplibs_check_method \
16075 file_magic_cmd \
16076 file_magic_glob \
16077 want_nocaseglob \
16078 DLLTOOL \
16079 sharedlib_from_linklib_cmd \
16080 AR \
16081 AR_FLAGS \
16082 archiver_list_spec \
16083 STRIP \
16084 RANLIB \
16085 CC \
16086 CFLAGS \
16087 compiler \
16088 lt_cv_sys_global_symbol_pipe \
16089 lt_cv_sys_global_symbol_to_cdecl \
16090 lt_cv_sys_global_symbol_to_c_name_address \
16091 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16092 nm_file_list_spec \
16093 lt_prog_compiler_no_builtin_flag \
16094 lt_prog_compiler_pic \
16095 lt_prog_compiler_wl \
16096 lt_prog_compiler_static \
16097 lt_cv_prog_compiler_c_o \
16098 need_locks \
16099 MANIFEST_TOOL \
16100 DSYMUTIL \
16101 NMEDIT \
16102 LIPO \
16103 OTOOL \
16104 OTOOL64 \
16105 shrext_cmds \
16106 export_dynamic_flag_spec \
16107 whole_archive_flag_spec \
16108 compiler_needs_object \
16109 with_gnu_ld \
16110 allow_undefined_flag \
16111 no_undefined_flag \
16112 hardcode_libdir_flag_spec \
16113 hardcode_libdir_separator \
16114 exclude_expsyms \
16115 include_expsyms \
16116 file_list_spec \
16117 variables_saved_for_relink \
16118 libname_spec \
16119 library_names_spec \
16120 soname_spec \
16121 install_override_mode \
16122 finish_eval \
16123 old_striplib \
16124 striplib; do
16125 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16126 *[\\\\\\\`\\"\\\$]*)
16127 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16128 ;;
16129 *)
16130 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16131 ;;
16132 esac
16133 done
16134
16135 # Double-quote double-evaled strings.
16136 for var in reload_cmds \
16137 old_postinstall_cmds \
16138 old_postuninstall_cmds \
16139 old_archive_cmds \
16140 extract_expsyms_cmds \
16141 old_archive_from_new_cmds \
16142 old_archive_from_expsyms_cmds \
16143 archive_cmds \
16144 archive_expsym_cmds \
16145 module_cmds \
16146 module_expsym_cmds \
16147 export_symbols_cmds \
16148 prelink_cmds \
16149 postlink_cmds \
16150 postinstall_cmds \
16151 postuninstall_cmds \
16152 finish_cmds \
16153 sys_lib_search_path_spec \
16154 sys_lib_dlsearch_path_spec; do
16155 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16156 *[\\\\\\\`\\"\\\$]*)
16157 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16158 ;;
16159 *)
16160 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16161 ;;
16162 esac
16163 done
16164
16165 ac_aux_dir='$ac_aux_dir'
16166 xsi_shell='$xsi_shell'
16167 lt_shell_append='$lt_shell_append'
16168
16169 # See if we are running on zsh, and set the options which allow our
16170 # commands through without removal of \ escapes INIT.
16171 if test -n "\${ZSH_VERSION+set}" ; then
16172 setopt NO_GLOB_SUBST
16173 fi
16174
16175
16176 PACKAGE='$PACKAGE'
16177 VERSION='$VERSION'
16178 TIMESTAMP='$TIMESTAMP'
16179 RM='$RM'
16180 ofile='$ofile'
16181
16182
16183
16184 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16185 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16186 # from automake < 1.5.
16187 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16188 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16189 LINGUAS="${LINGUAS-%UNSET%}"
16190
16191
16192 _ACEOF
16193
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16195
16196 # Handling of arguments.
16197 for ac_config_target in $ac_config_targets
16198 do
16199 case $ac_config_target in
16200 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16201 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16202 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16204 "libhdate.pc") CONFIG_FILES="$CONFIG_FILES libhdate.pc" ;;
16205 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16206 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16207 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16208 "docs/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man1/Makefile" ;;
16209 "docs/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man3/Makefile" ;;
16210 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16211 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16212 "examples/hcal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/hcal/Makefile" ;;
16213 "examples/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/Makefile" ;;
16214 "examples/bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/pascal/Makefile" ;;
16215 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
16216 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
16217 "bindings/perl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/perl/Makefile" ;;
16218 "bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/pascal/Makefile" ;;
16219 "bindings/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/ruby/Makefile" ;;
16220 "bindings/php/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/php/Makefile" ;;
16221
16222 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16223 esac
16224 done
16225
16226
16227 # If the user did not use the arguments to specify the items to instantiate,
16228 # then the envvar interface is used. Set only those that are not.
16229 # We use the long form for the default assignment because of an extremely
16230 # bizarre bug on SunOS 4.1.3.
16231 if $ac_need_defaults; then
16232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16234 fi
16235
16236 # Have a temporary directory for convenience. Make it in the build tree
16237 # simply because there is no reason against having it here, and in addition,
16238 # creating and moving files from /tmp can sometimes cause problems.
16239 # Hook for its removal unless debugging.
16240 # Note that there is a small window in which the directory will not be cleaned:
16241 # after its creation but before its name has been assigned to `$tmp'.
16242 $debug ||
16243 {
16244 tmp= ac_tmp=
16245 trap 'exit_status=$?
16246 : "${ac_tmp:=$tmp}"
16247 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16248 ' 0
16249 trap 'as_fn_exit 1' 1 2 13 15
16250 }
16251 # Create a (secure) tmp directory for tmp files.
16252
16253 {
16254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16255 test -d "$tmp"
16256 } ||
16257 {
16258 tmp=./conf$$-$RANDOM
16259 (umask 077 && mkdir "$tmp")
16260 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16261 ac_tmp=$tmp
16262
16263 # Set up the scripts for CONFIG_FILES section.
16264 # No need to generate them if there are no CONFIG_FILES.
16265 # This happens for instance with `./config.status config.h'.
16266 if test -n "$CONFIG_FILES"; then
16267
16268
16269 ac_cr=`echo X | tr X '\015'`
16270 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16271 # But we know of no other shell where ac_cr would be empty at this
16272 # point, so we can use a bashism as a fallback.
16273 if test "x$ac_cr" = x; then
16274 eval ac_cr=\$\'\\r\'
16275 fi
16276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16278 ac_cs_awk_cr='\\r'
16279 else
16280 ac_cs_awk_cr=$ac_cr
16281 fi
16282
16283 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16284 _ACEOF
16285
16286
16287 {
16288 echo "cat >conf$$subs.awk <<_ACEOF" &&
16289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16290 echo "_ACEOF"
16291 } >conf$$subs.sh ||
16292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16294 ac_delim='%!_!# '
16295 for ac_last_try in false false false false false :; do
16296 . ./conf$$subs.sh ||
16297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16298
16299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16300 if test $ac_delim_n = $ac_delim_num; then
16301 break
16302 elif $ac_last_try; then
16303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16304 else
16305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16306 fi
16307 done
16308 rm -f conf$$subs.sh
16309
16310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16311 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16312 _ACEOF
16313 sed -n '
16314 h
16315 s/^/S["/; s/!.*/"]=/
16316 p
16317 g
16318 s/^[^!]*!//
16319 :repl
16320 t repl
16321 s/'"$ac_delim"'$//
16322 t delim
16323 :nl
16324 h
16325 s/\(.\{148\}\)..*/\1/
16326 t more1
16327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16328 p
16329 n
16330 b repl
16331 :more1
16332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16333 p
16334 g
16335 s/.\{148\}//
16336 t nl
16337 :delim
16338 h
16339 s/\(.\{148\}\)..*/\1/
16340 t more2
16341 s/["\\]/\\&/g; s/^/"/; s/$/"/
16342 p
16343 b
16344 :more2
16345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16346 p
16347 g
16348 s/.\{148\}//
16349 t delim
16350 ' <conf$$subs.awk | sed '
16351 /^[^""]/{
16352 N
16353 s/\n//
16354 }
16355 ' >>$CONFIG_STATUS || ac_write_fail=1
16356 rm -f conf$$subs.awk
16357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16358 _ACAWK
16359 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16360 for (key in S) S_is_set[key] = 1
16361 FS = ""
16362
16363 }
16364 {
16365 line = $ 0
16366 nfields = split(line, field, "@")
16367 substed = 0
16368 len = length(field[1])
16369 for (i = 2; i < nfields; i++) {
16370 key = field[i]
16371 keylen = length(key)
16372 if (S_is_set[key]) {
16373 value = S[key]
16374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16375 len += length(value) + length(field[++i])
16376 substed = 1
16377 } else
16378 len += 1 + keylen
16379 }
16380
16381 print line
16382 }
16383
16384 _ACAWK
16385 _ACEOF
16386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16389 else
16390 cat
16391 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16392 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16393 _ACEOF
16394
16395 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16396 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16397 # trailing colons and then remove the whole line if VPATH becomes empty
16398 # (actually we leave an empty line to preserve line numbers).
16399 if test "x$srcdir" = x.; then
16400 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16401 h
16402 s///
16403 s/^/:/
16404 s/[ ]*$/:/
16405 s/:\$(srcdir):/:/g
16406 s/:\${srcdir}:/:/g
16407 s/:@srcdir@:/:/g
16408 s/^:*//
16409 s/:*$//
16410 x
16411 s/\(=[ ]*\).*/\1/
16412 G
16413 s/\n//
16414 s/^[^=]*=[ ]*$//
16415 }'
16416 fi
16417
16418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16419 fi # test -n "$CONFIG_FILES"
16420
16421
16422 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16423 shift
16424 for ac_tag
16425 do
16426 case $ac_tag in
16427 :[FHLC]) ac_mode=$ac_tag; continue;;
16428 esac
16429 case $ac_mode$ac_tag in
16430 :[FHL]*:*);;
16431 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16432 :[FH]-) ac_tag=-:-;;
16433 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16434 esac
16435 ac_save_IFS=$IFS
16436 IFS=:
16437 set x $ac_tag
16438 IFS=$ac_save_IFS
16439 shift
16440 ac_file=$1
16441 shift
16442
16443 case $ac_mode in
16444 :L) ac_source=$1;;
16445 :[FH])
16446 ac_file_inputs=
16447 for ac_f
16448 do
16449 case $ac_f in
16450 -) ac_f="$ac_tmp/stdin";;
16451 *) # Look for the file first in the build tree, then in the source tree
16452 # (if the path is not absolute). The absolute path cannot be DOS-style,
16453 # because $ac_f cannot contain `:'.
16454 test -f "$ac_f" ||
16455 case $ac_f in
16456 [\\/$]*) false;;
16457 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16458 esac ||
16459 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16460 esac
16461 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16462 as_fn_append ac_file_inputs " '$ac_f'"
16463 done
16464
16465 # Let's still pretend it is `configure' which instantiates (i.e., don't
16466 # use $as_me), people would be surprised to read:
16467 # /* config.h. Generated by config.status. */
16468 configure_input='Generated from '`
16469 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16470 `' by configure.'
16471 if test x"$ac_file" != x-; then
16472 configure_input="$ac_file. $configure_input"
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16474 $as_echo "$as_me: creating $ac_file" >&6;}
16475 fi
16476 # Neutralize special characters interpreted by sed in replacement strings.
16477 case $configure_input in #(
16478 *\&* | *\|* | *\\* )
16479 ac_sed_conf_input=`$as_echo "$configure_input" |
16480 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16481 *) ac_sed_conf_input=$configure_input;;
16482 esac
16483
16484 case $ac_tag in
16485 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16487 esac
16488 ;;
16489 esac
16490
16491 ac_dir=`$as_dirname -- "$ac_file" ||
16492 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16493 X"$ac_file" : 'X\(//\)[^/]' \| \
16494 X"$ac_file" : 'X\(//\)$' \| \
16495 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16496 $as_echo X"$ac_file" |
16497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16498 s//\1/
16499 q
16500 }
16501 /^X\(\/\/\)[^/].*/{
16502 s//\1/
16503 q
16504 }
16505 /^X\(\/\/\)$/{
16506 s//\1/
16507 q
16508 }
16509 /^X\(\/\).*/{
16510 s//\1/
16511 q
16512 }
16513 s/.*/./; q'`
16514 as_dir="$ac_dir"; as_fn_mkdir_p
16515 ac_builddir=.
16516
16517 case "$ac_dir" in
16518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16519 *)
16520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16521 # A ".." for each directory in $ac_dir_suffix.
16522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16523 case $ac_top_builddir_sub in
16524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16526 esac ;;
16527 esac
16528 ac_abs_top_builddir=$ac_pwd
16529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16530 # for backward compatibility:
16531 ac_top_builddir=$ac_top_build_prefix
16532
16533 case $srcdir in
16534 .) # We are building in place.
16535 ac_srcdir=.
16536 ac_top_srcdir=$ac_top_builddir_sub
16537 ac_abs_top_srcdir=$ac_pwd ;;
16538 [\\/]* | ?:[\\/]* ) # Absolute name.
16539 ac_srcdir=$srcdir$ac_dir_suffix;
16540 ac_top_srcdir=$srcdir
16541 ac_abs_top_srcdir=$srcdir ;;
16542 *) # Relative name.
16543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16544 ac_top_srcdir=$ac_top_build_prefix$srcdir
16545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16546 esac
16547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16548
16549
16550 case $ac_mode in
16551 :F)
16552 #
16553 # CONFIG_FILE
16554 #
16555
16556 case $INSTALL in
16557 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16558 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16559 esac
16560 ac_MKDIR_P=$MKDIR_P
16561 case $MKDIR_P in
16562 [\\/$]* | ?:[\\/]* ) ;;
16563 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16564 esac
16565 _ACEOF
16566
16567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568 # If the template does not know about datarootdir, expand it.
16569 # FIXME: This hack should be removed a few years after 2.60.
16570 ac_datarootdir_hack=; ac_datarootdir_seen=
16571 ac_sed_dataroot='
16572 /datarootdir/ {
16573 p
16574 q
16575 }
16576 /@datadir@/p
16577 /@docdir@/p
16578 /@infodir@/p
16579 /@localedir@/p
16580 /@mandir@/p'
16581 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16582 *datarootdir*) ac_datarootdir_seen=yes;;
16583 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16585 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16586 _ACEOF
16587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16588 ac_datarootdir_hack='
16589 s&@datadir@&$datadir&g
16590 s&@docdir@&$docdir&g
16591 s&@infodir@&$infodir&g
16592 s&@localedir@&$localedir&g
16593 s&@mandir@&$mandir&g
16594 s&\\\${datarootdir}&$datarootdir&g' ;;
16595 esac
16596 _ACEOF
16597
16598 # Neutralize VPATH when `$srcdir' = `.'.
16599 # Shell code in configure.ac might set extrasub.
16600 # FIXME: do we really want to maintain this feature?
16601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16602 ac_sed_extra="$ac_vpsub
16603 $extrasub
16604 _ACEOF
16605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16606 :t
16607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16608 s|@configure_input@|$ac_sed_conf_input|;t t
16609 s&@top_builddir@&$ac_top_builddir_sub&;t t
16610 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16611 s&@srcdir@&$ac_srcdir&;t t
16612 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16613 s&@top_srcdir@&$ac_top_srcdir&;t t
16614 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16615 s&@builddir@&$ac_builddir&;t t
16616 s&@abs_builddir@&$ac_abs_builddir&;t t
16617 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16618 s&@INSTALL@&$ac_INSTALL&;t t
16619 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16620 $ac_datarootdir_hack
16621 "
16622 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16623 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16624
16625 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16626 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16627 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16628 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16630 which seems to be undefined. Please make sure it is defined" >&5
16631 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16632 which seems to be undefined. Please make sure it is defined" >&2;}
16633
16634 rm -f "$ac_tmp/stdin"
16635 case $ac_file in
16636 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16637 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16638 esac \
16639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16640 ;;
16641
16642
16643 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16644 $as_echo "$as_me: executing $ac_file commands" >&6;}
16645 ;;
16646 esac
16647
16648
16649 case $ac_file$ac_mode in
16650 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16651 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16652 # are listed without --file. Let's play safe and only enable the eval
16653 # if we detect the quoting.
16654 case $CONFIG_FILES in
16655 *\'*) eval set x "$CONFIG_FILES" ;;
16656 *) set x $CONFIG_FILES ;;
16657 esac
16658 shift
16659 for mf
16660 do
16661 # Strip MF so we end up with the name of the file.
16662 mf=`echo "$mf" | sed -e 's/:.*$//'`
16663 # Check whether this is an Automake generated Makefile or not.
16664 # We used to match only the files named `Makefile.in', but
16665 # some people rename them; so instead we look at the file content.
16666 # Grep'ing the first line is not enough: some people post-process
16667 # each Makefile.in and add a new line on top of each file to say so.
16668 # Grep'ing the whole file is not good either: AIX grep has a line
16669 # limit of 2048, but all sed's we know have understand at least 4000.
16670 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16671 dirpart=`$as_dirname -- "$mf" ||
16672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16673 X"$mf" : 'X\(//\)[^/]' \| \
16674 X"$mf" : 'X\(//\)$' \| \
16675 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16676 $as_echo X"$mf" |
16677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16678 s//\1/
16679 q
16680 }
16681 /^X\(\/\/\)[^/].*/{
16682 s//\1/
16683 q
16684 }
16685 /^X\(\/\/\)$/{
16686 s//\1/
16687 q
16688 }
16689 /^X\(\/\).*/{
16690 s//\1/
16691 q
16692 }
16693 s/.*/./; q'`
16694 else
16695 continue
16696 fi
16697 # Extract the definition of DEPDIR, am__include, and am__quote
16698 # from the Makefile without running `make'.
16699 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16700 test -z "$DEPDIR" && continue
16701 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16702 test -z "am__include" && continue
16703 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16704 # When using ansi2knr, U may be empty or an underscore; expand it
16705 U=`sed -n 's/^U = //p' < "$mf"`
16706 # Find all dependency output files, they are included files with
16707 # $(DEPDIR) in their names. We invoke sed twice because it is the
16708 # simplest approach to changing $(DEPDIR) to its actual value in the
16709 # expansion.
16710 for file in `sed -n "
16711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16713 # Make sure the directory exists.
16714 test -f "$dirpart/$file" && continue
16715 fdir=`$as_dirname -- "$file" ||
16716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16717 X"$file" : 'X\(//\)[^/]' \| \
16718 X"$file" : 'X\(//\)$' \| \
16719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16720 $as_echo X"$file" |
16721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16722 s//\1/
16723 q
16724 }
16725 /^X\(\/\/\)[^/].*/{
16726 s//\1/
16727 q
16728 }
16729 /^X\(\/\/\)$/{
16730 s//\1/
16731 q
16732 }
16733 /^X\(\/\).*/{
16734 s//\1/
16735 q
16736 }
16737 s/.*/./; q'`
16738 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16739 # echo "creating $dirpart/$file"
16740 echo '# dummy' > "$dirpart/$file"
16741 done
16742 done
16743 }
16744 ;;
16745 "libtool":C)
16746
16747 # See if we are running on zsh, and set the options which allow our
16748 # commands through without removal of \ escapes.
16749 if test -n "${ZSH_VERSION+set}" ; then
16750 setopt NO_GLOB_SUBST
16751 fi
16752
16753 cfgfile="${ofile}T"
16754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16755 $RM "$cfgfile"
16756
16757 cat <<_LT_EOF >> "$cfgfile"
16758 #! $SHELL
16759
16760 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16761 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16763 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16764 #
16765 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16766 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16767 # Foundation, Inc.
16768 # Written by Gordon Matzigkeit, 1996
16769 #
16770 # This file is part of GNU Libtool.
16771 #
16772 # GNU Libtool is free software; you can redistribute it and/or
16773 # modify it under the terms of the GNU General Public License as
16774 # published by the Free Software Foundation; either version 2 of
16775 # the License, or (at your option) any later version.
16776 #
16777 # As a special exception to the GNU General Public License,
16778 # if you distribute this file as part of a program or library that
16779 # is built using GNU Libtool, you may include this file under the
16780 # same distribution terms that you use for the rest of that program.
16781 #
16782 # GNU Libtool is distributed in the hope that it will be useful,
16783 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16784 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16785 # GNU General Public License for more details.
16786 #
16787 # You should have received a copy of the GNU General Public License
16788 # along with GNU Libtool; see the file COPYING. If not, a copy
16789 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16790 # obtained by writing to the Free Software Foundation, Inc.,
16791 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16792
16793
16794 # The names of the tagged configurations supported by this script.
16795 available_tags=""
16796
16797 # ### BEGIN LIBTOOL CONFIG
16798
16799 # Which release of libtool.m4 was used?
16800 macro_version=$macro_version
16801 macro_revision=$macro_revision
16802
16803 # Whether or not to build shared libraries.
16804 build_libtool_libs=$enable_shared
16805
16806 # Whether or not to build static libraries.
16807 build_old_libs=$enable_static
16808
16809 # What type of objects to build.
16810 pic_mode=$pic_mode
16811
16812 # Whether or not to optimize for fast installation.
16813 fast_install=$enable_fast_install
16814
16815 # Shell to use when invoking shell scripts.
16816 SHELL=$lt_SHELL
16817
16818 # An echo program that protects backslashes.
16819 ECHO=$lt_ECHO
16820
16821 # The PATH separator for the build system.
16822 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16823
16824 # The host system.
16825 host_alias=$host_alias
16826 host=$host
16827 host_os=$host_os
16828
16829 # The build system.
16830 build_alias=$build_alias
16831 build=$build
16832 build_os=$build_os
16833
16834 # A sed program that does not truncate output.
16835 SED=$lt_SED
16836
16837 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16838 Xsed="\$SED -e 1s/^X//"
16839
16840 # A grep program that handles long lines.
16841 GREP=$lt_GREP
16842
16843 # An ERE matcher.
16844 EGREP=$lt_EGREP
16845
16846 # A literal string matcher.
16847 FGREP=$lt_FGREP
16848
16849 # A BSD- or MS-compatible name lister.
16850 NM=$lt_NM
16851
16852 # Whether we need soft or hard links.
16853 LN_S=$lt_LN_S
16854
16855 # What is the maximum length of a command?
16856 max_cmd_len=$max_cmd_len
16857
16858 # Object file suffix (normally "o").
16859 objext=$ac_objext
16860
16861 # Executable file suffix (normally "").
16862 exeext=$exeext
16863
16864 # whether the shell understands "unset".
16865 lt_unset=$lt_unset
16866
16867 # turn spaces into newlines.
16868 SP2NL=$lt_lt_SP2NL
16869
16870 # turn newlines into spaces.
16871 NL2SP=$lt_lt_NL2SP
16872
16873 # convert \$build file names to \$host format.
16874 to_host_file_cmd=$lt_cv_to_host_file_cmd
16875
16876 # convert \$build files to toolchain format.
16877 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16878
16879 # An object symbol dumper.
16880 OBJDUMP=$lt_OBJDUMP
16881
16882 # Method to check whether dependent libraries are shared objects.
16883 deplibs_check_method=$lt_deplibs_check_method
16884
16885 # Command to use when deplibs_check_method = "file_magic".
16886 file_magic_cmd=$lt_file_magic_cmd
16887
16888 # How to find potential files when deplibs_check_method = "file_magic".
16889 file_magic_glob=$lt_file_magic_glob
16890
16891 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16892 want_nocaseglob=$lt_want_nocaseglob
16893
16894 # DLL creation program.
16895 DLLTOOL=$lt_DLLTOOL
16896
16897 # Command to associate shared and link libraries.
16898 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16899
16900 # The archiver.
16901 AR=$lt_AR
16902
16903 # Flags to create an archive.
16904 AR_FLAGS=$lt_AR_FLAGS
16905
16906 # How to feed a file listing to the archiver.
16907 archiver_list_spec=$lt_archiver_list_spec
16908
16909 # A symbol stripping program.
16910 STRIP=$lt_STRIP
16911
16912 # Commands used to install an old-style archive.
16913 RANLIB=$lt_RANLIB
16914 old_postinstall_cmds=$lt_old_postinstall_cmds
16915 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16916
16917 # Whether to use a lock for old archive extraction.
16918 lock_old_archive_extraction=$lock_old_archive_extraction
16919
16920 # A C compiler.
16921 LTCC=$lt_CC
16922
16923 # LTCC compiler flags.
16924 LTCFLAGS=$lt_CFLAGS
16925
16926 # Take the output of nm and produce a listing of raw symbols and C names.
16927 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16928
16929 # Transform the output of nm in a proper C declaration.
16930 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16931
16932 # Transform the output of nm in a C name address pair.
16933 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16934
16935 # Transform the output of nm in a C name address pair when lib prefix is needed.
16936 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16937
16938 # Specify filename containing input files for \$NM.
16939 nm_file_list_spec=$lt_nm_file_list_spec
16940
16941 # The root where to search for dependent libraries,and in which our libraries should be installed.
16942 lt_sysroot=$lt_sysroot
16943
16944 # The name of the directory that contains temporary libtool files.
16945 objdir=$objdir
16946
16947 # Used to examine libraries when file_magic_cmd begins with "file".
16948 MAGIC_CMD=$MAGIC_CMD
16949
16950 # Must we lock files when doing compilation?
16951 need_locks=$lt_need_locks
16952
16953 # Manifest tool.
16954 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16955
16956 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16957 DSYMUTIL=$lt_DSYMUTIL
16958
16959 # Tool to change global to local symbols on Mac OS X.
16960 NMEDIT=$lt_NMEDIT
16961
16962 # Tool to manipulate fat objects and archives on Mac OS X.
16963 LIPO=$lt_LIPO
16964
16965 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16966 OTOOL=$lt_OTOOL
16967
16968 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16969 OTOOL64=$lt_OTOOL64
16970
16971 # Old archive suffix (normally "a").
16972 libext=$libext
16973
16974 # Shared library suffix (normally ".so").
16975 shrext_cmds=$lt_shrext_cmds
16976
16977 # The commands to extract the exported symbol list from a shared archive.
16978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16979
16980 # Variables whose values should be saved in libtool wrapper scripts and
16981 # restored at link time.
16982 variables_saved_for_relink=$lt_variables_saved_for_relink
16983
16984 # Do we need the "lib" prefix for modules?
16985 need_lib_prefix=$need_lib_prefix
16986
16987 # Do we need a version for libraries?
16988 need_version=$need_version
16989
16990 # Library versioning type.
16991 version_type=$version_type
16992
16993 # Shared library runtime path variable.
16994 runpath_var=$runpath_var
16995
16996 # Shared library path variable.
16997 shlibpath_var=$shlibpath_var
16998
16999 # Is shlibpath searched before the hard-coded library search path?
17000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17001
17002 # Format of library name prefix.
17003 libname_spec=$lt_libname_spec
17004
17005 # List of archive names. First name is the real one, the rest are links.
17006 # The last name is the one that the linker finds with -lNAME
17007 library_names_spec=$lt_library_names_spec
17008
17009 # The coded name of the library, if different from the real name.
17010 soname_spec=$lt_soname_spec
17011
17012 # Permission mode override for installation of shared libraries.
17013 install_override_mode=$lt_install_override_mode
17014
17015 # Command to use after installation of a shared archive.
17016 postinstall_cmds=$lt_postinstall_cmds
17017
17018 # Command to use after uninstallation of a shared archive.
17019 postuninstall_cmds=$lt_postuninstall_cmds
17020
17021 # Commands used to finish a libtool library installation in a directory.
17022 finish_cmds=$lt_finish_cmds
17023
17024 # As "finish_cmds", except a single script fragment to be evaled but
17025 # not shown.
17026 finish_eval=$lt_finish_eval
17027
17028 # Whether we should hardcode library paths into libraries.
17029 hardcode_into_libs=$hardcode_into_libs
17030
17031 # Compile-time system search path for libraries.
17032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17033
17034 # Run-time system search path for libraries.
17035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17036
17037 # Whether dlopen is supported.
17038 dlopen_support=$enable_dlopen
17039
17040 # Whether dlopen of programs is supported.
17041 dlopen_self=$enable_dlopen_self
17042
17043 # Whether dlopen of statically linked programs is supported.
17044 dlopen_self_static=$enable_dlopen_self_static
17045
17046 # Commands to strip libraries.
17047 old_striplib=$lt_old_striplib
17048 striplib=$lt_striplib
17049
17050
17051 # The linker used to build libraries.
17052 LD=$lt_LD
17053
17054 # How to create reloadable object files.
17055 reload_flag=$lt_reload_flag
17056 reload_cmds=$lt_reload_cmds
17057
17058 # Commands used to build an old-style archive.
17059 old_archive_cmds=$lt_old_archive_cmds
17060
17061 # A language specific compiler.
17062 CC=$lt_compiler
17063
17064 # Is the compiler the GNU compiler?
17065 with_gcc=$GCC
17066
17067 # Compiler flag to turn off builtin functions.
17068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17069
17070 # Additional compiler flags for building library objects.
17071 pic_flag=$lt_lt_prog_compiler_pic
17072
17073 # How to pass a linker flag through the compiler.
17074 wl=$lt_lt_prog_compiler_wl
17075
17076 # Compiler flag to prevent dynamic linking.
17077 link_static_flag=$lt_lt_prog_compiler_static
17078
17079 # Does compiler simultaneously support -c and -o options?
17080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17081
17082 # Whether or not to add -lc for building shared libraries.
17083 build_libtool_need_lc=$archive_cmds_need_lc
17084
17085 # Whether or not to disallow shared libs when runtime libs are static.
17086 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17087
17088 # Compiler flag to allow reflexive dlopens.
17089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17090
17091 # Compiler flag to generate shared objects directly from archives.
17092 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17093
17094 # Whether the compiler copes with passing no objects directly.
17095 compiler_needs_object=$lt_compiler_needs_object
17096
17097 # Create an old-style archive from a shared archive.
17098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17099
17100 # Create a temporary old-style archive to link instead of a shared archive.
17101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17102
17103 # Commands used to build a shared archive.
17104 archive_cmds=$lt_archive_cmds
17105 archive_expsym_cmds=$lt_archive_expsym_cmds
17106
17107 # Commands used to build a loadable module if different from building
17108 # a shared archive.
17109 module_cmds=$lt_module_cmds
17110 module_expsym_cmds=$lt_module_expsym_cmds
17111
17112 # Whether we are building with GNU ld or not.
17113 with_gnu_ld=$lt_with_gnu_ld
17114
17115 # Flag that allows shared libraries with undefined symbols to be built.
17116 allow_undefined_flag=$lt_allow_undefined_flag
17117
17118 # Flag that enforces no undefined symbols.
17119 no_undefined_flag=$lt_no_undefined_flag
17120
17121 # Flag to hardcode \$libdir into a binary during linking.
17122 # This must work even if \$libdir does not exist
17123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17124
17125 # Whether we need a single "-rpath" flag with a separated argument.
17126 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17127
17128 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17129 # DIR into the resulting binary.
17130 hardcode_direct=$hardcode_direct
17131
17132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17133 # DIR into the resulting binary and the resulting library dependency is
17134 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17135 # library is relocated.
17136 hardcode_direct_absolute=$hardcode_direct_absolute
17137
17138 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17139 # into the resulting binary.
17140 hardcode_minus_L=$hardcode_minus_L
17141
17142 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17143 # into the resulting binary.
17144 hardcode_shlibpath_var=$hardcode_shlibpath_var
17145
17146 # Set to "yes" if building a shared library automatically hardcodes DIR
17147 # into the library and all subsequent libraries and executables linked
17148 # against it.
17149 hardcode_automatic=$hardcode_automatic
17150
17151 # Set to yes if linker adds runtime paths of dependent libraries
17152 # to runtime path list.
17153 inherit_rpath=$inherit_rpath
17154
17155 # Whether libtool must link a program against all its dependency libraries.
17156 link_all_deplibs=$link_all_deplibs
17157
17158 # Set to "yes" if exported symbols are required.
17159 always_export_symbols=$always_export_symbols
17160
17161 # The commands to list exported symbols.
17162 export_symbols_cmds=$lt_export_symbols_cmds
17163
17164 # Symbols that should not be listed in the preloaded symbols.
17165 exclude_expsyms=$lt_exclude_expsyms
17166
17167 # Symbols that must always be exported.
17168 include_expsyms=$lt_include_expsyms
17169
17170 # Commands necessary for linking programs (against libraries) with templates.
17171 prelink_cmds=$lt_prelink_cmds
17172
17173 # Commands necessary for finishing linking programs.
17174 postlink_cmds=$lt_postlink_cmds
17175
17176 # Specify filename containing input files.
17177 file_list_spec=$lt_file_list_spec
17178
17179 # How to hardcode a shared library path into an executable.
17180 hardcode_action=$hardcode_action
17181
17182 # ### END LIBTOOL CONFIG
17183
17184 _LT_EOF
17185
17186 case $host_os in
17187 aix3*)
17188 cat <<\_LT_EOF >> "$cfgfile"
17189 # AIX sometimes has problems with the GCC collect2 program. For some
17190 # reason, if we set the COLLECT_NAMES environment variable, the problems
17191 # vanish in a puff of smoke.
17192 if test "X${COLLECT_NAMES+set}" != Xset; then
17193 COLLECT_NAMES=
17194 export COLLECT_NAMES
17195 fi
17196 _LT_EOF
17197 ;;
17198 esac
17199
17200
17201 ltmain="$ac_aux_dir/ltmain.sh"
17202
17203
17204 # We use sed instead of cat because bash on DJGPP gets confused if
17205 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17206 # text mode, it properly converts lines to CR/LF. This bash problem
17207 # is reportedly fixed, but why not run on old versions too?
17208 sed '$q' "$ltmain" >> "$cfgfile" \
17209 || (rm -f "$cfgfile"; exit 1)
17210
17211 if test x"$xsi_shell" = xyes; then
17212 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17213 func_dirname ()\
17214 {\
17215 \ case ${1} in\
17216 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17217 \ * ) func_dirname_result="${3}" ;;\
17218 \ esac\
17219 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17220 && mv -f "$cfgfile.tmp" "$cfgfile" \
17221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17222 test 0 -eq $? || _lt_function_replace_fail=:
17223
17224
17225 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17226 func_basename ()\
17227 {\
17228 \ func_basename_result="${1##*/}"\
17229 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17230 && mv -f "$cfgfile.tmp" "$cfgfile" \
17231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17232 test 0 -eq $? || _lt_function_replace_fail=:
17233
17234
17235 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17236 func_dirname_and_basename ()\
17237 {\
17238 \ case ${1} in\
17239 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17240 \ * ) func_dirname_result="${3}" ;;\
17241 \ esac\
17242 \ func_basename_result="${1##*/}"\
17243 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17244 && mv -f "$cfgfile.tmp" "$cfgfile" \
17245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17246 test 0 -eq $? || _lt_function_replace_fail=:
17247
17248
17249 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17250 func_stripname ()\
17251 {\
17252 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17253 \ # positional parameters, so assign one to ordinary parameter first.\
17254 \ func_stripname_result=${3}\
17255 \ func_stripname_result=${func_stripname_result#"${1}"}\
17256 \ func_stripname_result=${func_stripname_result%"${2}"}\
17257 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17258 && mv -f "$cfgfile.tmp" "$cfgfile" \
17259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17260 test 0 -eq $? || _lt_function_replace_fail=:
17261
17262
17263 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17264 func_split_long_opt ()\
17265 {\
17266 \ func_split_long_opt_name=${1%%=*}\
17267 \ func_split_long_opt_arg=${1#*=}\
17268 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17269 && mv -f "$cfgfile.tmp" "$cfgfile" \
17270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17271 test 0 -eq $? || _lt_function_replace_fail=:
17272
17273
17274 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17275 func_split_short_opt ()\
17276 {\
17277 \ func_split_short_opt_arg=${1#??}\
17278 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17279 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17280 && mv -f "$cfgfile.tmp" "$cfgfile" \
17281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17282 test 0 -eq $? || _lt_function_replace_fail=:
17283
17284
17285 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17286 func_lo2o ()\
17287 {\
17288 \ case ${1} in\
17289 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17290 \ *) func_lo2o_result=${1} ;;\
17291 \ esac\
17292 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17293 && mv -f "$cfgfile.tmp" "$cfgfile" \
17294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17295 test 0 -eq $? || _lt_function_replace_fail=:
17296
17297
17298 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17299 func_xform ()\
17300 {\
17301 func_xform_result=${1%.*}.lo\
17302 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17303 && mv -f "$cfgfile.tmp" "$cfgfile" \
17304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17305 test 0 -eq $? || _lt_function_replace_fail=:
17306
17307
17308 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17309 func_arith ()\
17310 {\
17311 func_arith_result=$(( $* ))\
17312 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17313 && mv -f "$cfgfile.tmp" "$cfgfile" \
17314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17315 test 0 -eq $? || _lt_function_replace_fail=:
17316
17317
17318 sed -e '/^func_len ()$/,/^} # func_len /c\
17319 func_len ()\
17320 {\
17321 func_len_result=${#1}\
17322 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17323 && mv -f "$cfgfile.tmp" "$cfgfile" \
17324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17325 test 0 -eq $? || _lt_function_replace_fail=:
17326
17327 fi
17328
17329 if test x"$lt_shell_append" = xyes; then
17330 sed -e '/^func_append ()$/,/^} # func_append /c\
17331 func_append ()\
17332 {\
17333 eval "${1}+=\\${2}"\
17334 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17335 && mv -f "$cfgfile.tmp" "$cfgfile" \
17336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17337 test 0 -eq $? || _lt_function_replace_fail=:
17338
17339
17340 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17341 func_append_quoted ()\
17342 {\
17343 \ func_quote_for_eval "${2}"\
17344 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17345 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17346 && mv -f "$cfgfile.tmp" "$cfgfile" \
17347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17348 test 0 -eq $? || _lt_function_replace_fail=:
17349
17350
17351 # Save a `func_append' function call where possible by direct use of '+='
17352 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17353 && mv -f "$cfgfile.tmp" "$cfgfile" \
17354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17355 test 0 -eq $? || _lt_function_replace_fail=:
17356 else
17357 # Save a `func_append' function call even when '+=' is not available
17358 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17359 && mv -f "$cfgfile.tmp" "$cfgfile" \
17360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17361 test 0 -eq $? || _lt_function_replace_fail=:
17362 fi
17363
17364 if test x"$_lt_function_replace_fail" = x":"; then
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17366 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17367 fi
17368
17369
17370 mv -f "$cfgfile" "$ofile" ||
17371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17372 chmod +x "$ofile"
17373
17374 ;;
17375 "po-directories":C)
17376 for ac_file in $CONFIG_FILES; do
17377 # Support "outfile[:infile[:infile...]]"
17378 case "$ac_file" in
17379 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17380 esac
17381 # PO directories have a Makefile.in generated from Makefile.in.in.
17382 case "$ac_file" in */Makefile.in)
17383 # Adjust a relative srcdir.
17384 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17385 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17386 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17387 # In autoconf-2.13 it is called $ac_given_srcdir.
17388 # In autoconf-2.50 it is called $srcdir.
17389 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17390 case "$ac_given_srcdir" in
17391 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17392 /*) top_srcdir="$ac_given_srcdir" ;;
17393 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17394 esac
17395 # Treat a directory as a PO directory if and only if it has a
17396 # POTFILES.in file. This allows packages to have multiple PO
17397 # directories under different names or in different locations.
17398 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17399 rm -f "$ac_dir/POTFILES"
17400 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17401 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17402 POMAKEFILEDEPS="POTFILES.in"
17403 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17404 # on $ac_dir but don't depend on user-specified configuration
17405 # parameters.
17406 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17407 # The LINGUAS file contains the set of available languages.
17408 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17409 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17410 fi
17411 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17412 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17413 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17414 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17415 else
17416 # The set of available languages was given in configure.in.
17417 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17418 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17419 fi
17420 # Compute POFILES
17421 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17422 # Compute UPDATEPOFILES
17423 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17424 # Compute DUMMYPOFILES
17425 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17426 # Compute GMOFILES
17427 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17428 case "$ac_given_srcdir" in
17429 .) srcdirpre= ;;
17430 *) srcdirpre='$(srcdir)/' ;;
17431 esac
17432 POFILES=
17433 UPDATEPOFILES=
17434 DUMMYPOFILES=
17435 GMOFILES=
17436 for lang in $ALL_LINGUAS; do
17437 POFILES="$POFILES $srcdirpre$lang.po"
17438 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17439 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17440 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17441 done
17442 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17443 # environment variable.
17444 INST_LINGUAS=
17445 if test -n "$ALL_LINGUAS"; then
17446 for presentlang in $ALL_LINGUAS; do
17447 useit=no
17448 if test "%UNSET%" != "$LINGUAS"; then
17449 desiredlanguages="$LINGUAS"
17450 else
17451 desiredlanguages="$ALL_LINGUAS"
17452 fi
17453 for desiredlang in $desiredlanguages; do
17454 # Use the presentlang catalog if desiredlang is
17455 # a. equal to presentlang, or
17456 # b. a variant of presentlang (because in this case,
17457 # presentlang can be used as a fallback for messages
17458 # which are not translated in the desiredlang catalog).
17459 case "$desiredlang" in
17460 "$presentlang"*) useit=yes;;
17461 esac
17462 done
17463 if test $useit = yes; then
17464 INST_LINGUAS="$INST_LINGUAS $presentlang"
17465 fi
17466 done
17467 fi
17468 CATALOGS=
17469 if test -n "$INST_LINGUAS"; then
17470 for lang in $INST_LINGUAS; do
17471 CATALOGS="$CATALOGS $lang.gmo"
17472 done
17473 fi
17474 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17475 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"
17476 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17477 if test -f "$f"; then
17478 case "$f" in
17479 *.orig | *.bak | *~) ;;
17480 *) cat "$f" >> "$ac_dir/Makefile" ;;
17481 esac
17482 fi
17483 done
17484 fi
17485 ;;
17486 esac
17487 done ;;
17488
17489 esac
17490 done # for ac_tag
17491
17492
17493 as_fn_exit 0
17494 _ACEOF
17495 ac_clean_files=$ac_clean_files_save
17496
17497 test $ac_write_fail = 0 ||
17498 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17499
17500
17501 # configure is writing to config.log, and then calls config.status.
17502 # config.status does its own redirection, appending to config.log.
17503 # Unfortunately, on DOS this fails, as config.log is still kept open
17504 # by configure, so config.status won't be able to write to it; its
17505 # output is simply discarded. So we exec the FD to /dev/null,
17506 # effectively closing config.log, so it can be properly (re)opened and
17507 # appended to by config.status. When coming back to configure, we
17508 # need to make the FD available again.
17509 if test "$no_create" != yes; then
17510 ac_cs_success=:
17511 ac_config_status_args=
17512 test "$silent" = yes &&
17513 ac_config_status_args="$ac_config_status_args --quiet"
17514 exec 5>/dev/null
17515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17516 exec 5>>config.log
17517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17518 # would make configure fail if this is the last instruction.
17519 $ac_cs_success || as_fn_exit 1
17520 fi
17521 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17523 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17524 fi
17525
17526
17527
17528 echo "
17529 $PACKAGE-$VERSION
17530
17531 prefix: ${prefix}
17532 compiler: ${CC}
17533 locale-dir: $localepath
17534
17535 have swig ${have_swig}
17536 have free pascal ${have_fpc}
17537 have gnu pascal ${have_gpc}
17538 have python ${have_python}
17539 have perl ${have_perl}
17540 have ruby ${have_ruby}
17541 have php ${have_php} php-dev,php-cli ${have_php_config}
17542
17543 build hcal ${build_hcal}
17544
17545 build python binding ${build_python}
17546 build perl binding ${build_perl}
17547 puild free pascal binding ${build_fpc}
17548 puild ruby binding ${build_ruby}
17549 puild php binding ${build_php}
17550
17551 perl site lib path: $PE_MODULES_PATH
17552 python site lib path: $PY_MODULES_PATH
17553 free pascal site lib path: $PA_MODULES_PATH
17554 gnu pascal site lib path: $GP_MODULES_PATH
17555 ruby site lib path: $RU_MODULES_PATH
17556 php site lib path: $PH_MODULES_PATH
17557 php config path: $PH_CONFIG_PATH
17558 php include path: $PH_INCLUDE_PATH
17559 "
0 AC_INIT(src/hdate.h)
1
2 dnl Set release number
3 PACKAGE=libhdate
4 LIBHDATE_MAJOR_VERSION=1
5 LIBHDATE_MINOR_VERSION=6
6 LIBHDATE_MICRO_VERSION=0
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 AC_CONFIG_MACRO_DIR([m4])
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_fpc, "fpc", yes, no)
45
46 build_fpc=$have_fpc
47
48 AC_ARG_ENABLE([fpc],
49 [AS_HELP_STRING([--disable-fpc],
50 [do not build free pascal binding])],
51 [build_fpc=no], [build_fpc=$have_fpc])
52
53 if test "$have_fpc" = "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 dnl =======================================================================================
63
64 AC_CHECK_PROG(have_gpc, "gpc", yes, no)
65
66 build_gpc=$have_gpc
67
68 AC_ARG_ENABLE([gpc],
69 [AS_HELP_STRING([--disable-gpc],
70 [do not build gnu pascal binding])],
71 [build_gpc=no], [build_gpc=$have_gpc])
72
73 if test "$have_gpc" = "yes"; then
74 GP_MODULES_PATH=`gpc -print-search-dirs | grep install | cut -d' ' -f 2`
75 AC_SUBST([GP_MODULES_PATH])
76 fi
77
78 dnl =======================================================================================
79
80 AM_CONDITIONAL(WITH_GPC_FPC, [test "$build_fpc" = "yes" -a "$build_gpc" = "yes" ])
81 AM_CONDITIONAL(WITH_GPC, [test "$build_gpc" = "yes" -a "$build_fpc" != "yes" ])
82 AM_CONDITIONAL(WITH_FPC, [test "$build_gpc" != "yes" -a "$build_fpc" = "yes" ])
83
84 dnl =======================================================================================
85
86 AC_CHECK_PROG(have_python, "python", yes, no)
87
88 build_python=$have_python
89
90 AC_ARG_ENABLE([python],
91 [AS_HELP_STRING([--disable-python],
92 [do not build python binding])],
93 [build_python=no], [build_python=$have_python])
94
95 AC_ARG_WITH(python-sitelib-dir,
96 [AS_HELP_STRING([--with-python-sitelib-dir=PATH],
97 [path to python site lib])])
98
99 if test "$have_python" = "yes"; then
100 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
101 PY_VERSION=`python -c 'import sys ; print sys.version[[0:3]]'`
102 AC_MSG_CHECKING(for $PY_PREFIX/include/python$PY_VERSION/Python.h)
103 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
104 AC_MSG_RESULT(yes)
105 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
106
107 if test "$with_python_sitelib_dir" = "" ; then
108 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/dist-packages"
109 else
110 PY_MODULES_PATH=$with_python_sitelib_dir
111 fi
112
113 AC_SUBST([PY_VERSION])
114 AC_SUBST([PY_CFLAGS])
115 AC_SUBST([PY_MODULES_PATH])
116 if test "$have_swig" = "no"; then
117 build_python=no
118 fi
119 else
120 AC_MSG_RESULT(no)
121 build_python=no
122 fi
123 fi
124
125 AM_CONDITIONAL(WITH_PYTHON, test "$build_python" = "yes")
126
127 dnl =======================================================================================
128
129 AC_CHECK_PROG(have_ruby, "ruby", yes, no)
130
131 build_ruby=$have_ruby
132
133 AC_ARG_ENABLE([ruby],
134 [AS_HELP_STRING([--disable-ruby],
135 [do not build ruby binding])],
136 [build_ruby=no], [build_ruby=$have_ruby])
137
138 AC_ARG_WITH(ruby-sitelib-dir,
139 [AS_HELP_STRING([--with-ruby-sitelib-dir=PATH],
140 [path to ruby site lib])])
141
142 if test "$have_ruby" = "yes"; then
143 RU_PREFIX=`ruby -e 'require "mkmf"; puts $topdir'`
144 RU_VERSION=`ruby -e "require 'mkmf'; puts config_string('MAJOR')"`
145 RU_VERSION+=.`ruby -e "require 'mkmf'; puts config_string('MINOR')"`
146 AC_MSG_CHECKING(for $RU_PREFIX/ruby.h)
147 if test -f $RU_PREFIX/ruby.h; then
148 AC_MSG_RESULT(yes)
149 RU_CFLAGS="-I$RU_PREFIX"
150
151 if test "$with_ruby_sitelib_dir" = "" ; then
152 RU_MODULES_PATH="$RU_PREFIX"
153 else
154 RU_MODULES_PATH=$with_ruby_sitelib_dir
155 fi
156
157 AC_SUBST([RU_VERSION])
158 AC_SUBST([RU_CFLAGS])
159 AC_SUBST([RU_MODULES_PATH])
160 if test "$have_swig" = "no"; then
161 build_ruby=no
162 fi
163 else
164 AC_MSG_RESULT(no)
165 build_ruby=no
166 fi
167 fi
168
169 AM_CONDITIONAL(WITH_RUBY, test "$build_ruby" = "yes")
170
171 dnl =======================================================================================
172
173 AC_CHECK_PROG(have_php, "php", yes, no)
174
175 build_php=$have_php
176
177 AC_ARG_ENABLE([php],
178 [AS_HELP_STRING([--disable-php],
179 [do not build php binding])],
180 [build_php=no], [build_php=$have_php])
181
182 AC_ARG_WITH(php-sitelib-dir,
183 [AS_HELP_STRING([--with-php-sitelib-dir=PATH],
184 [path to php site lib])])
185
186 if test "$have_php" = "yes"; then
187 AC_CHECK_PROG(have_php_config, "php-config5", yes, no)
188 if test "$have_php_config" = "yes"; then
189
190 PH_CONFIG_PATH=`php --ini | grep "Scan" | cut -d: -f2 | sed 's/\s//g'`
191 PH_INCLUDE_PATH=`php -r "echo get_include_path();" | cut -f2 -d:`
192 if test "$with_php_sitelib_dir" = "" ; then
193 PH_MODULES_PATH=`php-config5 --extension-dir`
194 else
195 PH_MODULES_PATH=$with_php_sitelib_dir
196 fi
197
198 AC_SUBST([PH_CONFIG_PATH])
199 AC_SUBST([PH_INCLUDE_PATH])
200 AC_SUBST([PH_MODULES_PATH])
201 if test "$have_swig" = "no"; then
202 build_php=no
203 fi
204 else
205 AC_MSG_RESULT(no)
206 build_php=no
207 fi
208 fi
209
210 AM_CONDITIONAL(WITH_PHP, test "$build_php" = "yes")
211
212 dnl =======================================================================================
213
214 AC_CHECK_PROG(have_perl, "perl", yes, no)
215
216 build_perl=$have_perl
217
218 AC_ARG_ENABLE([perl],
219 [AS_HELP_STRING([--disable-perl],
220 [do not build perl binding])],
221 [build_perl=no], [build_perl=$have_perl])
222
223 AC_ARG_WITH(perl-sitelib-dir,
224 [AS_HELP_STRING([--with-perl-sitelib-dir=PATH],
225 [path to perl site lib])])
226
227 if test "$have_perl" = "yes"; then
228 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
229 AC_MSG_CHECKING(for $PE_PREFIX/CORE/perl.h)
230 if test -f $PE_PREFIX/CORE/perl.h; then
231 AC_MSG_RESULT(yes)
232 PE_CFLAGS="-I$PE_PREFIX/CORE "
233 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
234
235 if test "$with_perl_sitelib_dir" = "" ; then
236 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
237 else
238 PE_MODULES_PATH=$with_perl_sitelib_dir
239 fi
240
241 AC_SUBST([PE_CFLAGS])
242 AC_SUBST([PE_MODULES_PATH])
243 if test "x$have_swig" = "xno"; then
244 build_perl=no
245 fi
246 else
247 AC_MSG_RESULT(no)
248 build_perl=no
249 fi
250 fi
251
252 AM_CONDITIONAL(WITH_PERL, test "$build_perl" = "yes")
253
254 dnl =======================================================================================
255
256 dnl gettext
257
258 dnl Languages which your application supports
259 ALL_LINGUAS="he es_MX ru fr sv"
260 AM_GNU_GETTEXT([external])
261 AM_GNU_GETTEXT_VERSION([0.18.1])
262
263 if test "$DATADIRNAME" = ""; then
264 DATADIRNAME="share"
265 AC_SUBST(DATADIRNAME)
266 fi
267
268 localepath=`eval eval echo ${localedir}`
269
270 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${localepath}")
271
272 dnl =======================================================================================
273
274 build_hcal=yes
275
276 AC_ARG_ENABLE([hcal],
277 [AS_HELP_STRING([--disable-hcal],
278 [do not build hcal/hdate utility programs])],
279 [build_hcal=no], [build_hcal=yes])
280
281 AM_CONDITIONAL(WITH_HCAL, test "$build_hcal" = "yes")
282
283 dnl =======================================================================================
284
285 AC_SUBST(CFLAGS)
286 AC_SUBST(LIBS)
287
288 dnl =======================================================================================
289
290 AC_OUTPUT([
291 Makefile
292 libhdate.pc
293 po/Makefile.in
294 docs/Makefile
295 docs/man/Makefile
296 docs/man/man1/Makefile
297 docs/man/man3/Makefile
298 src/Makefile
299 examples/Makefile
300 examples/hcal/Makefile
301 examples/bindings/Makefile
302 examples/bindings/pascal/Makefile
303 bindings/Makefile
304 bindings/python/Makefile
305 bindings/perl/Makefile
306 bindings/pascal/Makefile
307 bindings/ruby/Makefile
308 bindings/php/Makefile
309 ])
310
311 dnl ===========================================================================================
312
313 echo "
314 $PACKAGE-$VERSION
315
316 prefix: ${prefix}
317 compiler: ${CC}
318 locale-dir: $localepath
319
320 have swig ${have_swig}
321 have free pascal ${have_fpc}
322 have gnu pascal ${have_gpc}
323 have python ${have_python}
324 have perl ${have_perl}
325 have ruby ${have_ruby}
326 have php ${have_php} php-dev,php-cli ${have_php_config}
327
328 build hcal ${build_hcal}
329
330 build python binding ${build_python}
331 build perl binding ${build_perl}
332 puild free pascal binding ${build_fpc}
333 puild ruby binding ${build_ruby}
334 puild php binding ${build_php}
335
336 perl site lib path: $PE_MODULES_PATH
337 python site lib path: $PY_MODULES_PATH
338 free pascal site lib path: $PA_MODULES_PATH
339 gnu pascal site lib path: $GP_MODULES_PATH
340 ruby site lib path: $RU_MODULES_PATH
341 php site lib path: $PH_MODULES_PATH
342 php config path: $PH_CONFIG_PATH
343 php include path: $PH_INCLUDE_PATH
344 "
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
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 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
27
28 case $1 in
29 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
33 -h | --h*)
34 cat <<\EOF
35 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
36
37 Run PROGRAMS ARGS to compile a file, generating dependencies
38 as side-effects.
39
40 Environment variables:
41 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
44 DEPDIR directory where to store dependencies.
45 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
47 libtool Whether libtool is used (yes/no).
48
49 Report bugs to <bug-automake@gnu.org>.
50 EOF
51 exit $?
52 ;;
53 -v | --v*)
54 echo "depcomp $scriptversion"
55 exit $?
56 ;;
57 esac
58
59 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61 exit 1
62 fi
63
64 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
65 depfile=${depfile-`echo "$object" |
66 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
67 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68
69 rm -f "$tmpdepfile"
70
71 # Some modes work just like other modes, but use different flags. We
72 # parameterize here, but still list the modes in the big case below,
73 # to make depend.m4 easier to write. Note that we *cannot* use a case
74 # here, because this file can only contain one case statement.
75 if test "$depmode" = hp; then
76 # HP compiler uses -M and no extra arg.
77 gccflag=-M
78 depmode=gcc
79 fi
80
81 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
85 fi
86
87 cygpath_u="cygpath -u -f -"
88 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
94 fi
95
96 case "$depmode" in
97 gcc3)
98 ## gcc 3 implements dependency tracking that does exactly what
99 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
100 ## it if -MD -MP comes after the -MF stuff. Hmm.
101 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
102 ## the command line argument order; so add the flags where they
103 ## appear in depend2.am. Note that the slowdown incurred here
104 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
105 for arg
106 do
107 case $arg in
108 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
109 *) set fnord "$@" "$arg" ;;
110 esac
111 shift # fnord
112 shift # $arg
113 done
114 "$@"
115 stat=$?
116 if test $stat -eq 0; then :
117 else
118 rm -f "$tmpdepfile"
119 exit $stat
120 fi
121 mv "$tmpdepfile" "$depfile"
122 ;;
123
124 gcc)
125 ## There are various ways to get dependency output from gcc. Here's
126 ## why we pick this rather obscure method:
127 ## - Don't want to use -MD because we'd like the dependencies to end
128 ## up in a subdir. Having to rename by hand is ugly.
129 ## (We might end up doing this anyway to support other compilers.)
130 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
131 ## -MM, not -M (despite what the docs say).
132 ## - Using -M directly means running the compiler twice (even worse
133 ## than renaming).
134 if test -z "$gccflag"; then
135 gccflag=-MD,
136 fi
137 "$@" -Wp,"$gccflag$tmpdepfile"
138 stat=$?
139 if test $stat -eq 0; then :
140 else
141 rm -f "$tmpdepfile"
142 exit $stat
143 fi
144 rm -f "$depfile"
145 echo "$object : \\" > "$depfile"
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
148 sed -e 's/^[^:]*: / /' \
149 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
150 ## This next piece of magic avoids the `deleted header file' problem.
151 ## The problem is that when a header file which appears in a .P file
152 ## is deleted, the dependency causes make to die (because there is
153 ## typically no way to rebuild the header). We avoid this by adding
154 ## dummy dependencies for each header file. Too bad gcc doesn't do
155 ## this for us directly.
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
159 ## that the space means something, we add a space to the output as
160 ## well.
161 ## Some versions of the HPUX 10.20 sed can't process this invocation
162 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
164 rm -f "$tmpdepfile"
165 ;;
166
167 hp)
168 # This case exists only to let depend.m4 do its work. It works by
169 # looking at the text of this script. This case will never be run,
170 # since it is checked for above.
171 exit 1
172 ;;
173
174 sgi)
175 if test "$libtool" = yes; then
176 "$@" "-Wp,-MDupdate,$tmpdepfile"
177 else
178 "$@" -MDupdate "$tmpdepfile"
179 fi
180 stat=$?
181 if test $stat -eq 0; then :
182 else
183 rm -f "$tmpdepfile"
184 exit $stat
185 fi
186 rm -f "$depfile"
187
188 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
189 echo "$object : \\" > "$depfile"
190
191 # Clip off the initial element (the dependent). Don't try to be
192 # clever and replace this with sed code, as IRIX sed won't handle
193 # lines with more than a fixed number of characters (4096 in
194 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
195 # the IRIX cc adds comments like `#:fec' to the end of the
196 # dependency line.
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
202 echo >> "$depfile"
203
204 # The second pass generates a dummy entry for each header file.
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
209 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
214 fi
215 rm -f "$tmpdepfile"
216 ;;
217
218 aix)
219 # The C for AIX Compiler uses -M and outputs the dependencies
220 # in a .u file. In older versions, this file always lives in the
221 # current directory. Also, the AIX compiler puts `$object:' at the
222 # start of each line; $object doesn't have directory information.
223 # Version 6 uses the directory in both cases.
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
227 if test "$libtool" = yes; then
228 tmpdepfile1=$dir$base.u
229 tmpdepfile2=$base.u
230 tmpdepfile3=$dir.libs/$base.u
231 "$@" -Wc,-M
232 else
233 tmpdepfile1=$dir$base.u
234 tmpdepfile2=$dir$base.u
235 tmpdepfile3=$dir$base.u
236 "$@" -M
237 fi
238 stat=$?
239
240 if test $stat -eq 0; then :
241 else
242 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
243 exit $stat
244 fi
245
246 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
247 do
248 test -f "$tmpdepfile" && break
249 done
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
263 rm -f "$tmpdepfile"
264 ;;
265
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
278 # foo.o: sub/foo.c sub/foo.h
279 # and will wrap long lines using \ :
280 # foo.o: sub/foo.c ... \
281 # sub/foo.h ... \
282 # ...
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
288 rm -f "$tmpdepfile"
289 exit $stat
290 fi
291 rm -f "$depfile"
292 # Each line is of the form `foo.o: dependent.h',
293 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
294 # Do two passes, one to just change these to
295 # `$object: dependent.h' and one to simply `dependent.h:'.
296 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
297 # Some versions of the HPUX 10.20 sed can't process this invocation
298 # correctly. Breaking it into two sed invocations is a workaround.
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
301 rm -f "$tmpdepfile"
302 ;;
303
304 hp2)
305 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
306 # compilers, which have integrated preprocessors. The correct option
307 # to use with these is +Maked; it writes dependencies to a file named
308 # 'foo.d', which lands next to the object file, wherever that
309 # happens to be.
310 # Much of this is similar to the tru64 case; see comments there.
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
314 if test "$libtool" = yes; then
315 tmpdepfile1=$dir$base.d
316 tmpdepfile2=$dir.libs/$base.d
317 "$@" -Wc,+Maked
318 else
319 tmpdepfile1=$dir$base.d
320 tmpdepfile2=$dir$base.d
321 "$@" +Maked
322 fi
323 stat=$?
324 if test $stat -eq 0; then :
325 else
326 rm -f "$tmpdepfile1" "$tmpdepfile2"
327 exit $stat
328 fi
329
330 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
331 do
332 test -f "$tmpdepfile" && break
333 done
334 if test -f "$tmpdepfile"; then
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
337 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
343 else
344 echo "#dummy" > "$depfile"
345 fi
346 rm -f "$tmpdepfile" "$tmpdepfile2"
347 ;;
348
349 tru64)
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
406
407 #nosideeffect)
408 # This comment above is used by automake to tell side-effect
409 # dependency tracking mechanisms from slower ones.
410
411 dashmstdout)
412 # Important note: in order to support this mode, a compiler *must*
413 # always write the preprocessed file to stdout, regardless of -o.
414 "$@" || exit $?
415
416 # Remove the call to Libtool.
417 if test "$libtool" = yes; then
418 while test "X$1" != 'X--mode=compile'; do
419 shift
420 done
421 shift
422 fi
423
424 # Remove `-o $object'.
425 IFS=" "
426 for arg
427 do
428 case $arg in
429 -o)
430 shift
431 ;;
432 $object)
433 shift
434 ;;
435 *)
436 set fnord "$@" "$arg"
437 shift # fnord
438 shift # $arg
439 ;;
440 esac
441 done
442
443 test -z "$dashmflag" && dashmflag=-M
444 # Require at least two characters before searching for `:'
445 # in the target name. This is to cope with DOS-style filenames:
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
447 "$@" $dashmflag |
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
449 rm -f "$depfile"
450 cat < "$tmpdepfile" > "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
456 rm -f "$tmpdepfile"
457 ;;
458
459 dashXmstdout)
460 # This case only exists to satisfy depend.m4. It is never actually
461 # run, as this mode is specially recognized in the preamble.
462 exit 1
463 ;;
464
465 makedepend)
466 "$@" || exit $?
467 # Remove any Libtool call
468 if test "$libtool" = yes; then
469 while test "X$1" != 'X--mode=compile'; do
470 shift
471 done
472 shift
473 fi
474 # X makedepend
475 shift
476 cleared=no eat=no
477 for arg
478 do
479 case $cleared in
480 no)
481 set ""; shift
482 cleared=yes ;;
483 esac
484 if test $eat = yes; then
485 eat=no
486 continue
487 fi
488 case "$arg" in
489 -D*|-I*)
490 set fnord "$@" "$arg"; shift ;;
491 # Strip any option that makedepend may not understand. Remove
492 # the object too, otherwise makedepend will parse it as a source file.
493 -arch)
494 eat=yes ;;
495 -*|$object)
496 ;;
497 *)
498 set fnord "$@" "$arg"; shift ;;
499 esac
500 done
501 obj_suffix=`echo "$object" | sed 's/^.*\././'`
502 touch "$tmpdepfile"
503 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
511 rm -f "$tmpdepfile" "$tmpdepfile".bak
512 ;;
513
514 cpp)
515 # Important note: in order to support this mode, a compiler *must*
516 # always write the preprocessed file to stdout.
517 "$@" || exit $?
518
519 # Remove the call to Libtool.
520 if test "$libtool" = yes; then
521 while test "X$1" != 'X--mode=compile'; do
522 shift
523 done
524 shift
525 fi
526
527 # Remove `-o $object'.
528 IFS=" "
529 for arg
530 do
531 case $arg in
532 -o)
533 shift
534 ;;
535 $object)
536 shift
537 ;;
538 *)
539 set fnord "$@" "$arg"
540 shift # fnord
541 shift # $arg
542 ;;
543 esac
544 done
545
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
550 rm -f "$depfile"
551 echo "$object : \\" > "$depfile"
552 cat < "$tmpdepfile" >> "$depfile"
553 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
554 rm -f "$tmpdepfile"
555 ;;
556
557 msvisualcpp)
558 # Important note: in order to support this mode, a compiler *must*
559 # always write the preprocessed file to stdout.
560 "$@" || exit $?
561
562 # Remove the call to Libtool.
563 if test "$libtool" = yes; then
564 while test "X$1" != 'X--mode=compile'; do
565 shift
566 done
567 shift
568 fi
569
570 IFS=" "
571 for arg
572 do
573 case "$arg" in
574 -o)
575 shift
576 ;;
577 $object)
578 shift
579 ;;
580 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
581 set fnord "$@"
582 shift
583 shift
584 ;;
585 *)
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
590 esac
591 done
592 "$@" -E 2>/dev/null |
593 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
594 rm -f "$depfile"
595 echo "$object : \\" > "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
598 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
599 rm -f "$tmpdepfile"
600 ;;
601
602 msvcmsys)
603 # This case exists only to let depend.m4 do its work. It works by
604 # looking at the text of this script. This case will never be run,
605 # since it is checked for above.
606 exit 1
607 ;;
608
609 none)
610 exec "$@"
611 ;;
612
613 *)
614 echo "Unknown depmode $depmode" 1>&2
615 exit 1
616 ;;
617 esac
618
619 exit 0
620
621 # Local Variables:
622 # mode: shell-script
623 # sh-indentation: 2
624 # eval: (add-hook 'write-file-hooks 'time-stamp)
625 # time-stamp-start: "scriptversion="
626 # time-stamp-format: "%:y-%02m-%02d.%02H"
627 # time-stamp-time-zone: "UTC"
628 # time-stamp-end: "; # UTC"
629 # End:
0 SUBDIRS = man
1
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = docs
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54 html-recursive info-recursive install-data-recursive \
55 install-dvi-recursive install-exec-recursive \
56 install-html-recursive install-info-recursive \
57 install-pdf-recursive install-ps-recursive install-recursive \
58 installcheck-recursive installdirs-recursive pdf-recursive \
59 ps-recursive uninstall-recursive
60 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
61 distclean-recursive maintainer-clean-recursive
62 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
63 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
64 distdir
65 ETAGS = etags
66 CTAGS = ctags
67 DIST_SUBDIRS = $(SUBDIRS)
68 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
69 am__relativize = \
70 dir0=`pwd`; \
71 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
72 sed_rest='s,^[^/]*/*,,'; \
73 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
74 sed_butlast='s,/*[^/]*$$,,'; \
75 while test -n "$$dir1"; do \
76 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
77 if test "$$first" != "."; then \
78 if test "$$first" = ".."; then \
79 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
80 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
81 else \
82 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
83 if test "$$first2" = "$$first"; then \
84 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
85 else \
86 dir2="../$$dir2"; \
87 fi; \
88 dir0="$$dir0"/"$$first"; \
89 fi; \
90 fi; \
91 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
92 done; \
93 reldir="$$dir2"
94 ACLOCAL = @ACLOCAL@
95 AMTAR = @AMTAR@
96 AR = @AR@
97 AUTOCONF = @AUTOCONF@
98 AUTOHEADER = @AUTOHEADER@
99 AUTOMAKE = @AUTOMAKE@
100 AWK = @AWK@
101 CC = @CC@
102 CCDEPMODE = @CCDEPMODE@
103 CFLAGS = @CFLAGS@
104 CPP = @CPP@
105 CPPFLAGS = @CPPFLAGS@
106 CYGPATH_W = @CYGPATH_W@
107 DATADIRNAME = @DATADIRNAME@
108 DEFS = @DEFS@
109 DEPDIR = @DEPDIR@
110 DLLTOOL = @DLLTOOL@
111 DSYMUTIL = @DSYMUTIL@
112 DUMPBIN = @DUMPBIN@
113 ECHO_C = @ECHO_C@
114 ECHO_N = @ECHO_N@
115 ECHO_T = @ECHO_T@
116 EGREP = @EGREP@
117 EXEEXT = @EXEEXT@
118 FGREP = @FGREP@
119 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
120 GMSGFMT = @GMSGFMT@
121 GMSGFMT_015 = @GMSGFMT_015@
122 GP_MODULES_PATH = @GP_MODULES_PATH@
123 GREP = @GREP@
124 INSTALL = @INSTALL@
125 INSTALL_DATA = @INSTALL_DATA@
126 INSTALL_PROGRAM = @INSTALL_PROGRAM@
127 INSTALL_SCRIPT = @INSTALL_SCRIPT@
128 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
129 INTLLIBS = @INTLLIBS@
130 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
131 LD = @LD@
132 LDFLAGS = @LDFLAGS@
133 LIBICONV = @LIBICONV@
134 LIBINTL = @LIBINTL@
135 LIBOBJS = @LIBOBJS@
136 LIBS = @LIBS@
137 LIBTOOL = @LIBTOOL@
138 LIPO = @LIPO@
139 LN_S = @LN_S@
140 LTLIBICONV = @LTLIBICONV@
141 LTLIBINTL = @LTLIBINTL@
142 LTLIBOBJS = @LTLIBOBJS@
143 MAINT = @MAINT@
144 MAKEINFO = @MAKEINFO@
145 MANIFEST_TOOL = @MANIFEST_TOOL@
146 MKDIR_P = @MKDIR_P@
147 MSGFMT = @MSGFMT@
148 MSGFMT_015 = @MSGFMT_015@
149 MSGMERGE = @MSGMERGE@
150 NM = @NM@
151 NMEDIT = @NMEDIT@
152 OBJDUMP = @OBJDUMP@
153 OBJEXT = @OBJEXT@
154 OTOOL = @OTOOL@
155 OTOOL64 = @OTOOL64@
156 PACKAGE = @PACKAGE@
157 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
158 PACKAGE_NAME = @PACKAGE_NAME@
159 PACKAGE_STRING = @PACKAGE_STRING@
160 PACKAGE_TARNAME = @PACKAGE_TARNAME@
161 PACKAGE_URL = @PACKAGE_URL@
162 PACKAGE_VERSION = @PACKAGE_VERSION@
163 PATH_SEPARATOR = @PATH_SEPARATOR@
164 PA_MODULES_PATH = @PA_MODULES_PATH@
165 PA_VERSION = @PA_VERSION@
166 PE_CFLAGS = @PE_CFLAGS@
167 PE_MODULES_PATH = @PE_MODULES_PATH@
168 PH_CONFIG_PATH = @PH_CONFIG_PATH@
169 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
170 PH_MODULES_PATH = @PH_MODULES_PATH@
171 PKG_CONFIG = @PKG_CONFIG@
172 POSUB = @POSUB@
173 PY_CFLAGS = @PY_CFLAGS@
174 PY_MODULES_PATH = @PY_MODULES_PATH@
175 PY_VERSION = @PY_VERSION@
176 RANLIB = @RANLIB@
177 RU_CFLAGS = @RU_CFLAGS@
178 RU_MODULES_PATH = @RU_MODULES_PATH@
179 RU_VERSION = @RU_VERSION@
180 SED = @SED@
181 SET_MAKE = @SET_MAKE@
182 SHELL = @SHELL@
183 STRIP = @STRIP@
184 USE_NLS = @USE_NLS@
185 VERSION = @VERSION@
186 VERSION_INFO = @VERSION_INFO@
187 XGETTEXT = @XGETTEXT@
188 XGETTEXT_015 = @XGETTEXT_015@
189 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
190 abs_builddir = @abs_builddir@
191 abs_srcdir = @abs_srcdir@
192 abs_top_builddir = @abs_top_builddir@
193 abs_top_srcdir = @abs_top_srcdir@
194 ac_ct_AR = @ac_ct_AR@
195 ac_ct_CC = @ac_ct_CC@
196 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
197 am__include = @am__include@
198 am__leading_dot = @am__leading_dot@
199 am__quote = @am__quote@
200 am__tar = @am__tar@
201 am__untar = @am__untar@
202 bindir = @bindir@
203 build = @build@
204 build_alias = @build_alias@
205 build_cpu = @build_cpu@
206 build_os = @build_os@
207 build_vendor = @build_vendor@
208 builddir = @builddir@
209 datadir = @datadir@
210 datarootdir = @datarootdir@
211 docdir = @docdir@
212 dvidir = @dvidir@
213 exec_prefix = @exec_prefix@
214 have_fpc = @have_fpc@
215 have_gpc = @have_gpc@
216 have_perl = @have_perl@
217 have_php = @have_php@
218 have_php_config = @have_php_config@
219 have_python = @have_python@
220 have_ruby = @have_ruby@
221 have_swig = @have_swig@
222 host = @host@
223 host_alias = @host_alias@
224 host_cpu = @host_cpu@
225 host_os = @host_os@
226 host_vendor = @host_vendor@
227 htmldir = @htmldir@
228 includedir = @includedir@
229 infodir = @infodir@
230 install_sh = @install_sh@
231 libdir = @libdir@
232 libexecdir = @libexecdir@
233 localedir = @localedir@
234 localstatedir = @localstatedir@
235 mandir = @mandir@
236 mkdir_p = @mkdir_p@
237 oldincludedir = @oldincludedir@
238 pdfdir = @pdfdir@
239 prefix = @prefix@
240 program_transform_name = @program_transform_name@
241 psdir = @psdir@
242 sbindir = @sbindir@
243 sharedstatedir = @sharedstatedir@
244 srcdir = @srcdir@
245 sysconfdir = @sysconfdir@
246 target_alias = @target_alias@
247 top_build_prefix = @top_build_prefix@
248 top_builddir = @top_builddir@
249 top_srcdir = @top_srcdir@
250 SUBDIRS = man
251 all: all-recursive
252
253 .SUFFIXES:
254 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
255 @for dep in $?; do \
256 case '$(am__configure_deps)' in \
257 *$$dep*) \
258 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
259 && { if test -f $@; then exit 0; else break; fi; }; \
260 exit 1;; \
261 esac; \
262 done; \
263 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
264 $(am__cd) $(top_srcdir) && \
265 $(AUTOMAKE) --gnu docs/Makefile
266 .PRECIOUS: Makefile
267 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
268 @case '$?' in \
269 *config.status*) \
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
271 *) \
272 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
273 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
274 esac;
275
276 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
277 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278
279 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
282 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
283 $(am__aclocal_m4_deps):
284
285 mostlyclean-libtool:
286 -rm -f *.lo
287
288 clean-libtool:
289 -rm -rf .libs _libs
290
291 # This directory's subdirectories are mostly independent; you can cd
292 # into them and run `make' without going through this Makefile.
293 # To change the values of `make' variables: instead of editing Makefiles,
294 # (1) if the variable is set in `config.status', edit `config.status'
295 # (which will cause the Makefiles to be regenerated when you run `make');
296 # (2) otherwise, pass the desired values on the `make' command line.
297 $(RECURSIVE_TARGETS):
298 @fail= failcom='exit 1'; \
299 for f in x $$MAKEFLAGS; do \
300 case $$f in \
301 *=* | --[!k]*);; \
302 *k*) failcom='fail=yes';; \
303 esac; \
304 done; \
305 dot_seen=no; \
306 target=`echo $@ | sed s/-recursive//`; \
307 list='$(SUBDIRS)'; for subdir in $$list; do \
308 echo "Making $$target in $$subdir"; \
309 if test "$$subdir" = "."; then \
310 dot_seen=yes; \
311 local_target="$$target-am"; \
312 else \
313 local_target="$$target"; \
314 fi; \
315 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
316 || eval $$failcom; \
317 done; \
318 if test "$$dot_seen" = "no"; then \
319 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
320 fi; test -z "$$fail"
321
322 $(RECURSIVE_CLEAN_TARGETS):
323 @fail= failcom='exit 1'; \
324 for f in x $$MAKEFLAGS; do \
325 case $$f in \
326 *=* | --[!k]*);; \
327 *k*) failcom='fail=yes';; \
328 esac; \
329 done; \
330 dot_seen=no; \
331 case "$@" in \
332 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
333 *) list='$(SUBDIRS)' ;; \
334 esac; \
335 rev=''; for subdir in $$list; do \
336 if test "$$subdir" = "."; then :; else \
337 rev="$$subdir $$rev"; \
338 fi; \
339 done; \
340 rev="$$rev ."; \
341 target=`echo $@ | sed s/-recursive//`; \
342 for subdir in $$rev; do \
343 echo "Making $$target in $$subdir"; \
344 if test "$$subdir" = "."; then \
345 local_target="$$target-am"; \
346 else \
347 local_target="$$target"; \
348 fi; \
349 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
350 || eval $$failcom; \
351 done && test -z "$$fail"
352 tags-recursive:
353 list='$(SUBDIRS)'; for subdir in $$list; do \
354 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
355 done
356 ctags-recursive:
357 list='$(SUBDIRS)'; for subdir in $$list; do \
358 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
359 done
360
361 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369 tags: TAGS
370
371 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 set x; \
374 here=`pwd`; \
375 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
376 include_option=--etags-include; \
377 empty_fix=.; \
378 else \
379 include_option=--include; \
380 empty_fix=; \
381 fi; \
382 list='$(SUBDIRS)'; for subdir in $$list; do \
383 if test "$$subdir" = .; then :; else \
384 test ! -f $$subdir/TAGS || \
385 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
386 fi; \
387 done; \
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
394 shift; \
395 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
396 test -n "$$unique" || unique=$$empty_fix; \
397 if test $$# -gt 0; then \
398 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
399 "$$@" $$unique; \
400 else \
401 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
402 $$unique; \
403 fi; \
404 fi
405 ctags: CTAGS
406 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
407 $(TAGS_FILES) $(LISP)
408 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | \
412 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413 END { if (nonempty) { for (i in files) print i; }; }'`; \
414 test -z "$(CTAGS_ARGS)$$unique" \
415 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
416 $$unique
417
418 GTAGS:
419 here=`$(am__cd) $(top_builddir) && pwd` \
420 && $(am__cd) $(top_srcdir) \
421 && gtags -i $(GTAGS_ARGS) "$$here"
422
423 distclean-tags:
424 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
425
426 distdir: $(DISTFILES)
427 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
428 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
429 list='$(DISTFILES)'; \
430 dist_files=`for file in $$list; do echo $$file; done | \
431 sed -e "s|^$$srcdirstrip/||;t" \
432 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
433 case $$dist_files in \
434 */*) $(MKDIR_P) `echo "$$dist_files" | \
435 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
436 sort -u` ;; \
437 esac; \
438 for file in $$dist_files; do \
439 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
440 if test -d $$d/$$file; then \
441 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
442 if test -d "$(distdir)/$$file"; then \
443 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
444 fi; \
445 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
446 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
447 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
448 fi; \
449 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
450 else \
451 test -f "$(distdir)/$$file" \
452 || cp -p $$d/$$file "$(distdir)/$$file" \
453 || exit 1; \
454 fi; \
455 done
456 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
457 if test "$$subdir" = .; then :; else \
458 test -d "$(distdir)/$$subdir" \
459 || $(MKDIR_P) "$(distdir)/$$subdir" \
460 || exit 1; \
461 fi; \
462 done
463 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
464 if test "$$subdir" = .; then :; else \
465 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
466 $(am__relativize); \
467 new_distdir=$$reldir; \
468 dir1=$$subdir; dir2="$(top_distdir)"; \
469 $(am__relativize); \
470 new_top_distdir=$$reldir; \
471 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
472 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
473 ($(am__cd) $$subdir && \
474 $(MAKE) $(AM_MAKEFLAGS) \
475 top_distdir="$$new_top_distdir" \
476 distdir="$$new_distdir" \
477 am__remove_distdir=: \
478 am__skip_length_check=: \
479 am__skip_mode_fix=: \
480 distdir) \
481 || exit 1; \
482 fi; \
483 done
484 check-am: all-am
485 check: check-recursive
486 all-am: Makefile
487 installdirs: installdirs-recursive
488 installdirs-am:
489 install: install-recursive
490 install-exec: install-exec-recursive
491 install-data: install-data-recursive
492 uninstall: uninstall-recursive
493
494 install-am: all-am
495 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
496
497 installcheck: installcheck-recursive
498 install-strip:
499 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
500 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
501 `test -z '$(STRIP)' || \
502 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
503 mostlyclean-generic:
504
505 clean-generic:
506
507 distclean-generic:
508 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
509 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
510
511 maintainer-clean-generic:
512 @echo "This command is intended for maintainers to use"
513 @echo "it deletes files that may require special tools to rebuild."
514 clean: clean-recursive
515
516 clean-am: clean-generic clean-libtool mostlyclean-am
517
518 distclean: distclean-recursive
519 -rm -f Makefile
520 distclean-am: clean-am distclean-generic distclean-tags
521
522 dvi: dvi-recursive
523
524 dvi-am:
525
526 html: html-recursive
527
528 html-am:
529
530 info: info-recursive
531
532 info-am:
533
534 install-data-am:
535
536 install-dvi: install-dvi-recursive
537
538 install-dvi-am:
539
540 install-exec-am:
541
542 install-html: install-html-recursive
543
544 install-html-am:
545
546 install-info: install-info-recursive
547
548 install-info-am:
549
550 install-man:
551
552 install-pdf: install-pdf-recursive
553
554 install-pdf-am:
555
556 install-ps: install-ps-recursive
557
558 install-ps-am:
559
560 installcheck-am:
561
562 maintainer-clean: maintainer-clean-recursive
563 -rm -f Makefile
564 maintainer-clean-am: distclean-am maintainer-clean-generic
565
566 mostlyclean: mostlyclean-recursive
567
568 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
569
570 pdf: pdf-recursive
571
572 pdf-am:
573
574 ps: ps-recursive
575
576 ps-am:
577
578 uninstall-am:
579
580 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
581 install-am install-strip tags-recursive
582
583 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
584 all all-am check check-am clean clean-generic clean-libtool \
585 ctags ctags-recursive distclean distclean-generic \
586 distclean-libtool distclean-tags distdir dvi dvi-am html \
587 html-am info info-am install install-am install-data \
588 install-data-am install-dvi install-dvi-am install-exec \
589 install-exec-am install-html install-html-am install-info \
590 install-info-am install-man install-pdf install-pdf-am \
591 install-ps install-ps-am install-strip installcheck \
592 installcheck-am installdirs installdirs-am maintainer-clean \
593 maintainer-clean-generic mostlyclean mostlyclean-generic \
594 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
595 uninstall uninstall-am
596
597
598 # Tell versions [3.59,3.63) of GNU make to not export all variables.
599 # Otherwise a system limit (for SysV at least) may be exceeded.
600 .NOEXPORT:
0 SUBDIRS = man1 man3
1
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = docs/man
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54 html-recursive info-recursive install-data-recursive \
55 install-dvi-recursive install-exec-recursive \
56 install-html-recursive install-info-recursive \
57 install-pdf-recursive install-ps-recursive install-recursive \
58 installcheck-recursive installdirs-recursive pdf-recursive \
59 ps-recursive uninstall-recursive
60 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
61 distclean-recursive maintainer-clean-recursive
62 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
63 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
64 distdir
65 ETAGS = etags
66 CTAGS = ctags
67 DIST_SUBDIRS = $(SUBDIRS)
68 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
69 am__relativize = \
70 dir0=`pwd`; \
71 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
72 sed_rest='s,^[^/]*/*,,'; \
73 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
74 sed_butlast='s,/*[^/]*$$,,'; \
75 while test -n "$$dir1"; do \
76 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
77 if test "$$first" != "."; then \
78 if test "$$first" = ".."; then \
79 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
80 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
81 else \
82 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
83 if test "$$first2" = "$$first"; then \
84 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
85 else \
86 dir2="../$$dir2"; \
87 fi; \
88 dir0="$$dir0"/"$$first"; \
89 fi; \
90 fi; \
91 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
92 done; \
93 reldir="$$dir2"
94 ACLOCAL = @ACLOCAL@
95 AMTAR = @AMTAR@
96 AR = @AR@
97 AUTOCONF = @AUTOCONF@
98 AUTOHEADER = @AUTOHEADER@
99 AUTOMAKE = @AUTOMAKE@
100 AWK = @AWK@
101 CC = @CC@
102 CCDEPMODE = @CCDEPMODE@
103 CFLAGS = @CFLAGS@
104 CPP = @CPP@
105 CPPFLAGS = @CPPFLAGS@
106 CYGPATH_W = @CYGPATH_W@
107 DATADIRNAME = @DATADIRNAME@
108 DEFS = @DEFS@
109 DEPDIR = @DEPDIR@
110 DLLTOOL = @DLLTOOL@
111 DSYMUTIL = @DSYMUTIL@
112 DUMPBIN = @DUMPBIN@
113 ECHO_C = @ECHO_C@
114 ECHO_N = @ECHO_N@
115 ECHO_T = @ECHO_T@
116 EGREP = @EGREP@
117 EXEEXT = @EXEEXT@
118 FGREP = @FGREP@
119 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
120 GMSGFMT = @GMSGFMT@
121 GMSGFMT_015 = @GMSGFMT_015@
122 GP_MODULES_PATH = @GP_MODULES_PATH@
123 GREP = @GREP@
124 INSTALL = @INSTALL@
125 INSTALL_DATA = @INSTALL_DATA@
126 INSTALL_PROGRAM = @INSTALL_PROGRAM@
127 INSTALL_SCRIPT = @INSTALL_SCRIPT@
128 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
129 INTLLIBS = @INTLLIBS@
130 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
131 LD = @LD@
132 LDFLAGS = @LDFLAGS@
133 LIBICONV = @LIBICONV@
134 LIBINTL = @LIBINTL@
135 LIBOBJS = @LIBOBJS@
136 LIBS = @LIBS@
137 LIBTOOL = @LIBTOOL@
138 LIPO = @LIPO@
139 LN_S = @LN_S@
140 LTLIBICONV = @LTLIBICONV@
141 LTLIBINTL = @LTLIBINTL@
142 LTLIBOBJS = @LTLIBOBJS@
143 MAINT = @MAINT@
144 MAKEINFO = @MAKEINFO@
145 MANIFEST_TOOL = @MANIFEST_TOOL@
146 MKDIR_P = @MKDIR_P@
147 MSGFMT = @MSGFMT@
148 MSGFMT_015 = @MSGFMT_015@
149 MSGMERGE = @MSGMERGE@
150 NM = @NM@
151 NMEDIT = @NMEDIT@
152 OBJDUMP = @OBJDUMP@
153 OBJEXT = @OBJEXT@
154 OTOOL = @OTOOL@
155 OTOOL64 = @OTOOL64@
156 PACKAGE = @PACKAGE@
157 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
158 PACKAGE_NAME = @PACKAGE_NAME@
159 PACKAGE_STRING = @PACKAGE_STRING@
160 PACKAGE_TARNAME = @PACKAGE_TARNAME@
161 PACKAGE_URL = @PACKAGE_URL@
162 PACKAGE_VERSION = @PACKAGE_VERSION@
163 PATH_SEPARATOR = @PATH_SEPARATOR@
164 PA_MODULES_PATH = @PA_MODULES_PATH@
165 PA_VERSION = @PA_VERSION@
166 PE_CFLAGS = @PE_CFLAGS@
167 PE_MODULES_PATH = @PE_MODULES_PATH@
168 PH_CONFIG_PATH = @PH_CONFIG_PATH@
169 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
170 PH_MODULES_PATH = @PH_MODULES_PATH@
171 PKG_CONFIG = @PKG_CONFIG@
172 POSUB = @POSUB@
173 PY_CFLAGS = @PY_CFLAGS@
174 PY_MODULES_PATH = @PY_MODULES_PATH@
175 PY_VERSION = @PY_VERSION@
176 RANLIB = @RANLIB@
177 RU_CFLAGS = @RU_CFLAGS@
178 RU_MODULES_PATH = @RU_MODULES_PATH@
179 RU_VERSION = @RU_VERSION@
180 SED = @SED@
181 SET_MAKE = @SET_MAKE@
182 SHELL = @SHELL@
183 STRIP = @STRIP@
184 USE_NLS = @USE_NLS@
185 VERSION = @VERSION@
186 VERSION_INFO = @VERSION_INFO@
187 XGETTEXT = @XGETTEXT@
188 XGETTEXT_015 = @XGETTEXT_015@
189 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
190 abs_builddir = @abs_builddir@
191 abs_srcdir = @abs_srcdir@
192 abs_top_builddir = @abs_top_builddir@
193 abs_top_srcdir = @abs_top_srcdir@
194 ac_ct_AR = @ac_ct_AR@
195 ac_ct_CC = @ac_ct_CC@
196 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
197 am__include = @am__include@
198 am__leading_dot = @am__leading_dot@
199 am__quote = @am__quote@
200 am__tar = @am__tar@
201 am__untar = @am__untar@
202 bindir = @bindir@
203 build = @build@
204 build_alias = @build_alias@
205 build_cpu = @build_cpu@
206 build_os = @build_os@
207 build_vendor = @build_vendor@
208 builddir = @builddir@
209 datadir = @datadir@
210 datarootdir = @datarootdir@
211 docdir = @docdir@
212 dvidir = @dvidir@
213 exec_prefix = @exec_prefix@
214 have_fpc = @have_fpc@
215 have_gpc = @have_gpc@
216 have_perl = @have_perl@
217 have_php = @have_php@
218 have_php_config = @have_php_config@
219 have_python = @have_python@
220 have_ruby = @have_ruby@
221 have_swig = @have_swig@
222 host = @host@
223 host_alias = @host_alias@
224 host_cpu = @host_cpu@
225 host_os = @host_os@
226 host_vendor = @host_vendor@
227 htmldir = @htmldir@
228 includedir = @includedir@
229 infodir = @infodir@
230 install_sh = @install_sh@
231 libdir = @libdir@
232 libexecdir = @libexecdir@
233 localedir = @localedir@
234 localstatedir = @localstatedir@
235 mandir = @mandir@
236 mkdir_p = @mkdir_p@
237 oldincludedir = @oldincludedir@
238 pdfdir = @pdfdir@
239 prefix = @prefix@
240 program_transform_name = @program_transform_name@
241 psdir = @psdir@
242 sbindir = @sbindir@
243 sharedstatedir = @sharedstatedir@
244 srcdir = @srcdir@
245 sysconfdir = @sysconfdir@
246 target_alias = @target_alias@
247 top_build_prefix = @top_build_prefix@
248 top_builddir = @top_builddir@
249 top_srcdir = @top_srcdir@
250 SUBDIRS = man1 man3
251 all: all-recursive
252
253 .SUFFIXES:
254 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
255 @for dep in $?; do \
256 case '$(am__configure_deps)' in \
257 *$$dep*) \
258 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
259 && { if test -f $@; then exit 0; else break; fi; }; \
260 exit 1;; \
261 esac; \
262 done; \
263 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/Makefile'; \
264 $(am__cd) $(top_srcdir) && \
265 $(AUTOMAKE) --gnu docs/man/Makefile
266 .PRECIOUS: Makefile
267 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
268 @case '$?' in \
269 *config.status*) \
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
271 *) \
272 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
273 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
274 esac;
275
276 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
277 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278
279 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
282 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
283 $(am__aclocal_m4_deps):
284
285 mostlyclean-libtool:
286 -rm -f *.lo
287
288 clean-libtool:
289 -rm -rf .libs _libs
290
291 # This directory's subdirectories are mostly independent; you can cd
292 # into them and run `make' without going through this Makefile.
293 # To change the values of `make' variables: instead of editing Makefiles,
294 # (1) if the variable is set in `config.status', edit `config.status'
295 # (which will cause the Makefiles to be regenerated when you run `make');
296 # (2) otherwise, pass the desired values on the `make' command line.
297 $(RECURSIVE_TARGETS):
298 @fail= failcom='exit 1'; \
299 for f in x $$MAKEFLAGS; do \
300 case $$f in \
301 *=* | --[!k]*);; \
302 *k*) failcom='fail=yes';; \
303 esac; \
304 done; \
305 dot_seen=no; \
306 target=`echo $@ | sed s/-recursive//`; \
307 list='$(SUBDIRS)'; for subdir in $$list; do \
308 echo "Making $$target in $$subdir"; \
309 if test "$$subdir" = "."; then \
310 dot_seen=yes; \
311 local_target="$$target-am"; \
312 else \
313 local_target="$$target"; \
314 fi; \
315 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
316 || eval $$failcom; \
317 done; \
318 if test "$$dot_seen" = "no"; then \
319 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
320 fi; test -z "$$fail"
321
322 $(RECURSIVE_CLEAN_TARGETS):
323 @fail= failcom='exit 1'; \
324 for f in x $$MAKEFLAGS; do \
325 case $$f in \
326 *=* | --[!k]*);; \
327 *k*) failcom='fail=yes';; \
328 esac; \
329 done; \
330 dot_seen=no; \
331 case "$@" in \
332 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
333 *) list='$(SUBDIRS)' ;; \
334 esac; \
335 rev=''; for subdir in $$list; do \
336 if test "$$subdir" = "."; then :; else \
337 rev="$$subdir $$rev"; \
338 fi; \
339 done; \
340 rev="$$rev ."; \
341 target=`echo $@ | sed s/-recursive//`; \
342 for subdir in $$rev; do \
343 echo "Making $$target in $$subdir"; \
344 if test "$$subdir" = "."; then \
345 local_target="$$target-am"; \
346 else \
347 local_target="$$target"; \
348 fi; \
349 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
350 || eval $$failcom; \
351 done && test -z "$$fail"
352 tags-recursive:
353 list='$(SUBDIRS)'; for subdir in $$list; do \
354 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
355 done
356 ctags-recursive:
357 list='$(SUBDIRS)'; for subdir in $$list; do \
358 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
359 done
360
361 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369 tags: TAGS
370
371 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 set x; \
374 here=`pwd`; \
375 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
376 include_option=--etags-include; \
377 empty_fix=.; \
378 else \
379 include_option=--include; \
380 empty_fix=; \
381 fi; \
382 list='$(SUBDIRS)'; for subdir in $$list; do \
383 if test "$$subdir" = .; then :; else \
384 test ! -f $$subdir/TAGS || \
385 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
386 fi; \
387 done; \
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
394 shift; \
395 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
396 test -n "$$unique" || unique=$$empty_fix; \
397 if test $$# -gt 0; then \
398 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
399 "$$@" $$unique; \
400 else \
401 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
402 $$unique; \
403 fi; \
404 fi
405 ctags: CTAGS
406 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
407 $(TAGS_FILES) $(LISP)
408 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | \
412 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413 END { if (nonempty) { for (i in files) print i; }; }'`; \
414 test -z "$(CTAGS_ARGS)$$unique" \
415 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
416 $$unique
417
418 GTAGS:
419 here=`$(am__cd) $(top_builddir) && pwd` \
420 && $(am__cd) $(top_srcdir) \
421 && gtags -i $(GTAGS_ARGS) "$$here"
422
423 distclean-tags:
424 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
425
426 distdir: $(DISTFILES)
427 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
428 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
429 list='$(DISTFILES)'; \
430 dist_files=`for file in $$list; do echo $$file; done | \
431 sed -e "s|^$$srcdirstrip/||;t" \
432 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
433 case $$dist_files in \
434 */*) $(MKDIR_P) `echo "$$dist_files" | \
435 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
436 sort -u` ;; \
437 esac; \
438 for file in $$dist_files; do \
439 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
440 if test -d $$d/$$file; then \
441 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
442 if test -d "$(distdir)/$$file"; then \
443 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
444 fi; \
445 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
446 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
447 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
448 fi; \
449 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
450 else \
451 test -f "$(distdir)/$$file" \
452 || cp -p $$d/$$file "$(distdir)/$$file" \
453 || exit 1; \
454 fi; \
455 done
456 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
457 if test "$$subdir" = .; then :; else \
458 test -d "$(distdir)/$$subdir" \
459 || $(MKDIR_P) "$(distdir)/$$subdir" \
460 || exit 1; \
461 fi; \
462 done
463 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
464 if test "$$subdir" = .; then :; else \
465 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
466 $(am__relativize); \
467 new_distdir=$$reldir; \
468 dir1=$$subdir; dir2="$(top_distdir)"; \
469 $(am__relativize); \
470 new_top_distdir=$$reldir; \
471 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
472 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
473 ($(am__cd) $$subdir && \
474 $(MAKE) $(AM_MAKEFLAGS) \
475 top_distdir="$$new_top_distdir" \
476 distdir="$$new_distdir" \
477 am__remove_distdir=: \
478 am__skip_length_check=: \
479 am__skip_mode_fix=: \
480 distdir) \
481 || exit 1; \
482 fi; \
483 done
484 check-am: all-am
485 check: check-recursive
486 all-am: Makefile
487 installdirs: installdirs-recursive
488 installdirs-am:
489 install: install-recursive
490 install-exec: install-exec-recursive
491 install-data: install-data-recursive
492 uninstall: uninstall-recursive
493
494 install-am: all-am
495 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
496
497 installcheck: installcheck-recursive
498 install-strip:
499 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
500 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
501 `test -z '$(STRIP)' || \
502 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
503 mostlyclean-generic:
504
505 clean-generic:
506
507 distclean-generic:
508 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
509 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
510
511 maintainer-clean-generic:
512 @echo "This command is intended for maintainers to use"
513 @echo "it deletes files that may require special tools to rebuild."
514 clean: clean-recursive
515
516 clean-am: clean-generic clean-libtool mostlyclean-am
517
518 distclean: distclean-recursive
519 -rm -f Makefile
520 distclean-am: clean-am distclean-generic distclean-tags
521
522 dvi: dvi-recursive
523
524 dvi-am:
525
526 html: html-recursive
527
528 html-am:
529
530 info: info-recursive
531
532 info-am:
533
534 install-data-am:
535
536 install-dvi: install-dvi-recursive
537
538 install-dvi-am:
539
540 install-exec-am:
541
542 install-html: install-html-recursive
543
544 install-html-am:
545
546 install-info: install-info-recursive
547
548 install-info-am:
549
550 install-man:
551
552 install-pdf: install-pdf-recursive
553
554 install-pdf-am:
555
556 install-ps: install-ps-recursive
557
558 install-ps-am:
559
560 installcheck-am:
561
562 maintainer-clean: maintainer-clean-recursive
563 -rm -f Makefile
564 maintainer-clean-am: distclean-am maintainer-clean-generic
565
566 mostlyclean: mostlyclean-recursive
567
568 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
569
570 pdf: pdf-recursive
571
572 pdf-am:
573
574 ps: ps-recursive
575
576 ps-am:
577
578 uninstall-am:
579
580 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
581 install-am install-strip tags-recursive
582
583 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
584 all all-am check check-am clean clean-generic clean-libtool \
585 ctags ctags-recursive distclean distclean-generic \
586 distclean-libtool distclean-tags distdir dvi dvi-am html \
587 html-am info info-am install install-am install-data \
588 install-data-am install-dvi install-dvi-am install-exec \
589 install-exec-am install-html install-html-am install-info \
590 install-info-am install-man install-pdf install-pdf-am \
591 install-ps install-ps-am install-strip installcheck \
592 installcheck-am installdirs installdirs-am maintainer-clean \
593 maintainer-clean-generic mostlyclean mostlyclean-generic \
594 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
595 uninstall uninstall-am
596
597
598 # Tell versions [3.59,3.63) of GNU make to not export all variables.
599 # Otherwise a system limit (for SysV at least) may be exceeded.
600 .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.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = docs/man/man1
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_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 = f=`echo $$p | sed -e 's|^.*/||'`;
59 am__install_max = 40
60 am__nobase_strip_setup = \
61 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
62 am__nobase_strip = \
63 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
64 am__nobase_list = $(am__nobase_strip_setup); \
65 for p in $$list; do echo "$$p $$p"; done | \
66 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
67 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
68 if (++n[$$2] == $(am__install_max)) \
69 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
70 END { for (dir in files) print dir, files[dir] }'
71 am__base_list = \
72 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
73 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
74 man1dir = $(mandir)/man1
75 am__installdirs = "$(DESTDIR)$(man1dir)"
76 NROFF = nroff
77 MANS = $(man_MANS)
78 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79 ACLOCAL = @ACLOCAL@
80 AMTAR = @AMTAR@
81 AR = @AR@
82 AUTOCONF = @AUTOCONF@
83 AUTOHEADER = @AUTOHEADER@
84 AUTOMAKE = @AUTOMAKE@
85 AWK = @AWK@
86 CC = @CC@
87 CCDEPMODE = @CCDEPMODE@
88 CFLAGS = @CFLAGS@
89 CPP = @CPP@
90 CPPFLAGS = @CPPFLAGS@
91 CYGPATH_W = @CYGPATH_W@
92 DATADIRNAME = @DATADIRNAME@
93 DEFS = @DEFS@
94 DEPDIR = @DEPDIR@
95 DLLTOOL = @DLLTOOL@
96 DSYMUTIL = @DSYMUTIL@
97 DUMPBIN = @DUMPBIN@
98 ECHO_C = @ECHO_C@
99 ECHO_N = @ECHO_N@
100 ECHO_T = @ECHO_T@
101 EGREP = @EGREP@
102 EXEEXT = @EXEEXT@
103 FGREP = @FGREP@
104 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
105 GMSGFMT = @GMSGFMT@
106 GMSGFMT_015 = @GMSGFMT_015@
107 GP_MODULES_PATH = @GP_MODULES_PATH@
108 GREP = @GREP@
109 INSTALL = @INSTALL@
110 INSTALL_DATA = @INSTALL_DATA@
111 INSTALL_PROGRAM = @INSTALL_PROGRAM@
112 INSTALL_SCRIPT = @INSTALL_SCRIPT@
113 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
114 INTLLIBS = @INTLLIBS@
115 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
116 LD = @LD@
117 LDFLAGS = @LDFLAGS@
118 LIBICONV = @LIBICONV@
119 LIBINTL = @LIBINTL@
120 LIBOBJS = @LIBOBJS@
121 LIBS = @LIBS@
122 LIBTOOL = @LIBTOOL@
123 LIPO = @LIPO@
124 LN_S = @LN_S@
125 LTLIBICONV = @LTLIBICONV@
126 LTLIBINTL = @LTLIBINTL@
127 LTLIBOBJS = @LTLIBOBJS@
128 MAINT = @MAINT@
129 MAKEINFO = @MAKEINFO@
130 MANIFEST_TOOL = @MANIFEST_TOOL@
131 MKDIR_P = @MKDIR_P@
132 MSGFMT = @MSGFMT@
133 MSGFMT_015 = @MSGFMT_015@
134 MSGMERGE = @MSGMERGE@
135 NM = @NM@
136 NMEDIT = @NMEDIT@
137 OBJDUMP = @OBJDUMP@
138 OBJEXT = @OBJEXT@
139 OTOOL = @OTOOL@
140 OTOOL64 = @OTOOL64@
141 PACKAGE = @PACKAGE@
142 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
143 PACKAGE_NAME = @PACKAGE_NAME@
144 PACKAGE_STRING = @PACKAGE_STRING@
145 PACKAGE_TARNAME = @PACKAGE_TARNAME@
146 PACKAGE_URL = @PACKAGE_URL@
147 PACKAGE_VERSION = @PACKAGE_VERSION@
148 PATH_SEPARATOR = @PATH_SEPARATOR@
149 PA_MODULES_PATH = @PA_MODULES_PATH@
150 PA_VERSION = @PA_VERSION@
151 PE_CFLAGS = @PE_CFLAGS@
152 PE_MODULES_PATH = @PE_MODULES_PATH@
153 PH_CONFIG_PATH = @PH_CONFIG_PATH@
154 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
155 PH_MODULES_PATH = @PH_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 RU_CFLAGS = @RU_CFLAGS@
163 RU_MODULES_PATH = @RU_MODULES_PATH@
164 RU_VERSION = @RU_VERSION@
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 XGETTEXT = @XGETTEXT@
173 XGETTEXT_015 = @XGETTEXT_015@
174 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
175 abs_builddir = @abs_builddir@
176 abs_srcdir = @abs_srcdir@
177 abs_top_builddir = @abs_top_builddir@
178 abs_top_srcdir = @abs_top_srcdir@
179 ac_ct_AR = @ac_ct_AR@
180 ac_ct_CC = @ac_ct_CC@
181 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
182 am__include = @am__include@
183 am__leading_dot = @am__leading_dot@
184 am__quote = @am__quote@
185 am__tar = @am__tar@
186 am__untar = @am__untar@
187 bindir = @bindir@
188 build = @build@
189 build_alias = @build_alias@
190 build_cpu = @build_cpu@
191 build_os = @build_os@
192 build_vendor = @build_vendor@
193 builddir = @builddir@
194 datadir = @datadir@
195 datarootdir = @datarootdir@
196 docdir = @docdir@
197 dvidir = @dvidir@
198 exec_prefix = @exec_prefix@
199 have_fpc = @have_fpc@
200 have_gpc = @have_gpc@
201 have_perl = @have_perl@
202 have_php = @have_php@
203 have_php_config = @have_php_config@
204 have_python = @have_python@
205 have_ruby = @have_ruby@
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 srcdir = @srcdir@
230 sysconfdir = @sysconfdir@
231 target_alias = @target_alias@
232 top_build_prefix = @top_build_prefix@
233 top_builddir = @top_builddir@
234 top_srcdir = @top_srcdir@
235 EXTRA_DIST = hdate.1 hcal.1
236 @WITH_HCAL_TRUE@man_MANS = hdate.1 hcal.1
237 all: all-am
238
239 .SUFFIXES:
240 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
245 && { if test -f $@; then exit 0; else break; fi; }; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/man1/Makefile'; \
250 $(am__cd) $(top_srcdir) && \
251 $(AUTOMAKE) --gnu docs/man/man1/Makefile
252 .PRECIOUS: Makefile
253 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269 $(am__aclocal_m4_deps):
270
271 mostlyclean-libtool:
272 -rm -f *.lo
273
274 clean-libtool:
275 -rm -rf .libs _libs
276 install-man1: $(man_MANS)
277 @$(NORMAL_INSTALL)
278 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
279 @list=''; test -n "$(man1dir)" || exit 0; \
280 { for i in $$list; do echo "$$i"; done; \
281 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
282 sed -n '/\.1[a-z]*$$/p'; \
283 } | while read p; do \
284 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
285 echo "$$d$$p"; echo "$$p"; \
286 done | \
287 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
288 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
289 sed 'N;N;s,\n, ,g' | { \
290 list=; while read file base inst; do \
291 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
292 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
293 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
294 fi; \
295 done; \
296 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
297 while read files; do \
298 test -z "$$files" || { \
299 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
300 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
301 done; }
302
303 uninstall-man1:
304 @$(NORMAL_UNINSTALL)
305 @list=''; test -n "$(man1dir)" || exit 0; \
306 files=`{ for i in $$list; do echo "$$i"; done; \
307 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
308 sed -n '/\.1[a-z]*$$/p'; \
309 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
310 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
311 test -z "$$files" || { \
312 echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
313 cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
314 tags: TAGS
315 TAGS:
316
317 ctags: CTAGS
318 CTAGS:
319
320
321 distdir: $(DISTFILES)
322 @list='$(MANS)'; if test -n "$$list"; then \
323 list=`for p in $$list; do \
324 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
325 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
326 if test -n "$$list" && \
327 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
328 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
329 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
330 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
331 echo " typically \`make maintainer-clean' will remove them" >&2; \
332 exit 1; \
333 else :; fi; \
334 else :; fi
335 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
336 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
337 list='$(DISTFILES)'; \
338 dist_files=`for file in $$list; do echo $$file; done | \
339 sed -e "s|^$$srcdirstrip/||;t" \
340 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
341 case $$dist_files in \
342 */*) $(MKDIR_P) `echo "$$dist_files" | \
343 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
344 sort -u` ;; \
345 esac; \
346 for file in $$dist_files; do \
347 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
348 if test -d $$d/$$file; then \
349 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
350 if test -d "$(distdir)/$$file"; then \
351 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
352 fi; \
353 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
354 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
355 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
356 fi; \
357 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
358 else \
359 test -f "$(distdir)/$$file" \
360 || cp -p $$d/$$file "$(distdir)/$$file" \
361 || exit 1; \
362 fi; \
363 done
364 check-am: all-am
365 check: check-am
366 all-am: Makefile $(MANS)
367 installdirs:
368 for dir in "$(DESTDIR)$(man1dir)"; do \
369 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
370 done
371 install: install-am
372 install-exec: install-exec-am
373 install-data: install-data-am
374 uninstall: uninstall-am
375
376 install-am: all-am
377 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
378
379 installcheck: installcheck-am
380 install-strip:
381 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
382 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
383 `test -z '$(STRIP)' || \
384 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
385 mostlyclean-generic:
386
387 clean-generic:
388
389 distclean-generic:
390 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
391 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
392
393 maintainer-clean-generic:
394 @echo "This command is intended for maintainers to use"
395 @echo "it deletes files that may require special tools to rebuild."
396 clean: clean-am
397
398 clean-am: clean-generic clean-libtool mostlyclean-am
399
400 distclean: distclean-am
401 -rm -f Makefile
402 distclean-am: clean-am distclean-generic
403
404 dvi: dvi-am
405
406 dvi-am:
407
408 html: html-am
409
410 html-am:
411
412 info: info-am
413
414 info-am:
415
416 install-data-am: install-man
417
418 install-dvi: install-dvi-am
419
420 install-dvi-am:
421
422 install-exec-am:
423
424 install-html: install-html-am
425
426 install-html-am:
427
428 install-info: install-info-am
429
430 install-info-am:
431
432 install-man: install-man1
433
434 install-pdf: install-pdf-am
435
436 install-pdf-am:
437
438 install-ps: install-ps-am
439
440 install-ps-am:
441
442 installcheck-am:
443
444 maintainer-clean: maintainer-clean-am
445 -rm -f Makefile
446 maintainer-clean-am: distclean-am maintainer-clean-generic
447
448 mostlyclean: mostlyclean-am
449
450 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
451
452 pdf: pdf-am
453
454 pdf-am:
455
456 ps: ps-am
457
458 ps-am:
459
460 uninstall-am: uninstall-man
461
462 uninstall-man: uninstall-man1
463
464 .MAKE: install-am install-strip
465
466 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
467 distclean distclean-generic distclean-libtool distdir dvi \
468 dvi-am html html-am info info-am install install-am \
469 install-data install-data-am install-dvi install-dvi-am \
470 install-exec install-exec-am install-html install-html-am \
471 install-info install-info-am install-man install-man1 \
472 install-pdf install-pdf-am install-ps install-ps-am \
473 install-strip installcheck installcheck-am installdirs \
474 maintainer-clean maintainer-clean-generic mostlyclean \
475 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
476 uninstall uninstall-am uninstall-man uninstall-man1
477
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
0 .\" .UC 4
1 .TH "hcal" "1" "2012-01-01" "Linux" "libhdate"
2 .SH "NAME"
3 hcal \- displays a Hebrew / Gregorian calendar
4 .PP
5 .SH "SYNOPSIS"
6 .B hcal
7 [options] [coordinates [timezone]] [[mm] yyyy]
8 .TP
9 coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]
10 .RE
11 .RS 7
12 -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]
13 .RE
14 .RS 7
15 timezone: -z nn[( .nn | :mm )]
16 .PP
17 .SH "DESCRIPTION"
18 .B hcal
19 prints a calendar with both Gregorian and Hebrew dates for the
20 specified Gregorian month or, if no month is specified, for the
21 whole Gregorian year. If no arguments are given, it prints the
22 current month's calendar. Jewish holidays are annotated, and can
23 optionally be footnoted.
24 .B hcal
25 tries to be sunset-aware in order to correctly highlight the
26 current Hebrew date, and can also display Shabbat times and
27 parshiot. See the section LOCATION, below.
28 .PP
29 .B INPUTTING A HEBREW DATE:
30 If the year provided is greater than 3000,
31 .B hcal
32 will interpret the given date as a Hebrew date, and will display the calendar of the corresponding Gregorian month(s). Hebrew months are expected to be passed as numbers 1-12 for Tishrei - Elul; Adar I and Adar II are expected to be passed as months 13 and 14.
33 .PP
34 .SH "OPTIONS"
35 .TP 18
36 .B \-1 --one-month
37 over-ride config file setting if you had set option --three-month as a default there
38 .TP
39 .B \-3 --three-month
40 output previous/next months, side by side. requires 127 columns
41 .TP
42 .B \-b --bidi
43 output Hebrew information in Hebrew , in reverse
44 .RE
45 .RS 7
46 .B \ \ \ --visual
47 \ sequence
48 .P
49 .RE
50 .RS 7
51 .B \ \ \ --no-bidi
52 \ over-ride config file setting if you had set
53 .RE
54 .RS 7
55 .B \ \ \ --no-visual
56 \ option -bidi as a default there
57 .TP 18
58 .B \-c --colorize
59 output in calming, muted tones
60 .RE
61 .RS 7
62 .B \ \ \ --no-color
63 \ over-ride config file setting
64 .TP 18
65 .B \-d --diaspora
66 use diaspora reading and holidays. Only relevant if hcal is using location information indicating an Israeli timezone
67 .TP
68 .B \-f --footnote
69 output descriptive notes of holidays
70 .RE
71 .RS 7
72 .B \ \ \ --no-footnote
73 \ over-ride config file setting
74 .TP 18
75 .B \-h --html
76 output in html format to stdout
77 .RE
78 .RS 7
79 .B \ \ \ --no-html
80 \ over-ride config file setting
81 .TP 18
82 .B \-H --hebrew
83 output Hebrew information in Hebrew, in 'logical' sequence. If this displays in reverse for you, use option -b
84 .TP
85 .B \-I --israel
86 override a diaspora default. Only relevant if hcal is using location information indicating other than an Israeli timezone
87 .TP
88 .B \-i
89 use external css file "./hcal.css" for html output
90 .TP
91 .B \ \ \ \--no-reverse
92 do not highlight today's date
93 .TP
94 .B \-p --parasha
95 output week's parasha on each calendar row
96 .TP
97 .B \-s --shabbat
98 output Shabbat times and parshiot
99 .TP
100 .B \-l --latitude
101 [NS]yy[.yyy] decimal degrees, or [NS]yy[:mm[:ss]] degrees, minutes, seconds. Negative values are South
102 .TP
103 .B \-L --longitude
104 [EW]xx[.xxx] decimal degrees, or [EW]xx[:mm[:ss]] degrees, minutes, seconds. Negative values are West
105 .TP
106 .B \-z --timezone
107 \+/-UTC. Notation may be in decimal hours ( hh[.hh] ) or hours, minutes ( hh[:mm] )
108 .SH NOTES
109 .SS "HOLIDAYS"
110 .PP
111 Holidays are depicted by a change in the symbol separating a day's
112 Gregorian and Hebrew dates, as follows:
113 .P
114 .RS
115 .B /
116 \ Regular day
117 .RE
118 .RS
119 .B +
120 \ Yom Tov (plus Yom Kippur)
121 .RE
122 .RS
123 .B *
124 \ Erev Yom Kippur
125 .RE
126 .RS
127 .B ~
128 \ Hol HaMoed
129 .RE
130 .RS
131 .B !
132 \ Hanuka and Purim
133 .RE
134 .RS
135 .B @
136 \ Tzomot
137 .RE
138 .RS
139 .B $
140 \ Lag BaOmer ,Tu BeAv, Tu BeShvat
141 .RE
142 .RS
143 .B #
144 \ Independance day and Yom Yerushalaim
145 .RE
146 .RS
147 .B %
148 \ Tzahal and Holocaust memorial days
149 .RE
150 .RS
151 .B ^
152 \ Other Israeli National days
153 .RE
154 .P
155 Use the -f (--footnote) option to have hcal describe what any particular day is marking.
156 .SS LOCATIONS
157 If you want
158 .B hcal
159 to display accurate Shabbat times, and to accurately advance the Hebrew 'today's date' indicator at sunset,
160 .B hcal
161 requires location and time zone information in order to make astronomical calculations for a given date. If you don't provide ANY such information,
162 .B hcal
163 uses your computer's local time zone information as an indicator, and either picks a city in that time zone, or defaults to the equator at the center of that time zone. If
164 .B hcal
165 can't even retrieve time zone information from your computer, it defaults to Tel-Aviv. For other locations, use the
166 .B -l -L
167 option pair. For other timezones, use the
168 .B -z
169 option. Co-ordinates and standard time zones for some common locations are listed below.
170 .PP
171 The current defaults include:
172 .RS 9
173 Timezone Default city Lattitude Longitude
174 .RE
175 .RS 12
176 -5 New York City 40 \-74
177 .RE
178 .RS 12
179 0 London 51 0
180 .RE
181 .RS 12
182 1 Paris 48 2
183 .RE
184 .RS 12
185 2 Tel-Aviv 32 34
186 .RE
187 .RS 12
188 3 Moscow 55 37
189 .RE
190 .PP
191 Useful locations and time zones
192 .RS 6
193 Jerusalem 31, 35, 2 Buenos Aires 34, -58, -3
194 .RE
195 .RS 6
196 Tel Aviv 32, 34, 2 Hong Kong 22, 114, 8
197 .RE
198 .RS 6
199 Haifa 32, 34, 2 Los Angeles 34, -118, -8
200 .RE
201 .RS 6
202 Beer Sheva 31, 34, 2 Sao Paolo 23, -46, -3
203 .RE
204 .RS 6
205 Ashdod 31, 34, 2 Toronto 43, -79 -5
206 .RS 6
207 .RE
208 Tiberias 32, 35, 2
209 .RS 6
210 .RE
211 Eilat 29, 34, 2
212 .SH FILES
213 .SS CONFIG FILE
214 This folder and file will be automatically created, and
215 includes its own documentation, in-line:
216 .RS 16
217 .I ${XDG_CONFIG_HOME}/hcal/hcalrc
218 .P
219 .RE
220 If ${XDG_CONFIG_HOME} is undefined:
221 .RS 16
222 .I ~/.config/hcal/hcalrc
223 .SH "BUGS"
224 .TP 10
225 .B Accuracy
226 The accuracy of the astronomically-derived data will suffer from not accounting for environmental conditions such as elevation, horizon, temperature and air pressure.
227 .RE
228 .TP 10
229 .B Timezones
230 The timezone support is currenlty primitive and lacks support for daylight savings time transitions.
231 .RE
232 .TP 10
233 .B Historical
234 The software does not yet account for the phenomenon and complications of the "Gregorian transition" from the prior, Julian calendar, which effectively caused an instantaneous 'loss' of two weeks for all gentiles affected. Countries (eg. Poland, Spain and Italy) began adopting the Gregorian calendar on 8 Tishrei 5343 (4 October 1582CE), although many did not transition until the 56th century (1752 CE, eg. UK colonies, Sweden). Russia did not adopt the Gregorian calendar until 5678 (1918 CE) and Turkey did not until 5687 (December, 1926 CE). Many other countries made the transition on other dates. Keep in mind that Russia invaded part of Poland, undoing, for the interim, the Gregorian transition for (only) that part of Poland; Also important to remember in this regard is that Eretz Ysroel was part of the Turkish Ottoman empire until the British mandate (5677 (1917CE)). Until all this is accounted for adequately by this application, refer to '
235 .B ncal -p
236 \' for a basic table of country transitions. However, keep in mind that European borders underwent many changes during the 426 years in question, so the accuracy of your data will depend on accurate knowledge of whether any particular date at any specific location was Julian or Gregorian.
237 .SH "EXAMPLES"
238 .TP 3
239 1. Display a 2012ce year's calendar, three-months wide, in color.
240 .RS 6
241 .B hcal -3c 2012
242 .RE
243 .HP 3
244 2. Display the current month's calendar, with Shabbat times, parshiot, footnoted holiday identification, with Hebrew information in Hebrew, and all in "calming", "muted" color-tones.
245 .RS 6
246 .B hcal -csfH
247 .SH "SEE ALSO"
248 mlterm(1), hdate(1), hebcal(1), date(1), ncal(1), cal(1), remind(1)
249 .SH "AUTHORS"
250 .RS 0
251 Boruch Baum 2011-2012, Yaacov Zamir 2005-2010.
252 .PP
253 project home page: http://libhdate.sourceforge.net
254 .PP
255 .B Hcal
256 and
257 .B Hdate
258 are part of the package
259 .B libhdate
260 , a small C/C++ library for Hebrew dates, holidays, and reading
261 sequences (parashiot). It uses the source code from Amos Shapir's
262 "hdate" package, as fixed and patched by Nadav Har'El. The Torah
263 reading sequence tables were contributed by Zvi Har'El.
0 .\" .UC 4
1 .TH "hdate" "1" "2012-01-01" "Linux" "libhdate"
2 .SH "NAME"
3 hdate \- displays Hebrew date information for a given Gregorian/Julian date
4 .SH "SYNOPSIS"
5 .B hdate
6 [options] [coordinates [timezone]] [[[dd] mm] yyyy]
7 .P
8 .B hdate
9 [options] [coordinates [timezone]] [ julian_day ]
10 .TP
11 coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]
12 .RE
13 .RS 7
14 -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]
15 .RE
16 .RS 7
17 timezone: -z nn[( .nn | :mm )]
18 .PP
19 .SH "DESCRIPTION"
20 .B hdate
21 translates the specified date to the Hebrew calendar and optionally displays further
22 information about that Hebrew date, including holidays and astronomical-related times
23 (see section LOCATION, below). If no arguments are given, it displays information for
24 the current date. If a single numeric argument is given, it will be interpreted as a
25 year, and
26 .B hdate
27 will output the requested information for
28 .I all
29 days of that year. If two numeric arguments are given, it will be interpreted as mm yyyy, and
30 .B hdate
31 will output the requested information for
32 .I all
33 days of that month.
34 .PP
35 .B INPUTTING A HEBREW DATE:
36 If the year provided is greater than 3000,
37 .B hdate
38 will interpret the given date as a Hebrew date, and will display information for the corresponding Gregorian date. Hebrew months are expected to be passed as numbers 1-12 for Tishrei - Elul; Adar I and Adar II are expected to be passed as months 13 and 14.
39 .PP
40 .B INPUTTING A JULIAN DAY:
41 If a single numeric argument is provided, and it is greater than 348021,
42 .B hdate
43 will interpret it as the "Julian day number" and will display information for the corresponding Hebrew date.
44 .PP
45 .SH "OPTIONS"
46 .TP 18
47 .B \-b --bidi
48 output Hebrew information in Hebrew, but in reverse
49 .RE
50 .RS 7
51 .B \ \ \ --visual
52 \ sequence.
53 .TP 18
54 .B \-c
55 print Shabbat start/end times. Shabbat starts 20 min before sunset,
56 and ends when three stars are out.
57 .TP
58 .B \-d --diaspora
59 use diaspora reading and holidays.
60 .TP
61 .B \-h --holidays
62 print holidays.
63 .TP
64 .B \-H
65 Print only if it is a holiday.
66 .TP
67 .B \-i --ical
68 use iCal formatted output.
69 .TP
70 .B \-j --julian
71 print Julian day number.
72 .TP
73 .B \-o --omer
74 print Sefirat Ha Omer
75 .TP
76 .B \-q --quiet-alerts
77 quiet. suppress warning messages
78 .TP
79 .B \-r --parasha
80 print weekly reading for Shabbat.
81 .TP
82 .B \-R
83 print only if the weekly reading is read on that Shabbat
84 .TP
85 .B \-s --sun
86 print sunrise/sunset times.
87 .TP
88 .B \-S --short-format
89 print using short format.
90 .TP
91 .B \-t
92 print day times: first light, talit, sunrise, mid day, sunset, first stars, three stars
93 .TP
94 .B \-T --table
95 print tabular output. All data for each requested day will be output on a single comma-delimited line.
96 Most suitable for piping, or export to spreadsheets\n\n\
97 .TP
98 .B \-l --latitude
99 [NS]yy[.yyy] decimal degrees, or [NS]yy[:mm[:ss]] degrees, minutes, seconds. Negative values are South
100 .TP
101 .B \-L --longitude
102 [EW]xx[.xxx] decimal degrees, or [EW]xx[:mm[:ss]] degrees, minutes, seconds. Negative values are West
103 .TP
104 .B \-z --timezone
105 \+/-UTC. Notation may be in decimal hours ( hh[.hh] ) or hours, minutes ( hh[:mm] )
106 .TP
107 .B \ \ --hebrew
108 forces Hebrew to print in Hebrew characters
109 .TP
110 .B \ \ --yom
111 force Hebrew prefix to Hebrew day of week
112 .TP
113 .B \ \ --leshabbat
114 insert parasha between day of week and day
115 .TP
116 .B \ \ --leseder
117 insert parasha between day of week and day
118 .TP
119 .B \ \ --not-sunset-aware
120 don't display next day if after sunset
121 .SH NOTES
122 .SS LOCATIONS
123 If you want
124 .B hdate
125 to display accurate time-of-day information,
126 .B hdate
127 requires location and time zone information in order to make astronomical calculations for a given date. If you don't provide ANY such information,
128 .B hdate
129 uses your computer's local time zone information as an indicator, and either picks a city in that time zone, or defaults to the equator at the center of that time zone. If
130 .B hdate
131 can't even retrieve time zone information from your computer, it defaults to Tel-Aviv. For other locations, use the
132 .B -l -L
133 option pair. For other timezones, use the
134 .B -z
135 option. Co-ordinates and standard time zones for some common locations are listed below.
136 .PP
137 The current defaults include:
138 .RS 9
139 Timezone Default city Lattitude Longitude
140 .RE
141 .RS 12
142 -5 New York City 40 \-74
143 .RE
144 .RS 12
145 0 London 51 0
146 .RE
147 .RS 12
148 1 Paris 48 2
149 .RE
150 .RS 12
151 2 Tel-Aviv 32 34
152 .RE
153 .RS 12
154 3 Moscow 55 37
155 .RE
156 .PP
157 Useful locations and time zones
158 .RS 6
159 Jerusalem 31, 35, 2 Buenos Aires 34, -58, -3
160 .RE
161 .RS 6
162 Tel Aviv 32, 34, 2 Hong Kong 22, 114, 8
163 .RE
164 .RS 6
165 Haifa 32, 34, 2 Los Angeles 34, -118, -8
166 .RE
167 .RS 6
168 Beer Sheva 31, 34, 2 Sao Paolo 23, -46, -3
169 .RE
170 .RS 6
171 Ashdod 31, 34, 2 Toronto 43, -79 -5
172 .RS 6
173 .RE
174 Tiberias 32, 35, 2
175 .RS 6
176 .RE
177 Eilat 29, 34, 2
178 .SH FILES
179 .SS CONFIG FILE
180 This folder and file will be automatically created, and
181 includes its own documentation, in-line:
182 .RS 16
183 .I ${XDG_CONFIG_HOME}/hcal/hcalrc
184 .P
185 .RE
186 If ${XDG_CONFIG_HOME} is undefined:
187 .RS 16
188 .I ~/.config/hcal/hcalrc
189 .SH "BUGS"
190 .TP 10
191 .B Accuracy
192 The accuracy of the astronomically-derived data will suffer from not accounting for environmental conditions such as elevation, horizon, temperature and air pressure.
193 .RE
194 .TP 10
195 .B Timezones
196 The timezone support is currenlty primitive and lacks support for daylight savings time transitions.
197 .RE
198 .TP 10
199 .B Historical
200 The software does not yet account for the phenomenon and complications of the "Gregorian transition" from the prior, Julian calendar, which effectively caused an instantaneous 'loss' of two weeks for all gentiles affected. Countries (eg. Poland, Spain and Italy) began adopting the Gregorian calendar on 8 Tishrei 5343 (4 October 1582CE), although many did not transition until the 56th century (1752 CE, eg. UK colonies, Sweden). Russia did not adopt the Gregorian calendar until 5678 (1918 CE) and Turkey did not until 5687 (December, 1926 CE). Many other countries made the transition on other dates. Keep in mind that Russia invaded part of Poland, undoing, for the interim, the Gregorian transition for (only) that part of Poland; Also important to remember in this regard is that Eretz Ysroel was part of the Turkish Ottoman empire until the British mandate (5677 (1917CE)). Until all this is accounted for adequately by this application, refer to '
201 .B ncal -p
202 \' for a basic table of country transitions. However, keep in mind that European borders underwent many changes during the 426 years in question, so the accuracy of your data will depend on accurate knowledge of whether any particular date at any specific location was Julian or Gregorian.
203 .SH "EXAMPLES"
204 1. Create an iCal calendar of the holidays of year 2025.
205 .RS 6
206 .B hdate -Hi 2025
207 .RE
208 .HP 3
209 2. Print out the weekly readings and sunset/sunrise times for Eilat, on April 2031.
210 .RS 6
211 .B hdate -sR 4 2031 -l29 -L34 -z2
212 .RE
213 .SH "SEE ALSO"
214 mlterm(1), hcal(1), hebcal(1), date(1), ncal(1), cal(1), remind(1)
215 .SH "AUTHORS"
216 .RS 0
217 Boruch Baum 2011-2012. Yaacov Zamir 2005-2010.
218 .PP
219 project page: http://libhdate.sourceforge.net
220 .PP
221 .BR hcal \ and \ hdate
222 are part of the package
223 .B libhdate
224 , a small C/C++ library for Hebrew dates, holidays, and reading
225 sequences (parashiot). It uses the source code from Amos Shapir's
226 "hdate" package, as fixed and patched by Nadav Har'El. The Torah
227 reading sequence tables were contributed by Zvi Har'El.
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.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = docs/man/man3
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_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 = f=`echo $$p | sed -e 's|^.*/||'`;
59 am__install_max = 40
60 am__nobase_strip_setup = \
61 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
62 am__nobase_strip = \
63 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
64 am__nobase_list = $(am__nobase_strip_setup); \
65 for p in $$list; do echo "$$p $$p"; done | \
66 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
67 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
68 if (++n[$$2] == $(am__install_max)) \
69 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
70 END { for (dir in files) print dir, files[dir] }'
71 am__base_list = \
72 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
73 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
74 man3dir = $(mandir)/man3
75 am__installdirs = "$(DESTDIR)$(man3dir)"
76 NROFF = nroff
77 MANS = $(man_MANS)
78 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79 ACLOCAL = @ACLOCAL@
80 AMTAR = @AMTAR@
81 AR = @AR@
82 AUTOCONF = @AUTOCONF@
83 AUTOHEADER = @AUTOHEADER@
84 AUTOMAKE = @AUTOMAKE@
85 AWK = @AWK@
86 CC = @CC@
87 CCDEPMODE = @CCDEPMODE@
88 CFLAGS = @CFLAGS@
89 CPP = @CPP@
90 CPPFLAGS = @CPPFLAGS@
91 CYGPATH_W = @CYGPATH_W@
92 DATADIRNAME = @DATADIRNAME@
93 DEFS = @DEFS@
94 DEPDIR = @DEPDIR@
95 DLLTOOL = @DLLTOOL@
96 DSYMUTIL = @DSYMUTIL@
97 DUMPBIN = @DUMPBIN@
98 ECHO_C = @ECHO_C@
99 ECHO_N = @ECHO_N@
100 ECHO_T = @ECHO_T@
101 EGREP = @EGREP@
102 EXEEXT = @EXEEXT@
103 FGREP = @FGREP@
104 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
105 GMSGFMT = @GMSGFMT@
106 GMSGFMT_015 = @GMSGFMT_015@
107 GP_MODULES_PATH = @GP_MODULES_PATH@
108 GREP = @GREP@
109 INSTALL = @INSTALL@
110 INSTALL_DATA = @INSTALL_DATA@
111 INSTALL_PROGRAM = @INSTALL_PROGRAM@
112 INSTALL_SCRIPT = @INSTALL_SCRIPT@
113 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
114 INTLLIBS = @INTLLIBS@
115 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
116 LD = @LD@
117 LDFLAGS = @LDFLAGS@
118 LIBICONV = @LIBICONV@
119 LIBINTL = @LIBINTL@
120 LIBOBJS = @LIBOBJS@
121 LIBS = @LIBS@
122 LIBTOOL = @LIBTOOL@
123 LIPO = @LIPO@
124 LN_S = @LN_S@
125 LTLIBICONV = @LTLIBICONV@
126 LTLIBINTL = @LTLIBINTL@
127 LTLIBOBJS = @LTLIBOBJS@
128 MAINT = @MAINT@
129 MAKEINFO = @MAKEINFO@
130 MANIFEST_TOOL = @MANIFEST_TOOL@
131 MKDIR_P = @MKDIR_P@
132 MSGFMT = @MSGFMT@
133 MSGFMT_015 = @MSGFMT_015@
134 MSGMERGE = @MSGMERGE@
135 NM = @NM@
136 NMEDIT = @NMEDIT@
137 OBJDUMP = @OBJDUMP@
138 OBJEXT = @OBJEXT@
139 OTOOL = @OTOOL@
140 OTOOL64 = @OTOOL64@
141 PACKAGE = @PACKAGE@
142 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
143 PACKAGE_NAME = @PACKAGE_NAME@
144 PACKAGE_STRING = @PACKAGE_STRING@
145 PACKAGE_TARNAME = @PACKAGE_TARNAME@
146 PACKAGE_URL = @PACKAGE_URL@
147 PACKAGE_VERSION = @PACKAGE_VERSION@
148 PATH_SEPARATOR = @PATH_SEPARATOR@
149 PA_MODULES_PATH = @PA_MODULES_PATH@
150 PA_VERSION = @PA_VERSION@
151 PE_CFLAGS = @PE_CFLAGS@
152 PE_MODULES_PATH = @PE_MODULES_PATH@
153 PH_CONFIG_PATH = @PH_CONFIG_PATH@
154 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
155 PH_MODULES_PATH = @PH_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 RU_CFLAGS = @RU_CFLAGS@
163 RU_MODULES_PATH = @RU_MODULES_PATH@
164 RU_VERSION = @RU_VERSION@
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 XGETTEXT = @XGETTEXT@
173 XGETTEXT_015 = @XGETTEXT_015@
174 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
175 abs_builddir = @abs_builddir@
176 abs_srcdir = @abs_srcdir@
177 abs_top_builddir = @abs_top_builddir@
178 abs_top_srcdir = @abs_top_srcdir@
179 ac_ct_AR = @ac_ct_AR@
180 ac_ct_CC = @ac_ct_CC@
181 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
182 am__include = @am__include@
183 am__leading_dot = @am__leading_dot@
184 am__quote = @am__quote@
185 am__tar = @am__tar@
186 am__untar = @am__untar@
187 bindir = @bindir@
188 build = @build@
189 build_alias = @build_alias@
190 build_cpu = @build_cpu@
191 build_os = @build_os@
192 build_vendor = @build_vendor@
193 builddir = @builddir@
194 datadir = @datadir@
195 datarootdir = @datarootdir@
196 docdir = @docdir@
197 dvidir = @dvidir@
198 exec_prefix = @exec_prefix@
199 have_fpc = @have_fpc@
200 have_gpc = @have_gpc@
201 have_perl = @have_perl@
202 have_php = @have_php@
203 have_php_config = @have_php_config@
204 have_python = @have_python@
205 have_ruby = @have_ruby@
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 srcdir = @srcdir@
230 sysconfdir = @sysconfdir@
231 target_alias = @target_alias@
232 top_build_prefix = @top_build_prefix@
233 top_builddir = @top_builddir@
234 top_srcdir = @top_srcdir@
235 EXTRA_DIST = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
236 man_MANS = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
237 all: all-am
238
239 .SUFFIXES:
240 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
245 && { if test -f $@; then exit 0; else break; fi; }; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/man3/Makefile'; \
250 $(am__cd) $(top_srcdir) && \
251 $(AUTOMAKE) --gnu docs/man/man3/Makefile
252 .PRECIOUS: Makefile
253 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269 $(am__aclocal_m4_deps):
270
271 mostlyclean-libtool:
272 -rm -f *.lo
273
274 clean-libtool:
275 -rm -rf .libs _libs
276 install-man3: $(man_MANS)
277 @$(NORMAL_INSTALL)
278 test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
279 @list=''; test -n "$(man3dir)" || exit 0; \
280 { for i in $$list; do echo "$$i"; done; \
281 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
282 sed -n '/\.3[a-z]*$$/p'; \
283 } | while read p; do \
284 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
285 echo "$$d$$p"; echo "$$p"; \
286 done | \
287 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
288 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
289 sed 'N;N;s,\n, ,g' | { \
290 list=; while read file base inst; do \
291 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
292 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
293 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
294 fi; \
295 done; \
296 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
297 while read files; do \
298 test -z "$$files" || { \
299 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
300 $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
301 done; }
302
303 uninstall-man3:
304 @$(NORMAL_UNINSTALL)
305 @list=''; test -n "$(man3dir)" || exit 0; \
306 files=`{ for i in $$list; do echo "$$i"; done; \
307 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
308 sed -n '/\.3[a-z]*$$/p'; \
309 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
310 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
311 test -z "$$files" || { \
312 echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
313 cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
314 tags: TAGS
315 TAGS:
316
317 ctags: CTAGS
318 CTAGS:
319
320
321 distdir: $(DISTFILES)
322 @list='$(MANS)'; if test -n "$$list"; then \
323 list=`for p in $$list; do \
324 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
325 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
326 if test -n "$$list" && \
327 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
328 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
329 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
330 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
331 echo " typically \`make maintainer-clean' will remove them" >&2; \
332 exit 1; \
333 else :; fi; \
334 else :; fi
335 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
336 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
337 list='$(DISTFILES)'; \
338 dist_files=`for file in $$list; do echo $$file; done | \
339 sed -e "s|^$$srcdirstrip/||;t" \
340 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
341 case $$dist_files in \
342 */*) $(MKDIR_P) `echo "$$dist_files" | \
343 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
344 sort -u` ;; \
345 esac; \
346 for file in $$dist_files; do \
347 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
348 if test -d $$d/$$file; then \
349 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
350 if test -d "$(distdir)/$$file"; then \
351 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
352 fi; \
353 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
354 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
355 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
356 fi; \
357 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
358 else \
359 test -f "$(distdir)/$$file" \
360 || cp -p $$d/$$file "$(distdir)/$$file" \
361 || exit 1; \
362 fi; \
363 done
364 check-am: all-am
365 check: check-am
366 all-am: Makefile $(MANS)
367 installdirs:
368 for dir in "$(DESTDIR)$(man3dir)"; do \
369 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
370 done
371 install: install-am
372 install-exec: install-exec-am
373 install-data: install-data-am
374 uninstall: uninstall-am
375
376 install-am: all-am
377 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
378
379 installcheck: installcheck-am
380 install-strip:
381 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
382 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
383 `test -z '$(STRIP)' || \
384 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
385 mostlyclean-generic:
386
387 clean-generic:
388
389 distclean-generic:
390 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
391 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
392
393 maintainer-clean-generic:
394 @echo "This command is intended for maintainers to use"
395 @echo "it deletes files that may require special tools to rebuild."
396 clean: clean-am
397
398 clean-am: clean-generic clean-libtool mostlyclean-am
399
400 distclean: distclean-am
401 -rm -f Makefile
402 distclean-am: clean-am distclean-generic
403
404 dvi: dvi-am
405
406 dvi-am:
407
408 html: html-am
409
410 html-am:
411
412 info: info-am
413
414 info-am:
415
416 install-data-am: install-man
417
418 install-dvi: install-dvi-am
419
420 install-dvi-am:
421
422 install-exec-am:
423
424 install-html: install-html-am
425
426 install-html-am:
427
428 install-info: install-info-am
429
430 install-info-am:
431
432 install-man: install-man3
433
434 install-pdf: install-pdf-am
435
436 install-pdf-am:
437
438 install-ps: install-ps-am
439
440 install-ps-am:
441
442 installcheck-am:
443
444 maintainer-clean: maintainer-clean-am
445 -rm -f Makefile
446 maintainer-clean-am: distclean-am maintainer-clean-generic
447
448 mostlyclean: mostlyclean-am
449
450 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
451
452 pdf: pdf-am
453
454 pdf-am:
455
456 ps: ps-am
457
458 ps-am:
459
460 uninstall-am: uninstall-man
461
462 uninstall-man: uninstall-man3
463
464 .MAKE: install-am install-strip
465
466 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
467 distclean distclean-generic distclean-libtool distdir dvi \
468 dvi-am html html-am info info-am install install-am \
469 install-data install-data-am install-dvi install-dvi-am \
470 install-exec install-exec-am install-html install-html-am \
471 install-info install-info-am install-man install-man3 \
472 install-pdf install-pdf-am install-ps install-ps-am \
473 install-strip installcheck installcheck-am installdirs \
474 maintainer-clean maintainer-clean-generic mostlyclean \
475 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
476 uninstall uninstall-am uninstall-man uninstall-man3
477
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
0 .TH "hdate" 3 "6 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 "Sun Jan 8 2012" "Version 1.4" "libhdate C language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 src/hdate.h \-
5 .PP
6 libhdate C language header\&.
7
8 .SH SYNOPSIS
9 .br
10 .PP
11 .SS "Data Structures"
12
13 .in +1c
14 .ti -1c
15 .RI "struct \fBhdate_struct\fP"
16 .br
17 .RI "\fIlibhdate Hebrew date struct \fP"
18 .in -1c
19 .SS "Defines"
20
21 .in +1c
22 .ti -1c
23 .RI "#define \fBHDATE_DIASPORA_FLAG\fP -1"
24 .br
25 .RI "\fIuse diaspora dates and holydays flag \fP"
26 .ti -1c
27 .RI "#define \fBHDATE_ISRAEL_FLAG\fP 0"
28 .br
29 .RI "\fIuse israel dates and holydays flag \fP"
30 .ti -1c
31 .RI "#define \fBHDATE_SHORT_FLAG\fP -1"
32 .br
33 .RI "\fIuse short strings flag \fP"
34 .ti -1c
35 .RI "#define \fBHDATE_LONG_FLAG\fP 0"
36 .br
37 .RI "\fIuse long strings flag \fP"
38 .ti -1c
39 .RI "#define \fBHEBREW_NUMBER_BUFFER_SIZE\fP 17"
40 .br
41 .RI "\fIfor hdate_get_int_string_ and hdate_get_int_wstring \fP"
42 .ti -1c
43 .RI "#define \fBHEBREW_WNUMBER_BUFFER_SIZE\fP 9"
44 .br
45 .ti -1c
46 .RI "#define \fBHDATE_STRING_INT\fP 0"
47 .br
48 .RI "\fIfor function hdate_string: identifies string type: integer \fP"
49 .ti -1c
50 .RI "#define \fBHDATE_STRING_DOW\fP 1"
51 .br
52 .RI "\fIfor function hdate_string: identifies string type: day of week \fP"
53 .ti -1c
54 .RI "#define \fBHDATE_STRING_PARASHA\fP 2"
55 .br
56 .RI "\fIfor function hdate_string: identifies string type: parasha \fP"
57 .ti -1c
58 .RI "#define \fBHDATE_STRING_HMONTH\fP 3"
59 .br
60 .RI "\fIfor function hdate_string: identifies string type: hebrew_month \fP"
61 .ti -1c
62 .RI "#define \fBHDATE_STRING_GMONTH\fP 4"
63 .br
64 .RI "\fIfor function hdate_string: identifies string type: gregorian_month \fP"
65 .ti -1c
66 .RI "#define \fBHDATE_STRING_HOLIDAY\fP 5"
67 .br
68 .RI "\fIfor function hdate_string: identifies string type: holiday \fP"
69 .ti -1c
70 .RI "#define \fBHDATE_STRING_OMER\fP 6"
71 .br
72 .ti -1c
73 .RI "#define \fBHDATE_STRING_SHORT\fP 1"
74 .br
75 .RI "\fIfor function hdate_string: use short form, if one exists \fP"
76 .ti -1c
77 .RI "#define \fBHDATE_STRING_LONG\fP 0"
78 .br
79 .RI "\fIfor function hdate_string: use long form \fP"
80 .ti -1c
81 .RI "#define \fBHDATE_STRING_HEBREW\fP 1"
82 .br
83 .RI "\fIfor function hdate_string: use embedded hebrew string \fP"
84 .ti -1c
85 .RI "#define \fBHDATE_STRING_LOCAL\fP 0"
86 .br
87 .RI "\fIfor function hdate_string: use local locale string \fP"
88 .in -1c
89 .SS "Functions"
90
91 .in +1c
92 .ti -1c
93 .RI "\fBhdate_struct\fP * \fBhdate_set_gdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
94 .br
95 .RI "\fIcompute date structure from the Gregorian date \fP"
96 .ti -1c
97 .RI "\fBhdate_struct\fP * \fBhdate_set_hdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
98 .br
99 .RI "\fIcompute date structure from the Hebrew date \fP"
100 .ti -1c
101 .RI "\fBhdate_struct\fP * \fBhdate_set_jd\fP (\fBhdate_struct\fP *h, int jd)"
102 .br
103 .RI "\fIcompute date structure from the Julian day \fP"
104 .ti -1c
105 .RI "char * \fBhdate_get_format_date\fP (\fBhdate_struct\fP const *h, int diaspora, int s)"
106 .br
107 .RI "\fIReturn a string, with the hebrew date\&. \fP"
108 .ti -1c
109 .RI "int \fBhdate_get_parasha\fP (\fBhdate_struct\fP const *h, int diaspora)"
110 .br
111 .RI "\fIget the number of hebrew parasha\&. \fP"
112 .ti -1c
113 .RI "int \fBhdate_get_holyday\fP (\fBhdate_struct\fP const *h, int diaspora)"
114 .br
115 .RI "\fIget the number of hebrew holiday\&. \fP"
116 .ti -1c
117 .RI "char * \fBhdate_get_int_string\fP (int n)"
118 .br
119 .RI "\fIconvert an integer to hebrew string\&. \fP"
120 .ti -1c
121 .RI "char * \fBhdate_get_day_string\fP (int day, int s)"
122 .br
123 .RI "\fIReturn a static string, with name of week day\&. \fP"
124 .ti -1c
125 .RI "char * \fBhdate_get_month_string\fP (int month, int s)"
126 .br
127 .RI "\fIReturn a static string, with name of month\&. \fP"
128 .ti -1c
129 .RI "char * \fBhdate_get_hebrew_month_string\fP (int month, int s)"
130 .br
131 .RI "\fIReturn a static string, with name of hebrew month\&. \fP"
132 .ti -1c
133 .RI "char * \fBhdate_get_holyday_string\fP (int holyday, int s)"
134 .br
135 .RI "\fIName of hebrew holiday\&. \fP"
136 .ti -1c
137 .RI "char * \fBhdate_get_parasha_string\fP (int parasha, int s)"
138 .br
139 .RI "\fIName of Parasha\&. \fP"
140 .ti -1c
141 .RI "char * \fBhdate_get_omer_string\fP (int omer_day)"
142 .br
143 .RI "\fIReturn a static string, with the day in the omer\&. \fP"
144 .ti -1c
145 .RI "int \fBhdate_get_omer_day\fP (\fBhdate_struct\fP const *h)"
146 .br
147 .RI "\fIReturn the day in the omer of the given date\&. \fP"
148 .ti -1c
149 .RI "int \fBhdate_get_holyday_type\fP (int holyday)"
150 .br
151 .RI "\fIReturn number of hebrew holyday type\&. \fP"
152 .ti -1c
153 .RI "int \fBhdate_get_size_of_hebrew_year\fP (int hebrew_year)"
154 .br
155 .RI "\fIsize of hebrew year in days\&. \fP"
156 .ti -1c
157 .RI "int \fBhdate_days_from_3744\fP (int hebrew_year)"
158 .br
159 .RI "\fIDays since Tishrey 3744\&. \fP"
160 .ti -1c
161 .RI "int \fBhdate_get_year_type\fP (int size_of_year, int new_year_dw)"
162 .br
163 .RI "\fIReturn Hebrew year type based on size and first week day of year\&. \fP"
164 .ti -1c
165 .RI "int \fBhdate_gdate_to_jd\fP (int day, int month, int year)"
166 .br
167 .RI "\fICompute Julian day from Gregorian date\&. \fP"
168 .ti -1c
169 .RI "int \fBhdate_hdate_to_jd\fP (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
170 .br
171 .RI "\fICompute Julian day from Hebrew day, month and year\&. \fP"
172 .ti -1c
173 .RI "void \fBhdate_jd_to_gdate\fP (int jd, int *day, int *month, int *year)"
174 .br
175 .RI "\fIConverting from the Julian day to the Gregorian date\&. \fP"
176 .ti -1c
177 .RI "void \fBhdate_jd_to_hdate\fP (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
178 .br
179 .RI "\fIConverting from the Julian day to the Hebrew day\&. \fP"
180 .ti -1c
181 .RI "int \fBhdate_get_day_of_year\fP (int day, int month, int year)"
182 .br
183 .RI "\fIdays from 1 january \fP"
184 .ti -1c
185 .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)"
186 .br
187 .RI "\fIutc sun times for altitude at a gregorian date \fP"
188 .ti -1c
189 .RI "void \fBhdate_get_utc_sun_time\fP (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)"
190 .br
191 .RI "\fIutc sunrise/set time for a gregorian date \fP"
192 .ti -1c
193 .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)"
194 .br
195 .RI "\fIutc sunrise/set time for a gregorian date \fP"
196 .ti -1c
197 .RI "int \fBhdate_get_gday\fP (\fBhdate_struct\fP const *h)"
198 .br
199 .RI "\fIget the Gregorian day of the month \fP"
200 .ti -1c
201 .RI "int \fBhdate_get_gmonth\fP (\fBhdate_struct\fP const *h)"
202 .br
203 .RI "\fIget the Gregorian month \fP"
204 .ti -1c
205 .RI "int \fBhdate_get_gyear\fP (\fBhdate_struct\fP const *h)"
206 .br
207 .RI "\fIget the Gregorian year \fP"
208 .ti -1c
209 .RI "int \fBhdate_get_hday\fP (\fBhdate_struct\fP const *h)"
210 .br
211 .RI "\fIget the Hebrew day of the month \fP"
212 .ti -1c
213 .RI "int \fBhdate_get_hmonth\fP (\fBhdate_struct\fP const *h)"
214 .br
215 .RI "\fIget the Hebrew month \fP"
216 .ti -1c
217 .RI "int \fBhdate_get_hyear\fP (\fBhdate_struct\fP const *h)"
218 .br
219 .RI "\fIget the Hebrew year \fP"
220 .ti -1c
221 .RI "int \fBhdate_get_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
222 .br
223 .RI "\fIget the day of the week \fP"
224 .ti -1c
225 .RI "int \fBhdate_get_size_of_year\fP (\fBhdate_struct\fP const *h)"
226 .br
227 .RI "\fIget the size of the hebrew year \fP"
228 .ti -1c
229 .RI "int \fBhdate_get_new_year_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
230 .br
231 .RI "\fIget the new year day of the week \fP"
232 .ti -1c
233 .RI "int \fBhdate_get_julian\fP (\fBhdate_struct\fP const *h)"
234 .br
235 .RI "\fIget the Julian day number \fP"
236 .ti -1c
237 .RI "int \fBhdate_get_days\fP (\fBhdate_struct\fP const *h)"
238 .br
239 .RI "\fIget the number of days passed since 1 tishrey \fP"
240 .ti -1c
241 .RI "int \fBhdate_get_weeks\fP (\fBhdate_struct\fP const *h)"
242 .br
243 .RI "\fIget the number of weeks passed since 1 tishrey \fP"
244 .ti -1c
245 .RI "\fBhdate_struct\fP * \fBnew_hdate\fP ()"
246 .br
247 .RI "\fIcreat a new hdate struct object, must be deleted using delete_hdate\&. \fP"
248 .ti -1c
249 .RI "\fBhdate_struct\fP * \fBdelete_hdate\fP (\fBhdate_struct\fP *h)"
250 .br
251 .RI "\fIdelete an hdate struct object\&. \fP"
252 .ti -1c
253 .RI "char * \fBhdate_get_version_string\fP ()"
254 .br
255 .RI "\fIReturn a static string, with the package name and version\&. \fP"
256 .ti -1c
257 .RI "char * \fBhdate_get_translator_string\fP ()"
258 .br
259 .RI "\fIname of translator \fP"
260 .ti -1c
261 .RI "int \fBhdate_is_hebrew_locale\fP ()"
262 .br
263 .RI "\fIhelper function to find hebrew locale \fP"
264 .ti -1c
265 .RI "char * \fBhdate_string\fP (int type_of_string, int index, int short_form, int hebrew_form)"
266 .br
267 .RI "\fIReturn string values for hdate information\&. \fP"
268 .in -1c
269 .SH "Detailed Description"
270 .PP
271 libhdate C language header\&.
272
273 libhdate - Hebrew calendar library, the C language header file\&.
274 .SH "Define Documentation"
275 .PP
276 .SS "#define \fBHDATE_DIASPORA_FLAG\fP -1"
277 .PP
278 use diaspora dates and holydays flag
279 .SS "#define \fBHDATE_ISRAEL_FLAG\fP 0"
280 .PP
281 use israel dates and holydays flag
282 .SS "#define \fBHDATE_SHORT_FLAG\fP -1"
283 .PP
284 use short strings flag
285 .SS "#define \fBHDATE_LONG_FLAG\fP 0"
286 .PP
287 use long strings flag
288 .SS "#define \fBHEBREW_NUMBER_BUFFER_SIZE\fP 17"
289 .PP
290 for hdate_get_int_string_ and hdate_get_int_wstring \fBNote:\fP
291 .RS 4
292 How large should the buffer be? Hebrew year 10,999 would be י'תתקצ"ט, eight characters, each two bytes, plus an end-of-string delimiter, equals 17\&. This could effectively yield a range extending to Hebrew year 11,899, י'א תתצ'ט, due to the extra ק needed for the '900' century\&. However, for readability, I would want a an extra space at that point between the millenium and the century\&.\&.\&.
293 .RE
294 .PP
295
296 .SS "#define \fBHEBREW_WNUMBER_BUFFER_SIZE\fP 9"
297 .SS "#define \fBHDATE_STRING_INT\fP 0"
298 .PP
299 for function hdate_string: identifies string type: integer
300 .SS "#define \fBHDATE_STRING_DOW\fP 1"
301 .PP
302 for function hdate_string: identifies string type: day of week
303 .SS "#define \fBHDATE_STRING_PARASHA\fP 2"
304 .PP
305 for function hdate_string: identifies string type: parasha
306 .SS "#define \fBHDATE_STRING_HMONTH\fP 3"
307 .PP
308 for function hdate_string: identifies string type: hebrew_month
309 .SS "#define \fBHDATE_STRING_GMONTH\fP 4"
310 .PP
311 for function hdate_string: identifies string type: gregorian_month
312 .SS "#define \fBHDATE_STRING_HOLIDAY\fP 5"
313 .PP
314 for function hdate_string: identifies string type: holiday
315 .SS "#define \fBHDATE_STRING_OMER\fP 6"
316 .SS "#define \fBHDATE_STRING_SHORT\fP 1"
317 .PP
318 for function hdate_string: use short form, if one exists
319 .SS "#define \fBHDATE_STRING_LONG\fP 0"
320 .PP
321 for function hdate_string: use long form
322 .SS "#define \fBHDATE_STRING_HEBREW\fP 1"
323 .PP
324 for function hdate_string: use embedded hebrew string
325 .SS "#define \fBHDATE_STRING_LOCAL\fP 0"
326 .PP
327 for function hdate_string: use local locale string
328 .SH "Function Documentation"
329 .PP
330 .SS "\fBhdate_struct\fP* \fBhdate_set_gdate\fP (\fBhdate_struct\fP *h, intd, intm, inty)"
331 .PP
332 compute date structure from the Gregorian date \fBParameters:\fP
333 .RS 4
334 \fIh\fP pointer this hdate struct\&.
335 .br
336 \fId\fP Day of month 1\&.\&.31
337 .br
338 \fIm\fP Month 1\&.\&.12 if m or d is 0 return current date\&.
339 .br
340 \fIy\fP Year in 4 digits e\&.g\&. 2001
341 .RE
342 .PP
343 \fBReturns:\fP
344 .RS 4
345 pointer to this hdate struct
346 .RE
347 .PP
348
349 .SS "\fBhdate_struct\fP* \fBhdate_set_hdate\fP (\fBhdate_struct\fP *h, intd, intm, inty)"
350 .PP
351 compute date structure from the Hebrew date \fBParameters:\fP
352 .RS 4
353 \fIh\fP pointer this hdate struct\&.
354 .br
355 \fId\fP Day of month 1\&.\&.31
356 .br
357 \fIm\fP Month 1\&.\&.14 ,(13 - Adar 1, 14 - Adar 2) if m or d is 0 return current date\&.
358 .br
359 \fIy\fP Year in 4 digits e\&.g\&. 5731
360 .RE
361 .PP
362 \fBReturns:\fP
363 .RS 4
364 pointer to this hdate struct
365 .RE
366 .PP
367
368 .SS "\fBhdate_struct\fP* \fBhdate_set_jd\fP (\fBhdate_struct\fP *h, intjd)"
369 .PP
370 compute date structure from the Julian day \fBParameters:\fP
371 .RS 4
372 \fIh\fP pointer this hdate struct\&.
373 .br
374 \fIjd\fP the julian day number\&.
375 .RE
376 .PP
377 \fBReturns:\fP
378 .RS 4
379 pointer to this hdate struct
380 .RE
381 .PP
382
383 .SS "char* \fBhdate_get_format_date\fP (\fBhdate_struct\fP const *h, intdiaspora, ints)"
384 .PP
385 Return a string, with the hebrew date\&. \fBReturns:\fP
386 .RS 4
387 NULL pointer upon failure or, upon success, a pointer to a string containing the short ( e\&.g\&. '1 Tishrey' ) or long (e\&.g\&. 'Tuesday
388 18 Tishrey 5763 Hol hamoed Sukot' ) formated date\&. You must free() the pointer after use\&.
389 .RE
390 .PP
391 \fBParameters:\fP
392 .RS 4
393 \fIh\fP The \fBhdate_struct\fP of the date to print\&.
394 .br
395 \fIdiaspora\fP if true give diaspora holydays
396 .br
397 \fIshort_format\fP A short flag (true - returns a short string, false returns a long string)\&.
398 .RE
399 .PP
400 \fBWarning:\fP
401 .RS 4
402 This was originally written using a local static string, calling for output to be copied away\&.
403 .RE
404 .PP
405
406 .SS "int \fBhdate_get_parasha\fP (\fBhdate_struct\fP const *h, intdiaspora)"
407 .PP
408 get the number of hebrew parasha\&. \fBParameters:\fP
409 .RS 4
410 \fIh\fP pointer this hdate struct\&.
411 .br
412 \fIdiaspora\fP if true give diaspora readings
413 .RE
414 .PP
415 \fBReturns:\fP
416 .RS 4
417 the number of parasha 1\&. Bereshit etc\&.\&. (55 through 61 are joined strings e\&.g\&. Vayakhel Pekudei)
418 .RE
419 .PP
420
421 .SS "int \fBhdate_get_holyday\fP (\fBhdate_struct\fP const *h, intdiaspora)"
422 .PP
423 get the number of hebrew holiday\&. \fBParameters:\fP
424 .RS 4
425 \fIh\fP pointer this hdate struct\&.
426 .br
427 \fIdiaspora\fP if true give diaspora holidays
428 .RE
429 .PP
430 \fBReturns:\fP
431 .RS 4
432 the number of holiday\&.
433 .RE
434 .PP
435
436 .SS "char* \fBhdate_get_int_string\fP (intn)"
437 .PP
438 convert an integer to hebrew string\&. \fBParameters:\fP
439 .RS 4
440 \fIn\fP The int to convert ( 0 < n < 11000)
441 .RE
442 .PP
443 \fBReturns:\fP
444 .RS 4
445 a string of the hebrew number UTF-8 (logical)
446 .RE
447 .PP
448 \fBWarning:\fP
449 .RS 4
450 DEPRECATION: This function is now just a wrapper for hdate_string, and is subject to deprecation\&. Callers to this function must free() after using the memory pointed to by the return value\&. The original function outputted to a local static string, and suggested that the caller copied it away\&. [deprecation date 2011-12-28]
451 .RE
452 .PP
453
454 .SS "char* \fBhdate_get_day_string\fP (intday, ints)"
455 .PP
456 Return a static string, with name of week day\&. \fBParameters:\fP
457 .RS 4
458 \fIday_of_week\fP The number of the day 1\&.\&.7 (1 - sun)\&.
459 .br
460 \fIshort_form\fP A short flag (true - sun; false - sunday)\&.
461 .RE
462 .PP
463 \fBWarning:\fP
464 .RS 4
465 DEPRECATION: This function is now just a wrapper for hdate_string, and is subject to deprecation\&. [deprecation date 2011-12-28]
466 .RE
467 .PP
468
469 .SS "char* \fBhdate_get_month_string\fP (intmonth, ints)"
470 .PP
471 Return a static string, with name of month\&. \fBParameters:\fP
472 .RS 4
473 \fImonth\fP The number of the month 1\&.\&.12 (1 - jan)\&.
474 .br
475 \fIshort_form\fP A short flag\&.
476 .RE
477 .PP
478 \fBWarning:\fP
479 .RS 4
480 DEPRECATION: This function is now just a wrapper for hdate_string, and is subject to deprecation\&. [deprecation date 2011-12-28]
481 .RE
482 .PP
483
484 .SS "char* \fBhdate_get_hebrew_month_string\fP (intmonth, ints)"
485 .PP
486 Return a static string, with name of hebrew month\&. \fBParameters:\fP
487 .RS 4
488 \fImonth\fP The number of the month 1\&.\&.14 (1 - tishre, 13 - adar 1, 14 - adar 2)\&.
489 .br
490 \fIshort_form\fP A short flag\&.
491 .RE
492 .PP
493 \fBWarning:\fP
494 .RS 4
495 DEPRECATION: This function is now just a wrapper for hdate_string, and is subject to deprecation\&. [deprecation date 2011-12-28]
496 .RE
497 .PP
498
499 .SS "char* \fBhdate_get_holyday_string\fP (intholyday, ints)"
500 .PP
501 Name of hebrew holiday\&. \fBParameters:\fP
502 .RS 4
503 \fIholiday\fP The holiday number\&.
504 .br
505 \fIshort_text\fP A short flag\&. 0=true, !0=false
506 .RE
507 .PP
508 \fBWarning:\fP
509 .RS 4
510 DEPRECATION: This function is now just a wrapper for hdate_string, and is subject to deprecation\&. [deprecation date 2011-12-28]
511 .RE
512 .PP
513
514 .SS "char* \fBhdate_get_parasha_string\fP (intparasha, ints)"
515 .PP
516 Name of Parasha\&. \fBParameters:\fP
517 .RS 4
518 \fIparasha\fP The Number of Parasha 1-Bereshit (55 through 61 are joined strings e\&.g\&. Vayakhel Pekudei)
519 .br
520 \fIshort_form\fP A short flag\&. 0=true, !0 = false
521 .RE
522 .PP
523 \fBWarning:\fP
524 .RS 4
525 DEPRECATION: This function is now just a wrapper for hdate_string, and is subject to deprecation\&. [deprecation date 2011-12-28]
526 .RE
527 .PP
528
529 .SS "char* \fBhdate_get_omer_string\fP (intomer_day)"
530 .PP
531 Return a static string, with the day in the omer\&. \fBParameters:\fP
532 .RS 4
533 \fIomer\fP day The day in the omer\&.
534 .RE
535 .PP
536 \fBReturns:\fP
537 .RS 4
538 a pointer to a string with the day in the omer\&. The caller must free() the pointer after use\&.
539 .RE
540 .PP
541 \fBWarning:\fP
542 .RS 4
543 DEPRECATION: This function is now just a wrapper for hdate_string, and is subject to deprecation\&.
544 .RE
545 .PP
546 \fBAttention:\fP
547 .RS 4
548 The prior version of this function returned a pointer to a static string buffer\&. The current version returns a pointer to a malloc()ed buffer and needs to be free()d after use\&. [deprecation date 2011-12-28]
549 .RE
550 .PP
551
552 .SS "int \fBhdate_get_omer_day\fP (\fBhdate_struct\fP const *h)"
553 .PP
554 Return the day in the omer of the given date\&. \fBParameters:\fP
555 .RS 4
556 \fIh\fP The \fBhdate_struct\fP of the date to use\&.
557 .RE
558 .PP
559 \fBReturns:\fP
560 .RS 4
561 The day in the omer, starting from 1 (or 0 if not in sfirat ha omer)
562 .RE
563 .PP
564
565 .SS "int \fBhdate_get_holyday_type\fP (intholyday)"
566 .PP
567 Return number of hebrew holyday type\&. Holiday types: 0 - Regular day 1 - Yom tov (plus yom kippor) 2 - Erev yom kippur 3 - Hol hamoed 4 - Hanuka and purim 5 - Tzomot 6 - Independance day and Yom yerushalaim 7 - Lag baomer ,Tu beav, Tu beshvat 8 - Tzahal and Holocaust memorial days 9 - National days
568 .PP
569 \fBParameters:\fP
570 .RS 4
571 \fIholyday\fP the holyday number
572 .RE
573 .PP
574 \fBReturns:\fP
575 .RS 4
576 the number of holyday type\&.
577 .RE
578 .PP
579
580 .SS "int \fBhdate_get_size_of_hebrew_year\fP (inthebrew_year)"
581 .PP
582 size of hebrew year in days\&. \fBParameters:\fP
583 .RS 4
584 \fIhebrew_year\fP the hebrew year\&.
585 .RE
586 .PP
587 \fBReturns:\fP
588 .RS 4
589 size of Hebrew year
590 .RE
591 .PP
592
593 .SS "int \fBhdate_days_from_3744\fP (inthebrew_year)"
594 .PP
595 Days since Tishrey 3744\&. \fBAuthor:\fP
596 .RS 4
597 Amos Shapir 1984 (rev\&. 1985, 1992) Yaacov Zamir 2003-2005
598 .RE
599 .PP
600 \fBParameters:\fP
601 .RS 4
602 \fIhebrew_year\fP The Hebrew year
603 .RE
604 .PP
605 \fBReturns:\fP
606 .RS 4
607 Number of days since 3,1,3744
608 .RE
609 .PP
610
611 .SS "int \fBhdate_get_year_type\fP (intsize_of_year, intnew_year_dw)"
612 .PP
613 Return Hebrew year type based on size and first week day of year\&. \fBParameters:\fP
614 .RS 4
615 \fIsize_of_year\fP Length of year in days
616 .br
617 \fInew_year_dw\fP First week day of year
618 .RE
619 .PP
620 \fBReturns:\fP
621 .RS 4
622 the number for year type (1\&.\&.14)
623 .RE
624 .PP
625
626 .SS "int \fBhdate_gdate_to_jd\fP (intday, intmonth, intyear)"
627 .PP
628 Compute Julian day from Gregorian date\&. \fBAuthor:\fP
629 .RS 4
630 Yaacov Zamir (algorithm from Henry F\&. Fliegel and Thomas C\&. Van Flandern ,1968)
631 .RE
632 .PP
633 \fBParameters:\fP
634 .RS 4
635 \fIday\fP Day of month 1\&.\&.31
636 .br
637 \fImonth\fP Month 1\&.\&.12
638 .br
639 \fIyear\fP Year in 4 digits e\&.g\&. 2001
640 .RE
641 .PP
642 \fBReturns:\fP
643 .RS 4
644 the julian day number
645 .RE
646 .PP
647
648 .SS "int \fBhdate_hdate_to_jd\fP (intday, intmonth, intyear, int *jd_tishrey1, int *jd_tishrey1_next_year)"
649 .PP
650 Compute Julian day from Hebrew day, month and year\&. \fBAuthor:\fP
651 .RS 4
652 Amos Shapir 1984 (rev\&. 1985, 1992) Yaacov Zamir 2003-2005
653 .RE
654 .PP
655 \fBParameters:\fP
656 .RS 4
657 \fIday\fP Day of month 1\&.\&.31
658 .br
659 \fImonth\fP Month 1\&.\&.14 (13 - Adar 1, 14 - Adar 2)
660 .br
661 \fIyear\fP Hebrew year in 4 digits e\&.g\&. 5753
662 .br
663 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
664 .br
665 \fIjd_tishrey1_next_year\fP return the julian number of 1 Tishrey next year
666 .RE
667 .PP
668 \fBReturns:\fP
669 .RS 4
670 the julian day number
671 .RE
672 .PP
673
674 .SS "void \fBhdate_jd_to_gdate\fP (intjd, int *day, int *month, int *year)"
675 .PP
676 Converting from the Julian day to the Gregorian date\&. \fBAuthor:\fP
677 .RS 4
678 Yaacov Zamir (Algorithm, Henry F\&. Fliegel and Thomas C\&. Van Flandern ,1968)
679 .RE
680 .PP
681 \fBParameters:\fP
682 .RS 4
683 \fIjd\fP Julian day
684 .br
685 \fIday\fP return Day of month 1\&.\&.31
686 .br
687 \fImonth\fP return Month 1\&.\&.12
688 .br
689 \fIyear\fP return Year in 4 digits e\&.g\&. 2001
690 .RE
691 .PP
692
693 .SS "void \fBhdate_jd_to_hdate\fP (intjd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
694 .PP
695 Converting from the Julian day to the Hebrew day\&. \fBAuthor:\fP
696 .RS 4
697 Yaacov Zamir 2005
698 .RE
699 .PP
700 \fBParameters:\fP
701 .RS 4
702 \fIjd\fP Julian day
703 .br
704 \fIday\fP return Day of month 1\&.\&.31
705 .br
706 \fImonth\fP return Month 1\&.\&.14 (13 - Adar 1, 14 - Adar 2)
707 .br
708 \fIyear\fP return Year in 4 digits e\&.g\&. 2001
709 .br
710 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
711 .br
712 \fIjd_tishrey1_next_year\fP return the julian number of 1 Tishrey next year
713 .RE
714 .PP
715
716 .SS "int \fBhdate_get_day_of_year\fP (intday, intmonth, intyear)"
717 .PP
718 days from 1 january \fBParameters:\fP
719 .RS 4
720 \fIday\fP this day of month
721 .br
722 \fImonth\fP this month
723 .br
724 \fIyear\fP this year
725 .RE
726 .PP
727 \fBReturns:\fP
728 .RS 4
729 the days from 1 jan
730 .RE
731 .PP
732
733 .SS "void \fBhdate_get_utc_sun_time_deg\fP (intday, intmonth, intyear, doublelatitude, doublelongitude, doubledeg, int *sunrise, int *sunset)"
734 .PP
735 utc sun times for altitude at a gregorian date Returns the sunset and sunrise times in minutes from 00:00 (utc time) if sun altitude in sunrise is deg degries\&. This function only works for altitudes sun realy is\&. If the sun never get to this altitude, the returned sunset and sunrise values will be negative\&. This can happen in low altitude when latitude is nearing the pols in winter times, the sun never goes very high in the sky there\&.
736 .PP
737 \fBParameters:\fP
738 .RS 4
739 \fIday\fP this day of month
740 .br
741 \fImonth\fP this month
742 .br
743 \fIyear\fP this year
744 .br
745 \fIlongitude\fP longitude to use in calculations
746 .br
747 \fIlatitude\fP latitude to use in calculations
748 .br
749 \fIdeg\fP degrees of sun's altitude (0 - Zenith \&.\&. 90 - Horizon)
750 .br
751 \fIsunrise\fP return the utc sunrise in minutes
752 .br
753 \fIsunset\fP return the utc sunset in minutes
754 .RE
755 .PP
756
757 .SS "void \fBhdate_get_utc_sun_time\fP (intday, intmonth, intyear, doublelatitude, doublelongitude, int *sunrise, int *sunset)"
758 .PP
759 utc sunrise/set time for a gregorian date \fBParameters:\fP
760 .RS 4
761 \fIday\fP this day of month
762 .br
763 \fImonth\fP this month
764 .br
765 \fIyear\fP this year
766 .br
767 \fIlongitude\fP longitude to use in calculations degrees, negative values are east
768 .br
769 \fIlatitude\fP latitude to use in calculations degrees, negative values are south
770 .br
771 \fIsunrise\fP return the utc sunrise in minutes after midnight (00:00)
772 .br
773 \fIsunset\fP return the utc sunset in minutes after midnight (00:00)
774 .RE
775 .PP
776
777 .SS "void \fBhdate_get_utc_sun_time_full\fP (intday, intmonth, intyear, doublelatitude, doublelongitude, int *sun_hour, int *first_light, int *talit, int *sunrise, int *midday, int *sunset, int *first_stars, int *three_stars)"
778 .PP
779 utc sunrise/set time for a gregorian date \fBParameters:\fP
780 .RS 4
781 \fIday\fP this day of month
782 .br
783 \fImonth\fP this month
784 .br
785 \fIyear\fP this year
786 .br
787 \fIlongitude\fP longitude to use in calculations
788 .br
789 \fIlatitude\fP latitude to use in calculations
790 .br
791 \fIsun_hour\fP return the length of shaa zaminit in minutes
792 .br
793 \fIfirst_light\fP return the utc alut ha-shachar in minutes
794 .br
795 \fItalit\fP return the utc tphilin and talit in minutes
796 .br
797 \fIsunrise\fP return the utc sunrise in minutes
798 .br
799 \fImidday\fP return the utc midday in minutes
800 .br
801 \fIsunset\fP return the utc sunset in minutes
802 .br
803 \fIfirst_stars\fP return the utc tzeit hacochavim in minutes
804 .br
805 \fIthree_stars\fP return the utc shlosha cochavim in minutes
806 .RE
807 .PP
808
809 .SS "int \fBhdate_get_gday\fP (\fBhdate_struct\fP const *h)"
810 .PP
811 get the Gregorian day of the month \fBParameters:\fP
812 .RS 4
813 \fIh\fP pointer this hdate struct\&.
814 .RE
815 .PP
816 \fBReturns:\fP
817 .RS 4
818 the Gregorian day of the month, 1\&.\&.31\&.
819 .RE
820 .PP
821
822 .SS "int \fBhdate_get_gmonth\fP (\fBhdate_struct\fP const *h)"
823 .PP
824 get the Gregorian month \fBParameters:\fP
825 .RS 4
826 \fIh\fP pointer this hdate struct\&.
827 .RE
828 .PP
829 \fBReturns:\fP
830 .RS 4
831 the Gregorian month, jan = 1\&.
832 .RE
833 .PP
834
835 .SS "int \fBhdate_get_gyear\fP (\fBhdate_struct\fP const *h)"
836 .PP
837 get the Gregorian year \fBParameters:\fP
838 .RS 4
839 \fIh\fP pointer this hdate struct\&.
840 .RE
841 .PP
842 \fBReturns:\fP
843 .RS 4
844 the Gregorian year\&.
845 .RE
846 .PP
847
848 .SS "int \fBhdate_get_hday\fP (\fBhdate_struct\fP const *h)"
849 .PP
850 get the Hebrew day of the month \fBParameters:\fP
851 .RS 4
852 \fIh\fP pointer this hdate struct\&.
853 .RE
854 .PP
855 \fBReturns:\fP
856 .RS 4
857 the Hebrew day of the month, 1\&.\&.30\&.
858 .RE
859 .PP
860
861 .SS "int \fBhdate_get_hmonth\fP (\fBhdate_struct\fP const *h)"
862 .PP
863 get the Hebrew month \fBParameters:\fP
864 .RS 4
865 \fIh\fP pointer this hdate struct\&.
866 .RE
867 .PP
868 \fBReturns:\fP
869 .RS 4
870 the Hebrew month, Tishery = 1 \&.\&. Adar I =13, Adar II = 14\&.
871 .RE
872 .PP
873
874 .SS "int \fBhdate_get_hyear\fP (\fBhdate_struct\fP const *h)"
875 .PP
876 get the Hebrew year \fBParameters:\fP
877 .RS 4
878 \fIh\fP pointer this hdate struct\&.
879 .RE
880 .PP
881 \fBReturns:\fP
882 .RS 4
883 the Hebrew year\&.
884 .RE
885 .PP
886
887 .SS "int \fBhdate_get_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
888 .PP
889 get the day of the week \fBParameters:\fP
890 .RS 4
891 \fIh\fP pointer this hdate struct\&.
892 .RE
893 .PP
894 \fBReturns:\fP
895 .RS 4
896 the the day of the week\&.
897 .RE
898 .PP
899
900 .SS "int \fBhdate_get_size_of_year\fP (\fBhdate_struct\fP const *h)"
901 .PP
902 get the size of the hebrew year \fBParameters:\fP
903 .RS 4
904 \fIh\fP pointer this hdate struct\&.
905 .RE
906 .PP
907 \fBReturns:\fP
908 .RS 4
909 the the size of the hebrew year\&.
910 .RE
911 .PP
912
913 .SS "int \fBhdate_get_new_year_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
914 .PP
915 get the new year day of the week \fBParameters:\fP
916 .RS 4
917 \fIh\fP pointer this hdate struct\&.
918 .RE
919 .PP
920 \fBReturns:\fP
921 .RS 4
922 the the new year day of the week\&.
923 .RE
924 .PP
925
926 .SS "int \fBhdate_get_julian\fP (\fBhdate_struct\fP const *h)"
927 .PP
928 get the Julian day number \fBParameters:\fP
929 .RS 4
930 \fIh\fP pointer this hdate struct\&.
931 .RE
932 .PP
933 \fBReturns:\fP
934 .RS 4
935 the Julian day number\&.
936 .RE
937 .PP
938
939 .SS "int \fBhdate_get_days\fP (\fBhdate_struct\fP const *h)"
940 .PP
941 get the number of days passed since 1 tishrey \fBParameters:\fP
942 .RS 4
943 \fIh\fP pointer this hdate struct\&.
944 .RE
945 .PP
946 \fBReturns:\fP
947 .RS 4
948 the number of days passed since 1 tishrey\&.
949 .RE
950 .PP
951
952 .SS "int \fBhdate_get_weeks\fP (\fBhdate_struct\fP const *h)"
953 .PP
954 get the number of weeks passed since 1 tishrey \fBParameters:\fP
955 .RS 4
956 \fIh\fP pointer this hdate struct\&.
957 .RE
958 .PP
959 \fBReturns:\fP
960 .RS 4
961 the number of weeks passed since 1 tishrey\&.
962 .RE
963 .PP
964
965 .SS "\fBhdate_struct\fP* \fBnew_hdate\fP ()"
966 .PP
967 creat a new hdate struct object, must be deleted using delete_hdate\&. \fBReturns:\fP
968 .RS 4
969 a new hdate object
970 .RE
971 .PP
972
973 .SS "\fBhdate_struct\fP* \fBdelete_hdate\fP (\fBhdate_struct\fP *h)"
974 .PP
975 delete an hdate struct object\&. \fBParameters:\fP
976 .RS 4
977 \fIh\fP pointer this hdate struct\&.
978 .RE
979 .PP
980
981 .SS "char* \fBhdate_get_version_string\fP ()"
982 .PP
983 Return a static string, with the package name and version\&. \fBReturns:\fP
984 .RS 4
985 a static string, with the package name and version
986 .RE
987 .PP
988
989 .SS "char* \fBhdate_get_translator_string\fP ()"
990 .PP
991 name of translator \fBReturns:\fP
992 .RS 4
993 a static string with name of translator, or NULL if none\&.
994 .RE
995 .PP
996
997 .SS "int \fBhdate_is_hebrew_locale\fP ()"
998 .PP
999 helper function to find hebrew locale \fBReturns:\fP
1000 .RS 4
1001 0 - latin locale, -1 - hebrew locale
1002 .RE
1003 .PP
1004
1005 .SS "char* \fBhdate_string\fP (inttype_of_string, intindex, intshort_form, inthebrew_form)"
1006 .PP
1007 Return string values for hdate information\&. \fBReturns:\fP
1008 .RS 4
1009 a pointer to a string containing the information\&. In the cases integers and omer, the strings will NOT be static, and the caller must free() them after use\&. Returns a null pointer upon failure\&.
1010 .RE
1011 .PP
1012 \fBParameters:\fP
1013 .RS 4
1014 \fItype_of_string\fP 0 = integer, 1 = day of week, 2 = parshaot, 3 = hmonth, 4 = gmonth, 5 = holiday, 6 = omer
1015 .br
1016 \fIindex\fP integer ( 0 < n < 11000) day of week ( 0 < n < 8 ) parshaot ( 0 , n < 62 ) hmonth ( 0 < n < 15 ) gmonth ( 0 < n < 13 ) holiday ( 0 < n < 37 ) omer ( 0 < n < 50 )
1017 .br
1018 \fIshort_form\fP 0 = short format
1019 .br
1020 \fIhebrew_form\fP 0 = not hebrew (native/embedded)
1021 .RE
1022 .PP
1023
1024 .SH "Author"
1025 .PP
1026 Generated automatically by Doxygen for libhdate C language from the source code\&.
0 .TH "hdate::Hdate" 3 "6 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 "Sun Jan 8 2012" "Version 1.4" "libhdate C language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 hdate_struct \-
5 .PP
6 libhdate Hebrew date struct
7
8 .SH SYNOPSIS
9 .br
10 .PP
11 .PP
12 \fC#include <hdate\&.h>\fP
13 .SS "Data Fields"
14
15 .in +1c
16 .ti -1c
17 .RI "int \fBhd_day\fP"
18 .br
19 .ti -1c
20 .RI "int \fBhd_mon\fP"
21 .br
22 .ti -1c
23 .RI "int \fBhd_year\fP"
24 .br
25 .ti -1c
26 .RI "int \fBgd_day\fP"
27 .br
28 .ti -1c
29 .RI "int \fBgd_mon\fP"
30 .br
31 .ti -1c
32 .RI "int \fBgd_year\fP"
33 .br
34 .ti -1c
35 .RI "int \fBhd_dw\fP"
36 .br
37 .ti -1c
38 .RI "int \fBhd_size_of_year\fP"
39 .br
40 .ti -1c
41 .RI "int \fBhd_new_year_dw\fP"
42 .br
43 .ti -1c
44 .RI "int \fBhd_year_type\fP"
45 .br
46 .ti -1c
47 .RI "int \fBhd_jd\fP"
48 .br
49 .ti -1c
50 .RI "int \fBhd_days\fP"
51 .br
52 .ti -1c
53 .RI "int \fBhd_weeks\fP"
54 .br
55 .in -1c
56 .SH "Detailed Description"
57 .PP
58 libhdate Hebrew date struct
59 .SH "Field Documentation"
60 .PP
61 .SS "int \fBhdate_struct::hd_day\fP"The number of day in the hebrew month (1\&.\&.31)\&.
62 .SS "int \fBhdate_struct::hd_mon\fP"The number of the hebrew month 1\&.\&.14 (1 - tishre, 13 - adar 1, 14 - adar 2)\&.
63 .SS "int \fBhdate_struct::hd_year\fP"The number of the hebrew year\&.
64 .SS "int \fBhdate_struct::gd_day\fP"The number of the day in the month\&. (1\&.\&.31)
65 .SS "int \fBhdate_struct::gd_mon\fP"The number of the month 1\&.\&.12 (1 - jan)\&.
66 .SS "int \fBhdate_struct::gd_year\fP"The number of the year\&.
67 .SS "int \fBhdate_struct::hd_dw\fP"The day of the week 1\&.\&.7 (1 - sunday)\&.
68 .SS "int \fBhdate_struct::hd_size_of_year\fP"The length of the year in days\&.
69 .SS "int \fBhdate_struct::hd_new_year_dw\fP"The week day of Hebrew new year\&.
70 .SS "int \fBhdate_struct::hd_year_type\fP"The number type of year\&.
71 .SS "int \fBhdate_struct::hd_jd\fP"The Julian day number
72 .SS "int \fBhdate_struct::hd_days\fP"The number of days passed since 1 tishrey
73 .SS "int \fBhdate_struct::hd_weeks\fP"The number of weeks passed since 1 tishrey
74
75 .SH "Author"
76 .PP
77 Generated automatically by Doxygen for libhdate C language from the source code\&.
0 .TH "src/hdatepp.h" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 src/hdatepp.h \- libhdate C++ language header.
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 "Detailed Description"
27 .PP
28 libhdate C++ language header.
29
30 libhdate - Hebrew calendar library, the C++ language header file.
31 .SH "Author"
32 .PP
33 Generated automatically by Doxygen for libhdate C++ language from the source code.
0 SUBDIRS = hcal bindings
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = examples
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
40 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
41 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
45 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54 html-recursive info-recursive install-data-recursive \
55 install-dvi-recursive install-exec-recursive \
56 install-html-recursive install-info-recursive \
57 install-pdf-recursive install-ps-recursive install-recursive \
58 installcheck-recursive installdirs-recursive pdf-recursive \
59 ps-recursive uninstall-recursive
60 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
61 distclean-recursive maintainer-clean-recursive
62 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
63 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
64 distdir
65 ETAGS = etags
66 CTAGS = ctags
67 DIST_SUBDIRS = $(SUBDIRS)
68 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
69 am__relativize = \
70 dir0=`pwd`; \
71 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
72 sed_rest='s,^[^/]*/*,,'; \
73 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
74 sed_butlast='s,/*[^/]*$$,,'; \
75 while test -n "$$dir1"; do \
76 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
77 if test "$$first" != "."; then \
78 if test "$$first" = ".."; then \
79 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
80 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
81 else \
82 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
83 if test "$$first2" = "$$first"; then \
84 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
85 else \
86 dir2="../$$dir2"; \
87 fi; \
88 dir0="$$dir0"/"$$first"; \
89 fi; \
90 fi; \
91 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
92 done; \
93 reldir="$$dir2"
94 ACLOCAL = @ACLOCAL@
95 AMTAR = @AMTAR@
96 AR = @AR@
97 AUTOCONF = @AUTOCONF@
98 AUTOHEADER = @AUTOHEADER@
99 AUTOMAKE = @AUTOMAKE@
100 AWK = @AWK@
101 CC = @CC@
102 CCDEPMODE = @CCDEPMODE@
103 CFLAGS = @CFLAGS@
104 CPP = @CPP@
105 CPPFLAGS = @CPPFLAGS@
106 CYGPATH_W = @CYGPATH_W@
107 DATADIRNAME = @DATADIRNAME@
108 DEFS = @DEFS@
109 DEPDIR = @DEPDIR@
110 DLLTOOL = @DLLTOOL@
111 DSYMUTIL = @DSYMUTIL@
112 DUMPBIN = @DUMPBIN@
113 ECHO_C = @ECHO_C@
114 ECHO_N = @ECHO_N@
115 ECHO_T = @ECHO_T@
116 EGREP = @EGREP@
117 EXEEXT = @EXEEXT@
118 FGREP = @FGREP@
119 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
120 GMSGFMT = @GMSGFMT@
121 GMSGFMT_015 = @GMSGFMT_015@
122 GP_MODULES_PATH = @GP_MODULES_PATH@
123 GREP = @GREP@
124 INSTALL = @INSTALL@
125 INSTALL_DATA = @INSTALL_DATA@
126 INSTALL_PROGRAM = @INSTALL_PROGRAM@
127 INSTALL_SCRIPT = @INSTALL_SCRIPT@
128 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
129 INTLLIBS = @INTLLIBS@
130 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
131 LD = @LD@
132 LDFLAGS = @LDFLAGS@
133 LIBICONV = @LIBICONV@
134 LIBINTL = @LIBINTL@
135 LIBOBJS = @LIBOBJS@
136 LIBS = @LIBS@
137 LIBTOOL = @LIBTOOL@
138 LIPO = @LIPO@
139 LN_S = @LN_S@
140 LTLIBICONV = @LTLIBICONV@
141 LTLIBINTL = @LTLIBINTL@
142 LTLIBOBJS = @LTLIBOBJS@
143 MAINT = @MAINT@
144 MAKEINFO = @MAKEINFO@
145 MANIFEST_TOOL = @MANIFEST_TOOL@
146 MKDIR_P = @MKDIR_P@
147 MSGFMT = @MSGFMT@
148 MSGFMT_015 = @MSGFMT_015@
149 MSGMERGE = @MSGMERGE@
150 NM = @NM@
151 NMEDIT = @NMEDIT@
152 OBJDUMP = @OBJDUMP@
153 OBJEXT = @OBJEXT@
154 OTOOL = @OTOOL@
155 OTOOL64 = @OTOOL64@
156 PACKAGE = @PACKAGE@
157 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
158 PACKAGE_NAME = @PACKAGE_NAME@
159 PACKAGE_STRING = @PACKAGE_STRING@
160 PACKAGE_TARNAME = @PACKAGE_TARNAME@
161 PACKAGE_URL = @PACKAGE_URL@
162 PACKAGE_VERSION = @PACKAGE_VERSION@
163 PATH_SEPARATOR = @PATH_SEPARATOR@
164 PA_MODULES_PATH = @PA_MODULES_PATH@
165 PA_VERSION = @PA_VERSION@
166 PE_CFLAGS = @PE_CFLAGS@
167 PE_MODULES_PATH = @PE_MODULES_PATH@
168 PH_CONFIG_PATH = @PH_CONFIG_PATH@
169 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
170 PH_MODULES_PATH = @PH_MODULES_PATH@
171 PKG_CONFIG = @PKG_CONFIG@
172 POSUB = @POSUB@
173 PY_CFLAGS = @PY_CFLAGS@
174 PY_MODULES_PATH = @PY_MODULES_PATH@
175 PY_VERSION = @PY_VERSION@
176 RANLIB = @RANLIB@
177 RU_CFLAGS = @RU_CFLAGS@
178 RU_MODULES_PATH = @RU_MODULES_PATH@
179 RU_VERSION = @RU_VERSION@
180 SED = @SED@
181 SET_MAKE = @SET_MAKE@
182 SHELL = @SHELL@
183 STRIP = @STRIP@
184 USE_NLS = @USE_NLS@
185 VERSION = @VERSION@
186 VERSION_INFO = @VERSION_INFO@
187 XGETTEXT = @XGETTEXT@
188 XGETTEXT_015 = @XGETTEXT_015@
189 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
190 abs_builddir = @abs_builddir@
191 abs_srcdir = @abs_srcdir@
192 abs_top_builddir = @abs_top_builddir@
193 abs_top_srcdir = @abs_top_srcdir@
194 ac_ct_AR = @ac_ct_AR@
195 ac_ct_CC = @ac_ct_CC@
196 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
197 am__include = @am__include@
198 am__leading_dot = @am__leading_dot@
199 am__quote = @am__quote@
200 am__tar = @am__tar@
201 am__untar = @am__untar@
202 bindir = @bindir@
203 build = @build@
204 build_alias = @build_alias@
205 build_cpu = @build_cpu@
206 build_os = @build_os@
207 build_vendor = @build_vendor@
208 builddir = @builddir@
209 datadir = @datadir@
210 datarootdir = @datarootdir@
211 docdir = @docdir@
212 dvidir = @dvidir@
213 exec_prefix = @exec_prefix@
214 have_fpc = @have_fpc@
215 have_gpc = @have_gpc@
216 have_perl = @have_perl@
217 have_php = @have_php@
218 have_php_config = @have_php_config@
219 have_python = @have_python@
220 have_ruby = @have_ruby@
221 have_swig = @have_swig@
222 host = @host@
223 host_alias = @host_alias@
224 host_cpu = @host_cpu@
225 host_os = @host_os@
226 host_vendor = @host_vendor@
227 htmldir = @htmldir@
228 includedir = @includedir@
229 infodir = @infodir@
230 install_sh = @install_sh@
231 libdir = @libdir@
232 libexecdir = @libexecdir@
233 localedir = @localedir@
234 localstatedir = @localstatedir@
235 mandir = @mandir@
236 mkdir_p = @mkdir_p@
237 oldincludedir = @oldincludedir@
238 pdfdir = @pdfdir@
239 prefix = @prefix@
240 program_transform_name = @program_transform_name@
241 psdir = @psdir@
242 sbindir = @sbindir@
243 sharedstatedir = @sharedstatedir@
244 srcdir = @srcdir@
245 sysconfdir = @sysconfdir@
246 target_alias = @target_alias@
247 top_build_prefix = @top_build_prefix@
248 top_builddir = @top_builddir@
249 top_srcdir = @top_srcdir@
250 SUBDIRS = hcal bindings
251 all: all-recursive
252
253 .SUFFIXES:
254 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
255 @for dep in $?; do \
256 case '$(am__configure_deps)' in \
257 *$$dep*) \
258 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
259 && { if test -f $@; then exit 0; else break; fi; }; \
260 exit 1;; \
261 esac; \
262 done; \
263 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
264 $(am__cd) $(top_srcdir) && \
265 $(AUTOMAKE) --gnu examples/Makefile
266 .PRECIOUS: Makefile
267 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
268 @case '$?' in \
269 *config.status*) \
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
271 *) \
272 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
273 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
274 esac;
275
276 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
277 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278
279 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
282 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
283 $(am__aclocal_m4_deps):
284
285 mostlyclean-libtool:
286 -rm -f *.lo
287
288 clean-libtool:
289 -rm -rf .libs _libs
290
291 # This directory's subdirectories are mostly independent; you can cd
292 # into them and run `make' without going through this Makefile.
293 # To change the values of `make' variables: instead of editing Makefiles,
294 # (1) if the variable is set in `config.status', edit `config.status'
295 # (which will cause the Makefiles to be regenerated when you run `make');
296 # (2) otherwise, pass the desired values on the `make' command line.
297 $(RECURSIVE_TARGETS):
298 @fail= failcom='exit 1'; \
299 for f in x $$MAKEFLAGS; do \
300 case $$f in \
301 *=* | --[!k]*);; \
302 *k*) failcom='fail=yes';; \
303 esac; \
304 done; \
305 dot_seen=no; \
306 target=`echo $@ | sed s/-recursive//`; \
307 list='$(SUBDIRS)'; for subdir in $$list; do \
308 echo "Making $$target in $$subdir"; \
309 if test "$$subdir" = "."; then \
310 dot_seen=yes; \
311 local_target="$$target-am"; \
312 else \
313 local_target="$$target"; \
314 fi; \
315 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
316 || eval $$failcom; \
317 done; \
318 if test "$$dot_seen" = "no"; then \
319 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
320 fi; test -z "$$fail"
321
322 $(RECURSIVE_CLEAN_TARGETS):
323 @fail= failcom='exit 1'; \
324 for f in x $$MAKEFLAGS; do \
325 case $$f in \
326 *=* | --[!k]*);; \
327 *k*) failcom='fail=yes';; \
328 esac; \
329 done; \
330 dot_seen=no; \
331 case "$@" in \
332 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
333 *) list='$(SUBDIRS)' ;; \
334 esac; \
335 rev=''; for subdir in $$list; do \
336 if test "$$subdir" = "."; then :; else \
337 rev="$$subdir $$rev"; \
338 fi; \
339 done; \
340 rev="$$rev ."; \
341 target=`echo $@ | sed s/-recursive//`; \
342 for subdir in $$rev; do \
343 echo "Making $$target in $$subdir"; \
344 if test "$$subdir" = "."; then \
345 local_target="$$target-am"; \
346 else \
347 local_target="$$target"; \
348 fi; \
349 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
350 || eval $$failcom; \
351 done && test -z "$$fail"
352 tags-recursive:
353 list='$(SUBDIRS)'; for subdir in $$list; do \
354 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
355 done
356 ctags-recursive:
357 list='$(SUBDIRS)'; for subdir in $$list; do \
358 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
359 done
360
361 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369 tags: TAGS
370
371 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 set x; \
374 here=`pwd`; \
375 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
376 include_option=--etags-include; \
377 empty_fix=.; \
378 else \
379 include_option=--include; \
380 empty_fix=; \
381 fi; \
382 list='$(SUBDIRS)'; for subdir in $$list; do \
383 if test "$$subdir" = .; then :; else \
384 test ! -f $$subdir/TAGS || \
385 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
386 fi; \
387 done; \
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
394 shift; \
395 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
396 test -n "$$unique" || unique=$$empty_fix; \
397 if test $$# -gt 0; then \
398 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
399 "$$@" $$unique; \
400 else \
401 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
402 $$unique; \
403 fi; \
404 fi
405 ctags: CTAGS
406 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
407 $(TAGS_FILES) $(LISP)
408 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | \
412 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413 END { if (nonempty) { for (i in files) print i; }; }'`; \
414 test -z "$(CTAGS_ARGS)$$unique" \
415 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
416 $$unique
417
418 GTAGS:
419 here=`$(am__cd) $(top_builddir) && pwd` \
420 && $(am__cd) $(top_srcdir) \
421 && gtags -i $(GTAGS_ARGS) "$$here"
422
423 distclean-tags:
424 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
425
426 distdir: $(DISTFILES)
427 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
428 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
429 list='$(DISTFILES)'; \
430 dist_files=`for file in $$list; do echo $$file; done | \
431 sed -e "s|^$$srcdirstrip/||;t" \
432 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
433 case $$dist_files in \
434 */*) $(MKDIR_P) `echo "$$dist_files" | \
435 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
436 sort -u` ;; \
437 esac; \
438 for file in $$dist_files; do \
439 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
440 if test -d $$d/$$file; then \
441 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
442 if test -d "$(distdir)/$$file"; then \
443 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
444 fi; \
445 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
446 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
447 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
448 fi; \
449 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
450 else \
451 test -f "$(distdir)/$$file" \
452 || cp -p $$d/$$file "$(distdir)/$$file" \
453 || exit 1; \
454 fi; \
455 done
456 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
457 if test "$$subdir" = .; then :; else \
458 test -d "$(distdir)/$$subdir" \
459 || $(MKDIR_P) "$(distdir)/$$subdir" \
460 || exit 1; \
461 fi; \
462 done
463 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
464 if test "$$subdir" = .; then :; else \
465 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
466 $(am__relativize); \
467 new_distdir=$$reldir; \
468 dir1=$$subdir; dir2="$(top_distdir)"; \
469 $(am__relativize); \
470 new_top_distdir=$$reldir; \
471 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
472 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
473 ($(am__cd) $$subdir && \
474 $(MAKE) $(AM_MAKEFLAGS) \
475 top_distdir="$$new_top_distdir" \
476 distdir="$$new_distdir" \
477 am__remove_distdir=: \
478 am__skip_length_check=: \
479 am__skip_mode_fix=: \
480 distdir) \
481 || exit 1; \
482 fi; \
483 done
484 check-am: all-am
485 check: check-recursive
486 all-am: Makefile
487 installdirs: installdirs-recursive
488 installdirs-am:
489 install: install-recursive
490 install-exec: install-exec-recursive
491 install-data: install-data-recursive
492 uninstall: uninstall-recursive
493
494 install-am: all-am
495 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
496
497 installcheck: installcheck-recursive
498 install-strip:
499 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
500 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
501 `test -z '$(STRIP)' || \
502 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
503 mostlyclean-generic:
504
505 clean-generic:
506
507 distclean-generic:
508 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
509 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
510
511 maintainer-clean-generic:
512 @echo "This command is intended for maintainers to use"
513 @echo "it deletes files that may require special tools to rebuild."
514 clean: clean-recursive
515
516 clean-am: clean-generic clean-libtool mostlyclean-am
517
518 distclean: distclean-recursive
519 -rm -f Makefile
520 distclean-am: clean-am distclean-generic distclean-tags
521
522 dvi: dvi-recursive
523
524 dvi-am:
525
526 html: html-recursive
527
528 html-am:
529
530 info: info-recursive
531
532 info-am:
533
534 install-data-am:
535
536 install-dvi: install-dvi-recursive
537
538 install-dvi-am:
539
540 install-exec-am:
541
542 install-html: install-html-recursive
543
544 install-html-am:
545
546 install-info: install-info-recursive
547
548 install-info-am:
549
550 install-man:
551
552 install-pdf: install-pdf-recursive
553
554 install-pdf-am:
555
556 install-ps: install-ps-recursive
557
558 install-ps-am:
559
560 installcheck-am:
561
562 maintainer-clean: maintainer-clean-recursive
563 -rm -f Makefile
564 maintainer-clean-am: distclean-am maintainer-clean-generic
565
566 mostlyclean: mostlyclean-recursive
567
568 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
569
570 pdf: pdf-recursive
571
572 pdf-am:
573
574 ps: ps-recursive
575
576 ps-am:
577
578 uninstall-am:
579
580 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
581 install-am install-strip tags-recursive
582
583 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
584 all all-am check check-am clean clean-generic clean-libtool \
585 ctags ctags-recursive distclean distclean-generic \
586 distclean-libtool distclean-tags distdir dvi dvi-am html \
587 html-am info info-am install install-am install-data \
588 install-data-am install-dvi install-dvi-am install-exec \
589 install-exec-am install-html install-html-am install-info \
590 install-info-am install-man install-pdf install-pdf-am \
591 install-ps install-ps-am install-strip installcheck \
592 installcheck-am installdirs installdirs-am maintainer-clean \
593 maintainer-clean-generic mostlyclean mostlyclean-generic \
594 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
595 uninstall uninstall-am
596
597
598 # Tell versions [3.59,3.63) of GNU make to not export all variables.
599 # Otherwise a system limit (for SysV at least) may be exceeded.
600 .NOEXPORT:
0 SUBDIRS = pascal
1
2 EXTRA_DIST = \
3 hdate_c.c \
4 hdate_cpp.cpp \
5 hdate_pas.pas \
6 hdate_python.py \
7 hdate_perl.pl \
8 hdate_ruby.rb \
9 hdate_php.php
10
11 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
12 libhdatedoc_DATA = $(EXTRA_DIST)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = examples/bindings
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
40 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
41 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
42 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
43 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
44 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
45 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
46 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
52 SOURCES =
53 DIST_SOURCES =
54 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
55 html-recursive info-recursive install-data-recursive \
56 install-dvi-recursive install-exec-recursive \
57 install-html-recursive install-info-recursive \
58 install-pdf-recursive install-ps-recursive install-recursive \
59 installcheck-recursive installdirs-recursive pdf-recursive \
60 ps-recursive uninstall-recursive
61 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
62 am__vpath_adj = case $$p in \
63 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
64 *) f=$$p;; \
65 esac;
66 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
67 am__install_max = 40
68 am__nobase_strip_setup = \
69 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
70 am__nobase_strip = \
71 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
72 am__nobase_list = $(am__nobase_strip_setup); \
73 for p in $$list; do echo "$$p $$p"; done | \
74 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
75 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
76 if (++n[$$2] == $(am__install_max)) \
77 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
78 END { for (dir in files) print dir, files[dir] }'
79 am__base_list = \
80 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
81 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
82 am__installdirs = "$(DESTDIR)$(libhdatedocdir)"
83 DATA = $(libhdatedoc_DATA)
84 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
85 distclean-recursive maintainer-clean-recursive
86 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
87 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
88 distdir
89 ETAGS = etags
90 CTAGS = ctags
91 DIST_SUBDIRS = $(SUBDIRS)
92 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
93 am__relativize = \
94 dir0=`pwd`; \
95 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
96 sed_rest='s,^[^/]*/*,,'; \
97 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
98 sed_butlast='s,/*[^/]*$$,,'; \
99 while test -n "$$dir1"; do \
100 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
101 if test "$$first" != "."; then \
102 if test "$$first" = ".."; then \
103 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
104 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
105 else \
106 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
107 if test "$$first2" = "$$first"; then \
108 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
109 else \
110 dir2="../$$dir2"; \
111 fi; \
112 dir0="$$dir0"/"$$first"; \
113 fi; \
114 fi; \
115 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
116 done; \
117 reldir="$$dir2"
118 ACLOCAL = @ACLOCAL@
119 AMTAR = @AMTAR@
120 AR = @AR@
121 AUTOCONF = @AUTOCONF@
122 AUTOHEADER = @AUTOHEADER@
123 AUTOMAKE = @AUTOMAKE@
124 AWK = @AWK@
125 CC = @CC@
126 CCDEPMODE = @CCDEPMODE@
127 CFLAGS = @CFLAGS@
128 CPP = @CPP@
129 CPPFLAGS = @CPPFLAGS@
130 CYGPATH_W = @CYGPATH_W@
131 DATADIRNAME = @DATADIRNAME@
132 DEFS = @DEFS@
133 DEPDIR = @DEPDIR@
134 DLLTOOL = @DLLTOOL@
135 DSYMUTIL = @DSYMUTIL@
136 DUMPBIN = @DUMPBIN@
137 ECHO_C = @ECHO_C@
138 ECHO_N = @ECHO_N@
139 ECHO_T = @ECHO_T@
140 EGREP = @EGREP@
141 EXEEXT = @EXEEXT@
142 FGREP = @FGREP@
143 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
144 GMSGFMT = @GMSGFMT@
145 GMSGFMT_015 = @GMSGFMT_015@
146 GP_MODULES_PATH = @GP_MODULES_PATH@
147 GREP = @GREP@
148 INSTALL = @INSTALL@
149 INSTALL_DATA = @INSTALL_DATA@
150 INSTALL_PROGRAM = @INSTALL_PROGRAM@
151 INSTALL_SCRIPT = @INSTALL_SCRIPT@
152 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
153 INTLLIBS = @INTLLIBS@
154 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
155 LD = @LD@
156 LDFLAGS = @LDFLAGS@
157 LIBICONV = @LIBICONV@
158 LIBINTL = @LIBINTL@
159 LIBOBJS = @LIBOBJS@
160 LIBS = @LIBS@
161 LIBTOOL = @LIBTOOL@
162 LIPO = @LIPO@
163 LN_S = @LN_S@
164 LTLIBICONV = @LTLIBICONV@
165 LTLIBINTL = @LTLIBINTL@
166 LTLIBOBJS = @LTLIBOBJS@
167 MAINT = @MAINT@
168 MAKEINFO = @MAKEINFO@
169 MANIFEST_TOOL = @MANIFEST_TOOL@
170 MKDIR_P = @MKDIR_P@
171 MSGFMT = @MSGFMT@
172 MSGFMT_015 = @MSGFMT_015@
173 MSGMERGE = @MSGMERGE@
174 NM = @NM@
175 NMEDIT = @NMEDIT@
176 OBJDUMP = @OBJDUMP@
177 OBJEXT = @OBJEXT@
178 OTOOL = @OTOOL@
179 OTOOL64 = @OTOOL64@
180 PACKAGE = @PACKAGE@
181 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
182 PACKAGE_NAME = @PACKAGE_NAME@
183 PACKAGE_STRING = @PACKAGE_STRING@
184 PACKAGE_TARNAME = @PACKAGE_TARNAME@
185 PACKAGE_URL = @PACKAGE_URL@
186 PACKAGE_VERSION = @PACKAGE_VERSION@
187 PATH_SEPARATOR = @PATH_SEPARATOR@
188 PA_MODULES_PATH = @PA_MODULES_PATH@
189 PA_VERSION = @PA_VERSION@
190 PE_CFLAGS = @PE_CFLAGS@
191 PE_MODULES_PATH = @PE_MODULES_PATH@
192 PH_CONFIG_PATH = @PH_CONFIG_PATH@
193 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
194 PH_MODULES_PATH = @PH_MODULES_PATH@
195 PKG_CONFIG = @PKG_CONFIG@
196 POSUB = @POSUB@
197 PY_CFLAGS = @PY_CFLAGS@
198 PY_MODULES_PATH = @PY_MODULES_PATH@
199 PY_VERSION = @PY_VERSION@
200 RANLIB = @RANLIB@
201 RU_CFLAGS = @RU_CFLAGS@
202 RU_MODULES_PATH = @RU_MODULES_PATH@
203 RU_VERSION = @RU_VERSION@
204 SED = @SED@
205 SET_MAKE = @SET_MAKE@
206 SHELL = @SHELL@
207 STRIP = @STRIP@
208 USE_NLS = @USE_NLS@
209 VERSION = @VERSION@
210 VERSION_INFO = @VERSION_INFO@
211 XGETTEXT = @XGETTEXT@
212 XGETTEXT_015 = @XGETTEXT_015@
213 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
214 abs_builddir = @abs_builddir@
215 abs_srcdir = @abs_srcdir@
216 abs_top_builddir = @abs_top_builddir@
217 abs_top_srcdir = @abs_top_srcdir@
218 ac_ct_AR = @ac_ct_AR@
219 ac_ct_CC = @ac_ct_CC@
220 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
221 am__include = @am__include@
222 am__leading_dot = @am__leading_dot@
223 am__quote = @am__quote@
224 am__tar = @am__tar@
225 am__untar = @am__untar@
226 bindir = @bindir@
227 build = @build@
228 build_alias = @build_alias@
229 build_cpu = @build_cpu@
230 build_os = @build_os@
231 build_vendor = @build_vendor@
232 builddir = @builddir@
233 datadir = @datadir@
234 datarootdir = @datarootdir@
235 docdir = @docdir@
236 dvidir = @dvidir@
237 exec_prefix = @exec_prefix@
238 have_fpc = @have_fpc@
239 have_gpc = @have_gpc@
240 have_perl = @have_perl@
241 have_php = @have_php@
242 have_php_config = @have_php_config@
243 have_python = @have_python@
244 have_ruby = @have_ruby@
245 have_swig = @have_swig@
246 host = @host@
247 host_alias = @host_alias@
248 host_cpu = @host_cpu@
249 host_os = @host_os@
250 host_vendor = @host_vendor@
251 htmldir = @htmldir@
252 includedir = @includedir@
253 infodir = @infodir@
254 install_sh = @install_sh@
255 libdir = @libdir@
256 libexecdir = @libexecdir@
257 localedir = @localedir@
258 localstatedir = @localstatedir@
259 mandir = @mandir@
260 mkdir_p = @mkdir_p@
261 oldincludedir = @oldincludedir@
262 pdfdir = @pdfdir@
263 prefix = @prefix@
264 program_transform_name = @program_transform_name@
265 psdir = @psdir@
266 sbindir = @sbindir@
267 sharedstatedir = @sharedstatedir@
268 srcdir = @srcdir@
269 sysconfdir = @sysconfdir@
270 target_alias = @target_alias@
271 top_build_prefix = @top_build_prefix@
272 top_builddir = @top_builddir@
273 top_srcdir = @top_srcdir@
274 SUBDIRS = pascal
275 EXTRA_DIST = \
276 hdate_c.c \
277 hdate_cpp.cpp \
278 hdate_pas.pas \
279 hdate_python.py \
280 hdate_perl.pl \
281 hdate_ruby.rb \
282 hdate_php.php
283
284 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
285 libhdatedoc_DATA = $(EXTRA_DIST)
286 all: all-recursive
287
288 .SUFFIXES:
289 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
290 @for dep in $?; do \
291 case '$(am__configure_deps)' in \
292 *$$dep*) \
293 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
294 && { if test -f $@; then exit 0; else break; fi; }; \
295 exit 1;; \
296 esac; \
297 done; \
298 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/bindings/Makefile'; \
299 $(am__cd) $(top_srcdir) && \
300 $(AUTOMAKE) --gnu examples/bindings/Makefile
301 .PRECIOUS: Makefile
302 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
303 @case '$?' in \
304 *config.status*) \
305 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
306 *) \
307 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
308 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
309 esac;
310
311 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
312 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
313
314 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
315 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
316 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
317 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
318 $(am__aclocal_m4_deps):
319
320 mostlyclean-libtool:
321 -rm -f *.lo
322
323 clean-libtool:
324 -rm -rf .libs _libs
325 install-libhdatedocDATA: $(libhdatedoc_DATA)
326 @$(NORMAL_INSTALL)
327 test -z "$(libhdatedocdir)" || $(MKDIR_P) "$(DESTDIR)$(libhdatedocdir)"
328 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
329 for p in $$list; do \
330 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
331 echo "$$d$$p"; \
332 done | $(am__base_list) | \
333 while read files; do \
334 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libhdatedocdir)'"; \
335 $(INSTALL_DATA) $$files "$(DESTDIR)$(libhdatedocdir)" || exit $$?; \
336 done
337
338 uninstall-libhdatedocDATA:
339 @$(NORMAL_UNINSTALL)
340 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
341 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
342 test -n "$$files" || exit 0; \
343 echo " ( cd '$(DESTDIR)$(libhdatedocdir)' && rm -f" $$files ")"; \
344 cd "$(DESTDIR)$(libhdatedocdir)" && rm -f $$files
345
346 # This directory's subdirectories are mostly independent; you can cd
347 # into them and run `make' without going through this Makefile.
348 # To change the values of `make' variables: instead of editing Makefiles,
349 # (1) if the variable is set in `config.status', edit `config.status'
350 # (which will cause the Makefiles to be regenerated when you run `make');
351 # (2) otherwise, pass the desired values on the `make' command line.
352 $(RECURSIVE_TARGETS):
353 @fail= failcom='exit 1'; \
354 for f in x $$MAKEFLAGS; do \
355 case $$f in \
356 *=* | --[!k]*);; \
357 *k*) failcom='fail=yes';; \
358 esac; \
359 done; \
360 dot_seen=no; \
361 target=`echo $@ | sed s/-recursive//`; \
362 list='$(SUBDIRS)'; for subdir in $$list; do \
363 echo "Making $$target in $$subdir"; \
364 if test "$$subdir" = "."; then \
365 dot_seen=yes; \
366 local_target="$$target-am"; \
367 else \
368 local_target="$$target"; \
369 fi; \
370 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
371 || eval $$failcom; \
372 done; \
373 if test "$$dot_seen" = "no"; then \
374 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
375 fi; test -z "$$fail"
376
377 $(RECURSIVE_CLEAN_TARGETS):
378 @fail= failcom='exit 1'; \
379 for f in x $$MAKEFLAGS; do \
380 case $$f in \
381 *=* | --[!k]*);; \
382 *k*) failcom='fail=yes';; \
383 esac; \
384 done; \
385 dot_seen=no; \
386 case "$@" in \
387 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
388 *) list='$(SUBDIRS)' ;; \
389 esac; \
390 rev=''; for subdir in $$list; do \
391 if test "$$subdir" = "."; then :; else \
392 rev="$$subdir $$rev"; \
393 fi; \
394 done; \
395 rev="$$rev ."; \
396 target=`echo $@ | sed s/-recursive//`; \
397 for subdir in $$rev; do \
398 echo "Making $$target in $$subdir"; \
399 if test "$$subdir" = "."; then \
400 local_target="$$target-am"; \
401 else \
402 local_target="$$target"; \
403 fi; \
404 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
405 || eval $$failcom; \
406 done && test -z "$$fail"
407 tags-recursive:
408 list='$(SUBDIRS)'; for subdir in $$list; do \
409 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
410 done
411 ctags-recursive:
412 list='$(SUBDIRS)'; for subdir in $$list; do \
413 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
414 done
415
416 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
417 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
418 unique=`for i in $$list; do \
419 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
420 done | \
421 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
422 END { if (nonempty) { for (i in files) print i; }; }'`; \
423 mkid -fID $$unique
424 tags: TAGS
425
426 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
427 $(TAGS_FILES) $(LISP)
428 set x; \
429 here=`pwd`; \
430 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
431 include_option=--etags-include; \
432 empty_fix=.; \
433 else \
434 include_option=--include; \
435 empty_fix=; \
436 fi; \
437 list='$(SUBDIRS)'; for subdir in $$list; do \
438 if test "$$subdir" = .; then :; else \
439 test ! -f $$subdir/TAGS || \
440 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
441 fi; \
442 done; \
443 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
444 unique=`for i in $$list; do \
445 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
446 done | \
447 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
448 END { if (nonempty) { for (i in files) print i; }; }'`; \
449 shift; \
450 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
451 test -n "$$unique" || unique=$$empty_fix; \
452 if test $$# -gt 0; then \
453 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
454 "$$@" $$unique; \
455 else \
456 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
457 $$unique; \
458 fi; \
459 fi
460 ctags: CTAGS
461 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
462 $(TAGS_FILES) $(LISP)
463 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
464 unique=`for i in $$list; do \
465 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
466 done | \
467 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
468 END { if (nonempty) { for (i in files) print i; }; }'`; \
469 test -z "$(CTAGS_ARGS)$$unique" \
470 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
471 $$unique
472
473 GTAGS:
474 here=`$(am__cd) $(top_builddir) && pwd` \
475 && $(am__cd) $(top_srcdir) \
476 && gtags -i $(GTAGS_ARGS) "$$here"
477
478 distclean-tags:
479 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
480
481 distdir: $(DISTFILES)
482 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
483 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
484 list='$(DISTFILES)'; \
485 dist_files=`for file in $$list; do echo $$file; done | \
486 sed -e "s|^$$srcdirstrip/||;t" \
487 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
488 case $$dist_files in \
489 */*) $(MKDIR_P) `echo "$$dist_files" | \
490 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
491 sort -u` ;; \
492 esac; \
493 for file in $$dist_files; do \
494 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
495 if test -d $$d/$$file; then \
496 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
497 if test -d "$(distdir)/$$file"; then \
498 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
499 fi; \
500 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
501 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
502 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
503 fi; \
504 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
505 else \
506 test -f "$(distdir)/$$file" \
507 || cp -p $$d/$$file "$(distdir)/$$file" \
508 || exit 1; \
509 fi; \
510 done
511 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
512 if test "$$subdir" = .; then :; else \
513 test -d "$(distdir)/$$subdir" \
514 || $(MKDIR_P) "$(distdir)/$$subdir" \
515 || exit 1; \
516 fi; \
517 done
518 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
519 if test "$$subdir" = .; then :; else \
520 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
521 $(am__relativize); \
522 new_distdir=$$reldir; \
523 dir1=$$subdir; dir2="$(top_distdir)"; \
524 $(am__relativize); \
525 new_top_distdir=$$reldir; \
526 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
527 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
528 ($(am__cd) $$subdir && \
529 $(MAKE) $(AM_MAKEFLAGS) \
530 top_distdir="$$new_top_distdir" \
531 distdir="$$new_distdir" \
532 am__remove_distdir=: \
533 am__skip_length_check=: \
534 am__skip_mode_fix=: \
535 distdir) \
536 || exit 1; \
537 fi; \
538 done
539 check-am: all-am
540 check: check-recursive
541 all-am: Makefile $(DATA)
542 installdirs: installdirs-recursive
543 installdirs-am:
544 for dir in "$(DESTDIR)$(libhdatedocdir)"; do \
545 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
546 done
547 install: install-recursive
548 install-exec: install-exec-recursive
549 install-data: install-data-recursive
550 uninstall: uninstall-recursive
551
552 install-am: all-am
553 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
554
555 installcheck: installcheck-recursive
556 install-strip:
557 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
558 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
559 `test -z '$(STRIP)' || \
560 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
561 mostlyclean-generic:
562
563 clean-generic:
564
565 distclean-generic:
566 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
567 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
568
569 maintainer-clean-generic:
570 @echo "This command is intended for maintainers to use"
571 @echo "it deletes files that may require special tools to rebuild."
572 clean: clean-recursive
573
574 clean-am: clean-generic clean-libtool mostlyclean-am
575
576 distclean: distclean-recursive
577 -rm -f Makefile
578 distclean-am: clean-am distclean-generic distclean-tags
579
580 dvi: dvi-recursive
581
582 dvi-am:
583
584 html: html-recursive
585
586 html-am:
587
588 info: info-recursive
589
590 info-am:
591
592 install-data-am: install-libhdatedocDATA
593
594 install-dvi: install-dvi-recursive
595
596 install-dvi-am:
597
598 install-exec-am:
599
600 install-html: install-html-recursive
601
602 install-html-am:
603
604 install-info: install-info-recursive
605
606 install-info-am:
607
608 install-man:
609
610 install-pdf: install-pdf-recursive
611
612 install-pdf-am:
613
614 install-ps: install-ps-recursive
615
616 install-ps-am:
617
618 installcheck-am:
619
620 maintainer-clean: maintainer-clean-recursive
621 -rm -f Makefile
622 maintainer-clean-am: distclean-am maintainer-clean-generic
623
624 mostlyclean: mostlyclean-recursive
625
626 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
627
628 pdf: pdf-recursive
629
630 pdf-am:
631
632 ps: ps-recursive
633
634 ps-am:
635
636 uninstall-am: uninstall-libhdatedocDATA
637
638 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
639 install-am install-strip tags-recursive
640
641 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
642 all all-am check check-am clean clean-generic clean-libtool \
643 ctags ctags-recursive distclean distclean-generic \
644 distclean-libtool distclean-tags distdir dvi dvi-am html \
645 html-am info info-am install install-am install-data \
646 install-data-am install-dvi install-dvi-am install-exec \
647 install-exec-am install-html install-html-am install-info \
648 install-info-am install-libhdatedocDATA install-man \
649 install-pdf install-pdf-am install-ps install-ps-am \
650 install-strip installcheck installcheck-am installdirs \
651 installdirs-am maintainer-clean maintainer-clean-generic \
652 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
653 ps ps-am tags tags-recursive uninstall uninstall-am \
654 uninstall-libhdatedocDATA
655
656
657 # Tell versions [3.59,3.63) of GNU make to not export all variables.
658 # Otherwise a system limit (for SysV at least) may be exceeded.
659 .NOEXPORT:
0 /* hdate_c.c
1 * example file for libhdate.
2 */
3
4 /*
5 compile: gcc -lm -lhdate -o hdate_c hdate_c.c
6 */
7
8 /*
9 * Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 */
24
25 #include <stdio.h> /* for printf */
26 #include <hdate.h> /* for hebrew date */
27
28 int
29 main()
30 {
31 /* date will be stored in h */
32 hdate_struct *h;
33
34 /* alocate the hdate memory */
35 h = new_hdate ();
36
37 /* copy the hebrew date struct of today <day=0, month=0, year=0> */
38 hdate_set_gdate(h, 0, 0, 0);
39
40 /* print gregorian date */
41 printf ("Today is :\n");
42 printf ("%d,%d,%d\n", hdate_get_gday (h), hdate_get_gmonth (h), hdate_get_gyear (h));
43
44 /* print hebrew date: 0 - israely holidays, 0 - long format */
45 printf ("%s\n", hdate_get_format_date (h, 0, 0));
46 printf ("\n");
47
48 /* unref the used memory */
49 delete_hdate (h);
50
51 return 0;
52 }
53
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 //
9 // Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
10 //
11 // This program is free software: you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation, either version 3 of the License, or
14 // (at your option) any later version.
15 //
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, see <http://www.gnu.org/licenses/>.
23 //
24
25 #include <iostream>
26 #include <hdatepp.h>
27
28 using namespace std;
29 using namespace hdate;
30
31 int
32 main (int argc, char* argv[])
33 {
34 // create a new Hdate object
35 Hdate h;
36
37 // print gregorian date
38 cout << "Today is :" << endl;
39 cout << h.get_gday () << "," << h.get_gmonth () << "," << h.get_gyear () << endl;
40
41 // print hebrew date: 0 - long format
42 cout << h.get_format_date (0) << endl;
43
44 return 0;
45 }
0 (* hdate_pas.pas
1 * example file for libhdate.
2 *)
3
4 (*
5 compile: gpc --automake hdate_pas.pas --cstrings-as-strings -lhdate -o hdate_pas
6 *)
7
8 (*
9 * Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 *)
24
25 program hdate_pas;
26
27 uses hdate;
28
29 var
30 h: Phdate_struct; { date will be stored in h }
31 d, m, y: Integer;
32
33 begin
34 { alocate the hdate memory }
35 h := new_hdate ();
36
37 { copy the hebrew date struct of today <day=0, month=0, year=0> }
38 h := hdate_set_gdate(h, 0, 0, 0);
39
40 { print gregorian date }
41 writeLN ('Today is :');
42
43 d := hdate_get_gday (h);
44 m := hdate_get_gmonth (h);
45 y := hdate_get_gyear (h);
46 writeLN (d, ',', m , ',', y);
47
48 { print hebrew date: 0 - israely holidays, 0 - long format }
49 writeLN (hdate_get_format_date (h, 0, 0));
50
51 { unref the used memory }
52 h := delete_hdate(h);
53 end.
54
0 #! /usr/bin/perl
1
2 # hdate_perl.pl
3 # example file for libhdate.
4 #
5
6 #
7 # run: perl hdate_perl.pl
8 #
9
10 #
11 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
12 #
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #
26
27 # Use the hdate perl module
28 use hdate;
29
30 # Create a new Hdate object
31 $h = new hdate::Hdate();
32
33 # Print gregorian date
34 print "Today is:\n";
35 print $h->get_gday() . "," . $h->get_gmonth() . "," . $h->get_gyear() . "\n";
36
37 # Print hebrew date: 0 - long format
38 print $h->get_format_date (0) . "\n";
0 #! /usr/bin/php
1 <?php
2
3 # hdate_php.php
4 # example file for libhdate.
5 #
6
7 #
8 # run: php hdate_php.php
9 #
10
11 #
12 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
13 #
14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
18 #
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #
27
28 require ("hdate.php");
29
30 # Create a new Hdate object
31 $h = new Hdate();
32
33 # Print gregorian date
34 echo "Today is:\n";
35 echo $h->get_gday().".".$h->get_gmonth().",".$h->get_gyear()."\n";
36
37 # Print hebrew date: 0 - long format
38 echo $h->get_format_date(0)."\n";
39
40 ?>
0 #! /usr/bin/python
1
2 # hdate_python.py
3 # example file for libhdate.
4 #
5
6 #
7 # run: python hdate_python.py
8 #
9
10 #
11 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
12 #
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #
26
27 # Use locale to support hdate localization
28 import locale
29 locale.setlocale(locale.LC_ALL,'')
30
31 # Import the hdate library
32 from hdate import *;
33
34 # Create a new Hdate object
35 h = Hdate ();
36
37 # Print gregorian date
38 print "Today is:"
39 print str (h.get_gday ()) + "," + str (h.get_gmonth ()) + "," + str (h.get_gyear ())
40
41 # Print hebrew date: 0 - long format
42 print h.get_format_date (0);
0 #! /usr/bin/ruby
1
2 # hdate_ruby.rb
3 # example file for libhdate.
4 #
5
6 #
7 # run: ruby hdate_ruby.rb
8 #
9
10 #
11 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
12 #
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #
26
27 # Import the hdate library
28 require 'hdate'
29
30 # Create a new Hdate object
31 h = Hdate::Hdate.new
32
33 # Print gregorian date
34 puts "Today is:"
35 puts "#{h.get_gday()},#{h.get_gmonth()},#{h.get_gyear()}"
36
37 # Print hebrew date: 0 - long format
38 puts h.get_format_date(0);
0 EXTRA_DIST = hdate_class.pp hdate_obj.pp hdate_pascal.pp
1
2 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings/pascal
3 libhdatedoc_DATA = hdate_class.pp hdate_obj.pp hdate_pascal.pp
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = examples/bindings/pascal
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
40 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
41 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
42 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
43 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
44 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
45 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
46 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
52 SOURCES =
53 DIST_SOURCES =
54 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55 am__vpath_adj = case $$p in \
56 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57 *) f=$$p;; \
58 esac;
59 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
60 am__install_max = 40
61 am__nobase_strip_setup = \
62 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
63 am__nobase_strip = \
64 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
65 am__nobase_list = $(am__nobase_strip_setup); \
66 for p in $$list; do echo "$$p $$p"; done | \
67 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
68 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
69 if (++n[$$2] == $(am__install_max)) \
70 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
71 END { for (dir in files) print dir, files[dir] }'
72 am__base_list = \
73 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
74 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
75 am__installdirs = "$(DESTDIR)$(libhdatedocdir)"
76 DATA = $(libhdatedoc_DATA)
77 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78 ACLOCAL = @ACLOCAL@
79 AMTAR = @AMTAR@
80 AR = @AR@
81 AUTOCONF = @AUTOCONF@
82 AUTOHEADER = @AUTOHEADER@
83 AUTOMAKE = @AUTOMAKE@
84 AWK = @AWK@
85 CC = @CC@
86 CCDEPMODE = @CCDEPMODE@
87 CFLAGS = @CFLAGS@
88 CPP = @CPP@
89 CPPFLAGS = @CPPFLAGS@
90 CYGPATH_W = @CYGPATH_W@
91 DATADIRNAME = @DATADIRNAME@
92 DEFS = @DEFS@
93 DEPDIR = @DEPDIR@
94 DLLTOOL = @DLLTOOL@
95 DSYMUTIL = @DSYMUTIL@
96 DUMPBIN = @DUMPBIN@
97 ECHO_C = @ECHO_C@
98 ECHO_N = @ECHO_N@
99 ECHO_T = @ECHO_T@
100 EGREP = @EGREP@
101 EXEEXT = @EXEEXT@
102 FGREP = @FGREP@
103 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
104 GMSGFMT = @GMSGFMT@
105 GMSGFMT_015 = @GMSGFMT_015@
106 GP_MODULES_PATH = @GP_MODULES_PATH@
107 GREP = @GREP@
108 INSTALL = @INSTALL@
109 INSTALL_DATA = @INSTALL_DATA@
110 INSTALL_PROGRAM = @INSTALL_PROGRAM@
111 INSTALL_SCRIPT = @INSTALL_SCRIPT@
112 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
113 INTLLIBS = @INTLLIBS@
114 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
115 LD = @LD@
116 LDFLAGS = @LDFLAGS@
117 LIBICONV = @LIBICONV@
118 LIBINTL = @LIBINTL@
119 LIBOBJS = @LIBOBJS@
120 LIBS = @LIBS@
121 LIBTOOL = @LIBTOOL@
122 LIPO = @LIPO@
123 LN_S = @LN_S@
124 LTLIBICONV = @LTLIBICONV@
125 LTLIBINTL = @LTLIBINTL@
126 LTLIBOBJS = @LTLIBOBJS@
127 MAINT = @MAINT@
128 MAKEINFO = @MAKEINFO@
129 MANIFEST_TOOL = @MANIFEST_TOOL@
130 MKDIR_P = @MKDIR_P@
131 MSGFMT = @MSGFMT@
132 MSGFMT_015 = @MSGFMT_015@
133 MSGMERGE = @MSGMERGE@
134 NM = @NM@
135 NMEDIT = @NMEDIT@
136 OBJDUMP = @OBJDUMP@
137 OBJEXT = @OBJEXT@
138 OTOOL = @OTOOL@
139 OTOOL64 = @OTOOL64@
140 PACKAGE = @PACKAGE@
141 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
142 PACKAGE_NAME = @PACKAGE_NAME@
143 PACKAGE_STRING = @PACKAGE_STRING@
144 PACKAGE_TARNAME = @PACKAGE_TARNAME@
145 PACKAGE_URL = @PACKAGE_URL@
146 PACKAGE_VERSION = @PACKAGE_VERSION@
147 PATH_SEPARATOR = @PATH_SEPARATOR@
148 PA_MODULES_PATH = @PA_MODULES_PATH@
149 PA_VERSION = @PA_VERSION@
150 PE_CFLAGS = @PE_CFLAGS@
151 PE_MODULES_PATH = @PE_MODULES_PATH@
152 PH_CONFIG_PATH = @PH_CONFIG_PATH@
153 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
154 PH_MODULES_PATH = @PH_MODULES_PATH@
155 PKG_CONFIG = @PKG_CONFIG@
156 POSUB = @POSUB@
157 PY_CFLAGS = @PY_CFLAGS@
158 PY_MODULES_PATH = @PY_MODULES_PATH@
159 PY_VERSION = @PY_VERSION@
160 RANLIB = @RANLIB@
161 RU_CFLAGS = @RU_CFLAGS@
162 RU_MODULES_PATH = @RU_MODULES_PATH@
163 RU_VERSION = @RU_VERSION@
164 SED = @SED@
165 SET_MAKE = @SET_MAKE@
166 SHELL = @SHELL@
167 STRIP = @STRIP@
168 USE_NLS = @USE_NLS@
169 VERSION = @VERSION@
170 VERSION_INFO = @VERSION_INFO@
171 XGETTEXT = @XGETTEXT@
172 XGETTEXT_015 = @XGETTEXT_015@
173 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
174 abs_builddir = @abs_builddir@
175 abs_srcdir = @abs_srcdir@
176 abs_top_builddir = @abs_top_builddir@
177 abs_top_srcdir = @abs_top_srcdir@
178 ac_ct_AR = @ac_ct_AR@
179 ac_ct_CC = @ac_ct_CC@
180 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
181 am__include = @am__include@
182 am__leading_dot = @am__leading_dot@
183 am__quote = @am__quote@
184 am__tar = @am__tar@
185 am__untar = @am__untar@
186 bindir = @bindir@
187 build = @build@
188 build_alias = @build_alias@
189 build_cpu = @build_cpu@
190 build_os = @build_os@
191 build_vendor = @build_vendor@
192 builddir = @builddir@
193 datadir = @datadir@
194 datarootdir = @datarootdir@
195 docdir = @docdir@
196 dvidir = @dvidir@
197 exec_prefix = @exec_prefix@
198 have_fpc = @have_fpc@
199 have_gpc = @have_gpc@
200 have_perl = @have_perl@
201 have_php = @have_php@
202 have_php_config = @have_php_config@
203 have_python = @have_python@
204 have_ruby = @have_ruby@
205 have_swig = @have_swig@
206 host = @host@
207 host_alias = @host_alias@
208 host_cpu = @host_cpu@
209 host_os = @host_os@
210 host_vendor = @host_vendor@
211 htmldir = @htmldir@
212 includedir = @includedir@
213 infodir = @infodir@
214 install_sh = @install_sh@
215 libdir = @libdir@
216 libexecdir = @libexecdir@
217 localedir = @localedir@
218 localstatedir = @localstatedir@
219 mandir = @mandir@
220 mkdir_p = @mkdir_p@
221 oldincludedir = @oldincludedir@
222 pdfdir = @pdfdir@
223 prefix = @prefix@
224 program_transform_name = @program_transform_name@
225 psdir = @psdir@
226 sbindir = @sbindir@
227 sharedstatedir = @sharedstatedir@
228 srcdir = @srcdir@
229 sysconfdir = @sysconfdir@
230 target_alias = @target_alias@
231 top_build_prefix = @top_build_prefix@
232 top_builddir = @top_builddir@
233 top_srcdir = @top_srcdir@
234 EXTRA_DIST = hdate_class.pp hdate_obj.pp hdate_pascal.pp
235 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings/pascal
236 libhdatedoc_DATA = hdate_class.pp hdate_obj.pp hdate_pascal.pp
237 all: all-am
238
239 .SUFFIXES:
240 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
245 && { if test -f $@; then exit 0; else break; fi; }; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/bindings/pascal/Makefile'; \
250 $(am__cd) $(top_srcdir) && \
251 $(AUTOMAKE) --gnu examples/bindings/pascal/Makefile
252 .PRECIOUS: Makefile
253 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269 $(am__aclocal_m4_deps):
270
271 mostlyclean-libtool:
272 -rm -f *.lo
273
274 clean-libtool:
275 -rm -rf .libs _libs
276 install-libhdatedocDATA: $(libhdatedoc_DATA)
277 @$(NORMAL_INSTALL)
278 test -z "$(libhdatedocdir)" || $(MKDIR_P) "$(DESTDIR)$(libhdatedocdir)"
279 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
280 for p in $$list; do \
281 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
282 echo "$$d$$p"; \
283 done | $(am__base_list) | \
284 while read files; do \
285 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libhdatedocdir)'"; \
286 $(INSTALL_DATA) $$files "$(DESTDIR)$(libhdatedocdir)" || exit $$?; \
287 done
288
289 uninstall-libhdatedocDATA:
290 @$(NORMAL_UNINSTALL)
291 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
292 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
293 test -n "$$files" || exit 0; \
294 echo " ( cd '$(DESTDIR)$(libhdatedocdir)' && rm -f" $$files ")"; \
295 cd "$(DESTDIR)$(libhdatedocdir)" && rm -f $$files
296 tags: TAGS
297 TAGS:
298
299 ctags: CTAGS
300 CTAGS:
301
302
303 distdir: $(DISTFILES)
304 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
305 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
306 list='$(DISTFILES)'; \
307 dist_files=`for file in $$list; do echo $$file; done | \
308 sed -e "s|^$$srcdirstrip/||;t" \
309 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
310 case $$dist_files in \
311 */*) $(MKDIR_P) `echo "$$dist_files" | \
312 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
313 sort -u` ;; \
314 esac; \
315 for file in $$dist_files; do \
316 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
317 if test -d $$d/$$file; then \
318 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
319 if test -d "$(distdir)/$$file"; then \
320 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
321 fi; \
322 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
323 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
324 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
325 fi; \
326 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
327 else \
328 test -f "$(distdir)/$$file" \
329 || cp -p $$d/$$file "$(distdir)/$$file" \
330 || exit 1; \
331 fi; \
332 done
333 check-am: all-am
334 check: check-am
335 all-am: Makefile $(DATA)
336 installdirs:
337 for dir in "$(DESTDIR)$(libhdatedocdir)"; do \
338 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
339 done
340 install: install-am
341 install-exec: install-exec-am
342 install-data: install-data-am
343 uninstall: uninstall-am
344
345 install-am: all-am
346 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
347
348 installcheck: installcheck-am
349 install-strip:
350 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
351 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
352 `test -z '$(STRIP)' || \
353 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
354 mostlyclean-generic:
355
356 clean-generic:
357
358 distclean-generic:
359 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
360 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
361
362 maintainer-clean-generic:
363 @echo "This command is intended for maintainers to use"
364 @echo "it deletes files that may require special tools to rebuild."
365 clean: clean-am
366
367 clean-am: clean-generic clean-libtool mostlyclean-am
368
369 distclean: distclean-am
370 -rm -f Makefile
371 distclean-am: clean-am distclean-generic
372
373 dvi: dvi-am
374
375 dvi-am:
376
377 html: html-am
378
379 html-am:
380
381 info: info-am
382
383 info-am:
384
385 install-data-am: install-libhdatedocDATA
386
387 install-dvi: install-dvi-am
388
389 install-dvi-am:
390
391 install-exec-am:
392
393 install-html: install-html-am
394
395 install-html-am:
396
397 install-info: install-info-am
398
399 install-info-am:
400
401 install-man:
402
403 install-pdf: install-pdf-am
404
405 install-pdf-am:
406
407 install-ps: install-ps-am
408
409 install-ps-am:
410
411 installcheck-am:
412
413 maintainer-clean: maintainer-clean-am
414 -rm -f Makefile
415 maintainer-clean-am: distclean-am maintainer-clean-generic
416
417 mostlyclean: mostlyclean-am
418
419 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
420
421 pdf: pdf-am
422
423 pdf-am:
424
425 ps: ps-am
426
427 ps-am:
428
429 uninstall-am: uninstall-libhdatedocDATA
430
431 .MAKE: install-am install-strip
432
433 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
434 distclean distclean-generic distclean-libtool distdir dvi \
435 dvi-am html html-am info info-am install install-am \
436 install-data install-data-am install-dvi install-dvi-am \
437 install-exec install-exec-am install-html install-html-am \
438 install-info install-info-am install-libhdatedocDATA \
439 install-man install-pdf install-pdf-am install-ps \
440 install-ps-am install-strip installcheck installcheck-am \
441 installdirs maintainer-clean maintainer-clean-generic \
442 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
443 ps ps-am uninstall uninstall-am uninstall-libhdatedocDATA
444
445
446 # Tell versions [3.59,3.63) of GNU make to not export all variables.
447 # Otherwise a system limit (for SysV at least) may be exceeded.
448 .NOEXPORT:
0 
1 {
2 This unit create a Pascal object oriented class for libhdate.
3 This unit is created as a true object oriented class.
4
5 Copyright 2005-2008 Ido Kanner <idokan@gmail.com>
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 3 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,
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, see <http://www.gnu.org/licenses/>.
19
20 History:
21 25/01/2008 - Added support for newer API of hdate
22 12/01/2008 - Added support for dynamic linking
23 19-21/05/2005 - Initial creation
24
25 }
26 {$IFDEF FPC}
27 {$MODE OBJFPC} {$H+}
28 {.$DEFINE STATIC_LINK}
29 {$ELSE}
30 {$Warning 'This code was tested with Free Pascal Only.'}
31 {$ENDIF}
32
33
34 Unit hdate_class;
35
36 Interface
37
38 Uses {$IFDEF STATIC_LINK} hdate {$ELSE} hdate_dyn_pascal {$ENDIF}, SysUtils;
39
40 Type
41
42 { THdateClass }
43 { A class that handle libhdate in the spirit of Object Pascal }
44 THdateClass = Class
45 Private
46 fh : Phdate_struct;
47 FToDestroy : Boolean;
48 fJulianDay : LongInt;
49 fDiaspora : Boolean;
50 fHolyday,
51 fHolydayType : LongInt;
52 fParasha : LongInt;
53 fHebrewDay,
54 fHebrewYear : String;
55
56 Procedure InitValue;
57
58 Procedure SetHebDay (Value : LongInt);
59 Procedure SetGregDay (Value : LongInt);
60 Procedure SetJulianDay (Value : LongInt);
61 Procedure SetHebMonth (Value : LongInt);
62 Procedure SetGregMonth (Value : LongInt);
63 Procedure SetGregYear (Value : LongInt);
64 Procedure SetHebYear (Value : LongInt);
65 Procedure SetDiaspora (Value : Boolean);
66 Procedure SetHolydayValues;
67
68 Function GetGregDay : LongInt;
69 Function GetGregMonth : LongInt;
70 Function GetGregYear : LongInt;
71 Function GetHebDay : LongInt;
72 Function GetHebMonth : LongInt;
73 Function GetHebYear : LongInt;
74 Public
75 constructor Create; virtual; overload;
76 constructor Create (hDateRec : Phdate_struct); virtual; overload;
77 destructor Destroy; override;
78
79 { Assign an existed class of THdateClass propetires into the corrent class }
80 Procedure Assign (Source : THdateClass); virtual;
81
82 { Returns a string with formated date according with readable date of s }
83 Function get_format_date (s : LongInt) : String;
84 { Returns the name of day in a week }
85 Function get_day_of_week_string (s : LongInt) : String;
86 { Returns the name of the month }
87 Function get_month_string (s : LongInt) : String;
88 { Returns a name of the Hebrew month }
89 Function get_hebrew_month_string (s : LongInt) : String;
90 { Returnss the name of a Hebrew holyday }
91 Function get_holyday_string (s : LongInt) : String;
92 { Returns the week of the Paragrph that needed to read "Parashat Hashavua" }
93 Function get_parasha_string (s : LongInt) : String;
94 { Returns the day of the week }
95 Function GetDayOfWeek : LongInt;
96 { Returns the size of the Hebrew year }
97 Function get_size_of_year : LongInt;
98 { Returns the day remains until a new Hebrew year starts }
99 Function get_new_year_day_of_the_week : LongInt;
100 { Returns the number of days passed since the begining of the Hebrew year }
101 Function get_days : LongInt;
102 { Returns the number of weeks passed since the begining of the Hebrew year }
103 Function get_weeks : LongInt;
104 { Returns the sunrise in a given Latitude, Longitude and a timezone }
105 Function get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
106 { Returns the sunet in a given Latitude, Longitude and a timezone }
107 Function get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
108 { Returns the sunrise in a given day, Latitude, Longitude and a Degree }
109 function get_deg_sunrise (Date : TDateTime;
110 latitude, longitude, deg : Double) : Longint;
111 { Returns the sunet in a given day, Latitude, Longitude and a Degree }
112 function get_deg_sunset (Date : TDateTime;
113 latitude, longitude, deg : Double) : Longint;
114 { Returns the Sha'a zmanit (temporary time) at a given date, Latitude and Longitude }
115 function get_temporary_time (Date : TDateTime;
116 latitude, longitude : Double) : Longint;
117 { Returns the minutes of first light at a given date, Latitude and Longitude }
118 function get_first_light (Date : TDateTime;
119 latitude, longitude : Double) : Longint;
120 { Returns the minutes to give a prayer (placing Tfiling and Talit) at a given date, Latitude and Longitude }
121 function get_prayer_time (Date : TDateTime;
122 latitude, longitude : Double) : Longint;
123 { Returns the minutes of a sunrise at a given date, Latitude and Longitude }
124 function get_time_full_sunrise (Date : TDateTime;
125 latitude, longitude : Double) : Longint;
126 { Returns the minutes of the midday at a given date, Latitude and Longitude }
127 function get_time_full_midday (Date : TDateTime;
128 latitude, longitude : Double) : Longint;
129 { Returns the minutes of a sunet at a given date, Latitude and Longitude }
130 function get_time_full_sunset (Date : TDateTime;
131 latitude, longitude : Double) : Longint;
132 { Returns the minutes to when the first star is showen at a given date, Latitude and Longitude }
133 function get_time_full_first_stars (Date : TDateTime;
134 latitude, longitude : Double) : Longint;
135 { Returns the minutes to when three stars are showen at a given date, Latitude and Longitude }
136 function get_time_full_three_stars (Date : TDateTime;
137 latitude, longitude : Double) : Longint;
138
139 { Get The number of days passed since the beginig of the Hebrew year }
140 property Days : LongInt read get_days;
141 { Get The day of the week }
142 property DayOfWeek : LongInt read GetDayOfWeek;
143 { Get The Hebrew day }
144 property HebrewDay : String read fHebrewDay;
145 { Get The Hebrew year }
146 property HebrewYear : String read fHebrewYear;
147 { Get The Hebrew Holyday }
148 property Holyday : LongInt read fHolyday;
149 { Get The type of the Hebrew Holyday }
150 property HolydayType : LongInt read fHolydayType;
151 { Get The number of days to the next year }
152 property NewYearDayOfWeek : LongInt read get_new_year_day_of_the_week;
153 { Get The week parahraph that needed to be read (Parashat Ha'Shavua) }
154 property Parasha : LongInt read fParasha;
155 { Get The number of weeks that passed since the end of the year }
156 property Weeks : LongInt read get_weeks;
157 { Get The size of the the year }
158 property YearSize : Longint read get_size_of_year;
159 Published
160 { Get/Set The Hebrew day }
161 property HebDay : LongInt read GetHebDay write SetHebDay;
162 { Get/Set The Gregorian day }
163 property GregDay : LongInt read GetGregDay write SetGregDay;
164 { Get/Set Set wether we are in Israel or not }
165 property Diaspora : Boolean read fDiaspora write SetDiaspora default True;
166 { Get/Set The Julian day }
167 property JulianDay : LongInt read fJulianDay write SetJulianDay;
168 { Get/Set The Hebrew Month }
169 property HebMonth : LongInt read GetHebMonth write SetHebMonth;
170 { Get/Set The Gregorian month }
171 property GregMonth : LongInt read GetGregMonth write SetGregMonth;
172 { Get/Set To Destroy the hdate record pointer, or the destruction will be made outside the record }
173 property ToDestroy : Boolean read FToDestroy write fToDestroy default True;
174 { Get/Set The gregorian year }
175 property GregYear : LongInt read GetGregYear write SetGregYear;
176 { Get/Set The Hebrew year }
177 property HebYear : LongInt read GetHebYear write SetHebYear;
178 End;
179
180 Implementation
181
182 Procedure THdateClass.InitValue;
183 Var
184 ADay, AMonth, AYear : Word;
185 Begin
186 DecodeDate(SysUtils.Now, AYear, AMonth, ADay);
187 hdate_set_gdate (Fh, ADay, AMonth, AYear);
188 hdate_set_hdate (fh, hdate_get_hday (fh), hdate_get_hmonth (fh), hdate_get_hyear (fh));
189
190 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
191 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
192
193 SetJulianDay (hdate_gdate_to_jd (ADay, AMonth, AYear));
194 SetDiaspora (True);
195 End;
196
197 constructor THdateClass.Create;
198 Begin
199 fh := Nil;
200 fh := new_hdate();
201 fToDestroy := True;
202 InitValue;
203 End;
204
205 constructor THdateClass.Create (hDateRec : Phdate_struct);
206 Begin
207 fh := hDateRec;
208 fToDestroy := False;
209 InitValue;
210 End;
211
212 destructor THdateClass.Destroy;
213 Begin
214 If fToDestroy Then
215 delete_hdate (fh);
216
217 inherited;
218 End;
219
220 Procedure THdateClass.SetHebDay (Value : LongInt);
221 Begin
222 hdate_set_hdate (Fh, Value, GetHebMonth, GetHebYear);
223 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
224 SetHolydayValues;
225 End;
226
227 Procedure THdateClass.SetGregDay (Value : LongInt);
228 Begin
229 hdate_set_gdate (fh, Value, GetGregMonth, GetGregYear);
230 SetHolydayValues;
231 End;
232
233 Procedure THdateClass.SetJulianDay (Value : LongInt);
234 Begin
235 fJulianDay := Value;
236 hdate_set_jd (fh, fJulianDay);
237 SetHolydayValues;
238 End;
239
240 Procedure THdateClass.SetHebMonth (Value : LongInt);
241 Begin
242 hdate_set_hdate (Fh, GetHebDay, Value, GetHebYear);
243 SetHolydayValues;
244 End;
245
246 Procedure THdateClass.SetGregMonth (Value : LongInt);
247 Begin
248 hdate_set_gdate (fh, GetGregDay, Value, GetGregYear);
249 SetHolydayValues;
250 End;
251
252 Procedure THdateClass.SetHebYear (Value : LongInt);
253 Begin
254 hdate_set_hdate (fh, GetHebDay, GetGregMonth, Value);
255 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
256 SetHolydayValues;
257 End;
258
259 Procedure THdateClass.SetGregYear (Value : LongInt);
260 Begin
261 hdate_set_gdate (fh, GetGregDay, GetGregMonth, Value);
262 SetHolydayValues;
263 End;
264
265 Procedure THdateClass.SetDiaspora (Value : Boolean);
266 Begin
267 fDiaspora := Value;
268 SetHolydayValues;
269 End;
270
271 Procedure THdateClass.SetHolydayValues;
272 begin
273 fHolyday := hdate_get_holyday (fh, Longint(FDiaspora));
274 fHolydayType := hdate_get_holyday_type (fHolyday);
275 fParasha := hdate_get_parasha (fh, Longint(fDiaspora));
276 end;
277
278 Function THdateClass.GetGregDay : LongInt;
279 Begin
280 Result := hdate_get_gday (fh);
281 End;
282
283 Function THdateClass.GetGregMonth : LongInt;
284 Begin
285 Result := hdate_get_gmonth (fh);
286 End;
287
288 Function THdateClass.GetGregYear : LongInt;
289 Begin
290 Result := hdate_get_gyear (fh);
291 End;
292
293 Function THdateClass.GetHebDay : LongInt;
294 Begin
295 Result := hdate_get_hday (fh);
296 End;
297
298 Function THdateClass.GetHebMonth : LongInt;
299 Begin
300 Result := hdate_get_hmonth (fh);
301 End;
302
303 Function THdateClass.GetHebYear : LongInt;
304 Begin
305 Result := hdate_get_hyear (fh);
306 End;
307
308 Procedure THdateClass.Assign (Source : THdateClass);
309 Begin
310 If (Not Assigned(Source)) Then
311 Begin
312 raise Exception.Create ('Source is not allocated.');
313 End;
314
315 // Should never happned ... but just in case...
316 Assert (Assigned(Source), 'Source is not allocated.');
317
318 fToDestroy := Source.ToDestroy;
319 HebDay := Source.HebDay;
320 GregDay := Source.GregDay;
321 HebMonth := Source.HebMonth;
322 GregMonth := Source.GregMonth;
323 HebYear := Source.HebYear;
324 GregYear := Source.GregYear;
325
326 SetJulianDay (Source.JulianDay);
327 SetDiaspora (Source.Diaspora);
328 End;
329
330 Function THdateClass.get_format_date (s : LongInt) : String;
331 Begin
332 Result := StrPas (hdate_get_format_date (fh, Longint(fDiaspora), s));
333 End;
334
335 Function THdateClass.get_day_of_week_string (s : LongInt) : String;
336 Begin
337 Result := StrPas (hdate_get_day_string (fh^.hd_dw, s));
338 End;
339
340 Function THdateClass.get_month_string (s : LongInt) : String;
341 Begin
342 Result := StrPas (hdate_get_month_string (fh^.gd_mon, s));
343 End;
344
345 Function THdateClass.get_hebrew_month_string (s : LongInt) : String;
346 Begin
347 Result := StrPas (hdate_get_hebrew_month_string (fh^.hd_mon, s));
348 End;
349
350 Function THdateClass.get_holyday_string (s : LongInt) : String;
351 Begin
352 Result := StrPas (hdate_get_holyday_string (fHolyday, s));
353 End;
354
355 Function THdateClass.get_parasha_string (s : LongInt) : String;
356 Begin
357 Result := StrPas (hdate_get_parasha_string (fParasha, s));
358 End;
359
360 Function THdateClass.GetDayOfWeek : LongInt;
361 Begin
362 Result := hdate_get_day_of_the_week (fh);
363 End;
364
365 Function THdateClass.get_size_of_year : LongInt;
366 Begin
367 Result := hdate_get_size_of_year (fh);
368 End;
369
370 Function THdateClass.get_new_year_day_of_the_week : LongInt;
371 Begin
372 Result := hdate_get_new_year_day_of_the_week (fh);
373 End;
374
375 Function THdateClass.get_days : LongInt;
376 Begin
377 Result := hdate_get_days (fh);
378 End;
379
380 Function THdateClass.get_weeks : LongInt;
381 Begin
382 Result := hdate_get_weeks (fh);
383 End;
384
385 Function THdateClass.get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
386 Var
387 sunrise,
388 sunset : LongInt;
389 Begin
390 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
391 Result := sunrise + tz * 60;
392 End;
393
394 Function THdateClass.get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
395 Var
396 sunrise,
397 sunset : LongInt;
398 Begin
399 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
400 Result := sunset + tz * 60;
401 End;
402
403 type
404 TSun_Time_Deg_Type = (stdtSunrise, stdtSunset);
405
406 Function get_sun_time_deg(Date : TDateTime; latitude,longitude,deg : Double; Return_Type :
407 TSun_Time_Deg_Type) : Longint;
408 var
409 Year,
410 Month,
411 Day : word;
412 sunrise,
413 sunset : Longint;
414 begin
415 DecodeDate (Date, Year, Month, Day);
416 hdate_get_utc_sun_time_deg(Day, Month, Year, latitude, longitude, deg, @sunrise, @sunset);
417 case Return_Type of
418 stdtSunrise : Result := sunrise;
419 stdtSunset : Result := sunset;
420 end;
421 end;
422
423 function THdateClass.get_deg_sunrise ( Date : TDateTime; latitude,longitude,deg : Double ) : Longint;
424 begin
425 Result := get_sun_time_deg(Date, latitude, longitude, deg, stdtSunrise);
426 end;
427
428 function THdateClass.get_deg_sunset ( Date : TDateTime; latitude,longitude,deg : Double ) : Longint;
429 begin
430 Result := get_sun_time_deg(Date, latitude, longitude, deg, stdtSunset);
431 end;
432
433 type
434 TSun_time_full_type = (stftTemporaryTime, stftFirstLight, stftPrayerTime,
435 stftSunrise, stftMidday, stftSunset, stftFirstStars,
436 stftThreeStars);
437
438 Function get_sun_time_full_type(Date : TDateTime; latitude,longitude : Double; Return_Type :
439 TSun_time_full_type) : Longint;
440 var
441 Year,
442 Month,
443 Day : word;
444 sun_hour,
445 first_light,
446 talit,
447 sunrise,
448 midday,
449 sunset,
450 first_stars,
451 three_stars : Longint;
452 begin
453 DecodeDate (Date, Year, Month, Day);
454 hdate_get_utc_sun_time_full(Day, Month, Year, latitude, longitude, @sun_hour, @first_light, @talit,
455 @sunrise, @midday, @sunset, @first_stars, @three_stars);
456 case Return_Type of
457 stftTemporaryTime : Result := sun_hour;
458 stftFirstLight : Result := first_light;
459 stftPrayerTime : Result := talit;
460 stftSunrise : Result := sunrise;
461 stftMidday : Result := midday;
462 stftSunset : Result := sunset;
463 stftFirstStars : Result := first_stars;
464 stftThreeStars : Result := three_stars;
465 end;
466 end;
467
468 function THdateClass.get_temporary_time ( Date : TDateTime; latitude,longitude : Double ) : Longint;
469 begin
470 Result := get_sun_time_full_type(Date, latitude,longitude, stftTemporaryTime);
471 end;
472
473 function THdateClass.get_first_light ( Date : TDateTime; latitude,longitude : Double ) : Longint;
474 begin
475 Result := get_sun_time_full_type(Date, latitude,longitude, stftFirstLight);
476 end;
477
478 function THdateClass.get_prayer_time ( Date : TDateTime; latitude,longitude : Double ) : Longint;
479 begin
480 Result := get_sun_time_full_type(Date, latitude,longitude, stftPrayerTime);
481 end;
482
483 function THdateClass.get_time_full_sunrise ( Date : TDateTime; latitude,longitude : Double ) : Longint;
484 begin
485 Result := get_sun_time_full_type(Date, latitude,longitude, stftSunrise);
486 end;
487
488 function THdateClass.get_time_full_midday ( Date : TDateTime; latitude,longitude : Double ) : Longint;
489 begin
490 Result := get_sun_time_full_type(Date, latitude,longitude, stftMidday);
491 end;
492
493 function THdateClass.get_time_full_sunset ( Date : TDateTime; latitude,longitude : Double ) : Longint;
494 begin
495 Result := get_sun_time_full_type(Date, latitude,longitude, stftSunset);
496 end;
497
498 function THdateClass.get_time_full_first_stars ( Date : TDateTime; latitude,longitude : Double ) : Longint;
499 begin
500 Result := get_sun_time_full_type(Date, latitude,longitude, stftFirstStars);
501 end;
502
503 function THdateClass.get_time_full_three_stars ( Date : TDateTime; latitude,longitude : Double ) : Longint;
504 begin
505 Result := get_sun_time_full_type(Date, latitude,longitude, stftThreeStars);
506 end;
507
508 End.
509
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 11/10/2005 - Initial Translation of version 0.31.0
20 }
21
22 {$MODE OBJFPC}
23 unit hdate_obj;
24
25 interface
26 uses cTypes, hDate, SysUtils;
27
28 type
29 THdate = class
30 private
31 h : Phdate_struct;
32 public
33 constructor Create; virtual;
34 destructor Destroy; override;
35 ////////////////////////////////////////
36 ////////////////////////////////////////
37
38 (**
39 @brief compute date structure from the Gregorian date
40
41 @param d Day of month 1..31
42 @param m Month 1..12 , if m or d is 0 return current date.
43 @param y Year in 4 digits e.g. 2001
44 *)
45 procedure set_gdate (d, m, y : cInt);
46
47 (**
48 @brief compute date structure from the Hebrew date
49
50 @param d Day of month 1..31
51 @param m Month 1..14 , if m or d is 0 return current date.
52 @param y Year in 4 digits e.g. 5731
53 *)
54 procedure set_hdate (d, m, y : cInt);
55
56 (**
57 @brief compute date structure from the Julian day
58
59 @param jd the julian day number.
60 *)
61 procedure set_jd (jd : cInt);
62
63 ////////////////////////////////////////
64 ////////////////////////////////////////
65
66 (**
67 @brief get formated hebrew date.
68
69 return the short ( e.g. "1 Tishrey" ) or
70 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
71
72 @param diaspora if true give diaspora holydays.
73 @param s short flag.
74 @return a static string of foramted date
75 *)
76 function get_format_date (diaspora, s : cInt) : String;
77
78 (**
79 @brief get name of week day.
80
81 @param s short flag
82 true - returns a short string: sun, false returns: sunday.
83 @return a static string of the day of the week
84 *)
85 function get_day_of_week_string (s : cInt) : String;
86
87 (**
88 @brief get name month.
89
90 @param s short flag
91 true - returns a short string: Mar, false returns: March.
92 @return a static string of month name
93 *)
94 function get_month_string (s : cInt) : String;
95
96 (**
97 @brief get name hebrew month.
98
99 @param s short flag
100 true - returns a short string.
101 @return a static string of hebrew month name
102 *)
103 function get_hebrew_month_string (s : cInt) : String;
104
105 (**
106 @brief get name hebrew holiday.
107
108 @param s short flag
109 true - returns a short string.
110 @return a static string of hebrew holiday name
111 *)
112 function get_holyday_string (diaspora, s : cInt) : String;
113
114 (**
115 @brief get the hebrew holiday type.
116
117 @return the holiday type
118 (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
119 *)
120 function get_holyday_type (diaspora : cInt) : cInt;
121
122 (**
123 @brief get name hebrew parasha.
124
125 @param diaspora if true give diaspora parashot.
126 @param s short flag
127 true - returns a short string.
128 @return a static string of hebrew parash name
129 *)
130 function get_parasha_string (diaspora, s : cInt) : String;
131
132 (**
133 @brief get name hebrew year.
134
135 @return a static string of hebrew year
136 *)
137 function get_hebrew_year_string : String;
138
139 (**
140 @brief get name hebrew hebrew day of the month
141
142 @return a static string of hebrew day of the month
143 *)
144 function get_hebrew_day_string : String;
145
146 ////////////////////////////////////////
147 ////////////////////////////////////////
148
149 (**
150 @brief get parash number
151
152 @param diaspora if true give diaspora parashot.
153 @return the hebrew parasha number
154 *)
155 function get_parasha (diaspora : cInt) : cInt;
156
157 (**
158 @brief get holiday number
159
160 @param diaspora if true give diaspora holidays.
161 @return the hebrew holiday number
162 *)
163 function get_holyday (diaspora : cInt) : cInt;
164
165 (**
166 @brief get Gregorian day of the month
167
168 @return the Gregorian day of the month
169 *)
170 function get_gday : cInt;
171
172 (**
173 @brief get Gregorian month
174
175 @return the Gregorian month
176 *)
177 function get_gmonth : cInt;
178
179 (**
180 @brief get Gregorian year
181
182 @return the Gregorian year
183 *)
184 function get_gyear : cInt;
185
186 (**
187 @brief get Hebrew day of the month
188
189 @return the Hebrew day of the month
190 *)
191 function get_hday : cInt;
192
193 (**
194 @brief get Hebrew month
195
196 @return the Hebrew month
197 *)
198 function get_hmonth : cInt;
199
200 (**
201 @brief get Hebrew year
202
203 @return the Hebrew year
204 *)
205 function get_hyear : cInt;
206
207 (**
208 @brief get the day of the week
209
210 @return the day of the week
211 *)
212 function get_day_of_the_week : cInt;
213
214 (**
215 @brief get the size of the Hebrew year in days
216
217 @return the size of the Hebrew year in days
218 *)
219 function get_size_of_year : cInt;
220
221 (**
222 @brief get the day of the week of hebrew new years
223
224 @return the day of the week of hebrew new years
225 *)
226 function get_new_year_day_of_the_week : cInt;
227
228 (**
229 @brief get the Julian day number
230
231 @return the Julian day number
232 *)
233 function get_julian : cInt;
234
235 (**
236 @brief get the number of days sice Tishrey I
237
238 @return the the number of days sice Tishrey I
239 *)
240 function get_days : cInt;
241
242 (**
243 @brief get the number of weeks sice Tishrey I
244
245 @return the the number of weeks sice Tishrey I
246 *)
247 function get_weeks : cInt;
248
249 ////////////////////////////////////////
250 ////////////////////////////////////////
251
252 (**
253 @brief sunrise time
254
255 @param longitude longitude to use in calculations
256 degrees, negative values are east
257 @param latitude latitude to use in calculations
258 degrees, negative values are south
259 @param tz time zone
260 @return sunrise in minutes after midnight (00:00)
261 *)
262 function get_sunrise (latitude, longitude : cDouble; tz : cInt) : cInt;
263
264 (**
265 @brief sunset time
266
267 @param longitude longitude to use in calculations
268 degrees, negative values are east
269 @param latitude latitude to use in calculations
270 degrees, negative values are south
271 @param tz time zone
272 @return sunset in minutes after midnight (00:00)
273 *)
274 function get_sunset (latitude, longitude : cDouble; tz : cInt) : cInt;
275 end;
276
277 implementation
278
279 constructor THdate.Create;
280 begin
281 h := new_hdate;
282 end;
283
284 destructor THdate.Destroy;
285 begin
286 delete_hdate(h);
287 inherited Destroy;
288 end;
289
290 procedure THdate.set_gdate (d, m, y : cInt);
291 begin
292 hdate_set_gdate (h, d, m, y);
293 end;
294
295 procedure THdate.set_hdate (d, m, y : cInt);
296 begin
297 hdate_set_hdate (h, d, m, y);
298 end;
299
300 procedure THdate.set_jd (jd : cInt);
301 begin
302 hdate_set_jd (h, jd);
303 end;
304
305 function THdate.get_format_date (diaspora, s : cInt) : String;
306 begin
307 Result := StrPas (hdate_get_format_date (h, diaspora, s));
308 end;
309
310 function THdate.get_day_of_week_string (s : cInt) : String;
311 begin
312 Result := StrPas (hdate_get_day_string (h^.hd_dw, s));
313 end;
314
315 function THdate.get_month_string (s : cInt) : String;
316 begin
317 Result := StrPas (hdate_get_month_string (h^.gd_mon, s));
318 end;
319
320 function THdate.get_hebrew_month_string (s : cInt) : String;
321 begin
322 Result := StrPas (hdate_get_hebrew_month_string (h^.hd_mon, s));
323 end;
324
325 function THdate.get_holyday_string (diaspora, s : cInt) : String;
326 var
327 holyday : cInt;
328 begin
329 holyday := hdate_get_holyday (h, diaspora);
330 Result := StrPas (hdate_get_holyday_string (holyday, s));
331 end;
332
333 function THdate.get_holyday_type (diaspora : cInt) : cInt;
334 var
335 holyday : cInt;
336 begin
337 holyday := hdate_get_holyday (h, diaspora);
338 Result := hdate_get_holyday_type (holyday);
339 end;
340
341 function THdate.get_parasha_string (diaspora, s : cInt) : String;
342 var
343 parasha : cInt;
344 begin
345 parasha := hdate_get_parasha (h, diaspora);
346 Result := StrPas (hdate_get_parasha_string (parasha, s));
347 end;
348
349 function THdate.get_hebrew_year_string : String;
350 begin
351 Result := StrPas (hdate_get_int_string (h^.hd_year));
352 end;
353
354 function THdate.get_hebrew_day_string : String;
355 begin
356 Result := StrPas (hdate_get_int_string (h^.hd_day));
357 end;
358
359 function THdate.get_parasha (diaspora : cInt) : cInt;
360 begin
361 Result := hdate_get_parasha (h, diaspora);
362 end;
363
364 function THdate.get_holyday (diaspora : cInt) : cInt;
365 begin
366 Result := hdate_get_holyday (h, diaspora);
367 end;
368
369 function THdate.get_gday : cInt;
370 begin
371 Result := hdate_get_gday (h);
372 end;
373
374 function THdate.get_gmonth : cInt;
375 begin
376 Result := hdate_get_gmonth (h);
377 end;
378
379 function THdate.get_gyear : cInt;
380 begin
381 Result := hdate_get_gyear (h);
382 end;
383
384 function THdate.get_hday : cInt;
385 begin
386 Result := hdate_get_hday (h);
387 end;
388
389 function THdate.get_hmonth : cInt;
390 begin
391 Result := hdate_get_hmonth (h);
392 end;
393
394 function THdate.get_hyear : cInt;
395 begin
396 Result :=hdate_get_hyear (h);
397 end;
398
399 function THdate.get_day_of_the_week : cInt;
400 begin
401 Result := hdate_get_day_of_the_week (h);
402 end;
403
404 function THdate.get_size_of_year : cInt;
405 begin
406 Result := hdate_get_size_of_year (h);
407 end;
408
409 function THdate.get_new_year_day_of_the_week : cInt;
410 begin
411 Result := hdate_get_new_year_day_of_the_week (h);
412 end;
413
414 function THdate.get_julian : cInt;
415 begin
416 Result := hdate_get_julian (h);
417 end;
418
419 function THdate.get_days : cInt;
420 begin
421 Result := hdate_get_days (h);
422 end;
423
424 function THdate.get_weeks : cInt;
425 begin
426 Result := hdate_get_weeks (h);
427 end;
428
429 function THdate.get_sunrise (latitude, longitude : cDouble; tz : cInt) : cInt;
430 var
431 sunrise,
432 sunset : cInt;
433 begin
434 hdate_get_utc_sun_time (h^.gd_day, h^.gd_mon, h^.gd_year, latitude, longitude, @sunrise, @sunset);
435
436 Result := sunrise + tz * 60;
437 end;
438
439 function THdate.get_sunset (latitude, longitude : cDouble; tz : cInt) : cInt;
440 var
441 sunrise,
442 sunset : cInt;
443 begin
444 hdate_get_utc_sun_time (h^.gd_day, h^.gd_mon, h^.gd_year, latitude, longitude, @sunrise, @sunset);
445
446 Result := sunset + tz * 60;
447 end;
448
449 end.
0 (* hdate_pascal.pp
1 example file for libhdate.
2
3 compile: fpc hdate_pascal.pp
4
5 Copyright (C) 2005-2008 Ido Kaner
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 3 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,
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, see <http://www.gnu.org/licenses/>.
19 *)
20
21 {$MODE OBJFPC} {$H+}
22 {$IFDEF MSWINDOWS}
23 {$APPTYPE CONSOLE} //Make sure that in Windows we will be in a console mode
24 {$ENDIF}
25 program hdate_demo;
26 uses hdate_class, SysUtils, DateUtils;
27
28 type
29 { A record to store city information regarding the Latitude, Longitude and it's name }
30 TCityDetauls = record
31 { The latitude of a given city}
32 Latitude : Double;
33 { The longitude of a given city}
34 Longitude : Double;
35 { The name of a city}
36 Name : ShortString;
37 end;
38
39 // Latitude and Longitude where Taken from from http://wwp.greenwichmeantime.com/time-zone/asia/israel/cities.htm
40 const
41 { The cities in Israel that we have information regarding the Latitude and Longitude }
42 Cities : array[0..19] of TCityDetauls =
43 (
44 { 00 } ( Latitude : 31.78; Longitude : 35.22; Name : 'Jerusalem' ),
45 { 01 } ( Latitude : 32.07; Longitude : 34.77; Name : 'Tel Aviv-Jafa' ),
46 { 02 } ( Latitude : 32.82; Longitude : 34.99; Name : 'Hifa' ),
47 { 03 } ( Latitude : 31.96; Longitude : 34.80; Name : 'Rishon Lezion' ),
48 { 04 } ( Latitude : 31.80; Longitude : 34.64; Name : 'Ashdod' ),
49 { 05 } ( Latitude : 31.25; Longitude : 34.80; Name : 'Be''er Sheva' ),
50 { 06 } ( Latitude : 32.09; Longitude : 34.88; Name : 'Petach Tiqva' ),
51 { 07 } ( Latitude : 32.33; Longitude : 34.86; Name : 'Netanya' ),
52 { 08 } ( Latitude : 32.02; Longitude : 34.76; Name : 'Holon' ),
53 { 09 } ( Latitude : 32.09; Longitude : 34.85; Name : 'B''ene Beraq' ),
54 { 10 } ( Latitude : 32.02; Longitude : 34.75; Name : 'Bat Yam' ),
55 { 11 } ( Latitude : 32.08; Longitude : 34.80; Name : 'Ramat Gan' ),
56 { 12 } ( Latitude : 31.67; Longitude : 34.56; Name : 'Ashqelon' ),
57 { 13 } ( Latitude : 31.89; Longitude : 34.80; Name : 'Rehovot' ),
58 { 14 } ( Latitude : 32.17; Longitude : 34.84; Name : 'Herzeliyya' ),
59 { 15 } ( Latitude : 32.19; Longitude : 34.91; Name : 'Kfar Saba' ),
60 { 16 } ( Latitude : 32.45; Longitude : 34.92; Name : 'Hadera' ),
61 { 17 } ( Latitude : 32.19; Longitude : 34.88; Name : 'Ra''anana' ),
62 { 18 } ( Latitude : 31.96; Longitude : 34.90; Name : 'Lod' ),
63 { 19 } ( Latitude : 31.93; Longitude : 34.86; Name : 'Ramla' )
64 );
65
66 { Convert the given minutes into full TTime and retrun it as a string
67 Params:
68 minute - The number of minutes since the start of the day}
69 function MinutesToHours(minute : Longint) : String;
70 begin
71 MinutesToHours := TimeToStr(OneMinute * minute);
72 end;
73
74 var
75 { Our hdate class }
76 h : THdateClass;
77 { A variable that saves the flag for Israel or the rest of the world }
78 diaspora : Integer;
79 { Israel's time zone in hours, used to adjust utc times (GMT) to locale time }
80 time_zone : Integer;
81 { Temporary Storing of the minutes for specific query }
82 tmp : Longint;
83 { The degree of the sunrise/sunset that we are looking at, default is 90 }
84 deg : Longint;
85 { The Longitude of a city }
86 Long : Double;
87 { The Latitude of a city }
88 Lat : Double;
89 { The name of a city }
90 LongLatName : String;
91 { The for loop counter }
92 i : integer;
93
94 begin
95 h := THdateClass.Create;
96 diaspora := 0;
97 time_zone := 2;
98
99 try
100 // print gregorian date
101 writeln (Format('Today: %0.2d/%0.2d/%4d',[h.GregDay,h.GregMonth,h.GregYear]));
102
103 // print hebrew date
104 writeln (h.get_format_date (diaspora));
105 writeln;
106
107 writeln('Corrent Time: ', TimeToStr(Now));
108 writeln;
109
110 for i := Low(Cities) to High(Cities) do
111 begin
112 Long := Cities[i].Longitude;
113 Lat := Cities[i].Latitude;
114 LongLatName := Cities[i].Name;
115
116 Writeln('City: ', LongLatName);
117 Writeln(#9'Latitude: ', FloatToStr(Lat));
118 Writeln(#9'Longitude: ', FloatToStr(Long));
119
120 // print Time using a degree of sunrise/sunset
121 deg := 90;
122 writeln(#9'Degree: ', deg);
123 tmp := h.get_deg_sunrise(Now, Lat, Long, deg);
124 writeln (#9'hour of sunrise: ', MinutesToHours(tmp + time_zone * 60));
125 tmp := h.get_deg_sunset(Now, Lat, Long, deg);
126 writeln(#9'hour of sunset: ', MinutesToHours(tmp + time_zone * 60));
127
128 //print information
129 tmp := h.get_temporary_time(Now, Lat, Long);
130 writeln(#9'Temporary hour length: ', MinutesToHours(tmp));
131 tmp := h.get_first_light(Now, Lat, Long);
132 writeln(#9'first light: ', MinutesToHours(tmp + time_zone * 60));
133 tmp := h.get_prayer_time(Now, Lat, Long);
134 writeln(#9'talit time: ', MinutesToHours(tmp + time_zone * 60));
135 tmp := h.get_time_full_sunrise(Now, Lat, Long);
136 writeln(#9'full sunrise: ', MinutesToHours(tmp + time_zone * 60));
137 tmp := h.get_time_full_midday(Now, Lat, Long);
138 writeln(#9'full midday: ', MinutesToHours(tmp + time_zone * 60));
139 tmp := h.get_time_full_sunset(Now, Lat, Long);
140 writeln(#9'full sunset: ', MinutesToHours(tmp + time_zone * 60));
141 tmp := h.get_time_full_first_stars(Now, Lat, Long);
142 writeln(#9'first stars: ', MinutesToHours(tmp + time_zone * 60));
143 tmp := h.get_time_full_three_stars(Now, Lat, Long);
144 writeln(#9'three stars: ', MinutesToHours(tmp + time_zone * 60));
145 writeln;
146 end;
147 finally
148 h.Free;
149 end;
150 end.
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 local_functions.c
23
24 EXTRA_DIST = $(libhdatedoc_DATA)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkglibexecdir = $(libexecdir)/@PACKAGE@
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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 @WITH_HCAL_TRUE@bin_PROGRAMS = hdate$(EXEEXT) hcal$(EXEEXT)
38 subdir = examples/hcal
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/libtool.m4 \
45 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
46 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
47 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
48 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
54 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libhdatedocdir)"
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 hcal_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
61 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(hcal_LDFLAGS) \
62 $(LDFLAGS) -o $@
63 am__hdate_SOURCES_DIST = hdate.c
64 @WITH_HCAL_TRUE@am_hdate_OBJECTS = hdate.$(OBJEXT)
65 hdate_OBJECTS = $(am_hdate_OBJECTS)
66 hdate_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(hdate_LDFLAGS) \
68 $(LDFLAGS) -o $@
69 DEFAULT_INCLUDES = -I.@am__isrc@
70 depcomp = $(SHELL) $(top_srcdir)/depcomp
71 am__depfiles_maybe = depfiles
72 am__mv = mv -f
73 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
74 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
75 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
76 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
77 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
78 CCLD = $(CC)
79 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
80 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
81 $(LDFLAGS) -o $@
82 SOURCES = $(hcal_SOURCES) $(hdate_SOURCES)
83 DIST_SOURCES = $(am__hcal_SOURCES_DIST) $(am__hdate_SOURCES_DIST)
84 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
85 am__vpath_adj = case $$p in \
86 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
87 *) f=$$p;; \
88 esac;
89 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
90 am__install_max = 40
91 am__nobase_strip_setup = \
92 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
93 am__nobase_strip = \
94 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
95 am__nobase_list = $(am__nobase_strip_setup); \
96 for p in $$list; do echo "$$p $$p"; done | \
97 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
98 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
99 if (++n[$$2] == $(am__install_max)) \
100 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
101 END { for (dir in files) print dir, files[dir] }'
102 am__base_list = \
103 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
104 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
105 DATA = $(libhdatedoc_DATA)
106 ETAGS = etags
107 CTAGS = ctags
108 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
109 ACLOCAL = @ACLOCAL@
110 AMTAR = @AMTAR@
111 AR = @AR@
112 AUTOCONF = @AUTOCONF@
113 AUTOHEADER = @AUTOHEADER@
114 AUTOMAKE = @AUTOMAKE@
115 AWK = @AWK@
116 CC = @CC@
117 CCDEPMODE = @CCDEPMODE@
118 CFLAGS = @CFLAGS@
119 CPP = @CPP@
120 CPPFLAGS = @CPPFLAGS@
121 CYGPATH_W = @CYGPATH_W@
122 DATADIRNAME = @DATADIRNAME@
123 DEFS = @DEFS@
124 DEPDIR = @DEPDIR@
125 DLLTOOL = @DLLTOOL@
126 DSYMUTIL = @DSYMUTIL@
127 DUMPBIN = @DUMPBIN@
128 ECHO_C = @ECHO_C@
129 ECHO_N = @ECHO_N@
130 ECHO_T = @ECHO_T@
131 EGREP = @EGREP@
132 EXEEXT = @EXEEXT@
133 FGREP = @FGREP@
134 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
135 GMSGFMT = @GMSGFMT@
136 GMSGFMT_015 = @GMSGFMT_015@
137 GP_MODULES_PATH = @GP_MODULES_PATH@
138 GREP = @GREP@
139 INSTALL = @INSTALL@
140 INSTALL_DATA = @INSTALL_DATA@
141 INSTALL_PROGRAM = @INSTALL_PROGRAM@
142 INSTALL_SCRIPT = @INSTALL_SCRIPT@
143 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
144 INTLLIBS = @INTLLIBS@
145 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
146 LD = @LD@
147 LDFLAGS = @LDFLAGS@
148 LIBICONV = @LIBICONV@
149 LIBINTL = @LIBINTL@
150 LIBOBJS = @LIBOBJS@
151 LIBS = @LIBS@
152 LIBTOOL = @LIBTOOL@
153 LIPO = @LIPO@
154 LN_S = @LN_S@
155 LTLIBICONV = @LTLIBICONV@
156 LTLIBINTL = @LTLIBINTL@
157 LTLIBOBJS = @LTLIBOBJS@
158 MAINT = @MAINT@
159 MAKEINFO = @MAKEINFO@
160 MANIFEST_TOOL = @MANIFEST_TOOL@
161 MKDIR_P = @MKDIR_P@
162 MSGFMT = @MSGFMT@
163 MSGFMT_015 = @MSGFMT_015@
164 MSGMERGE = @MSGMERGE@
165 NM = @NM@
166 NMEDIT = @NMEDIT@
167 OBJDUMP = @OBJDUMP@
168 OBJEXT = @OBJEXT@
169 OTOOL = @OTOOL@
170 OTOOL64 = @OTOOL64@
171 PACKAGE = @PACKAGE@
172 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
173 PACKAGE_NAME = @PACKAGE_NAME@
174 PACKAGE_STRING = @PACKAGE_STRING@
175 PACKAGE_TARNAME = @PACKAGE_TARNAME@
176 PACKAGE_URL = @PACKAGE_URL@
177 PACKAGE_VERSION = @PACKAGE_VERSION@
178 PATH_SEPARATOR = @PATH_SEPARATOR@
179 PA_MODULES_PATH = @PA_MODULES_PATH@
180 PA_VERSION = @PA_VERSION@
181 PE_CFLAGS = @PE_CFLAGS@
182 PE_MODULES_PATH = @PE_MODULES_PATH@
183 PH_CONFIG_PATH = @PH_CONFIG_PATH@
184 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
185 PH_MODULES_PATH = @PH_MODULES_PATH@
186 PKG_CONFIG = @PKG_CONFIG@
187 POSUB = @POSUB@
188 PY_CFLAGS = @PY_CFLAGS@
189 PY_MODULES_PATH = @PY_MODULES_PATH@
190 PY_VERSION = @PY_VERSION@
191 RANLIB = @RANLIB@
192 RU_CFLAGS = @RU_CFLAGS@
193 RU_MODULES_PATH = @RU_MODULES_PATH@
194 RU_VERSION = @RU_VERSION@
195 SED = @SED@
196 SET_MAKE = @SET_MAKE@
197 SHELL = @SHELL@
198 STRIP = @STRIP@
199 USE_NLS = @USE_NLS@
200 VERSION = @VERSION@
201 VERSION_INFO = @VERSION_INFO@
202 XGETTEXT = @XGETTEXT@
203 XGETTEXT_015 = @XGETTEXT_015@
204 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
205 abs_builddir = @abs_builddir@
206 abs_srcdir = @abs_srcdir@
207 abs_top_builddir = @abs_top_builddir@
208 abs_top_srcdir = @abs_top_srcdir@
209 ac_ct_AR = @ac_ct_AR@
210 ac_ct_CC = @ac_ct_CC@
211 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
212 am__include = @am__include@
213 am__leading_dot = @am__leading_dot@
214 am__quote = @am__quote@
215 am__tar = @am__tar@
216 am__untar = @am__untar@
217 bindir = @bindir@
218 build = @build@
219 build_alias = @build_alias@
220 build_cpu = @build_cpu@
221 build_os = @build_os@
222 build_vendor = @build_vendor@
223 builddir = @builddir@
224 datadir = @datadir@
225 datarootdir = @datarootdir@
226 docdir = @docdir@
227 dvidir = @dvidir@
228 exec_prefix = @exec_prefix@
229 have_fpc = @have_fpc@
230 have_gpc = @have_gpc@
231 have_perl = @have_perl@
232 have_php = @have_php@
233 have_php_config = @have_php_config@
234 have_python = @have_python@
235 have_ruby = @have_ruby@
236 have_swig = @have_swig@
237 host = @host@
238 host_alias = @host_alias@
239 host_cpu = @host_cpu@
240 host_os = @host_os@
241 host_vendor = @host_vendor@
242 htmldir = @htmldir@
243 includedir = @includedir@
244 infodir = @infodir@
245 install_sh = @install_sh@
246 libdir = @libdir@
247 libexecdir = @libexecdir@
248 localedir = @localedir@
249 localstatedir = @localstatedir@
250 mandir = @mandir@
251 mkdir_p = @mkdir_p@
252 oldincludedir = @oldincludedir@
253 pdfdir = @pdfdir@
254 prefix = @prefix@
255 program_transform_name = @program_transform_name@
256 psdir = @psdir@
257 sbindir = @sbindir@
258 sharedstatedir = @sharedstatedir@
259 srcdir = @srcdir@
260 sysconfdir = @sysconfdir@
261 target_alias = @target_alias@
262 top_build_prefix = @top_build_prefix@
263 top_builddir = @top_builddir@
264 top_srcdir = @top_srcdir@
265 @WITH_HCAL_TRUE@INCLUDES = -I$(top_srcdir)/src
266 @WITH_HCAL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
267 @WITH_HCAL_TRUE@ldadd = $(top_builddir)/src/libhdate.la -lm
268 @WITH_HCAL_TRUE@hdate_SOURCES = hdate.c
269 @WITH_HCAL_TRUE@hdate_LDFLAGS =
270 @WITH_HCAL_TRUE@hdate_DEPENDENCIES = $(DEPS)
271 @WITH_HCAL_TRUE@hdate_LDADD = $(ldadd)
272 @WITH_HCAL_TRUE@hcal_SOURCES = hcal.c
273 @WITH_HCAL_TRUE@hcal_LDFLAGS =
274 @WITH_HCAL_TRUE@hcal_DEPENDENCIES = $(DEPS)
275 @WITH_HCAL_TRUE@hcal_LDADD = $(ldadd)
276 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/hcal
277 libhdatedoc_DATA = hcal.c hdate.c local_functions.c
278 EXTRA_DIST = $(libhdatedoc_DATA)
279 all: all-am
280
281 .SUFFIXES:
282 .SUFFIXES: .c .lo .o .obj
283 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
284 @for dep in $?; do \
285 case '$(am__configure_deps)' in \
286 *$$dep*) \
287 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
288 && { if test -f $@; then exit 0; else break; fi; }; \
289 exit 1;; \
290 esac; \
291 done; \
292 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/hcal/Makefile'; \
293 $(am__cd) $(top_srcdir) && \
294 $(AUTOMAKE) --gnu examples/hcal/Makefile
295 .PRECIOUS: Makefile
296 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
297 @case '$?' in \
298 *config.status*) \
299 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
300 *) \
301 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
302 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
303 esac;
304
305 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
306 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
307
308 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
309 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
310 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
312 $(am__aclocal_m4_deps):
313 install-binPROGRAMS: $(bin_PROGRAMS)
314 @$(NORMAL_INSTALL)
315 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
316 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
317 for p in $$list; do echo "$$p $$p"; done | \
318 sed 's/$(EXEEXT)$$//' | \
319 while read p p1; do if test -f $$p || test -f $$p1; \
320 then echo "$$p"; echo "$$p"; else :; fi; \
321 done | \
322 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
323 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
324 sed 'N;N;N;s,\n, ,g' | \
325 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
326 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
327 if ($$2 == $$4) files[d] = files[d] " " $$1; \
328 else { print "f", $$3 "/" $$4, $$1; } } \
329 END { for (d in files) print "f", d, files[d] }' | \
330 while read type dir files; do \
331 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
332 test -z "$$files" || { \
333 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
334 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
335 } \
336 ; done
337
338 uninstall-binPROGRAMS:
339 @$(NORMAL_UNINSTALL)
340 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
341 files=`for p in $$list; do echo "$$p"; done | \
342 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
343 -e 's/$$/$(EXEEXT)/' `; \
344 test -n "$$list" || exit 0; \
345 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
346 cd "$(DESTDIR)$(bindir)" && rm -f $$files
347
348 clean-binPROGRAMS:
349 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
350 echo " rm -f" $$list; \
351 rm -f $$list || exit $$?; \
352 test -n "$(EXEEXT)" || exit 0; \
353 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
354 echo " rm -f" $$list; \
355 rm -f $$list
356 hcal$(EXEEXT): $(hcal_OBJECTS) $(hcal_DEPENDENCIES)
357 @rm -f hcal$(EXEEXT)
358 $(hcal_LINK) $(hcal_OBJECTS) $(hcal_LDADD) $(LIBS)
359 hdate$(EXEEXT): $(hdate_OBJECTS) $(hdate_DEPENDENCIES)
360 @rm -f hdate$(EXEEXT)
361 $(hdate_LINK) $(hdate_OBJECTS) $(hdate_LDADD) $(LIBS)
362
363 mostlyclean-compile:
364 -rm -f *.$(OBJEXT)
365
366 distclean-compile:
367 -rm -f *.tab.c
368
369 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hcal.Po@am__quote@
370 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate.Po@am__quote@
371
372 .c.o:
373 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
374 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
375 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
376 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
377 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
378
379 .c.obj:
380 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
381 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
382 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
383 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
384 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
385
386 .c.lo:
387 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
388 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
389 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
390 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
391 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
392
393 mostlyclean-libtool:
394 -rm -f *.lo
395
396 clean-libtool:
397 -rm -rf .libs _libs
398 install-libhdatedocDATA: $(libhdatedoc_DATA)
399 @$(NORMAL_INSTALL)
400 test -z "$(libhdatedocdir)" || $(MKDIR_P) "$(DESTDIR)$(libhdatedocdir)"
401 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
402 for p in $$list; do \
403 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
404 echo "$$d$$p"; \
405 done | $(am__base_list) | \
406 while read files; do \
407 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libhdatedocdir)'"; \
408 $(INSTALL_DATA) $$files "$(DESTDIR)$(libhdatedocdir)" || exit $$?; \
409 done
410
411 uninstall-libhdatedocDATA:
412 @$(NORMAL_UNINSTALL)
413 @list='$(libhdatedoc_DATA)'; test -n "$(libhdatedocdir)" || list=; \
414 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
415 test -n "$$files" || exit 0; \
416 echo " ( cd '$(DESTDIR)$(libhdatedocdir)' && rm -f" $$files ")"; \
417 cd "$(DESTDIR)$(libhdatedocdir)" && rm -f $$files
418
419 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
420 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
421 unique=`for i in $$list; do \
422 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
423 done | \
424 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
425 END { if (nonempty) { for (i in files) print i; }; }'`; \
426 mkid -fID $$unique
427 tags: TAGS
428
429 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
430 $(TAGS_FILES) $(LISP)
431 set x; \
432 here=`pwd`; \
433 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
434 unique=`for i in $$list; do \
435 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
436 done | \
437 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
438 END { if (nonempty) { for (i in files) print i; }; }'`; \
439 shift; \
440 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
441 test -n "$$unique" || unique=$$empty_fix; \
442 if test $$# -gt 0; then \
443 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
444 "$$@" $$unique; \
445 else \
446 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
447 $$unique; \
448 fi; \
449 fi
450 ctags: CTAGS
451 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
452 $(TAGS_FILES) $(LISP)
453 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
454 unique=`for i in $$list; do \
455 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
456 done | \
457 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
458 END { if (nonempty) { for (i in files) print i; }; }'`; \
459 test -z "$(CTAGS_ARGS)$$unique" \
460 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
461 $$unique
462
463 GTAGS:
464 here=`$(am__cd) $(top_builddir) && pwd` \
465 && $(am__cd) $(top_srcdir) \
466 && gtags -i $(GTAGS_ARGS) "$$here"
467
468 distclean-tags:
469 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
470
471 distdir: $(DISTFILES)
472 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
473 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
474 list='$(DISTFILES)'; \
475 dist_files=`for file in $$list; do echo $$file; done | \
476 sed -e "s|^$$srcdirstrip/||;t" \
477 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
478 case $$dist_files in \
479 */*) $(MKDIR_P) `echo "$$dist_files" | \
480 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
481 sort -u` ;; \
482 esac; \
483 for file in $$dist_files; do \
484 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
485 if test -d $$d/$$file; then \
486 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
487 if test -d "$(distdir)/$$file"; then \
488 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
489 fi; \
490 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
491 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
492 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
493 fi; \
494 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
495 else \
496 test -f "$(distdir)/$$file" \
497 || cp -p $$d/$$file "$(distdir)/$$file" \
498 || exit 1; \
499 fi; \
500 done
501 check-am: all-am
502 check: check-am
503 all-am: Makefile $(PROGRAMS) $(DATA)
504 installdirs:
505 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libhdatedocdir)"; do \
506 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
507 done
508 install: install-am
509 install-exec: install-exec-am
510 install-data: install-data-am
511 uninstall: uninstall-am
512
513 install-am: all-am
514 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
515
516 installcheck: installcheck-am
517 install-strip:
518 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
519 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
520 `test -z '$(STRIP)' || \
521 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
522 mostlyclean-generic:
523
524 clean-generic:
525
526 distclean-generic:
527 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
528 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
529
530 maintainer-clean-generic:
531 @echo "This command is intended for maintainers to use"
532 @echo "it deletes files that may require special tools to rebuild."
533 clean: clean-am
534
535 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
536
537 distclean: distclean-am
538 -rm -rf ./$(DEPDIR)
539 -rm -f Makefile
540 distclean-am: clean-am distclean-compile distclean-generic \
541 distclean-tags
542
543 dvi: dvi-am
544
545 dvi-am:
546
547 html: html-am
548
549 html-am:
550
551 info: info-am
552
553 info-am:
554
555 install-data-am: install-libhdatedocDATA
556
557 install-dvi: install-dvi-am
558
559 install-dvi-am:
560
561 install-exec-am: install-binPROGRAMS
562
563 install-html: install-html-am
564
565 install-html-am:
566
567 install-info: install-info-am
568
569 install-info-am:
570
571 install-man:
572
573 install-pdf: install-pdf-am
574
575 install-pdf-am:
576
577 install-ps: install-ps-am
578
579 install-ps-am:
580
581 installcheck-am:
582
583 maintainer-clean: maintainer-clean-am
584 -rm -rf ./$(DEPDIR)
585 -rm -f Makefile
586 maintainer-clean-am: distclean-am maintainer-clean-generic
587
588 mostlyclean: mostlyclean-am
589
590 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
591 mostlyclean-libtool
592
593 pdf: pdf-am
594
595 pdf-am:
596
597 ps: ps-am
598
599 ps-am:
600
601 uninstall-am: uninstall-binPROGRAMS uninstall-libhdatedocDATA
602
603 .MAKE: install-am install-strip
604
605 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
606 clean-generic clean-libtool ctags distclean distclean-compile \
607 distclean-generic distclean-libtool distclean-tags distdir dvi \
608 dvi-am html html-am info info-am install install-am \
609 install-binPROGRAMS install-data install-data-am install-dvi \
610 install-dvi-am install-exec install-exec-am install-html \
611 install-html-am install-info install-info-am \
612 install-libhdatedocDATA install-man install-pdf install-pdf-am \
613 install-ps install-ps-am install-strip installcheck \
614 installcheck-am installdirs maintainer-clean \
615 maintainer-clean-generic mostlyclean mostlyclean-compile \
616 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
617 tags uninstall uninstall-am uninstall-binPROGRAMS \
618 uninstall-libhdatedocDATA
619
620
621 # Tell versions [3.59,3.63) of GNU make to not export all variables.
622 # Otherwise a system limit (for SysV at least) may be exceeded.
623 .NOEXPORT:
0 /* hcal.c http://libhdate.sourceforge.net
1 * Hebrew calendar (part of package libhdate)
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hcal.c -o hcal
5 *
6 * Copyright: 2011-2012 (c) Boruch Baum, 2004-2010 (c) Yaacov Zamir
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 3 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,
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, see <http://www.gnu.org/licenses/>.
20 */
21
22 #define _GNU_SOURCE // for mempcpy
23 #include <stdio.h> // For printf
24 #include <hdate.h> // For hebrew date
25 //#include "../../src/hdate.h"
26 #include <stdlib.h> // For atoi, malloc
27 #include <locale.h> // For setlocale
28 #include <getopt.h> // For getopt_long
29 #include <string.h> // For strlen, mempcpy
30 #include <time.h> // For time, tzset
31 //#include <wchar.h> // for unicode character operations
32
33 #define FALSE 0
34 #define TRUE -1
35 #define SHABBAT 7
36
37 #define HDATE_STRING_SHORT 1
38
39 // for opt.menu[MAX_MENU_ITEMS]
40 #define MAX_MENU_ITEMS 10
41
42
43
44 // for colorization
45 #define CODE_REVERSE_VIDEO "%c[7m", 27
46 #define CODE_RESTORE_VIDEO "%c[m", 27
47 #define CODE_BLACK "%c[30m", 27
48 #define CODE_LIGHT_RED "%c[31m", 27
49 #define CODE_LIGHT_GREEN "%c[32m", 27
50 #define CODE_LIGHT_BROWN "%c[33m", 27
51 #define CODE_DARK_BLUE "%c[34m", 27
52 #define CODE_LIGHT_PURPLE "%c[35m", 27
53 #define CODE_LIGHT_AQUA "%c[36m", 27
54 #define CODE_LIGHT_GREY "%c[37m", 27
55 #define CODE_BOLD_GREY "%c[1;30m", 27
56 #define CODE_BOLD_RED "%c[1;31m", 27
57 #define CODE_BOLD_GREEN "%c[1;32m", 27
58 #define CODE_BOLD_YELLOW "%c[1;33m", 27
59 #define CODE_BOLD_BLUE "%c[1;34m", 27
60 #define CODE_BOLD_PURPLE "%c[1;35m", 27
61 #define CODE_BOLD_AQUA "%c[1;36m", 27
62 #define CODE_BOLD_WHITE "%c[1;37m", 27
63 #define ELEMENT_WEEKDAY_G 1
64 #define ELEMENT_WEEKDAY_H 2
65 #define ELEMENT_SHABBAT_DAY 3
66 #define ELEMENT_HOLIDAY_DAY 4
67 #define ELEMENT_HOLIDAY_FLAG 5
68 #define ELEMENT_SHABBAT_NAME 6
69 #define ELEMENT_WEEKDAY_NAMES 7
70 #define ELEMENT_MONTH_G 8
71 #define ELEMENT_MONTH_H 9
72 #define ELEMENT_SHABBAT_TIMES 10
73 #define ELEMENT_PARASHA 11
74 #define ELEMENT_THIS_SHABBAT_TIMES 12
75 #define ELEMENT_THIS_PARASHA 13
76 #define ELEMENT_HOLIDAY_NAME 14
77 #define ELEMENT_TODAY_HOLIDAY_DAY 15
78 #define ELEMENT_TODAY_HOLIDAY_NAME 16
79
80 /**************************************************
81 * functions to support hcal and hdate
82 **************************************************/
83 #include "./local_functions.c"
84
85
86
87 static char holiday_flag[] = { '/', '+', '*', '~', '!', '@', '#', '$', '%', '^' };
88 /* Holiday types: (reference hdate_holyday.c)
89 / - 0 - Regular day
90 + - 1 - Yom tov (plus yom kippor)
91 * - 2 - Erev yom kippur
92 ~ - 3 - Hol hamoed
93 ! - 4 - Hanuka and purim
94 @ - 5 - Tzomot
95 # - 6 - Independance day and Yom yerushalaim
96 $ - 7 - Lag baomer ,Tu beav, Tu beshvat
97 % - 8 - Tzahal and Holocaust memorial days
98 ^ - 9 - National days
99 */
100
101
102
103 typedef struct {
104 int html;
105 int external_css;
106 int diaspora;
107 int parasha;
108 int shabbat;
109 int candles;
110 int havdalah;
111 int no_reverse;
112 int three_month;
113 int colorize;
114 int footnote;
115 int jd_today_g;
116 int jd_today_h;
117 int force_hebrew;
118 int force_israel;
119 int not_sunset_aware;
120 int quiet_alerts;
121 int bidi;
122 double lat;
123 double lon;
124 int tz;
125 int menu;
126 char* menu_item[MAX_MENU_ITEMS];
127 } option_list;
128
129 typedef struct {
130 int g_month_1;
131 int g_year_1;
132 int g_month_2;
133 int g_year_2;
134 int h_month_1;
135 int h_year_1;
136 int h_month_2;
137 int h_year_2;
138 } header_info;
139
140
141 const char* hcal_config_file_text = N_("\
142 # configuration file for hcal - Hebrew calendar program\n\
143 # part of package libhdate\n\
144 #\n# Should you mangle this file and wish to restore its default content,\n\
145 # rename or delete this file and run hcal; hcal will automatically\n\
146 # regenerate the default content.\n#\n\
147 # Your system administrator can set system-wide defaults for hcal by\n\
148 # modifying file <not yet implemented>.\n\
149 # You may override all defaults by changing the contents of this file.\n\
150 #\n\
151 # Version information\n\
152 # This may be used by updates to hcal to determine how to parse the file\n\
153 # and whether additional information and options should be appended to\n\
154 # the end of this file.\n\
155 VERSION=2.00\n\
156 # Location awareness\n\
157 # hcal wants to accurately highlight the current Hebrew day, including\n\
158 # during the hours between sunset and secular midnight. If you don't\n\
159 # provide it with latitude, longitude, and time zone information, hcal\n\
160 # will try to guess the information, based upon your system timezone,\n\
161 # and its (limited, and maybe biased) of the dominant Jewish community\n\
162 # in that timezone. When hcal is forced to guess, it alerts the user\n\
163 # with a message that includes the guessed location.\n\
164 # hcal's guesses will also affect its default behaviour for ouput of\n\
165 # Shabbat times, parshiot, and choice of Israel/diaspora hoidays\n\
166 #SUNSET_AWARE=TRUE\n\
167 # LATITUDE and LONGITUDE may be in decimal format or in the form\n\
168 # degrees[:minutes[:seconds]] with the characters :'\" as possible\n\
169 # delimiters. Use negative values to indicate South and West, or\n\
170 # use the abbreviated compass directions N, S, E, W.\n\
171 #LATITUDE=\n\
172 #LONGITUDE=\n\
173 # TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n\
174 # with the characters :'\" as possible delimiters.\n\
175 #TIMEZONE=\n\n\
176 # Israel and the diaspora\n\
177 # If hcal guesses that you're not in Israel, the DIASPORA option will be\n\
178 # set true. This will affect holiday and parasha output. FORCE_ISRAEL\n\
179 # forces hcal to display calendar information for Israel, using hcal's\n\
180 # default coordinates foe Israel, or coordinates that you provide that\n\
181 # seem legitmately within Israel.\n\
182 # Thus, if you are living in Sao Paolo, and will be visiting Israel for\n\
183 # Sukkot, set BOTH flags true in order to see holiday information for\n\
184 # a non-resident vistor to Israel. The command line options for these\n\
185 # features are --israel, -I, --diaspora, -d.\n\
186 #FORCE_DIASPORA=FALSE;\n\
187 #FORCE_ISRAEL=FALSE;\n\n\
188 # Shabbat related\n\
189 # Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n\
190 # The command line options for these features are -p (--parasha), and\n\
191 # -s (--shabbat). The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n\
192 # before sunset). The HAVDALAH field can accept a value of 20 - 90\n\
193 # (minutes after sunset).\n\
194 #PARASHA_NAMES=FALSE\n\
195 #SHABBAT_INFO=FALSE\n\
196 #CANDLE_LIGHTING=FALSE\n\
197 #HAVDALAH=FALSE\n\n\
198 # Holiday identification\n\
199 # hcal flags holidays by replacing the gregorian/Hebrew date separator\n\
200 # with assorted unhelpful cryptic symbols. Setting FOOTNOTES to true\n\
201 # will have hcal output after the month's calendar, a list of the month's\n\
202 # holidays along with the days on which they occur.\n\
203 #FOOTNOTE=FALSE\n\n\
204 # Output in hebrew characters\n\
205 # hcal defaults to output all information in your default language, so\n\
206 # if your default language is Hebrew, you're all set. Otherwise, you can\n\
207 # set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n\
208 # still outputting gregorian information in your default language. To\n\
209 # output ALL information in Hebrew, run something like this:\n\
210 # LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hcal; LC_ALL=$LC_TEMP\n\
211 # If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n\
212 # output, you need to install a terminal font that includes the Hebrew\n\
213 # character set (hint: unicode).\n\
214 # The command line option for FORCE_HEBREW is either --hebrew or -H\n\
215 #FORCE_HEBREW=FALSE\n\n\
216 # The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n\
217 # Unfortunately, the world can not be depended upon to be either. Most\n\
218 # Xwindow applications will display the data fine with FORCE_HEBREW; most\n\
219 # xterm implementations will not. (in fact, the only xterm clone I know\n\
220 # of that comes close is mlterm). If using FORCE_HEBREW results in\n\
221 # Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n\
222 # This will reverse the order of the Hebrew characters, so they will\n\
223 # display 'visual'ly correct; however, such output will not be suitable\n\
224 # for piping or pasting to many other applications. Setting OUTPUT_BIDI\n\
225 # automatically forces hebrew.\n\
226 # The command line option for OUTPUT_BIDI is either --bidi, --visual, or -b\n\
227 #OUTPUT_BIDI=FALSE\n\n\
228 # Display enhancements\n\
229 # hcal defaults to display the current day in reverse video\n\
230 # The command line option for this feature is --no-reverse\n\
231 #SUPPRESS_REVERSE_VIDEO=FALSE;\n\
232 # hcal can display its output \"calming, muted tones\". Note that piping\n\
233 # colorized output may yield unexpected results.\n\
234 #COLORIZE=FALSE\n\n\
235 # HTML OUTPUT\n\
236 #OUTPUT_HTML=FALSE\n\
237 #USE_EXTERNAL_CSS_FILE=\"pathto/foo/bar\"\n\n\
238 # Suppress alerts and warnings\n\
239 # hcal alerts the user via STDERR when it guesses the user's location.\n\
240 #QUIET_ALERTS=FALSE\n\n\
241 # Three month display\n\
242 # hcal can display a previous, current and next month side-by-side. hcal\n\
243 # can also display a calendar for an entire year in four rows of three\n\
244 # months each. Note that this will display properly only if your console\n\
245 # is set for at least 127 columns. Note also that setting this option to\n\
246 # will cause options FOOTNOTES, SHABBAT, and PARASHA_NAMES to false.\n\
247 #THREE_MONTH=FALSE\n\n\
248 # User-defined menus\n\
249 # You may specify here command-line strings to optionally be parsed\n\
250 # by hcal at execution time. To do so, use the command line option -m\n\
251 # (--menu). hcal will process first the settings of this config file,\n\
252 # then the other settings of your command line, and then will prompt\n\
253 # you for which menu item you would like to select. hcal will process\n\
254 # your menu selection as if it were a new command line, further modifying\n\
255 # all the prior settings.\n\
256 # Only the first ten \"MENU=\" entries will be read. Each line will be\n\
257 # truncated at one hundred characters\n\
258 #MENU= -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n\
259 #MENU= -l 32 -L 34 -z 2 # son in bnei brak\n\
260 #MENU= -fbc -l 43.71 -L -79.43 -z -5 # me in Toronto\n\
261 #MENU= -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n\
262 ");
263
264
265 /**************************************************
266 * print version
267 *************************************************/
268 int print_version ()
269 {
270 printf ("%s\n", N_("hcal - Hebrew calendar\nversion 1.6"));
271 return 0;
272 }
273
274 /**************************************************
275 * print usage
276 *************************************************/
277 void print_usage_hcal ()
278 {
279 printf ("%s\n",
280 N_("Usage: hcal [options] [coordinates timezone] ] [[month] year]\n\
281 coordinates: -l [NS]yy[.xxx] -L [EW]xx[.xxx]\n\
282 -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n\
283 timezone: -z nn[( .nn | :mm )]\n\
284 Try \'hcal --help\' for more information"));
285 }
286
287 /**************************************************
288 * print help
289 *************************************************/
290 void print_help ()
291 {
292 print_usage_hcal();
293 printf ("%s\n",
294 N_("Hebrew calendar\nOPTIONS:\n\
295 -1 --one-month over-ride config file setting if you had set\n\
296 option --three-month as a default there\n\
297 -3 --three-month displays previous/next months\n\
298 side by side. requires 127 columns\n\
299 -b --bidi prints hebrew in reverse (visual)\n\
300 --visual\n\
301 --no-bidi over-ride config file setting if you had set\n\
302 --no-visual option -bidi as a default there\n\
303 -c --colorize displays in calming, muted tones\n\
304 --no-color over-ride a --colorize setting in your config file\n\
305 -d --diaspora use diaspora reading and holidays.\n\
306 -f --footnote print descriptive notes of holidays\n\
307 --no-footnote over-ride a footnote setting in your config file\n\
308 -h --html output in html format to stdout\n\
309 -H --hebrew print hebrew information in Hebrew\n\
310 -i use external css file \"./hcal.css\".\n\
311 -I --israel override a diaspora default\n\
312 --no-reverse do not highlight today's date\n\
313 -m --menu prompt user-defined menu from config file\n\
314 -p --parasha print week's parasha on each calendar row\n\
315 -q --quiet-alerts suppress warning messages\n\
316 -s --shabbat print Shabbat times and parshiot\n\
317 --candles modify default minhag of 20 minutes. (17<n<91)\n\
318 --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n\
319 -z --timezone nn timezone, +/-UTC\n\
320 -l --latitude yy latitude yy degrees. Negative values are South\n\
321 -L --longitude xx longitude xx degrees. Negative values are West\n\n\
322 All options can be made default in the config file, or menu-ized for\n\
323 easy selection."));
324 }
325
326
327 /**************************************************
328 * HTML - print css section
329 *************************************************/
330 int print_css (const int external_css)
331 {
332 if (external_css) printf ("\n\t@import \"hcal.css\";\n");
333 else
334 {
335 printf ("\nbody.hebrew { direction: rtl;}\n\
336 img { margin:0; padding: 0; vertical-align: middle; border: 0;}\n\
337 p {}\n\
338 table.main { width: 90%%; table-layout: fixed; font-size: 14pt; border: solid #aaaaaa; }\n\
339 table.day { width: 100%%; height: 100%%; table-layout: fixed; font-size: 14pt; }\n\
340 th.gmonth { font-size: 30pt; font-weight: bold }\n\
341 th.gyear { font-size: 30pt; font-weight: bold}\n\
342 th.hmonth { font-size: 30pt; font-weight: bold}\n\
343 th.hyear {font-size: 30pt; font-weight: bold }\n\
344 th.week { background-color: #aaaaaa; text-align: center; }\n\
345 td.gday { font-size: 30pt; vertical-align: top; }\n\
346 td.hday { font-size: 12pt; vertical-align: top; }\n\
347 td.sat { border: solid #777777; }\n\
348 td.regular { border: solid #aaaaaa; }\n\
349 td.holiday { color: #990000; border: solid #888888; }\n\
350 td.out_of_month { color: #dddddd; border: solid #dddddd; }\n\
351 tr.line1 { height: 30%%; }\n\
352 tr.line2 { height: 50%%; font-size: 30pt; }\n\
353 tr.line3 { height: 20%%; font-size: 12pt; vertical-align: bottom; }\n\
354 span.today { }\n\
355 span.gmonth { font-size: 24pt; }\n\
356 span.gyear { font-size: 24pt; }\n\
357 span.hmonth { font-size: 24pt; }\n\
358 span.hyear { font-size: 24pt; }\n\
359 span.holiday_name { }\n");
360 }
361
362 return 0;
363 }
364
365
366
367 /**************************************************
368 * HTML - print header
369 *************************************************/
370 int print_header_html ( const int external_css, const int force_hebrew)
371 {
372 printf ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\n\
373 <html>\n\
374 <head>\n\
375 <meta name=\"generator\" content=\"hcal (libhdate)\">\n\
376 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\
377 <style title=\"Normal\" type=\"text/css\" media=\"all\">");
378
379 print_css (external_css);
380
381 printf ("</style>\n");
382
383 /* some alternative css styles */
384 printf ("\n\
385 <link rel=\"alternate stylesheet\" title=\"High contrast\" type=\"text/css\" media=\"screen\" href=\"high_contrast.css\">\n\
386 <link rel=\"alternate stylesheet\" title=\"Colorful\" type=\"text/css\" media=\"screen\" href=\"colorful.css\">\n\
387 <link rel=\"alternate stylesheet\" title=\"Print\" type=\"text/css\" media=\"all\" href=\"print.css\">\n");
388
389 if ( (force_hebrew) || (hdate_is_hebrew_locale()) )
390 printf ("<title>Hebrew Calendar</title>\n</head>\n<body class=\"hebrew\"><center>\n");
391 else
392 printf ("<title>Hebrew Calendar</title>\n</head>\n<body><center>\n");
393
394 return 0;
395 }
396
397
398
399 /**************************************************
400 * HTML - print footer
401 *************************************************/
402 int print_html_footer ()
403 {
404 printf ("<!-- <p>\n\
405 <a href=\"http://validator.w3.org/check/referer\">\n<img \
406 src=\"http://www.w3.org/Icons/valid-html401\"\n\
407 alt=\"Valid HTML 4.01!\" height=\"31\" width=\"88\" />\n</a>\n");
408 printf ("<a href=\"http://jigsaw.w3.org/css-validator\">\n\
409 <img src=\"http://www.w3.org/Icons/valid-css\" alt=\"Valid CSS!\">\n\
410 </a>\n</p> -->\n");
411
412 printf ("</body></html>\n");
413
414 return 0;
415 }
416
417
418 /**************************************************
419 * Print HTML header - month line
420 *************************************************/
421 void print_header_month_line_html( const header_info header)
422 {
423
424 // TODO - fix bug ellul xxxx - tishrei xxxx+1
425 // char *h_year_1;
426 // h_year_1 = malloc(HEBREW_NUMBER_BUFFER_SIZE);
427 // char h_year_1[HEBREW_NUMBER_BUFFER_SIZE + 1];
428 char *h_year_1 = NULL;
429
430 /**************************************************
431 * Print Gregorian month and year
432 **************************************************/
433 printf ("<table width=90%%><tr><td align=left><span class=\"gmonth\">%s <span class=\"gyear\">%d</span></td>\n",
434 hdate_string( HDATE_STRING_GMONTH, header.g_month_1, HDATE_STRING_LONG, HDATE_STRING_LOCAL),
435 header.g_year_1);
436
437 h_year_1 = hdate_string(HDATE_STRING_INT, header.h_year_1, HDATE_STRING_LONG, HDATE_STRING_HEBREW);
438 /**************************************************
439 * Print Hebrew month and year
440 **************************************************/
441 printf ("<td align=right><span class=\"hmonth\">");
442 if (header.h_month_1 != header.h_month_2)
443 {
444 printf ("%s-",
445 hdate_string( HDATE_STRING_HMONTH , header.h_month_1, HDATE_STRING_LONG, HDATE_STRING_LOCAL));
446 }
447 printf ("%s ", hdate_string( HDATE_STRING_HMONTH , header.h_month_2, HDATE_STRING_LONG, HDATE_STRING_LOCAL));
448 printf ("</span>\n");
449 printf ("<span class=\"hyear\">%s</span></td></tr></table>\n", h_year_1);
450
451 printf ("<span class=\"month_table\">\n<table class=main>\n");
452
453
454 if (h_year_1 != NULL) free(h_year_1);
455 }
456
457
458 /**************************************************
459 * HTML - print column headings for days of weeks
460 **************************************************/
461 void print_header_dow_line_html()
462 {
463 int j;
464
465 for (j = 1; j < 8; j++)
466 printf ("<th class=\"week\">%3s</th>",
467 hdate_string( HDATE_STRING_DOW, j, TRUE, FALSE));
468 }
469
470
471
472 /**************************************************
473 * end HTML functions
474 *************************************************/
475
476
477 /*************************************************
478 * Display data in a more pleasing visual manner
479 *************************************************/
480 void colorize_element ( const int element )
481 {
482 switch (element) {
483 case ELEMENT_WEEKDAY_G: printf(CODE_LIGHT_GREY); break;
484 case ELEMENT_WEEKDAY_H: printf(CODE_LIGHT_BROWN); break;
485 case ELEMENT_MONTH_G: printf(CODE_LIGHT_GREY); break;
486 case ELEMENT_MONTH_H: printf(CODE_LIGHT_BROWN); break;
487 case ELEMENT_WEEKDAY_NAMES: printf(CODE_LIGHT_GREEN); break;
488 case ELEMENT_SHABBAT_NAME: printf(CODE_LIGHT_AQUA); break;
489 case ELEMENT_SHABBAT_DAY: printf(CODE_LIGHT_AQUA); break;
490 case ELEMENT_HOLIDAY_DAY: printf(CODE_LIGHT_AQUA); break;
491 case ELEMENT_SHABBAT_TIMES: printf(CODE_LIGHT_PURPLE); break;
492 case ELEMENT_PARASHA: printf(CODE_LIGHT_GREEN); break;
493 case ELEMENT_THIS_SHABBAT_TIMES: printf(CODE_LIGHT_GREEN); break;
494 case ELEMENT_THIS_PARASHA: printf(CODE_LIGHT_GREEN); break;
495 case ELEMENT_HOLIDAY_NAME: printf(CODE_LIGHT_GREY); break;
496 case ELEMENT_TODAY_HOLIDAY_DAY: printf(CODE_LIGHT_GREEN); break;
497 case ELEMENT_TODAY_HOLIDAY_NAME: printf(CODE_LIGHT_GREEN); break;
498 }
499 /* switch (element) {
500 case ELEMENT_WEEKDAY_G: printf(CODE_LIGHT_GREY); break;
501 case ELEMENT_WEEKDAY_H: printf(CODE_LIGHT_AQUA); break;
502 case ELEMENT_MONTH_G: printf(CODE_LIGHT_GREY); break;
503 case ELEMENT_MONTH_H: printf(CODE_LIGHT_AQUA); break;
504 case ELEMENT_WEEKDAY_NAMES: printf(CODE_LIGHT_GREEN); break;
505 case ELEMENT_SHABBAT_NAME: printf(CODE_BOLD_BLUE); break;
506 case ELEMENT_SHABBAT_DAY: printf(CODE_BOLD_BLUE); break;
507 case ELEMENT_HOLIDAY_DAY: printf(CODE_BOLD_BLUE); break;
508 case ELEMENT_SHABBAT_TIMES: printf(CODE_LIGHT_BROWN); break;
509 case ELEMENT_PARASHA: printf(CODE_LIGHT_GREEN); break;
510 case ELEMENT_THIS_SHABBAT_TIMES: printf(CODE_LIGHT_GREEN); break;
511 case ELEMENT_THIS_PARASHA: printf(CODE_LIGHT_GREEN); break;
512 case ELEMENT_HOLIDAY_NAME: printf(CODE_LIGHT_GREY); break;
513 case ELEMENT_TODAY_HOLIDAY_DAY: printf(CODE_LIGHT_GREEN); break;
514 case ELEMENT_TODAY_HOLIDAY_NAME: printf(CODE_LIGHT_GREEN); break;
515 */
516 }
517
518
519
520 /**************************************************
521 * print header - month line to stdout
522 *************************************************/
523 void print_header_month_line_stdout( const header_info header, const int colorize, const int force_hebrew, const int visual_bidi )
524 {
525 char *g_month, *h1_month, *h2_month;
526 char *h1_year = NULL;
527 char *h2_year = NULL;
528 size_t g_month_len, g_year_len, h1_month_len, h2_month_len, h1_year_len, h2_year_len;
529
530
531 char *hebrew_buffer, *hebrew_buffer_next;
532 size_t hebrew_buffer_len, literals_len;
533
534 int j;
535 size_t padding = 0;
536
537
538 /**************************************************
539 * Print Gregorian month and year
540 *************************************************/
541 g_month = hdate_string( HDATE_STRING_GMONTH, header.g_month_1, HDATE_STRING_LONG, HDATE_STRING_LOCAL);
542 if (colorize) colorize_element(ELEMENT_MONTH_G);
543 printf ("%s %d", g_month, header.g_year_1);
544 if (colorize) printf(CODE_RESTORE_VIDEO);
545
546 /**************************************************
547 * Print Hebrew month and year
548 *
549 * because we want this printed right-justified on
550 * the same line, we need to calculate how many
551 * spaces to pad.
552 *
553 * because of the possible user option --bidi, we
554 * need to buffer the entire Hebrew text in order
555 * reverse its sequence for 'visual' display.
556 *
557 * This all requires collecting the data first
558 * and determining each's length.
559 *************************************************/
560
561 #define CALENDAR_WIDTH 41
562 #define DASH_WIDTH 3 // includes surrounding spaces
563 #define SPACE_WIDTH 1
564
565
566 /*************************************************
567 * padding info for gregorian date
568 *************************************************/
569 g_month_len = strlen(g_month);
570 g_year_len = 4;
571 switch (header.g_year_1)
572 {
573 case 1-9: g_year_len = 1; break;
574 case 10-99: g_year_len = 2; break;
575 case 100-999: g_year_len = 3; break;
576 }
577
578
579 /**************************************************
580 * collect padding info for Hebrew date
581 *************************************************/
582 h1_month = hdate_string( HDATE_STRING_HMONTH , header.h_month_1, HDATE_STRING_LONG, force_hebrew);
583 h1_year = hdate_string( HDATE_STRING_INT, header.h_year_1, HDATE_STRING_SHORT, force_hebrew);
584 //printf("\nh1_month = %s; h1_year = %s, in-year = %d\n",h1_month,h1_year, header.h_year_1);exit(0);
585
586 h1_month_len = strlen(h1_month);
587 h1_year_len = strlen(h1_year);
588 // DEBUG - printf("\nh1 year value = %d, h1 year string = %s, string length = %d\n",header.h_year_1, h1_year, h1_year_len);
589 // DEBUG - int ii; for (ii=0; ii<h1_year_len; ii++) printf("%x ",h1_year[ii]);
590
591 if (header.h_year_1 != header.h_year_2)
592 {
593
594 h2_month = hdate_string( HDATE_STRING_HMONTH , header.h_month_2, HDATE_STRING_LONG, force_hebrew);
595 h2_year = hdate_string(HDATE_STRING_INT, header.h_year_2, HDATE_STRING_LONG,force_hebrew);
596
597 h2_month_len = strlen(h2_month);
598 h2_year_len = strlen(h2_year);
599 literals_len = SPACE_WIDTH + DASH_WIDTH + SPACE_WIDTH;
600
601 hebrew_buffer_len = h1_month_len + h1_year_len + h2_month_len
602 + h2_year_len + literals_len;
603
604 // printf("\nlength values = %d %d %d %d %d %d\n",h1_month_len , h1_year_len , DASH_WIDTH, h2_month_len, SPACE_WIDTH , h2_year_len);
605 hebrew_buffer = malloc(hebrew_buffer_len+1);
606 hebrew_buffer_next = mempcpy(hebrew_buffer, h1_month, h1_month_len);
607 hebrew_buffer_next = mempcpy(hebrew_buffer_next, " ", SPACE_WIDTH);
608 hebrew_buffer_next = mempcpy(hebrew_buffer_next, h1_year, h1_year_len);
609 hebrew_buffer_next = mempcpy(hebrew_buffer_next, " - ", DASH_WIDTH);
610 hebrew_buffer_next = mempcpy(hebrew_buffer_next, h2_month, h2_month_len);
611 hebrew_buffer_next = mempcpy(hebrew_buffer_next, " ", SPACE_WIDTH);
612 hebrew_buffer_next = mempcpy(hebrew_buffer_next, h2_year, h2_year_len);
613 hebrew_buffer[hebrew_buffer_len]='\0';
614
615 // printf("\nbuffer length = %d\nbuffer contents = %s\n",hebrew_buffer_len, hebrew_buffer); exit(0);
616 // free(hebrew_buffer);
617 }
618 else if (header.h_month_1 != header.h_month_2)
619 {
620 h2_month = hdate_string( HDATE_STRING_HMONTH , header.h_month_2, HDATE_STRING_LONG, force_hebrew);
621 h2_month_len = strlen(h2_month);
622 literals_len = DASH_WIDTH + SPACE_WIDTH;
623
624 hebrew_buffer_len = h1_month_len + h2_month_len + h1_year_len + literals_len;
625 hebrew_buffer = malloc(hebrew_buffer_len+1);
626 hebrew_buffer_next = mempcpy(hebrew_buffer, h1_month, h1_month_len);
627 hebrew_buffer_next = mempcpy(hebrew_buffer_next, " - ", DASH_WIDTH);
628 hebrew_buffer_next = mempcpy(hebrew_buffer_next, h2_month, h2_month_len);
629 hebrew_buffer_next = mempcpy(hebrew_buffer_next, " ", SPACE_WIDTH);
630 hebrew_buffer_next = mempcpy(hebrew_buffer_next, h1_year, h1_year_len);
631 hebrew_buffer[hebrew_buffer_len]='\0';
632 }
633 else
634 {
635 h2_month_len = 0;
636 h2_year_len = 0;
637 literals_len = SPACE_WIDTH;
638
639 hebrew_buffer_len = h1_month_len + h1_year_len + literals_len;
640
641 hebrew_buffer = malloc(hebrew_buffer_len+1);
642 hebrew_buffer_next = mempcpy(hebrew_buffer, h1_month, h1_month_len);
643 hebrew_buffer_next = mempcpy(hebrew_buffer_next, " ", SPACE_WIDTH);
644 hebrew_buffer_next = mempcpy(hebrew_buffer_next, h1_year, h1_year_len);
645 hebrew_buffer[hebrew_buffer_len]='\0';
646 }
647
648 if (!force_hebrew)
649 padding = CALENDAR_WIDTH - g_month_len - g_year_len - hebrew_buffer_len ;
650 else
651 padding = CALENDAR_WIDTH - g_month_len - g_year_len - (hebrew_buffer_len/2) - literals_len +1;
652
653
654
655 /**************************************************
656 * print padding
657 *************************************************/
658 for (j = 1; j < padding; j++) printf(" ");
659
660
661 /**************************************************
662 * Print Hebrew month and year
663 *************************************************/
664 if (colorize) colorize_element(ELEMENT_MONTH_H);
665 if (visual_bidi) revstr(hebrew_buffer, hebrew_buffer_len);
666 printf ("%s", hebrew_buffer);
667 if (colorize) printf(CODE_RESTORE_VIDEO);
668
669
670 /**************************************************
671 * free allocated memory
672 *************************************************/
673 if (h1_year != NULL) free(h1_year);
674 // if (header.h_year_1 != header.h_year_2) free(h2_year);
675 if (h2_year != NULL) free(h2_year);
676 free(hebrew_buffer);
677 }
678
679
680 /**************************************************
681 * print column headings for days of weeks
682 **************************************************/
683 void print_header_dow_line_stdout( const int colorize )
684 {
685 int column;
686
687 void print_dow_column( int column )
688 {
689 if (hdate_is_hebrew_locale())
690 { /* Hebrew heading is a single charcter per day */
691 printf ("%s%s%s", " ",
692 hdate_string( HDATE_STRING_DOW, column, HDATE_STRING_SHORT, HDATE_STRING_HEBREW),
693 " ");
694 }
695 else
696 { /* presume three character heading */
697 printf ("%s%3s", " ",
698 hdate_string( HDATE_STRING_DOW, column, HDATE_STRING_SHORT, HDATE_STRING_LOCAL));
699 }
700
701 if (column != 7) printf (" ");
702 }
703
704 if (colorize) colorize_element(ELEMENT_WEEKDAY_NAMES);
705 for (column = 1; column < 7; column++) print_dow_column(column);
706 if (colorize) colorize_element(ELEMENT_SHABBAT_NAME);
707 print_dow_column(7);
708 if (colorize) printf(CODE_RESTORE_VIDEO);
709 }
710
711
712
713 /**************************************************
714 * calculate start/end month/year for a calendar
715 **************************************************/
716 header_info calculate_calendar_start_end (const int month, const int year)
717 {
718 hdate_struct h;
719 header_info header;
720
721 hdate_set_gdate (&h, 1, month, year);
722 header.g_month_1 = h.gd_mon;
723 header.g_year_1 = h.gd_year;
724 header.h_month_1 = h.hd_mon;
725 header.h_year_1 = h.hd_year;
726
727
728 hdate_set_jd ( &h, hdate_gdate_to_jd ( 1, month % 12 + 1, ((month==12) ? year+1 : year) ) - 1 );
729 header.g_month_2 = h.gd_mon;
730 header.g_year_2 = h.gd_year;
731 header.h_month_2 = h.hd_mon;
732 header.h_year_2 = h.hd_year;
733
734 return header;
735 }
736
737
738 /**************************************************
739 * print header - year and month
740 *************************************************/
741 int print_header ( const int month, const int year, const option_list opt)
742 {
743 header_info previous_month, current_month, next_month;
744
745
746 /**********************************************************
747 * Preliminary - set dates for begining and end of calendar
748 **********************************************************/
749 current_month = calculate_calendar_start_end(month, year);
750 if (opt.three_month)
751 {
752 previous_month = calculate_calendar_start_end(
753 (month==1 ? 12 : month-1), (month==1 ? year-1 : year) );
754 next_month = calculate_calendar_start_end(
755 (month==12 ? 1 : month+1), (month==12 ? year+1: year) );
756 }
757
758 /**************************************************
759 * HTML output - month header line
760 *************************************************/
761 if (opt.html) print_header_month_line_html(current_month);
762
763
764 /**************************************************
765 * STDOUT output - month header line
766 *************************************************/
767 else
768 {
769 if (opt.three_month)
770 {
771 print_header_month_line_stdout(previous_month, opt.colorize, opt.force_hebrew, opt.bidi);
772 printf(" ");
773 }
774
775 print_header_month_line_stdout(current_month, opt.colorize, opt.force_hebrew, opt.bidi);
776
777 if (opt.three_month)
778 {
779 printf(" ");
780 print_header_month_line_stdout(next_month, opt.colorize, opt.force_hebrew, opt.bidi);
781 }
782 }
783
784 /**************************************************
785 * terminate line
786 **************************************************/
787 if (opt.html) printf ("</tr>\n");
788 else printf ("\n");
789
790
791 /**************************************************
792 * print column headings for days of weeks
793 **************************************************/
794 if (opt.html) print_header_dow_line_html();
795 else
796 {
797 if (opt.three_month)
798 {
799 print_header_dow_line_stdout(opt.colorize);
800 printf(" ");
801 }
802 print_header_dow_line_stdout(opt.colorize);
803 if (opt.three_month)
804 {
805 printf(" ");
806 print_header_dow_line_stdout(opt.colorize);
807 }
808 }
809
810 /**************************************************
811 * terminate line
812 **************************************************/
813 if (opt.html) printf ("</tr>\n");
814 else printf ("\n");
815
816 return 0;
817 }
818
819
820 /**************************************************
821 * print HTML calendar entry (ie. a single day)
822 *************************************************/
823 void print_day_html ( const hdate_struct h, const int month, const option_list opt)
824 {
825
826 int holiday_type;
827 // char *hd_day;
828 // hd_day = malloc(HEBREW_NUMBER_BUFFER_SIZE);
829 // char hd_day_buffer[HEBREW_NUMBER_BUFFER_SIZE + 1];
830 char *hd_day_str = NULL;
831
832 holiday_type = hdate_get_holyday_type(hdate_get_holyday(&h, opt.diaspora));
833
834
835 if (h.gd_mon != month) printf ("<td class=\"out_of_month\">");
836 else if (h.hd_dw == SHABBAT) printf ("<td class=\"sat\">");
837 else if (holiday_type) printf ("<td class=\"holiday\">");
838 else printf ("<td class=\"regular\">");
839
840 /* Print a day */
841 hd_day_str = hdate_string(HDATE_STRING_INT, h.hd_day, HDATE_STRING_LONG,opt.force_hebrew);
842 printf ("<table class=day><tr class=line1><td class=\"gday\">%2d</td>\n\
843 <td class=\"hday\">%3s&nbsp;%s</td></tr><tr class=line2><td>&nbsp;</td></tr>",
844 h.gd_day,
845 hd_day_str,
846 hdate_string( HDATE_STRING_HMONTH , h.hd_mon, HDATE_STRING_LONG, opt.force_hebrew));
847 if (holiday_type) printf ("<tr class=line3><td class=\"holiday_name\">%s</td></tr>",
848 hdate_string( HDATE_STRING_HOLIDAY,
849 hdate_get_holyday (&h, opt.diaspora),
850 HDATE_STRING_SHORT, HDATE_STRING_LOCAL)
851 );
852 else printf ("<tr class=line3><td class=\"holiday_name\">&nbsp;</td></tr>");
853
854 printf ("</table></td>\n");
855
856 if (hd_day_str != NULL) free(hd_day_str);
857 }
858
859
860 /*************************************************
861 * print stdout calendar entry (ie. a single day)
862 *************************************************/
863 void print_day ( const hdate_struct h, const int month, const option_list opt)
864 {
865
866 // for forcing Hebrew printing of Hebrew data
867 //char *language;
868
869 // char *hd_day_buffer[HEBREW_NUMBER_BUFFER_SIZE + 1];
870 // hd_day_buffer = malloc(HEBREW_NUMBER_BUFFER_SIZE + 1);
871 char *hd_day_str = NULL;
872
873 size_t hd_day_buffer_str_len;
874
875 int holiday_type;
876 holiday_type = hdate_get_holyday_type(hdate_get_holyday(&h, opt.diaspora));
877
878 /**************************************************
879 * out of month - needs padding
880 *************************************************/
881 if (h.gd_mon != month) printf(" ");
882
883
884 /**************************************************
885 * in month - print the data
886 *************************************************/
887 else
888 {
889 /*************************************************
890 * Gregorian date entry - color prefix
891 *************************************************/
892 if (h.hd_jd == opt.jd_today_g)
893 printf (CODE_REVERSE_VIDEO);
894 else if (opt.colorize)
895 {
896 if (h.hd_dw==7) colorize_element(ELEMENT_SHABBAT_DAY);
897 else if (holiday_type) colorize_element(ELEMENT_HOLIDAY_DAY);
898 else colorize_element(ELEMENT_WEEKDAY_G);
899 }
900
901 /*************************************************
902 * Gregorian date entry - the day of the month
903 *************************************************/
904 // this next line is necessary to align numbers
905 // correctly with bidi (tested using mlterm)
906 if ( (h.gd_day < 10) && (hdate_is_hebrew_locale()) )
907 printf ("%d ", h.gd_day);
908 else printf ("%2d", h.gd_day);
909
910 /*************************************************
911 * Gregorian date entry - color cleanup
912 *************************************************/
913 if ((h.hd_jd == opt.jd_today_g) || (opt.colorize))
914 printf (CODE_RESTORE_VIDEO);
915
916
917 /*************************************************
918 * holiday flag
919 *************************************************/
920 printf ("%c", holiday_flag[holiday_type]);
921
922
923 /*************************************************
924 * Hebrew date entry - color prefix
925 *************************************************/
926 if (h.hd_jd == opt.jd_today_h)
927 printf (CODE_REVERSE_VIDEO);
928 else if (opt.colorize)
929 {
930 if (h.hd_dw==7) colorize_element(ELEMENT_SHABBAT_DAY);
931 else if (holiday_type) colorize_element(ELEMENT_HOLIDAY_DAY);
932 else colorize_element(ELEMENT_WEEKDAY_H);
933 }
934
935
936 /*************************************************
937 * Hebrew date entry - day of the month
938 *************************************************/
939 hd_day_str = hdate_string(HDATE_STRING_INT, h.hd_day,HDATE_STRING_SHORT,opt.force_hebrew);
940 if (opt.bidi)
941 {
942 hd_day_buffer_str_len = (size_t) strlen(hd_day_str);
943 if ( hd_day_buffer_str_len > HEBREW_NUMBER_BUFFER_SIZE)
944 hd_day_buffer_str_len = HEBREW_NUMBER_BUFFER_SIZE - 1;
945 revstr(hd_day_str, hd_day_buffer_str_len);
946 }
947 if ( ( (opt.force_hebrew) || (hdate_is_hebrew_locale()) ) &&
948 ( (h.hd_day < 11) || (h.hd_day == 20) || (h.hd_day == 30) ) )
949 { // need to pad Hebrew dates 1-10, 20, 30
950 printf ("%s%s"," ",hd_day_str);
951 }
952 else printf ("%2s", hd_day_str);
953
954 /*************************************************
955 * Hebrew date entry - color cleanup
956 *************************************************/
957 if ((h.hd_jd == opt.jd_today_h) || (opt.colorize))
958 printf (CODE_RESTORE_VIDEO);
959
960 }
961
962 if (hd_day_str != NULL) free(hd_day_str);
963 }
964
965
966 /*************************************************
967 * print a calendar week's entry (ie. seven columns)
968 *************************************************/
969 void print_week( int jd, const int month, const option_list opt)
970 {
971 #define long_parasha_name 0
972
973 hdate_struct h;
974
975 int calendar_column;
976
977 // for opt.shabbat
978 int sun_hour, first_light, talit, sunrise;
979 int midday, sunset, first_stars, three_stars;
980 int this_week;
981 hdate_struct yom_shishi;
982
983 // for opt.parasha
984 int shabbat_name;
985 char *shabbat_name_str, *shabbat_name_buffer;
986 size_t shabbat_name_str_len;
987
988
989 // for forcing Hebrew printing of Hebrew data
990 //char *language;
991
992
993 /**************************************************
994 * for each column of calendar
995 *************************************************/
996 for (calendar_column = 0; calendar_column < 7; calendar_column++)
997 {
998
999 /**************************************************
1000 * Get this day's information
1001 *************************************************/
1002 hdate_set_jd (&h, jd);
1003 if ( ((opt.shabbat) || (opt.parasha)) && (calendar_column == 5) )
1004 yom_shishi = h;
1005
1006
1007 /**************************************************
1008 * HTML calendar option
1009 *************************************************/
1010 if (opt.html) print_day_html ( h, month, opt );
1011
1012
1013
1014 /**************************************************
1015 * non-HTML calendar option
1016 *************************************************/
1017 else print_day ( h, month, opt);
1018
1019
1020 /**************************************************
1021 * space between days of week
1022 *************************************************/
1023 if (calendar_column != 6) printf (" ");
1024
1025 /**************************************************
1026 * advance to next day of week
1027 *************************************************/
1028 jd++;
1029 }
1030
1031 /**************************************************
1032 * print end of calendar line
1033 *************************************************/
1034 if ((!opt.html) && ( (h.gd_mon == month) || (h.gd_day < SHABBAT) ) )
1035 {
1036
1037 /********************************************************
1038 * determine whether this line gets special highlighting
1039 ********************************************************/
1040 if ((opt.colorize)
1041 && ((opt.shabbat) || (opt.parasha))
1042 && ((jd - 1) > opt.jd_today_h)
1043 && (((jd - 1) - opt.jd_today_h) < 7) )
1044 this_week = TRUE;
1045 else this_week = FALSE;
1046
1047 /*************************************************
1048 * print shabbat times
1049 *************************************************/
1050 if (opt.shabbat)
1051 {
1052 // candlelighting times
1053 hdate_get_utc_sun_time (yom_shishi.gd_day, yom_shishi.gd_mon, yom_shishi.gd_year,
1054 opt.lat, opt.lon, &sunrise, &sunset);
1055
1056 // FIXME - allow for further minhag variation
1057 if (opt.candles != 1) sunset = sunset - opt.candles + opt.tz;
1058 else sunset = sunset + opt.tz - DEFAULT_CANDLES_MINUTES;
1059
1060 if (opt.colorize)
1061 {
1062 if (this_week) colorize_element(ELEMENT_THIS_SHABBAT_TIMES);
1063 else colorize_element(ELEMENT_SHABBAT_TIMES);
1064 }
1065 printf (" %02d:%02d", sunset / 60, sunset % 60);
1066 if (opt.colorize) printf (CODE_RESTORE_VIDEO);
1067
1068 printf(" - ");
1069
1070 // motzay shabat time
1071 hdate_get_utc_sun_time_full (h.gd_day, h.gd_mon, h.gd_year, opt.lat,
1072 opt.lon, &sun_hour, &first_light, &talit,
1073 &sunrise, &midday, &sunset,
1074 &first_stars, &three_stars);
1075
1076 // FIXME - allow for further minhag variation
1077 if (opt.havdalah != 1) three_stars = sunset + opt.havdalah + opt.tz;
1078 else three_stars = three_stars + opt.tz;
1079
1080 if (opt.colorize)
1081 {
1082 if (this_week) colorize_element(ELEMENT_THIS_SHABBAT_TIMES);
1083 else colorize_element(ELEMENT_SHABBAT_TIMES);
1084 }
1085 printf ("%02d:%02d", three_stars / 60, three_stars % 60);
1086 if (opt.colorize) printf (CODE_RESTORE_VIDEO);
1087 }
1088
1089
1090 /*************************************************
1091 * print shabbat name
1092 *************************************************/
1093 if (opt.parasha)
1094 {
1095
1096 /*************************************************
1097 * print shabbat name - force-hebrew setup
1098 *************************************************/
1099 // BUG - this isn't thread-safe
1100 /*if (opt.force_hebrew)
1101 {
1102 language=getenv("LANGUAGE");
1103 setenv("LANGUAGE", "he_IL.UTF-8", 1);
1104 }*/
1105
1106
1107 shabbat_name = hdate_get_parasha (&h, opt.diaspora);
1108 if (shabbat_name) shabbat_name_str =
1109 hdate_string( HDATE_STRING_PARASHA, shabbat_name,
1110 HDATE_STRING_SHORT, opt.force_hebrew);
1111 else
1112 {
1113 shabbat_name = hdate_get_holyday(&h, opt.diaspora);
1114 if (shabbat_name) shabbat_name_str =
1115 hdate_string( HDATE_STRING_HOLIDAY,
1116 shabbat_name,
1117 HDATE_STRING_SHORT, opt.force_hebrew);
1118 }
1119 if (shabbat_name)
1120 {
1121 if (opt.colorize)
1122 {
1123 if (this_week) colorize_element(ELEMENT_THIS_PARASHA);
1124 else colorize_element(ELEMENT_PARASHA);
1125 }
1126 if (opt.bidi)
1127 {
1128 shabbat_name_str_len = strlen(shabbat_name_str);
1129 shabbat_name_buffer = malloc(shabbat_name_str_len+1);
1130 memcpy(shabbat_name_buffer, shabbat_name_str, shabbat_name_str_len);
1131 shabbat_name_buffer[shabbat_name_str_len] = '\0';
1132 revstr(shabbat_name_buffer, shabbat_name_str_len);
1133
1134 // padding - FIXME - spaces are single-byte, while
1135 // the Hebrew characters are two bytes
1136 const int margin_max = 15;
1137 printf("%*s%s", (margin_max - shabbat_name_str_len/2)," ", shabbat_name_buffer);
1138
1139 free(shabbat_name_buffer);
1140 }
1141 else printf(" %s", shabbat_name_str);
1142 //if (opt.force_hebrew) setenv("LANGUAGE", language, 1);
1143 if (opt.colorize) printf (CODE_RESTORE_VIDEO);
1144 }
1145 }
1146 }
1147 }
1148
1149
1150
1151
1152 /**************************************************
1153 * print month table
1154 *************************************************/
1155 int print_calendar ( const int current_month, const int current_year, const option_list opt)
1156 {
1157 hdate_struct h;
1158 int calendar_line;
1159 int max_calendar_lines = 4;
1160 int previous_month, next_month;
1161 int previous_year, next_year;
1162 int jd_current_month, jd_previous_month, jd_next_month;
1163
1164 void how_many_calendar_lines( int month, int start_dow )
1165 {
1166 switch (month)
1167 {
1168 case 4:
1169 case 6:
1170 case 9:
1171 case 11: if (start_dow == 7) max_calendar_lines = 6;
1172 else if (max_calendar_lines == 4) max_calendar_lines = 5;
1173 break;
1174 case 1:
1175 case 3:
1176 case 5:
1177 case 7:
1178 case 8:
1179 case 10:
1180 case 12: if (start_dow > 5) max_calendar_lines = 6;
1181 else if (max_calendar_lines == 4) max_calendar_lines = 5;
1182 break;
1183 }
1184 }
1185
1186 /*********************************************************
1187 * Preliminaries:
1188 * - Find the first sunday(s) of each calendar
1189 * - Find number of calendar lines
1190 *********************************************************/
1191 hdate_set_gdate (&h, 1, current_month, current_year);
1192 jd_current_month = h.hd_jd - h.hd_dw + 1;
1193 how_many_calendar_lines( h.gd_mon, h.hd_dw );
1194
1195 /*********************************************************
1196 * three months, side-by-side
1197 *********************************************************/
1198 if (opt.three_month)
1199 {
1200 /*********************************************************
1201 * previous month
1202 *********************************************************/
1203 if (current_month == 1)
1204 {
1205 previous_month = 12;
1206 previous_year = current_year - 1;
1207 }
1208 else
1209 {
1210 previous_month = current_month - 1;
1211 previous_year = current_year;
1212 }
1213 hdate_set_gdate (&h, 1, previous_month, previous_year);
1214 jd_previous_month = h.hd_jd - h.hd_dw + 1;
1215 how_many_calendar_lines( h.gd_mon, h.hd_dw );
1216
1217 /*********************************************************
1218 * next month
1219 *********************************************************/
1220 if (current_month == 12)
1221 {
1222 next_month = 1;
1223 next_year = current_year + 1;
1224 }
1225 else
1226 {
1227 next_month = current_month + 1;
1228 next_year = current_year;
1229 }
1230 hdate_set_gdate (&h, 1, next_month, next_year);
1231 jd_next_month = h.hd_jd - h.hd_dw + 1;
1232 how_many_calendar_lines( h.gd_mon, h.hd_dw );
1233 }
1234
1235
1236
1237 /**************************************************
1238 * maximum six lines of calendar
1239 **************************************************/
1240 for (calendar_line = 0; calendar_line < max_calendar_lines; calendar_line++)
1241 {
1242 if (opt.html) printf ("<tr>\n");
1243
1244 if (opt.three_month)
1245 {
1246 print_week(jd_previous_month, previous_month, opt);
1247 jd_previous_month = jd_previous_month + 7;
1248 printf(" ");
1249 }
1250
1251 print_week(jd_current_month, current_month, opt);
1252 jd_current_month = jd_current_month + 7;
1253
1254
1255 if (opt.three_month)
1256 {
1257 printf(" ");
1258 print_week(jd_next_month, next_month, opt);
1259 jd_next_month = jd_next_month + 7;
1260 }
1261
1262 if (opt.html) printf ("</tr>\n");
1263 else printf ("\n");
1264 }
1265
1266
1267 /**************************************************
1268 * print end of calendar
1269 *************************************************/
1270 if (opt.html) printf ("</table>\n</span>");
1271
1272 return 0;
1273 }
1274
1275
1276
1277
1278
1279
1280 /****************************************************
1281 * print month header, month table, month footnotes
1282 ****************************************************/
1283 int print_month ( const int month, const int year, const option_list opt)
1284 {
1285 hdate_struct h;
1286
1287 // following are for opt.footnote
1288 int jd_counter, holiday;
1289 //char *language; // for forcing Hebrew printing of footnote
1290
1291
1292 /* check if hebrew year (year > 3000) */
1293 if (year > 3000) hdate_set_hdate (&h, 1, month, year);
1294 else hdate_set_gdate (&h, 1, month, year);
1295
1296
1297 print_header (h.gd_mon, h.gd_year, opt);
1298 print_calendar (h.gd_mon, h.gd_year, opt);
1299 printf("\n");
1300
1301
1302 /****************************************************
1303 * print footnotes
1304 ****************************************************/
1305 if (opt.footnote)
1306 {
1307 jd_counter = h.hd_jd;
1308 while ( month == h.gd_mon )
1309 {
1310 holiday = hdate_get_holyday(&h, opt.diaspora);
1311 if (holiday)
1312 {
1313 print_day ( h, month, opt);
1314 /*if (opt.force_hebrew)
1315 {
1316 // BUG - this isn't thread-safe
1317 // --- and it may no longer be nexessary anywhere
1318 // in the code now that I've embedded Hebrew
1319 language=getenv("LANGUAGE");
1320 setenv("LANGUAGE", "he_IL.UTF-8", 1);
1321 }*/
1322 if (opt.colorize)
1323 {
1324 if (opt.jd_today_h == h.hd_jd) colorize_element(ELEMENT_TODAY_HOLIDAY_NAME);
1325 else colorize_element(ELEMENT_HOLIDAY_NAME);
1326 }
1327
1328 if (opt.bidi)
1329 {
1330 char *holiday_str, *holiday_buffer;
1331 size_t holiday_str_len;
1332 holiday_str = hdate_string( HDATE_STRING_HOLIDAY,
1333 holiday,
1334 HDATE_STRING_LONG,
1335 opt.force_hebrew);
1336
1337 holiday_str_len = strlen(holiday_str);
1338 holiday_buffer = malloc(holiday_str_len+1);
1339 memcpy(holiday_buffer, holiday_str, holiday_str_len);
1340 holiday_buffer[holiday_str_len] = '\0';
1341 revstr(holiday_buffer, holiday_str_len);
1342
1343 // padding - FIXME - spaces are single-byte, while
1344 // the Hebrew characters are two bytes
1345 const int margin_max = 16; // 15 fails because of jabotinsky in july
1346 printf("%*s%s\n", (margin_max - holiday_str_len/2)," ", holiday_buffer);
1347
1348 free(holiday_buffer);
1349 }
1350 else printf (" %s\n",
1351 hdate_string( HDATE_STRING_HOLIDAY,
1352 holiday,
1353 HDATE_STRING_LONG,
1354 opt.force_hebrew));
1355
1356 if (opt.colorize) printf (CODE_RESTORE_VIDEO);
1357 //if (opt.force_hebrew) setenv("LANGUAGE", language, 1);
1358 }
1359 jd_counter++;
1360 hdate_set_jd (&h, jd_counter);
1361 }
1362 }
1363 return 0;
1364 }
1365
1366
1367 /****************************************************
1368 * read and parse config file
1369 ****************************************************/
1370 void read_config_file( FILE *config_file,
1371 option_list *opt,
1372 double* latitude,
1373 int* opt_latitude,
1374 double* longitude,
1375 int* opt_longitude,
1376 int* tz )
1377
1378 {
1379 char *input_string;
1380 size_t input_str_len = 100; // WARNING: if you change this value
1381 // you will still have to also
1382 // change a matching value below
1383 // in the statement that includes:
1384 // match_count = sscanf(input_string
1385 char *input_key = "";
1386 char *input_value = "";
1387 int line_count = 0;
1388 int menu_item = 0;
1389 size_t menu_len = 0;
1390 int match_count;
1391 int end_of_input_file = FALSE;
1392 int i;
1393 const int num_of_keys = 20;
1394 const char* key_list[] = { "SUNSET_AWARE", // 0
1395 "LATITUDE",
1396 "LONGITUDE", // 2
1397 "TIMEZONE",
1398 "DIASPORA", // 4
1399 "FORCE_ISRAEL",
1400 "PARASHA_NAMES", // 6
1401 "SHABBAT_INFO",
1402 "FOOTNOTES", // 8
1403 "FORCE_HEBREW",
1404 "OUTPUT_BIDI", //10
1405 "SUPPRESS_REVERSE_VIDEO",
1406 "COLORIZE", //12
1407 "OUTPUT_HTML",
1408 "USE_EXTERNAL_CSS_FILE",
1409 "QUIET_ALERTS",
1410 "THREE_MONTH", //16
1411 "MENU",
1412 "CANDLE_LIGHTING", //18
1413 "HAVDALAH"
1414 };
1415
1416 input_string = malloc(input_str_len+1);
1417 input_key = malloc(input_str_len+1);
1418 input_value = malloc(input_str_len+1);
1419 while ( end_of_input_file!=TRUE )
1420 {
1421 end_of_input_file = getline(&input_string, &input_str_len, config_file);
1422 if ( end_of_input_file!=TRUE )
1423 {
1424 errno = 0;
1425 // The '100' in the next statement is inelegant; it is meant to
1426 // be the value of input_str_len. Alternatively, don't malloc
1427 // input_value above, use the 'a' specifier here, and free(input_value)
1428 // at the end of every successful read and evaluation
1429 match_count = sscanf(input_string,"%[A-Z_]=%100[^\n]",input_key,input_value);
1430 line_count++;
1431 if (errno != 0) error(0,errno,"scan error at line %d", line_count);
1432 // DEBUG - printf("line number = %d, matches made = %d, key = %s, value = %s, string = %s",
1433 // line_count, match_count, input_key, input_value, input_string);
1434 if (match_count ==2)
1435 {
1436 for (i=0; i<num_of_keys; i++)
1437 {
1438 if (strcmp(input_key, key_list[i]) == 0)
1439 {
1440 // DEBUG - printf("match found!, %s = %s, index = %d\n",input_key,key_list[i],i);
1441 switch(i)
1442 {
1443
1444 case 0:if (strcmp(input_value,"FALSE") == 0) opt->not_sunset_aware = 1;
1445 else if (strcmp(input_value,"TRUE") == 0) opt->not_sunset_aware = 0;
1446 break;
1447 case 1:
1448 parse_coordinate(1, input_value, latitude, opt_latitude);
1449 break;
1450 case 2:
1451 parse_coordinate(2, input_value, longitude, opt_longitude);
1452 break;
1453 case 3:
1454 parse_timezone(input_value, tz);
1455 break;
1456 case 4:if (strcmp(input_value,"FALSE") == 0) opt->diaspora = 0;
1457 else if (strcmp(input_value,"TRUE") == 0) opt->diaspora = 1;
1458 break;
1459 case 5:if (strcmp(input_value,"FALSE") == 0) opt->force_israel = 0;
1460 else if (strcmp(input_value,"TRUE") == 0) opt->force_israel = 1;
1461 break;
1462 case 6:if (strcmp(input_value,"FALSE") == 0) opt->parasha = 0;
1463 else if (strcmp(input_value,"TRUE") == 0) opt->parasha = 1;
1464 break;
1465 case 7:if (strcmp(input_value,"FALSE") == 0) opt->shabbat = 0;
1466 else if (strcmp(input_value,"TRUE") == 0)
1467 {
1468 opt->shabbat = 1;
1469 opt->parasha = 1;
1470 }
1471 break;
1472 case 8:if (strcmp(input_value,"FALSE") == 0) opt->footnote = 0;
1473 else if (strcmp(input_value,"TRUE") == 0) opt->footnote = 1;
1474 break;
1475 case 9:if (strcmp(input_value,"FALSE") == 0) opt->force_hebrew = 0;
1476 else if (strcmp(input_value,"TRUE") == 0) opt->force_hebrew = 1;
1477 break;
1478 case 10:if (strcmp(input_value,"FALSE") == 0) opt->bidi = 0;
1479 else if (strcmp(input_value,"TRUE") == 0)
1480 {
1481 opt->bidi = 1;
1482 opt->force_hebrew = 1;
1483 }
1484 break;
1485 case 11:if (strcmp(input_value,"FALSE") == 0) opt->no_reverse = 0;
1486 else if (strcmp(input_value,"TRUE") == 0) opt->no_reverse = 1;
1487 break;
1488 case 12:if (strcmp(input_value,"FALSE") == 0) opt->colorize = 0;
1489 else if (strcmp(input_value,"TRUE") == 0) opt->colorize = 1;
1490 break;
1491 case 13:if (strcmp(input_value,"FALSE") == 0) opt->html = 0;
1492 else if (strcmp(input_value,"TRUE") == 0) opt->html = 1;
1493 break;
1494 case 14:if (strcmp(input_value,"FALSE") == 0) opt->external_css = 0;
1495 else if (strcmp(input_value,"TRUE") == 0) opt->external_css = 1;
1496 break;
1497 case 15:if (strcmp(input_value,"FALSE") == 0) opt->quiet_alerts = 0;
1498 else if (strcmp(input_value,"TRUE") == 0) opt->quiet_alerts = 1;
1499 break;
1500 case 16:if (strcmp(input_value,"FALSE") == 0) opt->three_month = 0;
1501 else if (strcmp(input_value,"TRUE") == 0) opt->three_month = 1;
1502 break;
1503
1504 // MENU
1505 case 17:if (menu_item < MAX_MENU_ITEMS)
1506 {
1507 menu_len = strlen(input_value);
1508 opt->menu_item[menu_item] = malloc(menu_len+1);
1509 memcpy(opt->menu_item[menu_item], input_value,menu_len);
1510 menu_item++;
1511 }
1512 break;
1513 // CANDLE_LIGHTING
1514 case 18:if (strcmp(input_value,"FALSE") == 0) opt->candles = 0;
1515 else if (strcmp(input_value,"TRUE") == 0) opt->candles = 1;
1516 else if (fnmatch( "[[:digit:]]?([[:digit:]])", input_value, FNM_EXTMATCH) == 0)
1517 {
1518 opt->candles = atoi(input_value);
1519 if (opt->candles < MIN_CANDLES_MINUTES) opt->candles = MIN_CANDLES_MINUTES;
1520 else if (opt->candles > MAX_CANDLES_MINUTES) opt->candles = MAX_CANDLES_MINUTES;
1521 }
1522 break;
1523
1524 // HAVDALAH
1525 case 19:if (strcmp(input_value,"FALSE") == 0) opt->havdalah = 0;
1526 else if (strcmp(input_value,"TRUE") == 0) opt->havdalah = 1;
1527 else if (fnmatch( "[[:digit:]]?([[:digit:]])", input_value, FNM_EXTMATCH) == 0)
1528 {
1529 opt->havdalah = atoi(input_value);
1530 if (opt->havdalah < MIN_MOTZASH_MINUTES) opt->havdalah = MIN_MOTZASH_MINUTES;
1531 else if (opt->havdalah > MAX_MOTZASH_MINUTES) opt->havdalah = MAX_MOTZASH_MINUTES;
1532 }
1533 break;
1534
1535 } // end of switch(i)
1536 break; // if found a match don't continue for loop
1537 }
1538 }
1539 }
1540 }
1541 }
1542 free(input_string);
1543 free(input_key);
1544 free(input_value);
1545 return;
1546 }
1547
1548
1549 /****************************************************
1550 * exit elegantly
1551 ****************************************************/
1552 void exit_main( option_list *opt, const int exit_code)
1553 {
1554 int i;
1555 for (i=0; i<MAX_MENU_ITEMS; i++)
1556 {
1557 if (opt->menu_item[i] == NULL) break;
1558 free(opt->menu_item[i]);
1559 }
1560 exit (exit_code);
1561 }
1562
1563
1564 /****************************************************
1565 * parse a command-line or a config-file menu line
1566 *
1567 * It was appropriate to make this a function, outside
1568 * of main, because of its dual use and dual reference
1569 ****************************************************/
1570 int hcal_parser( const int switch_arg, option_list *opt,
1571 double *lat, int *opt_latitude,
1572 double *lon, int *opt_Longitude,
1573 int *tz, int long_option_index)
1574
1575 {
1576 int error_detected = 0;
1577
1578 switch (switch_arg)
1579 {
1580
1581 case 0: /* long options */
1582 switch (long_option_index)
1583 {
1584 /* --version */ case 0: print_version (); exit_main(opt, 0); break;
1585 /* --help */ case 1: print_help (); exit_main(opt, 0); break;
1586 /* --no-reverse */ case 2: opt->no_reverse = 1; break;
1587 /* --html */ case 3: break;
1588 /* --parasha */ case 4: break;
1589 /* --shabbat */ case 5: break;
1590 /* --three-month*/ case 6: break;
1591 /* --colorize */ case 7: break;
1592 /* --footnote */ case 8: break;
1593 /* --hebrew */ case 9: break;
1594 /* --israel */ case 10:break;
1595 /* --latitude */ case 11:break;
1596 /* --longitude */ case 12:break;
1597 /* --timezone */ case 13:break;
1598 /* --not-sunset-aware */ case 14: opt->not_sunset_aware = 1; break;
1599 /* --quiet-alerts*/ case 15: break;
1600 /* --visual */ case 16:
1601 /* --bidi */ case 17: break;
1602 /* --one-month */ case 18: break;
1603 /* --no-visual */ case 19:
1604 /* --no-bidi */ case 20: opt->bidi = 0; opt->force_hebrew = 0; break;
1605 /* --no-color */ case 21: opt->colorize = 0; break;
1606 /* --no-footnote*/ case 22: opt->footnote = 0; break;
1607 /* --menu */ case 23: break;
1608 /* --candles */ case 24:
1609 if ( (optarg == NULL) && (opt->candles == 0) )opt->candles = 1;
1610 else
1611 {
1612 if (fnmatch( "[[:digit:]]?([[:digit:]])", optarg, FNM_EXTMATCH) == 0)
1613 {
1614 opt->candles = atoi(optarg);
1615 if ( (opt->candles >= MIN_CANDLES_MINUTES) &&
1616 (opt->candles <= MAX_CANDLES_MINUTES) ) break;
1617 }
1618 print_parm_error("--candles");
1619 error_detected++;
1620 }
1621 break;
1622 /* --havdalah */ case 25:
1623 if ( (optarg == NULL) && (opt->havdalah == 0) ) opt->havdalah = 1;
1624 else
1625 {
1626 if (fnmatch( "[[:digit:]]?([[:digit:]])", optarg, FNM_EXTMATCH) == 0)
1627 {
1628 opt->havdalah = atoi(optarg);
1629 if ( (opt->havdalah >= MIN_MOTZASH_MINUTES) &&
1630 (opt->havdalah <= MAX_MOTZASH_MINUTES) ) break;
1631 }
1632 print_parm_error("--havdalah");
1633 error_detected++;
1634 }
1635 break;
1636
1637 } // end switch for long_options
1638 break;
1639
1640
1641 case '1': opt->three_month = 0; break;
1642 case '3': opt->three_month = 1; break;
1643 case 'b': opt->bidi = 1; opt->force_hebrew = 1; break;
1644 case 'c': opt->colorize = 1; break;
1645 case 'd': opt->diaspora = 1; break;
1646 case 'f': opt->footnote = 1; break;
1647 case 'h': opt->html = 1; break;
1648 case 'H': opt->force_hebrew = 1; break;
1649 case 'I': opt->force_israel = 1; break;
1650 case 'i': opt->external_css = 1; break;
1651 case 'm': opt->menu = 1; break;
1652 case 'p': opt->parasha = 1; break;
1653 case 'q': opt->quiet_alerts = 1; break;
1654 case 'l':
1655 error_detected = error_detected + parse_coordinate(1, optarg, lat, opt_latitude);
1656 break;
1657 case 'L':
1658 error_detected = error_detected + parse_coordinate(2, optarg, lon, opt_Longitude);
1659 break;
1660 case 's':
1661 opt->shabbat = 1;
1662 opt->parasha = 1;
1663 if (opt->candles == 0) opt->candles = 1;
1664 if (opt->havdalah == 0) opt->havdalah = 1;
1665 break;
1666 case 'z':
1667 error_detected = error_detected + parse_timezone(optarg, tz);
1668 break;
1669 case '?':
1670 // FIXME if (strchr(short_options,optopt)!=NULL)
1671 print_parm_missing_error((char*) &optopt);
1672 error_detected = TRUE;
1673 break;
1674 default: print_usage_hcal (); exit_main(opt, 0); break;
1675 }
1676 return error_detected;
1677 }
1678
1679 /**************************************************
1680 ***************************************************
1681 ***************************************************
1682 * main
1683 ***************************************************
1684 ***************************************************
1685 **************************************************/
1686 int main (int argc, char *argv[])
1687 {
1688
1689 /* date */
1690 int month, year;
1691
1692 double lat = BAD_COORDINATE; /* set to this value for error handling */
1693 double lon = BAD_COORDINATE; /* set to this value for error handling */
1694 int tz = BAD_TIMEZONE; /* -z option Time Zone, default to system local time */
1695
1696 int opt_latitude = 0; /* -l option latitude */
1697 int opt_Longitude = 0; /* -L option longitude */
1698
1699 int error_detected = FALSE; /* exit after reporting ALL bad parms */
1700
1701
1702 option_list opt;
1703 opt.bidi = 0; // visual bidi, implies --force-hebrew
1704 opt.html = 0; // -h html format flag
1705 opt.diaspora = 0; // -d Diaspora holidays
1706 opt.external_css = 0; // -i External css file
1707 opt.parasha = 0; // -p print parasha alongside calendar
1708 opt.shabbat = 0; // -c print candle-lighting alongside calendar
1709 opt.candles = 0;
1710 opt.havdalah = 0;
1711 opt.no_reverse = 0; // don't highlight today in reverse video
1712 opt.three_month = 0; // print previous and next months also
1713 opt.colorize = 0; // display calendar in muted, more pleasing tones
1714 opt.footnote = 0; // display description of month's holidays
1715 opt.force_hebrew = 0; // force display of Hebrew data in Hebrew
1716 opt.force_israel = 0; // override diaspora-awareness
1717 opt.not_sunset_aware = 0; // override sunset-awareness
1718 opt.quiet_alerts = 0;
1719
1720 opt.lat = BAD_COORDINATE;
1721 opt.lon = BAD_COORDINATE;
1722 opt.tz = BAD_TIMEZONE;
1723
1724 opt.menu = 0; // -m print menus for user-selection
1725 int i;
1726 for (i=0; i<MAX_MENU_ITEMS; i++) opt.menu_item[i] = NULL;
1727
1728
1729 // support for getopt short options
1730 static char * short_options = "13bcdfhHiImpqsl:L:z:";
1731
1732 /* support for long options */
1733 int long_option_index = 0;
1734 int c;
1735 static struct option long_options[] = {
1736 // name, has_arg, flag, val
1737 {"version", 0, 0, 0},
1738 {"help", 0, 0, 0},
1739 {"no-reverse", 0, 0, 0},
1740 {"html", 0, 0, 'h'},
1741 {"parasha", 0, 0, 'p'},
1742 {"shabbat", 0, 0, 's'},
1743 {"three-month", 0, 0, '3'},
1744 {"colorize", 0, 0, 'c'},
1745 {"footnote",0,0,'f'},
1746 {"hebrew",0,0,'H'},
1747 {"israel",0,0,'I'},
1748 {"latitude", 1, 0, 'l'},
1749 {"longitude", 1, 0, 'L'},
1750 {"timezone", 1, 0, 'z'},
1751 {"not-sunset-aware", 0, 0, 0},
1752 {"quiet-alerts",0,0,'q'},
1753 {"bidi",0,0,'b'},
1754 {"visual",0,0,'b'},
1755 {"one-month",0,0,'1'},
1756 {"no-bidi",0,0,0},
1757 {"no-visual",0,0,0},
1758 {"no-color",0,0,0},
1759 {"no-footnote",0,0,0},
1760 {"menu",0,0,'m'},
1761 {"candles",2,0,0},
1762 {"havdalah",2,0,0},
1763 {0, 0, 0, 0}
1764 };
1765
1766 /* hdate struct */
1767 hdate_struct h;
1768
1769 // for config file user-defined menus
1770 size_t menu_len = 0;
1771 int menu_index;
1772 char *menuptr, *optptr;
1773
1774 /************************************************************
1775 * init locale
1776 *
1777 * I'm not sure why this had to be done. Per an answer on
1778 * stackoverflow (not yet check out by me):
1779 *
1780 * "At program startup, you should call setlocale():
1781 * setlocale(LC_CTYPE, "");
1782 * This will cause the wide character functions to use the
1783 * appropriate character set defined by the environment - eg.
1784 * on Unix-like systems, the LANG environment variable. For
1785 * example, this means that if your LANG variable is set to a
1786 * UTF8 locale, the wide character functions will handle input
1787 * and output in UTF8. (This is how the POSIX wc utility is
1788 * specified to work). You can then use the wide-character
1789 * versions of all the standard functions. However, if you
1790 * really do want to count characters rather than bytes, and
1791 * can assume that your text files are encoded in UTF-8, then
1792 * the easiest approach is to count all bytes that are not
1793 * trail bytes (i.e., in the range 0x80 to 0xBF)."
1794 *
1795 * Note: the code sets LC_ALL instead of LC_CTYPE; and the
1796 * code does not use wide_char functions ...
1797 ************************************************************/
1798 setlocale (LC_ALL, "");
1799
1800 /************************************************************
1801 * parse config file
1802 ************************************************************/
1803 FILE *config_file = get_config_file("/hcal", "/hcalrc", hcal_config_file_text);
1804 if (config_file != NULL)
1805 {
1806 read_config_file(config_file, &opt, &lat, &opt_latitude, &lon, &opt_Longitude, &tz);
1807 fclose(config_file);
1808 }
1809
1810
1811
1812 /************************************************************
1813 * parse command line
1814 ************************************************************/
1815 while ((c = getopt_long(argc, argv,
1816 short_options, long_options,
1817 &long_option_index)) != -1)
1818 error_detected = error_detected
1819 + hcal_parser(c, &opt,
1820 &lat, &opt_latitude,
1821 &lon, &opt_Longitude,
1822 &tz, long_option_index);
1823
1824
1825 /**************************************************
1826 * BEGIN - enable user-defined menu
1827 *************************************************/
1828 if (opt.menu)
1829 {
1830 i = menu_select( &opt.menu_item[0], MAX_MENU_ITEMS );
1831 if (i == -1) exit_main(&opt, 0);
1832 else if ((i < MAX_MENU_ITEMS) && (opt.menu_item[i] != NULL))
1833 {
1834
1835 /**************************************************
1836 * parse user's menu selection
1837 *************************************************/
1838 menuptr = opt.menu_item[i];
1839 menu_len = strlen( menuptr );
1840 menu_index = 0;
1841 optptr = NULL;
1842 optarg = NULL;
1843
1844 while (( c = menu_item_parse( menuptr, menu_len, &menu_index,
1845 &optptr, short_options, long_options,
1846 &long_option_index, &error_detected) ) != -1)
1847 {
1848 error_detected = error_detected +
1849 hcal_parser(c, &opt,
1850 &lat, &opt_latitude,
1851 &lon, &opt_Longitude,
1852 &tz, long_option_index);
1853 }
1854 }
1855 }
1856 /**************************************************
1857 * END - enable user-defined menu
1858 *************************************************/
1859
1860
1861 /**************************************************
1862 * sanity check - options compatability
1863 *************************************************/
1864 if ( (opt.three_month) &&
1865 ((opt.parasha) || (opt.shabbat) || (opt.footnote) ) )
1866 {
1867 error(0,0,"%s", N_("ALERT: options --parasha, --shabbat, --footnote are not supported in 'three-month' mode"));
1868 opt.parasha = 0;
1869 opt.shabbat = 0;
1870 opt.footnote = 0;
1871 }
1872
1873 /************************************************************
1874 * function validate_location is defined in the include file
1875 * ./location.include.c
1876 * It issues an exit(EXIT_CODE_BAD_PARMS) [==1]
1877 * if it discovers, um, bad parameters
1878 ************************************************************/
1879 validate_location(opt_latitude, opt_Longitude, &lat, &lon, &tz,
1880 opt.quiet_alerts, error_detected, print_usage_hcal);
1881 opt.lat = lat;
1882 opt.lon = lon;
1883 opt.tz = tz;
1884
1885 /************************************************************
1886 * determine what day to highlight (ie. what is today)
1887 ************************************************************/
1888 if ((opt.no_reverse) || (opt.html))
1889 {
1890 // user doesn't want any highlighting
1891 opt.jd_today_g = 0;
1892 opt.jd_today_h = 0;
1893 }
1894 else
1895 {
1896 hdate_set_gdate (&h, 0, 0, 0);
1897 opt.jd_today_g = h.hd_jd;
1898 if ((!opt.not_sunset_aware) &&
1899 (check_for_sunset(&h, lat, lon, tz)) )
1900 opt.jd_today_h = h.hd_jd + 1;
1901 else opt.jd_today_h = h.hd_jd;
1902 }
1903
1904 /**************************************************
1905 * parse and vaildate date parameters
1906 **************************************************/
1907
1908
1909 /**************************************************
1910 * no date parameter provided - use current mm yyyy
1911 * and no need to validate parameters
1912 **************************************************/
1913 if (argc == (optind))
1914 {
1915 if ((opt.not_sunset_aware) || (opt.no_reverse) || (opt.html))
1916 // call function only if not already called
1917 // for sunset awareness, above.
1918 hdate_set_gdate (&h, 0, 0, 0); // today
1919 month = h.gd_mon;
1920 year = h.gd_year;
1921 }
1922 else
1923 {
1924 /********************************************************
1925 * additional parameters provided - get them and validate
1926 ********************************************************/
1927 if (argc == (optind + 2))
1928 {
1929 month = atoi (argv[optind]);
1930 year = atoi (argv[optind + 1]);
1931 }
1932 else if (argc == (optind + 1))
1933 {
1934 month = 0;
1935 year = atoi (argv[optind]);
1936 }
1937 else
1938 {
1939 error(0,0,"%s: %s", N_("error"), N_("too many parameters received. expected [[mm] [yyyy]"));
1940 exit_main(&opt, 0);
1941 }
1942
1943 /********************************************************
1944 * parameter validation - year
1945 ********************************************************/
1946 if (!validate_hdate(CHECK_YEAR_PARM, 0, month, year))
1947 {
1948 print_parm_error(N_("year"));
1949 exit_main(&opt, 0);
1950 }
1951 /********************************************************
1952 * parameter validation - month
1953 ********************************************************/
1954 if ((month!=0) && (!validate_hdate(CHECK_MONTH_PARM, 0, month, year)))
1955 {
1956 print_parm_error(N_("month"));
1957 exit_main(&opt, 0);
1958 }
1959 }
1960
1961
1962 /************************************************************
1963 * begin processing the user request
1964 ************************************************************/
1965
1966 /************************************************************
1967 * diaspora awareness
1968 ************************************************************/
1969 if (opt.force_israel) opt.diaspora = 0;
1970 else
1971 {
1972 tzset();
1973 // system timezone is denominated in seconds
1974 if ( (timezone/-3600) != 2) opt.diaspora = 1;
1975 }
1976
1977 /************************************************************
1978 * print HTML header
1979 ************************************************************/
1980 if (opt.html) print_header_html (opt.external_css, opt.force_hebrew);
1981
1982
1983 /************************************************************
1984 * print one year
1985 ************************************************************/
1986 if (month == 0)
1987 {
1988 if (opt.three_month)
1989 for (month=2; month<13; month=month+3) print_month (month, year, opt);
1990 else for (month=1; month<13; month++)
1991 {
1992 print_month (month, year, opt);
1993 if ((opt.footnote) && month<12) printf("\n");
1994 }
1995 }
1996
1997
1998 /************************************************************
1999 * print only this month
2000 ************************************************************/
2001 else print_month (month, year, opt);
2002
2003
2004 /************************************************************
2005 * print HTML footer
2006 ************************************************************/
2007 if (opt.html) print_html_footer ();
2008
2009 exit_main(&opt, 0);
2010 return 0;
2011 }
0 /* hdate.c http://libhdate.sourceforge.net
1 * Hebrew date/times information(part of package libhdate)
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate.c -o hdate
5 *
6 * Copyright: 2011-2012 (c) Baruch Baum, 2004 (c) Yaacov Zamir
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 3 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,
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, see <http://www.gnu.org/licenses/>.
20 */
21
22 #define _GNU_SOURCE // For mempcpy, asprintf
23 #include <hdate.h> // For hebrew date
24 //#include "../../src/hdate.h"
25 #include <stdlib.h> // For atoi, getenv, setenv
26 #include <locale.h> // For setlocale
27 #include <getopt.h> // For getopt_long
28 #include <string.h> // For strchr, mempcpy, asprintf
29
30 #include "./local_functions.c"
31
32 #define DATA_WAS_NOT_PRINTED 0
33 #define DATA_WAS_PRINTED 1
34
35 // for opt.menu[MAX_MENU_ITEMS]
36 #define MAX_MENU_ITEMS 10
37
38
39 char *debug_var; // system environment variable
40
41 static char * sunrise_text = N_("sunrise");
42 static char * sunset_text = N_("sunset");
43 static char * first_light_text = N_("first_light");
44 static char * talit_text = N_("talit");
45 static char * midday_text = N_("midday");
46 static char * first_stars_text = N_("first_stars");
47 static char * three_stars_text = N_("three_stars");
48 static char * sun_hour_text = N_("sun_hour");
49 static char * candles_text = N_("candle-lighting");
50 static char * havdalah_text = N_("havdalah");
51
52 typedef struct {
53 int hebrew;
54 int bidi;
55 int yom;
56 int leShabbat;
57 int leSeder;
58 int tablular_output;
59 int not_sunset_aware;
60 int print_tomorrow;
61 int quiet_alerts;
62 int sun;
63 int candles;
64 int havdalah;
65 int times;
66 int short_format;
67 int only_if_holiday;
68 int holidays;
69 int omer;
70 int only_if_parasha;
71 int parasha;
72 int julian;
73 int diaspora;
74 int iCal;
75 int menu;
76 char* menu_item[MAX_MENU_ITEMS];
77 } option_list;
78
79
80 const char* hdate_config_file_text = N_("\
81 # configuration file for hdate - Hebrew date information program\n\
82 # part of package libhdate\n\
83 #\n# Should you mangle this file and wish to restore its default content,\n\
84 # rename or delete this file and run hdate; hdate will automatically\n\
85 # regenerate the default content.\n#\n\
86 # Your system administrator can set system-wide defaults for hcal by\n\
87 # modifying file <not yet implemented>.\n\
88 # You may override all defaults by changing the contents of this file.\n\
89 #\n\
90 # Version information\n\
91 # This may be used by updates to hcal to determine how to parse the file\n\
92 # and whether additional information and options should be appended to\n\
93 # the end of this file.\n\
94 VERSION=2.00\n\
95 #\n\
96 # Location awareness\n\
97 # hdate wants to accurately highlight the current Hebrew day, including\n\
98 # during the hours between sunset and secular midnight. If you don't\n\
99 # provide it with latitude, longitude, and time zone information, hdate\n\
100 # will try to guess the information, based upon your system timezone,\n\
101 # and its (limited, and maybe biased) of the dominant Jewish community\n\
102 # in that timezone. When hdate is forced to guess, it alerts the user\n\
103 # with a message that includes the guessed location.\n\
104 # hdate's guesses will also affect its default behaviour for ouput of\n\
105 # Shabbat times, parshiot, and choice of Israel/diaspora hoidays.\n\
106 #SUNSET_AWARE=TRUE\n\
107 # LATITUDE and LONGITUDE may be in decimal format or in the form\n\
108 # degrees[:minutes[:seconds]] with the characters :'\" as possible\n\
109 # delimiters. Use negative values to indicate South and West, or\n\
110 # use the abbreviated compass directions N, S, E, W.\n\
111 #LATITUDE=\n\
112 #LONGITUDE=\n\
113 # TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n\
114 # with the characters :'\" as possible delimiters.\n\
115 #TIMEZONE=\n\n\
116 # Output in hebrew characters\n\
117 # hdate defaults to output all information in your default language, so\n\
118 # if your default language is Hebrew, you're all set. Otherwise, you can\n\
119 # set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n\
120 # still outputting gregorian information in your default language. To\n\
121 # output ALL information in Hebrew, run something like this:\n\
122 # LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hdate; LC_ALL=$LC_TEMP\n\
123 # If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n\
124 # output, you need to install a terminal font that includes the Hebrew\n\
125 # character set (hint: unicode).\n\
126 #FORCE_HEBREW=FALSE\n\n\
127 # The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n\
128 # Unfortunately, the world can not be depended upon to be either. Most\n\
129 # Xwindow applications will display the data fine with FORCE_HEBREW; most\n\
130 # xterm implementations will not. (in fact, the only xterm clone I know\n\
131 # of that comes close is mlterm). If using FORCE_HEBREW results in\n\
132 # Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n\
133 # This will reverse the order of the Hebrew characters, so they will\n\
134 # display 'visual'ly correct; however, such output will not be suitable\n\
135 # for piping or pasting to many other applications. Setting OUTPUT_BIDI\n\
136 # automatically forces hebrew.\n\
137 #OUTPUT_BIDI=FALSE\n\n\
138 # The Hebrew language output of Hebrew information can also be 'styled'\n\
139 # in the following ways:\n\
140 # option YOM ~> yom shishi, aleph tishrei ...\n\
141 # option LESHABBAT ~> yom sheni leshabbat miketz, kof kislev ...\n\
142 # option LESEDER ~> yom sheni leseder miketz, kof kislev ...\n\
143 #YOM=FALSE\n\
144 #LESHABBAT=FALSE\n\
145 #LESEDER=FALSE\n\
146 \n\
147 #SUN_RISE_SET=FALSE\n\
148 #TIMES_OF_DAY=FALSE\n\
149 #SHORT_FORMAT=FALSE\n\
150 #SEFIRAT_HAOMER=FALSE\n\
151 #DIASPORA=FALSE\n\
152 \n\
153 \n\
154 # Shabbat related\n\
155 # Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n\
156 # The command line options for these features are -r (--parasha), and\n\
157 # -c. The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n\
158 # before sunset). The HAVDALAH field can accept a value of 20 - 90\n\
159 # (minutes after sunset).\n\
160 #PARASHA_NAMES=FALSE\n\
161 #ONLY_IF_PARASHA_IS_READ=FALSE\n\
162 #SHABBAT_INFO=FALSE\n\n\
163 #CANDLE_LIGHTING=FALSE\n\
164 #HAVDALAH=FALSE\n\n\
165 # Holiday related\n\
166 #HOLIDAYS=FALSE\n\
167 #ONLY_IF_HOLIDAY=FALSE\n\n\
168 # Tabular output\n\
169 # This option has hdate output the information you request in a single\n\
170 # comma-delimited line per day, suitable for piping or import to\n\
171 # spreadsheet formatting applications, etc. To belabor the obvious,\n\
172 # try running - ./hdate 12 2011 -Rt --table |column -s, -t \n\
173 # The command line option for this feature is, um, --table\n\
174 #TABULAR=FALSE\n\n\
175 # iCal format\n\
176 # hdate can output its information in iCal-compatable format\n\
177 # ICAL=FALSE\n\
178 # Suppress alerts and warnings\n\
179 # hdate alerts the user via STDERR when it guesses the user's location.\n\
180 #QUIET_ALERTS=FALSE\n\n\
181 # Julian day number\n\
182 # The Julian day number is a .... See ... for more details.\n\
183 # setting the option JULIAN_DAY will have hdate output that number in\n\
184 # the format JDN-nnnnnnn at the beginning of its first line of output.\n\
185 #JULIAN_DAY=FALSE\n\n\
186 # User-defined menus\n\
187 # You may specify here command-line strings to optionally be parsed\n\
188 # by hcal at execution time. To do so, use the command line option -m\n\
189 # (--menu). hcal will process first the settings of this config file,\n\
190 # then the other settings of your command line, and then will prompt\n\
191 # you for which menu item you would like to select. hcal will process\n\
192 # your menu selection as if it were a new command line, further modifying\n\
193 # all the prior settings.\n\
194 # Only the first ten \"MENU=\" entries will be read. Each line will be\n\
195 # truncated at one hundred characters\n\
196 #MENU= -bd -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n\
197 #MENU= -b -l 32 -L 34 -z 2 # son in bnei brak\n\
198 #MENU= -bd -l 43.71 -L -79.43 -z -5 # me in Toronto\n\
199 #MENU= -bd -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n\
200 ");
201
202
203 /************************************************************
204 * print version information
205 ************************************************************/
206 int print_version ()
207 {
208 printf ("%s\n" ,N_("hdate - display Hebrew date information\nversion 1.6"));
209 return 0;
210 }
211
212 /************************************************************
213 * print usage information
214 ************************************************************/
215 void print_usage_hdate ()
216 {
217 printf ("%s\n",
218 N_("Usage: hdate [options] [coordinates timezone] [[[day] month] year]\n\
219 hdate [options] [coordinates timezone] [julian_day]\n\n\
220 coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]\n\
221 -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n\
222 timezone: -z nn[( .nn | :mm )]\n\
223 Try \'hdate --help\' for more information"));
224 }
225
226
227 /************************************************************
228 * print help information
229 ************************************************************/
230 void print_help ()
231 {
232 print_usage_hdate();
233
234 printf ("%s\n", N_("hdate - display Hebrew date information\nOPTIONS:\n\
235 -b --bidi prints hebrew in reverse (visual)\n\
236 --visual\n\
237 -c print Shabbat start/end times.\n\
238 --candles modify default minhag of 20 minutes. (17<n<91)\n\
239 --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n\
240 -d --diaspora use diaspora reading and holidays.\n\
241 -h --holidays print holidays.\n\
242 -H print only it is a holiday.\n\
243 -i --ical use iCal formated output.\n\
244 -j --julian print Julian day number.\n\
245 -m --menu prompt user-defined menu from config file\n\
246 -o --omer print Sefirat Haomer.\n\
247 -q --quiet-alerts suppress warning messages\n\
248 -r --parasha print weekly reading on saturday.\n\
249 -R print only if there is a weekly reading on Shabbat.\n\
250 -s --sun print sunrise/sunset times.\n\
251 -S --short-format print using short format.\n\
252 -t print day times: first light, talit, sunrise,\n\
253 midday, sunset, first stars, three stars.\n\
254 -T --table tabular output, suitable for spreadsheets\n\n\
255 -z --timezone nn timezone, +/-UTC\n\
256 -l --latitude yy latitude yy degrees. Negative values are South\n\
257 -L --longitude xx longitude xx degrees. Negative values are West\n\n\
258 --hebrew forces Hebrew to print in Hebrew characters\n\
259 --yom force Hebrew prefix to Hebrew day of week\n\
260 --leshabbat insert parasha between day of week and day\n\
261 --leseder insert parasha between day of week and day\n\
262 --not-sunset-aware don't display next day if after sunset\n\n\
263 All options can be made default in the config file, or menu-ized for\n\
264 easy selection."));
265 }
266
267
268 /************************************************************
269 * begin - error message functions
270 ************************************************************/
271 void print_alert_sunset ()
272 {
273 error(0,0,"%s", N_("ALERT: The information displayed is for today's Hebrew date.\n \
274 Because it is now after sunset, that means the data is\n \
275 for the Gregorian day beginning at midnight."));
276 }
277 /************************************************************
278 * end - error message functions
279 ************************************************************/
280
281
282
283
284
285 /************************************************************
286 * generic print astronomical time
287 ************************************************************/
288 void print_astronomical_time( const char *description, const int timeval, const int tz)
289 {
290 if (timeval < 0) printf("%s: --:--\n", description);
291 else printf("%s: %02d:%02d\n", description,
292 (timeval+tz) / 60, (timeval+tz) % 60 );
293 return;
294 }
295
296 /************************************************************
297 * generic print astronomical time for tablular output
298 ************************************************************/
299 void print_astronomical_time_tabular( const int timeval, const int tz)
300 {
301 if (timeval < 0) printf(",--:--");
302 else printf(",%02d:%02d",
303 (timeval+tz) / 60, (timeval+tz) % 60 );
304 return;
305 }
306
307
308
309
310 /************************************************************
311 * print iCal header
312 ************************************************************/
313 int print_ical_header ()
314 {
315 /* Print start of iCal format */
316 printf ("BEGIN:VCALENDAR\n");
317 printf ("VERSION:2.0\n");
318 printf ("CALSCALE:GREGORIAN\n");
319 printf ("METHOD:PUBLISH\n");
320
321 return 0;
322 }
323
324
325
326
327 /************************************************************
328 * print iCal footer
329 ************************************************************/
330 int print_ical_footer ()
331 {
332 /* Print end of iCal format */
333 printf ("END:VCALENDAR\n");
334
335 return 0;
336 }
337
338
339
340
341
342 /************************************************************
343 * find Shabbat
344 * this function is to become obsolete - I want a feature
345 * for this standard in libhdate
346 ************************************************************/
347 int find_shabbat (hdate_struct * h, int opt_d)
348 {
349 hdate_struct coming_Shabbat;
350
351 hdate_set_jd (&coming_Shabbat, h->hd_jd+(7-h->hd_dw));
352 /* this return value is the reading number,
353 used to print parshiot */
354 return hdate_get_parasha (&coming_Shabbat, opt_d);
355 }
356
357
358
359 /************************************************************
360 * print one date - both Gregorian and Hebrew
361 ************************************************************/
362 int print_date (hdate_struct * h, hdate_struct * tomorrow, option_list opt, double lat, double lon)
363 {
364 char *motzash = ""; // prefix for Saturday night
365 char *eve_before = ""; // prefix if after sunset
366 char *for_day_of_g = ""; // Hebrew prefix for day of week
367 char *apostrophe = ""; // Hebrew suffix for day of week
368 char *bet_g = ""; // Hebrew prefix for Gregorian month
369 char *bet_h = ""; // Hebrew prefix for Hebrew month
370 char *psik_mark = ""; // --force-yom
371 char *for_day_of_h = ""; // --force-yom
372 char *for_week_of = ""; // --force-leshabbat --force-leseder
373 int is_parasha_read;
374 int h_dow_form = HDATE_STRING_SHORT;
375
376 char *hday_int_str, *hyear_int_str;
377 hday_int_str = hdate_string(HDATE_STRING_INT, h->hd_day, HDATE_STRING_LONG, opt.hebrew);
378 hyear_int_str = hdate_string(HDATE_STRING_INT, h->hd_year, HDATE_STRING_LONG, opt.hebrew);
379
380 /*
381 #ifdef ENABLE_NLS
382 locale = setlocale (LC_MESSAGES, NULL);
383 language = getenv ("LANGUAGE");
384 #else
385 locale = NULL;
386 language = NULL;
387 #endif
388 */
389
390 /************************************************************
391 * preliminary - if it's after sunset, it's tomorrow already
392 * but we will only acknowledge this if printing in the long
393 * format (which is the default)
394 ************************************************************/
395 if (opt.print_tomorrow)
396 {
397 if (opt.hebrew)
398 {
399 if (h->hd_dw==7) motzash = "מוצ\"ש, ";
400 if (h->hd_dw==6) eve_before = "ליל";
401 else eve_before = "אור ל";
402 if (!opt.yom) for_day_of_h="-";
403 }
404 else eve_before = N_("eve of ");
405 }
406
407
408 /************************************************************
409 * preliminary - prepare Hebrew prefixes if forcing any Hebrew
410 ************************************************************/
411 if (opt.hebrew)
412 {
413 bet_h="ב";
414 /* preliminary - prepare Yom prefix */
415 if (opt.yom)
416 {
417 if ( !((opt.print_tomorrow) && (h->hd_dw==6))) for_day_of_h="יום";
418 if ( ((h->hd_dw!=7) || ((h->hd_dw==7) && (opt.print_tomorrow))) &&
419 ( !((opt.print_tomorrow) && (h->hd_dw==6))) ) apostrophe = "'";
420 if ((h->hd_dw==6) && (opt.print_tomorrow)) h_dow_form = HDATE_STRING_LONG;
421 psik_mark=",";
422
423 if (opt.leShabbat)
424 {
425 if (h->hd_dw==7) for_week_of="פרשת";
426 else for_week_of="לשבת";
427 }
428 else if (opt.leSeder) for_week_of="לסדר";
429 }
430 }
431
432 /************************************************************
433 * preliminary - prepare the Hebrew prefixes
434 * for the Gregorian month and day of week
435 ************************************************************/
436 if (hdate_is_hebrew_locale())
437 { bet_g="ב"; for_day_of_g="יום ";}
438
439
440
441 /************************************************************
442 * Three major print formats: iCal, short, long
443 ************************************************************/
444
445
446 /************************************************************
447 * iCal format
448 ************************************************************/
449 if (opt.iCal)
450 {
451 printf ("%s%s %s%s ", for_day_of_g, hday_int_str, bet_h,
452 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, opt.short_format, opt.hebrew));
453
454 printf ("%s", hyear_int_str);
455 }
456
457
458 /************************************************************
459 * short format
460 ************************************************************/
461 else if (opt.short_format)
462 {
463 printf ("%d.%d.%d ", h->gd_day, h->gd_mon, h->gd_year);
464
465
466 if (!hdate_is_hebrew_locale() && (!opt.hebrew))
467 {
468 printf ("%d", h->hd_day);
469 }
470 else
471 {
472 printf ("%s", hday_int_str);
473 }
474
475 printf (" %s %s\n",
476 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, opt.short_format, opt.hebrew),
477 hyear_int_str);
478 }
479
480
481 /************************************************************
482 * long (normal) format
483 ************************************************************/
484 else
485 {
486 /************************************************************
487 * Gregorian date - the easy part
488 ************************************************************/
489 printf ("%s%s, %d %s%s %d, ",
490 for_day_of_g,
491 hdate_string( HDATE_STRING_DOW, h->hd_dw, opt.short_format, HDATE_STRING_LOCAL),
492 h->gd_day,
493 bet_g,
494 hdate_string( HDATE_STRING_GMONTH, h->gd_mon, opt.short_format, HDATE_STRING_LOCAL),
495 h->gd_year);
496
497
498 /************************************************************
499 * Start of the Hebrew date
500 ************************************************************/
501 if (opt.print_tomorrow) *h = *tomorrow;
502
503
504 /************************************************************
505 * All these definitions were backports to enable bidi
506 ************************************************************/
507 char *hebrew_buffer, *hebrew_buffer1, *hebrew_buffer2, *hebrew_buffer3, *hebrew_buffer4, *hebrew_buffer_next;
508 size_t hebrew_buffer_len = 0;
509 size_t hebrew_buffer1_len = 0;
510 size_t hebrew_buffer2_len = 0;
511 size_t hebrew_buffer3_len = 0;
512 size_t hebrew_buffer4_len = 0;
513
514
515 /************************************************************
516 * prepare buffers with Hebrew day of week, including
517 * possibly Shabbat name
518 ************************************************************/
519 if (opt.hebrew)
520 {
521 if (opt.yom)
522 {
523 hebrew_buffer1_len = asprintf(&hebrew_buffer1, "%s%s%s %s%s", motzash, eve_before, for_day_of_h,
524 hdate_string( HDATE_STRING_DOW, h->hd_dw, h_dow_form, opt.hebrew), apostrophe);
525 if ((opt.leShabbat) || (opt.leSeder))
526 {
527 is_parasha_read = find_shabbat(h, opt.diaspora);
528 if (is_parasha_read)
529 hebrew_buffer2_len = asprintf(&hebrew_buffer2, " %s %s", for_week_of,
530 hdate_string( HDATE_STRING_PARASHA, is_parasha_read, opt.short_format, opt.hebrew)
531 );
532 }
533 hebrew_buffer3_len = asprintf (&hebrew_buffer3, "%s ", psik_mark);
534 }
535 }
536 else hebrew_buffer1_len = asprintf(&hebrew_buffer1, "%s", eve_before);
537
538
539 hday_int_str = hdate_string(HDATE_STRING_INT, h->hd_day, HDATE_STRING_LONG, opt.hebrew);
540 hyear_int_str = hdate_string(HDATE_STRING_INT, h->hd_year, HDATE_STRING_LONG, opt.hebrew);
541 /************************************************************
542 * prepare buffers with Hebrew dd mmmm yyyy
543 ************************************************************/
544 hebrew_buffer4_len =
545 asprintf (&hebrew_buffer4, "%s %s%s %s",
546 hday_int_str,
547 bet_h,
548 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, opt.short_format, opt.hebrew),
549 hyear_int_str);
550
551 /************************************************************
552 * prepare another GrUB - grand unified buffer
553 ************************************************************/
554 hebrew_buffer_len = hebrew_buffer1_len + hebrew_buffer2_len + hebrew_buffer3_len + hebrew_buffer4_len;
555 hebrew_buffer = malloc(hebrew_buffer_len+1);
556
557 hebrew_buffer_next = mempcpy(hebrew_buffer, hebrew_buffer1, hebrew_buffer1_len);
558 if (hebrew_buffer2_len > 0) hebrew_buffer_next = mempcpy(hebrew_buffer_next, hebrew_buffer2, hebrew_buffer2_len);
559 if (hebrew_buffer3_len > 0) hebrew_buffer_next = mempcpy(hebrew_buffer_next, hebrew_buffer3, hebrew_buffer3_len);
560 hebrew_buffer_next = mempcpy(hebrew_buffer_next, hebrew_buffer4, hebrew_buffer4_len);
561 hebrew_buffer[hebrew_buffer_len]='\0';
562 /************************************************************
563 * bidi support (what all the buffering was for)
564 ************************************************************/
565 if (opt.bidi) revstr(hebrew_buffer, hebrew_buffer_len);
566
567 /************************************************************
568 * Finally. print the information
569 ************************************************************/
570 printf ("%s\n", hebrew_buffer);
571
572 /************************************************************
573 * CLEANUP - free allocated memory
574 ************************************************************/
575 if (hebrew_buffer1_len > 0) free(hebrew_buffer1);
576 if (hebrew_buffer2_len > 0) free(hebrew_buffer2);
577 if (hebrew_buffer3_len > 0) free(hebrew_buffer3);
578 free(hebrew_buffer4);
579 free(hebrew_buffer);
580 }
581
582
583 /************************************************************
584 * CLEANUP - free allocated memory
585 ************************************************************/
586 if (hday_int_str != NULL) free(hday_int_str);
587 if (hyear_int_str != NULL) free(hyear_int_str);
588
589 return 0;
590 }
591
592
593
594 /************************************************************
595 * option 's' - sunrise/set times
596 ************************************************************/
597 int
598 print_sunrise (hdate_struct * h, double lat, double lon, int tz, int opt_i)
599 {
600 int sunrise, sunset;
601
602 /* get times */
603 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
604 &sunrise, &sunset);
605
606 print_astronomical_time( sunrise_text, sunrise, tz);
607 print_astronomical_time( sunset_text, sunset, tz);
608
609 return DATA_WAS_PRINTED;
610 }
611
612
613
614 /************************************************************
615 * option 't' - day times
616 ************************************************************/
617 int print_times (hdate_struct * h, double lat, double lon, int tz, int opt_i)
618 {
619 int sun_hour, first_light, talit, sunrise;
620 int midday, sunset, first_stars, three_stars;
621
622 /* get times */
623 hdate_get_utc_sun_time_full (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
624 &sun_hour, &first_light, &talit, &sunrise,
625 &midday, &sunset, &first_stars, &three_stars);
626
627 print_astronomical_time( first_light_text, first_light, tz);
628 print_astronomical_time( talit_text, talit, tz);
629 print_astronomical_time( sunrise_text, sunrise, tz);
630 print_astronomical_time( midday_text, midday, tz);
631 print_astronomical_time( sunset_text, sunset, tz);
632 print_astronomical_time( first_stars_text, first_stars, tz);
633 print_astronomical_time( three_stars_text, three_stars, tz);
634 printf("%s: %02d:%02d\n",N_("sun_hour"), sun_hour/60, sun_hour%60);
635
636 return DATA_WAS_PRINTED;
637 }
638
639
640
641 /************************************************************
642 * option 'h' - holiday identification
643 ************************************************************/
644 /* int print_holiday (hdate_struct * h, int opt.diaspora, int short_format, int opt_i)
645 {
646 int holiday;
647
648 holiday = hdate_get_holyday (h, opt.diaspora);
649 if (holiday)
650 {
651 printf ("%s\n", hdate_string (holiday, short_format));
652 return DATA_WAS_PRINTED;
653 }
654 else return DATA_WAS_NOT_PRINTED;
655 }
656 */
657
658 /************************************************************
659 * option 'o' - sefirat ha'omer
660 ************************************************************/
661 int print_omer (hdate_struct * h, int const short_form, int const hebrew_form)
662 {
663 int omer_day;
664
665 omer_day = hdate_get_omer_day(h);
666 if (omer_day != 0)
667 {
668 printf ("%s %s \n", N_("today is day"), hdate_string(HDATE_STRING_OMER, omer_day, short_form, hebrew_form));
669 return DATA_WAS_PRINTED;
670 }
671 else return DATA_WAS_NOT_PRINTED;
672 }
673
674
675
676 /************************************************************
677 * option 'r' - parashat hashavua
678 ************************************************************/
679 /* int print_reading (hdate_struct * h, int opt.diaspora, int short_format, int opt_i)
680 {
681 int reading;
682
683 reading = hdate_get_parasha (h, opt.diaspora);
684 if (reading)
685 {
686 printf ("%s %s\n", N_("Parashat"), hdate_string (reading, short_format));
687 return DATA_WAS_PRINTED;
688 }
689 else return DATA_WAS_NOT_PRINTED;
690 }
691 */
692
693
694 /************************************************************
695 * option 'c' - candle-lighting time; tzeit Shabbat
696 ************************************************************/
697 int print_candles (hdate_struct * h, double lat, double lon, int tz, option_list opt)
698 {
699 int sun_hour, first_light, talit, sunrise;
700 int midday, sunset, first_stars, three_stars;
701
702 // check for friday - print knisat shabat
703 if ( (h->hd_dw == 6) && (opt.candles) )
704 {
705 // get times
706 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
707 &sunrise, &sunset);
708
709 // FIXME - allow for further minhag variation
710 if (opt.candles != 1) sunset = sunset - opt.candles;
711 else sunset = sunset - DEFAULT_CANDLES_MINUTES;
712
713 // print candlelighting times
714 print_astronomical_time( candles_text, sunset, tz);
715 return DATA_WAS_PRINTED;
716 }
717
718 // check for saturday - print motzay shabat
719 else if ( (h->hd_dw == 7) && (opt.havdalah) )
720 {
721 // get times
722 hdate_get_utc_sun_time_full (h->gd_day, h->gd_mon, h->gd_year, lat,
723 lon, &sun_hour, &first_light, &talit,
724 &sunrise, &midday, &sunset,
725 &first_stars, &three_stars);
726
727 // FIXME - allow for further minhag variation
728 if (opt.havdalah != 1) three_stars = sunset + opt.havdalah;
729
730 // print motzay shabat
731 print_astronomical_time( havdalah_text, three_stars, tz);
732 return DATA_WAS_PRINTED;
733 }
734 else return DATA_WAS_NOT_PRINTED;
735 }
736
737 /************************************************************
738 * print tabular header
739 ************************************************************/
740 void print_tabular_header( option_list opt)
741 {
742 printf("%s,%s",N_("Gregorian date"), N_("Hebrew Date"));
743 if (opt.times) printf(",%s,%s,%s,%s,%s,%s,%s,%s",first_light_text,talit_text,sunrise_text,midday_text,sunset_text,first_stars_text,three_stars_text,sun_hour_text );
744 else if (opt.sun) printf(",%s,%s",sunrise_text,sunset_text);
745 if (opt.candles) printf(",%s", candles_text);
746 if (opt.havdalah) printf(",%s", havdalah_text);
747 if (opt.holidays) printf(",%s",N_("holiday"));
748 if (opt.omer) printf(",%s",N_("omer count"));
749 if (opt.parasha) printf(",%s",N_("parashat"));
750 printf("\n");
751 return;
752 }
753
754 /************************************************************
755 * print one day - tabular output *
756 ************************************************************/
757 int print_tabular_day (hdate_struct * h, option_list opt,
758 double lat, double lon, int tz)
759 {
760 int sun_hour = -1;
761 int first_light = -1;
762 int talit = -1;
763 int sunrise = -1;
764 int midday = -1;
765 int sunset = -1;
766 int first_stars = -1;
767 int three_stars = -1;
768
769 hdate_struct tomorrow;
770 int data_printed = 0;
771
772 int parasha = 0;
773 int holiday = 0;
774 int omer_day = 0;
775
776 char *hday_str = NULL;
777 char *hyear_str = NULL;
778
779 // for bidi (revstr)
780 char *hebrew_buffer = NULL;
781 size_t hebrew_buffer_len = 0;
782
783 /************************************************************
784 * options -R, -H are restrictive filters, so if there is no
785 * parasha reading / holiday, print nothing.
786 ************************************************************/
787 parasha = hdate_get_parasha (h, opt.diaspora);
788 holiday = hdate_get_holyday (h, opt.diaspora);
789 if (opt.only_if_parasha && opt.only_if_holiday && !parasha && !holiday)
790 return 0;
791 if (opt.only_if_parasha && !opt.only_if_holiday && !parasha)
792 return 0;
793 if (opt.only_if_holiday && !opt.only_if_parasha && !holiday)
794 return 0;
795
796
797
798 /************************************************************
799 * print Gregorian date
800 ************************************************************/
801 printf ("%d.%d.%d,", h->gd_day, h->gd_mon, h->gd_year);
802
803
804 /************************************************************
805 * begin - print Hebrew date
806 ************************************************************/
807
808 // BUG - looks like a bug - why sunset awareness in tabular output?
809 if (opt.print_tomorrow) hdate_set_jd (&tomorrow, (h->hd_jd)+1);
810
811 if (opt.bidi)
812 {
813 hday_str = hdate_string(HDATE_STRING_INT, h->hd_day, HDATE_STRING_LONG, opt.hebrew);
814 hyear_str = hdate_string(HDATE_STRING_INT, h->hd_year, HDATE_STRING_LONG, opt.hebrew);
815 hebrew_buffer_len =
816 asprintf (&hebrew_buffer, "%s %s %s",
817 hday_str,
818 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, opt.short_format, opt.hebrew),
819 hyear_str);
820 revstr(hebrew_buffer, hebrew_buffer_len);
821 printf ("%s", hebrew_buffer);
822 if (hebrew_buffer != NULL) free(hebrew_buffer);
823 }
824 else
825 {
826 // review sometime whether both checks are still necessary (see below for hyear)
827 //if ((!hdate_is_hebrew_locale()) && (!opt.hebrew))
828 //{ /* non hebrew numbers */
829 // printf ("%d", h->hd_day);
830 //}
831 //else /* Hebrew */
832 //{
833 hday_str = hdate_string(HDATE_STRING_INT, h->hd_day, HDATE_STRING_LONG,opt.hebrew);
834 printf ("%s", hday_str);
835 //}
836
837 printf (" %s ",
838 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, HDATE_STRING_LONG, opt.hebrew));
839
840 hyear_str = hdate_string(HDATE_STRING_INT, h->hd_year, HDATE_STRING_LONG,opt.hebrew);
841 printf ("%s", hyear_str);
842 }
843 if (hday_str != NULL) free(hday_str);
844 if (hyear_str != NULL) free(hyear_str);
845 /************************************************************
846 * end - print Hebrew date
847 ************************************************************/
848
849
850 if (opt.times)
851 {
852 /* get astronomical times */
853 hdate_get_utc_sun_time_full (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
854 &sun_hour, &first_light, &talit, &sunrise,
855 &midday, &sunset, &first_stars, &three_stars);
856 /* print astronomical times */
857 print_astronomical_time_tabular( first_light, tz);
858 print_astronomical_time_tabular( talit, tz);
859 print_astronomical_time_tabular( sunrise, tz);
860 print_astronomical_time_tabular( midday, tz);
861 print_astronomical_time_tabular( sunset, tz);
862 print_astronomical_time_tabular( first_stars, tz);
863 print_astronomical_time_tabular( three_stars, tz);
864 printf(",%02d:%02d",sun_hour/60, sun_hour%60);
865 }
866 else if (opt.sun)
867 {
868 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
869 &sunrise, &sunset);
870 print_astronomical_time_tabular( sunrise, tz);
871 print_astronomical_time_tabular( sunset, tz);
872 }
873
874 if (opt.candles)
875 {
876 if ( (h->hd_dw != 6) && (!opt.only_if_parasha) ) sunset = -1; //printf(",");
877 else
878 {
879 if (sunset == -1) hdate_get_utc_sun_time (h->gd_day, h->gd_mon,
880 h->gd_year, lat, lon, &sunrise, &sunset);
881 if (opt.candles != 1) sunset = sunset - opt.candles;
882 else sunset = sunset- DEFAULT_CANDLES_MINUTES;
883 }
884 print_astronomical_time_tabular( sunset, tz);
885 }
886
887 if (opt.havdalah)
888 {
889 if ( (h->hd_dw != 7) && (!opt.only_if_parasha) ) three_stars = -1; //printf(",");
890 else
891 {
892 if (opt.havdalah != 1)
893 {
894 if (sunset == -1) hdate_get_utc_sun_time (h->gd_day, h->gd_mon,
895 h->gd_year, lat, lon, &sunrise, &sunset);
896 three_stars = sunset + opt.havdalah;
897 }
898 else
899 {
900 if(three_stars == -1) hdate_get_utc_sun_time_full (
901 h->gd_day, h->gd_mon, h->gd_year, lat,
902 lon, &sun_hour, &first_light, &talit,
903 &sunrise, &midday, &sunset,
904 &first_stars, &three_stars);
905 }
906 }
907 print_astronomical_time_tabular( three_stars, tz);
908 }
909
910 if (opt.holidays && holiday)
911 printf (",%s",
912 hdate_string( HDATE_STRING_HOLIDAY, holiday, opt.short_format, opt.hebrew));
913
914 if (opt.omer)
915 {
916 omer_day = hdate_get_omer_day(h);
917 if (omer_day != 0) printf (",%d", omer_day);
918 }
919
920 if (opt.parasha && parasha)
921 {
922 if (!opt.bidi) printf (",%s",
923 hdate_string( HDATE_STRING_PARASHA, parasha, opt.short_format, opt.hebrew));
924 else
925 {
926 hebrew_buffer_len = asprintf (&hebrew_buffer, "%s",
927 hdate_string( HDATE_STRING_PARASHA, parasha, opt.short_format, opt.hebrew));
928 revstr(hebrew_buffer, hebrew_buffer_len);
929 printf (",%s", hebrew_buffer);
930 if (hebrew_buffer != NULL) free(hebrew_buffer);
931 }
932 }
933 printf("\n");
934
935 if ((opt.print_tomorrow) && (data_printed) && (!opt.quiet_alerts)) print_alert_sunset();
936
937 return 0;
938 }
939
940
941
942
943 /************************************************************
944 * print one day - regular output
945 ************************************************************/
946 int print_day (hdate_struct * h, option_list opt,
947 double lat, double lon, int tz)
948 {
949
950 time_t t;
951 hdate_struct tomorrow;
952
953 int iCal_uid_counter = 0;
954 int data_printed = 0;
955 int parasha = 0;
956 int holiday = 0;
957
958
959 /************************************************************
960 * options -R, -H are restrictive filters, so if there is no
961 * parasha reading / holiday, print nothing.
962 ************************************************************/
963 parasha = hdate_get_parasha (h, opt.diaspora);
964 holiday = hdate_get_holyday (h, opt.diaspora);
965 if (opt.only_if_parasha && opt.only_if_holiday && !parasha && !holiday)
966 return 0;
967 if (opt.only_if_parasha && !opt.only_if_holiday && !parasha)
968 return 0;
969 if (opt.only_if_holiday && !opt.only_if_parasha && !holiday)
970 return 0;
971
972
973 /************************************************************
974 * print the iCal event header
975 ************************************************************/
976 if (opt.iCal)
977 {
978 printf ("BEGIN:VEVENT\n");
979 printf ("UID:hdate-%ld-%d\n", time(&t), ++iCal_uid_counter);
980 printf ("DTSTART;VALUE=DATE:%04d%02d%02d\n", h->gd_year,
981 h->gd_mon, h->gd_day);
982 printf ("SUMMARY:");
983 }
984
985
986 /************************************************************
987 * print the Julian Day Number
988 ************************************************************/
989 if (opt.julian) printf ("JDN-%d ", h->hd_jd);
990
991
992 /************************************************************
993 * print the date
994 ************************************************************/
995 if (opt.print_tomorrow) hdate_set_jd (&tomorrow, (h->hd_jd)+1);
996 print_date (h, &tomorrow, opt, lat, lon);
997
998
999
1000 /************************************************************
1001 * begin - print additional information for day
1002 ************************************************************/
1003 if (opt.print_tomorrow) *h = tomorrow;
1004 if (opt.sun) data_printed = data_printed | print_sunrise (h, lat, lon, tz, opt.iCal);
1005 if (opt.times) data_printed = data_printed | print_times (h, lat, lon, tz, opt.iCal);
1006 if (opt.holidays && holiday)
1007 {
1008 printf ("%s\n",
1009 hdate_string( HDATE_STRING_HOLIDAY, holiday, opt.short_format, opt.hebrew));
1010 data_printed = DATA_WAS_PRINTED;
1011 }
1012 if (opt.omer) data_printed = data_printed | print_omer (h, opt.short_format, opt.hebrew);
1013 if (opt.parasha && parasha)
1014 {
1015 printf ("%s %s\n", N_("Parashat"),
1016 hdate_string( HDATE_STRING_PARASHA, parasha, opt.short_format, opt.hebrew));
1017 data_printed = DATA_WAS_PRINTED;
1018 }
1019 if (opt.candles || opt.havdalah) data_printed = data_printed | print_candles (h, lat, lon, tz, opt);
1020 if ((opt.print_tomorrow) && (data_printed) && (!opt.quiet_alerts)) print_alert_sunset();
1021 /************************************************************
1022 * end - print additional information for day
1023 ************************************************************/
1024
1025
1026
1027
1028 /************************************************************
1029 * print the iCal event footer
1030 ************************************************************/
1031 if (opt.iCal)
1032 {
1033 printf ("\nCLASS:PUBLIC\n");
1034 printf ("DTEND;VALUE=DATE:%04d%02d%02d\n", h->gd_year,
1035 h->gd_mon, h->gd_day);
1036 printf ("CATEGORIES:Holidays\n");
1037 printf ("END:VEVENT\n");
1038 }
1039
1040 return 0;
1041 }
1042
1043
1044
1045 /************************************************************
1046 * print one Gregorian month - tabular output
1047 ************************************************************/
1048 int print_tabular_gmonth( option_list opt,
1049 double lat, double lon, int tz, int month, int year)
1050 {
1051 hdate_struct h;
1052 int jd;
1053
1054 /* get date of month start */
1055 hdate_set_gdate (&h, 1, month, year);
1056 jd = h.hd_jd;
1057
1058 /* print month days */
1059 while (h.gd_mon == month)
1060 {
1061 print_tabular_day (&h, opt, lat, lon, tz);
1062 jd++;
1063 hdate_set_jd (&h, jd);
1064 }
1065
1066 return 0;
1067 }
1068
1069
1070
1071 /************************************************************
1072 * print one Gregorian month - regular output
1073 ************************************************************/
1074 int print_gmonth (option_list opt, double lat, double lon, int tz,
1075 int month, int year)
1076 {
1077 hdate_struct h;
1078 int jd;
1079
1080 /* get date of month start */
1081 hdate_set_gdate (&h, 1, month, year);
1082 jd = h.hd_jd;
1083
1084 /* print month header */
1085 if (!opt.iCal && !opt.short_format)
1086 printf ("\n%s:\n",
1087 hdate_string( HDATE_STRING_GMONTH, h.gd_mon, opt.short_format, HDATE_STRING_LOCAL));
1088
1089 /* print month days */
1090 while (h.gd_mon == month)
1091 {
1092 print_day (&h, opt, lat, lon, tz);
1093
1094 jd++;
1095 hdate_set_jd (&h, jd);
1096 }
1097
1098 return 0;
1099 }
1100
1101
1102
1103 /************************************************************
1104 * print one Hebrew month - tabular output *
1105 ************************************************************/
1106 int print_tabular_hmonth
1107 ( option_list opt, double lat, double lon, int tz,
1108 int month, int year)
1109 {
1110 hdate_struct h;
1111 int jd;
1112
1113 /* get date of month start */
1114 hdate_set_hdate (&h, 1, month, year);
1115 jd = h.hd_jd;
1116
1117 /* print month days */
1118 while (h.gd_mon == month)
1119 {
1120 print_tabular_header( opt );
1121 print_tabular_day (&h, opt, lat, lon, tz);
1122 jd++;
1123 hdate_set_jd (&h, jd);
1124 }
1125
1126 return 0;
1127 }
1128
1129
1130 /************************************************************
1131 * print one Hebrew month - regular output
1132 ************************************************************/
1133 int print_hmonth (hdate_struct * h, option_list opt,
1134 double lat, double lon, int tz, int month, int year)
1135 {
1136 int jd;
1137
1138 /* get date of month start */
1139 jd = h->hd_jd;
1140
1141 /* print month header */
1142 if (!opt.iCal && !opt.short_format)
1143 printf ("\n%s:\n",
1144 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, opt.short_format, opt.hebrew));
1145
1146 /* print month days */
1147 while (h->hd_mon == month)
1148 {
1149 print_day (h, opt, lat, lon, tz);
1150
1151 jd++;
1152 hdate_set_jd (h, jd);
1153 }
1154 return 0;
1155 }
1156
1157
1158
1159 /************************************************************
1160 * print one Gregorian year - tabular output *
1161 ************************************************************/
1162 int print_tabular_gyear
1163 ( option_list opt, double lat, double lon, int tz, int year)
1164 {
1165 int month = 1;
1166 while (month < 13)
1167 {
1168 print_tabular_gmonth(opt, lat, lon, tz, month, year);
1169 month++;
1170 }
1171 return 0;
1172 }
1173
1174
1175 /************************************************************
1176 * print one Hebrew year - tabular output *
1177 ************************************************************/
1178 int print_tabular_hyear
1179 ( option_list opt, double lat, double lon, int tz, int year)
1180 {
1181 hdate_struct h;
1182 int month = 1;
1183
1184 /* print year months */
1185 while (month < 13)
1186 {
1187 /* get date of month start */
1188 hdate_set_hdate (&h, 1, month, year);
1189
1190 /* if leap year, print both Adar months */
1191 if (h.hd_size_of_year > 365 && month == 6)
1192 {
1193 hdate_set_hdate (&h, 1, 13, year);
1194 print_tabular_hmonth(opt, lat, lon, tz, 13, year);
1195 hdate_set_hdate (&h, 1, 14, year);
1196 print_tabular_hmonth(opt, lat, lon, tz, 14, year);
1197 }
1198 else
1199 {
1200 print_tabular_hmonth(opt, lat, lon, tz, month, year);
1201 }
1202 month++;
1203 }
1204 return 0;
1205 }
1206
1207
1208
1209 /************************************************************
1210 * print one Gregorian year - regular output
1211 ************************************************************/
1212 int print_gyear (option_list opt, double lat, double lon, int tz, int year)
1213 {
1214
1215 int month = 1;
1216
1217 /* print year header */
1218 if (!opt.iCal && !opt.short_format)
1219 printf ("%d:\n", year);
1220
1221 /* print year months */
1222 while (month < 13)
1223 {
1224 print_gmonth ( opt, lat, lon, tz, month, year);
1225 month++;
1226 }
1227
1228 return 0;
1229 }
1230
1231
1232
1233 /************************************************************
1234 * print one hebrew year - regular output
1235 ************************************************************/
1236 int print_hyear (option_list opt, double lat, double lon, int tz, int year)
1237 {
1238 hdate_struct h;
1239 int month = 1;
1240
1241 char *h_int_str;
1242 h_int_str = hdate_string(HDATE_STRING_INT, year,HDATE_STRING_LONG,opt.hebrew);
1243 // FIXME - error check for NULL return value
1244
1245 /* print year header */
1246 if (!opt.iCal && !opt.short_format) printf ("%s:\n", h_int_str);
1247
1248 /* print year months */
1249 while (month < 13)
1250 {
1251 /* get date of month start */
1252 hdate_set_hdate (&h, 1, month, year);
1253
1254 /* if leap year, print both Adar months */
1255 if (h.hd_size_of_year > 365 && month == 6)
1256 {
1257 hdate_set_hdate (&h, 1, 13, year);
1258 print_hmonth (&h, opt, lat, lon, tz, 13, year);
1259 hdate_set_hdate (&h, 1, 14, year);
1260 print_hmonth (&h, opt, lat, lon, tz, 14, year);
1261 }
1262 else
1263 {
1264 print_hmonth (&h, opt, lat, lon, tz, month, year);
1265 }
1266 month++;
1267 }
1268
1269 return 0;
1270 }
1271
1272
1273
1274 /****************************************************
1275 * read and parse config file
1276 ****************************************************/
1277 void read_config_file( FILE *config_file,
1278 option_list *opt,
1279 double* latitude,
1280 int* opt_latitude,
1281 double* longitude,
1282 int* opt_longitude,
1283 int* tz )
1284 {
1285 char *input_string;
1286 size_t input_str_len = 100; // WARNING: if you change this value
1287 // you will still have to also
1288 // change a matching value below
1289 // in the statement that includes:
1290 // match_count = sscanf(input_string
1291 char *input_key = "";
1292 char *input_value = "";
1293 int menu_item = 0;
1294 size_t menu_len = 0;
1295 int line_count = 0;
1296 int match_count;
1297 int end_of_input_file = FALSE;
1298 int i;
1299 const int num_of_keys = 26;
1300 const char* key_list[] = { "SUNSET_AWARE", // 0
1301 "LATITUDE",
1302 "LONGITUDE", // 2
1303 "TIMEZONE",
1304 "DIASPORA", // 4
1305 "FORCE_ISRAEL",
1306 "PARASHA_NAMES", // 6
1307 "SHABBAT_INFO",
1308 "FORCE_HEBREW", // 8
1309 "OUTPUT_BIDI",
1310 "QUIET_ALERTS", //10
1311 "YOM",
1312 "LESHABBAT", //12
1313 "LESEDER",
1314 "TABULAR", //14
1315 "ICAL",
1316 "SEFIRAT_HAOMER", //16
1317 "SHORT_FORMAT",
1318 "TIMES_OF_DAY", //18
1319 "SUN_RISE_SET",
1320 "ONLY_IF_PARASHA_IS_READ",
1321 "ONLY_IF_HOLIDAY",
1322 "JULIAN_DAY", //22
1323 "CANDLE_LIGHTING",
1324 "HAVDALAH", //24
1325 "MENU"
1326 };
1327
1328 input_string = malloc(input_str_len+1);
1329 input_key = malloc(input_str_len+1);
1330 input_value = malloc(input_str_len+1);
1331
1332 while ( end_of_input_file != TRUE )
1333 {
1334 end_of_input_file = getline(&input_string, &input_str_len, config_file);
1335 if ( end_of_input_file != TRUE )
1336 {
1337 errno = 0;
1338 // The '100' in the next statement is inelegant; it is meant to
1339 // be the value of input_str_len. Alternatively, don't malloc
1340 // input_value above, use the 'a' specifier here, and free(input_value)
1341 // at the end of every successful read and evaluation
1342 match_count = sscanf(input_string,"%[A-Z_]=%100[^\n]",input_key,input_value);
1343 line_count++;
1344 if (errno != 0) error(0,errno,"scan error at line %d", line_count);
1345 if (match_count ==2)
1346 {
1347 for (i=0; i<num_of_keys; i++)
1348 {
1349 if (strcmp(input_key, key_list[i]) == 0)
1350 {
1351 switch(i)
1352 {
1353
1354 // SUNSET_AWARE
1355 case 0:if (strcmp(input_value,"FALSE") == 0) opt->not_sunset_aware = 1;
1356 else if (strcmp(input_value,"TRUE") == 0) opt->not_sunset_aware = 0;
1357 break;
1358
1359 // LATITUDE
1360 case 1:
1361 parse_coordinate(1, input_value, latitude, opt_latitude);
1362 break;
1363
1364 // LONGITUDE
1365 case 2:
1366 parse_coordinate(2, input_value, longitude, opt_longitude);
1367 break;
1368
1369 // TIMEZONE
1370 case 3:
1371 parse_timezone(input_value, tz);
1372 break;
1373
1374 // DIASPORA
1375 case 4:if (strcmp(input_value,"FALSE") == 0) opt->diaspora = 0;
1376 else if (strcmp(input_value,"TRUE") == 0) opt->diaspora = 1;
1377 break;
1378
1379
1380 // case 5:if (strcmp(input_value,"FALSE") == 0) opt->force_israel = 0;
1381 // else if (strcmp(input_value,"TRUE") == 0) opt->force_israel = 1;
1382 break;
1383
1384 // PARASHA_NAMES
1385 case 6:if (strcmp(input_value,"FALSE") == 0) opt->parasha = 0;
1386 else if (strcmp(input_value,"TRUE") == 0) opt->parasha = 1;
1387 break;
1388
1389 // SHABBAT_INFO
1390 case 7:if (strcmp(input_value,"FALSE") == 0)
1391 {
1392 // maybe not do anything if set FALSE
1393 opt->candles = 0;
1394 opt->havdalah = 0;
1395 opt->parasha = 0;
1396 }
1397 else if (strcmp(input_value,"TRUE") == 0)
1398 {
1399 opt->candles = 1;
1400 opt->havdalah = 1;
1401 opt->parasha = 1;
1402 }
1403 break;
1404
1405 // FORCE_HEBREW
1406 case 8:if (strcmp(input_value,"FALSE") == 0) opt->hebrew = 0;
1407 else if (strcmp(input_value,"TRUE") == 0) opt->hebrew = 1;
1408 break;
1409
1410 // OUTPUT_BIDI
1411 case 9:if (strcmp(input_value,"FALSE") == 0) opt->bidi = 0;
1412 else if (strcmp(input_value,"TRUE") == 0)
1413 {
1414 opt->bidi = 1;
1415 opt->hebrew = 1;
1416 }
1417 break;
1418
1419 // QUIET_ALERTS
1420 case 10:if (strcmp(input_value,"FALSE") == 0) opt->quiet_alerts = 0;
1421 else if (strcmp(input_value,"TRUE") == 0) opt->quiet_alerts = 1;
1422 break;
1423
1424 // YOM
1425 case 11:if (strcmp(input_value,"FALSE") == 0) opt->yom = 0;
1426 else if (strcmp(input_value,"TRUE") == 0)
1427 {
1428 opt->yom = 1;
1429 opt->hebrew = 1;
1430 }
1431 break;
1432
1433 // LESHABBAT
1434 case 12:if (strcmp(input_value,"FALSE") == 0) opt->leShabbat = 0;
1435 else if (strcmp(input_value,"TRUE") == 0)
1436 {
1437 opt->leShabbat = 1;
1438 opt->yom = 1;
1439 opt->hebrew = 1;
1440 }
1441 break;
1442
1443 // LESEDER
1444 case 13:if (strcmp(input_value,"FALSE") == 0) opt->leSeder = 0;
1445 else if (strcmp(input_value,"TRUE") == 0)
1446 {
1447 opt->leSeder = 1;
1448 opt->yom = 1;
1449 opt->hebrew = 1;
1450 }
1451 break;
1452
1453 // TABULAR
1454 case 14:if (strcmp(input_value,"FALSE") == 0) opt->tablular_output = 0;
1455 else if (strcmp(input_value,"TRUE") == 0) opt->tablular_output = 1;
1456 break;
1457
1458 // ICAL
1459 case 15:if (strcmp(input_value,"FALSE") == 0) opt->iCal = 0;
1460 else if (strcmp(input_value,"TRUE") == 0) opt->iCal = 1;
1461 break;
1462
1463 // SEFIRAT_HAOMER
1464 case 16:if (strcmp(input_value,"FALSE") == 0) opt->omer = 0;
1465 else if (strcmp(input_value,"TRUE") == 0) opt->omer = 1;
1466 break;
1467
1468 // SHORT_FORMAT
1469 case 17:if (strcmp(input_value,"FALSE") == 0) opt->short_format = 0;
1470 else if (strcmp(input_value,"TRUE") == 0) opt->short_format = 1;
1471 break;
1472
1473 // TIMES_OF_DAY
1474 case 18:if (strcmp(input_value,"FALSE") == 0) opt->times = 0;
1475 else if (strcmp(input_value,"TRUE") == 0) opt->times = 1;
1476 break;
1477
1478 // SUN_RISE_SET
1479 case 19:if (strcmp(input_value,"FALSE") == 0) opt->sun = 0;
1480 else if (strcmp(input_value,"TRUE") == 0) opt->sun = 1;
1481 break;
1482
1483 // ONLY_IF_PARASHA_IS_READ
1484 case 20:if (strcmp(input_value,"FALSE") == 0) opt->only_if_parasha = 0;
1485 else if (strcmp(input_value,"TRUE") == 0) opt->only_if_parasha = 1;
1486 break;
1487
1488 // ONLY_IF_HOLIDAY
1489 case 21:if (strcmp(input_value,"FALSE") == 0) opt->only_if_holiday = 0;
1490 else if (strcmp(input_value,"TRUE") == 0) opt->only_if_holiday = 1;
1491 break;
1492
1493 // JULIAN_DAY
1494 case 22:if (strcmp(input_value,"FALSE") == 0) opt->julian = 0;
1495 else if (strcmp(input_value,"TRUE") == 0) opt->julian = 1;
1496 break;
1497
1498 // CANDLE_LIGHTING
1499 case 23:if (strcmp(input_value,"FALSE") == 0) opt->candles = 0;
1500 else if (strcmp(input_value,"TRUE") == 0) opt->candles = 1;
1501 else if (fnmatch( "[[:digit:]]?([[:digit:]])", input_value, FNM_EXTMATCH) == 0)
1502 {
1503 opt->candles = atoi(input_value);
1504 if (opt->candles < MIN_CANDLES_MINUTES) opt->candles = MIN_CANDLES_MINUTES;
1505 else if (opt->candles > MAX_CANDLES_MINUTES) opt->candles = MAX_CANDLES_MINUTES;
1506 }
1507 break;
1508
1509 // HAVDALAH
1510 case 24:if (strcmp(input_value,"FALSE") == 0) opt->havdalah = 0;
1511 else if (strcmp(input_value,"TRUE") == 0) opt->havdalah = 1;
1512 else if (fnmatch( "[[:digit:]]?([[:digit:]])", input_value, FNM_EXTMATCH) == 0)
1513 {
1514 opt->havdalah = atoi(input_value);
1515 if (opt->havdalah < MIN_MOTZASH_MINUTES) opt->havdalah = MIN_MOTZASH_MINUTES;
1516 else if (opt->havdalah > MAX_MOTZASH_MINUTES) opt->havdalah = MAX_MOTZASH_MINUTES;
1517 }
1518 break;
1519
1520 // MENU
1521 case 25:if (menu_item < MAX_MENU_ITEMS)
1522 {
1523 menu_len = strlen(input_value);
1524 opt->menu_item[menu_item] = malloc(menu_len+1);
1525 memcpy(opt->menu_item[menu_item], input_value,menu_len);
1526 menu_item++;
1527 }
1528 break;
1529
1530 } // end of switch(i)
1531 break; // if found a match don't continue for loop
1532 }
1533 }
1534 }
1535 }
1536 }
1537 free(input_string);
1538 free(input_key);
1539 free(input_value);
1540 return;
1541 }
1542
1543
1544 /****************************************************
1545 * exit elegantly
1546 ****************************************************/
1547 void exit_main( option_list *opt, int exit_code)
1548 {
1549 int i;
1550 for (i=0; i<MAX_MENU_ITEMS; i++)
1551 {
1552 if (opt->menu_item[i] == NULL) break;
1553 free(opt->menu_item[i]);
1554 }
1555 exit (exit_code);
1556 }
1557
1558
1559
1560 /****************************************************
1561 * parse a command-line or a config-file menu line
1562 *
1563 * It was appropriate to make this a function, outside
1564 * of main, because of its dual use and dual reference
1565 ****************************************************/
1566 int hdate_parser( int switch_arg, option_list *opt,
1567 double *lat, int *opt_latitude,
1568 double *lon, int *opt_Longitude,
1569 int *tz, int long_option_index)
1570 {
1571 int error_detected = 0;
1572
1573 switch (switch_arg)
1574 {
1575
1576 case 0: /* long options */
1577 switch (long_option_index)
1578 {
1579 /* --version */ case 0: print_version (); exit_main(opt,0); break;
1580 /* --help */ case 1: print_help (); exit_main(opt,0); break;
1581 /* --hebrew */ case 2: opt->hebrew = 1; break;
1582 /* --yom */ case 3:
1583 opt->yom = 1;
1584 opt->hebrew = 1;
1585 break;
1586 /* --leshabbat */ case 4:
1587 opt->leShabbat = 1;
1588 opt->yom = 1;
1589 opt->hebrew = 1;
1590 break;
1591 /* --leseder */ case 5:
1592 opt->leSeder = 1;
1593 opt->yom = 1;
1594 opt->hebrew = 1;
1595 break;
1596 /* --table */ case 6: break;
1597 /* --not-sunset-aware */case 7: opt->not_sunset_aware = 1; break;
1598 /* --quiet-alerts */ case 8: break;
1599 /* --short-format */ case 9: break;
1600 /* --parasha */ case 10:break;
1601 /* --holidays */ case 11:break;
1602 /* --shabbat-times */ case 12:break;
1603 /* --sun */ case 13:
1604 /* --sunset */ case 14:
1605 /* --sunrise */ case 15:break;
1606 /* --candle-lighting */ case 16:
1607 /* --candles */ case 17:
1608 if (optarg == NULL) opt->candles = 1;
1609 else
1610 {
1611 if (fnmatch( "[[:digit:]]?([[:digit:]])", optarg, FNM_EXTMATCH) == 0)
1612 {
1613 opt->candles = atoi(optarg);
1614 if ( (opt->candles >= MIN_CANDLES_MINUTES) &&
1615 (opt->candles <= MAX_CANDLES_MINUTES) ) break;
1616 }
1617 print_parm_error("--candles"); // do not gettext!
1618 error_detected++;
1619 }
1620 break;
1621
1622 /* --havdalah */ case 18:
1623 if (optarg == NULL) opt->havdalah = 1;
1624 else
1625 {
1626 if (fnmatch( "[[:digit:]]?([[:digit:]])", optarg, FNM_EXTMATCH) == 0)
1627 {
1628 opt->havdalah = atoi(optarg);
1629 if ( (opt->havdalah >= MIN_MOTZASH_MINUTES) &&
1630 (opt->havdalah <= MAX_MOTZASH_MINUTES) ) break;
1631 }
1632 print_parm_error("--havdalah"); // do not gettext!
1633 error_detected++;
1634 }
1635 break;
1636
1637 /* --latitude */ case 19:break;
1638 /* --longitude */ case 20:break;
1639 /* --timezone */ case 21:break;
1640 /* --bidi */ case 22:
1641 /* --visual */ case 23:break;
1642 /* --omer */ case 24:break;
1643 /* --ical */ case 25:break;
1644 /* --julian */ case 26:break;
1645 /* --diaspora */ case 27:break;
1646 /* --menu */ case 28:break;
1647
1648 } // end switch for long_options
1649 break;
1650
1651
1652 case 'b': opt->bidi = 1; opt->hebrew = 1; break;
1653 case 'c': if (opt->candles == 0) opt->candles = 1;
1654 if (opt->havdalah == 0) opt->havdalah = 1;
1655 break;
1656 case 'd': opt->diaspora = 1; break;
1657 case 'H': opt->only_if_holiday = 1; /* why no break? */
1658 /* it seems ok 'H' is used only to abort
1659 a print, so it always needs 'h' set */
1660 case 'h': opt->holidays = 1; break;
1661 case 'i': opt->iCal = 1; break;
1662 case 'j': opt->julian = 1; break;
1663 case 'q': opt->quiet_alerts = 1; break;
1664 case 'm': opt->menu = 1; break;
1665 case 'o': opt->omer = 1; break;
1666 case 'R': opt->only_if_parasha = 1;
1667 case 'r': opt->parasha = 1; break;
1668 case 'S': opt->short_format = 1; break;
1669 case 's': opt->sun = 1; break;
1670 case 't': opt->times = 1; break;
1671 case 'T': opt->tablular_output = 1; break;
1672 case 'l':
1673 error_detected = error_detected + parse_coordinate(1, optarg, lat, opt_latitude);
1674 break;
1675 case 'L':
1676 error_detected = error_detected + parse_coordinate(2, optarg, lon, opt_Longitude);
1677 break;
1678 case 'z':
1679 error_detected = error_detected + parse_timezone(optarg, tz);
1680 break;
1681 case '?':
1682 // if (strchr(short_options,optopt)==NULL)
1683 // error(0,0,"option %c unknown",optopt);
1684 print_parm_missing_error((char*) &optopt);
1685 error_detected = TRUE;
1686 break;
1687 default:
1688 print_usage_hdate (); exit_main(opt,0); break;
1689 }
1690
1691 return error_detected;
1692 }
1693
1694
1695
1696
1697
1698 /************************************************************
1699 *************************************************************
1700 *************************************************************
1701 * main function
1702 *************************************************************
1703 *************************************************************
1704 ************************************************************/
1705 int main (int argc, char *argv[])
1706 {
1707
1708 hdate_struct h; /* The Hebrew date */
1709 int c;
1710
1711 int day; /* The Gregorian date */
1712 int month;
1713 int year;
1714
1715 double lat = BAD_COORDINATE; /* set to this value for error handling */
1716 double lon = BAD_COORDINATE; /* set to this value for error handling */
1717 int tz = BAD_TIMEZONE; /* -z option Time Zone, default to system local time */
1718
1719 int opt_latitude = 0; /* -l option latitude */
1720 int opt_Longitude = 0; /* -L option longitude */
1721
1722 int error_detected = FALSE; /* exit after reporting ALL bad parms */
1723
1724
1725 option_list opt;
1726 opt.hebrew = 0;
1727 opt.bidi = 0;
1728 opt.yom = 0;
1729 opt.leShabbat = 0;
1730 opt.leSeder = 0;
1731 opt.tablular_output = 0;
1732 opt.not_sunset_aware = 0;
1733 opt.quiet_alerts = 0;
1734 opt.print_tomorrow = 0; /* This isn't a command line option;
1735 It here to restrict sunset_aware to
1736 single-day outputs */
1737 opt.sun = 0; /* -s option sunrise/set times */
1738 opt.candles = 0;
1739 opt.havdalah = 0;
1740 opt.times = 0; /* -t option print times of day */
1741 opt.short_format = 0; /* -S Short format flag */
1742 opt.holidays = 0; /* -h option holidays */
1743 opt.only_if_holiday = 0; /* -H option just holidays */
1744 opt.parasha = 0; /* -r option reading */
1745 opt.only_if_parasha = 0; /* -R option just reading */
1746 opt.julian = 0; /* -j option Julian day number */
1747 opt.diaspora = 0; /* -d option diaspora */
1748 opt.iCal = 0; /* -i option iCal */
1749 opt.omer = 0; /* -o option Sfirat Haomer */
1750
1751 opt.menu = 0; // -m print menus for user-selection
1752 int i;
1753 for (i=0; i<MAX_MENU_ITEMS; i++) opt.menu_item[i] = NULL;
1754
1755
1756 // support for getopt short options
1757 static char * short_options = "bcdhHjimoqrRsStTl:L:z:";
1758
1759 /**********************************************
1760 * support for getopt long options
1761 * note: other (long) options will be defined
1762 * globally at beginning of this file
1763 * ********************************************/
1764 int long_option_index = 0;
1765 static struct option long_options[] = {
1766 // name, has_arg, flag, val
1767 {"version", 0, 0, 0}, // 0
1768 {"help", 0, 0, 0},
1769 {"hebrew", 0, 0, 0}, // 2
1770 {"yom", 0, 0, 0},
1771 {"leshabbat", 0, 0, 0}, // 4
1772 {"leseder", 0, 0, 0},
1773 {"table",0,0,'T'}, // 6
1774 {"not-sunset-aware",0,0,0},
1775 {"quiet-alerts",0,0,'q'}, // 8
1776 {"short_format",0,0,'S'},
1777 {"parasha",0,0,'r'}, //10
1778 {"holidays",0,0,'h'},
1779 {"shabbat-times",0,0,'c'}, //12
1780 {"sun",0,0,'s'},
1781 {"sunset",0,0,0}, //14
1782 {"sunrise",0,0,0},
1783 {"candle-lighting",0,0,0}, //16
1784 {"candles",2,0,0},
1785 {"havdalah",2,0,0}, //18
1786 {"latitude", 1, 0, 'l'},
1787 {"longitude", 1, 0, 'L'}, //20
1788 {"timezone", 1, 0, 'z'},
1789 {"bidi", 0, 0, 'b'}, //22
1790 {"visual", 0, 0, 'b'},
1791 {"omer", 0, 0, 'o'}, //24
1792 {"ical", 0, 0, 'i'},
1793 {"julian", 0, 0, 'j'}, //26
1794 {"diaspora", 0, 0, 'd'},
1795 {"menu",0,0,'m'}, //28
1796 {0, 0, 0, 0}
1797 };
1798
1799
1800 // for config file user-defined menus
1801 size_t menu_len = 0;
1802 int menu_index;
1803 char *menuptr, *optptr;
1804
1805
1806 /************************************************************
1807 * init locale
1808 *
1809 * see hcal.c for the full lecture...
1810 *
1811 ************************************************************/
1812 setlocale (LC_ALL, "");
1813
1814
1815 /************************************************************
1816 * parse config file
1817 ************************************************************/
1818 FILE *config_file = get_config_file("/hdate", "/hdaterc", hdate_config_file_text);
1819 if (config_file != NULL)
1820 {
1821 read_config_file(config_file, &opt, &lat, &opt_latitude, &lon, &opt_Longitude, &tz);
1822 fclose(config_file);
1823 }
1824
1825 /************************************************************
1826 * parse command line
1827 ************************************************************/
1828 opterr = 0; // we'll do our own error reporting
1829 while ((c = getopt_long(argc, argv,
1830 short_options, long_options,
1831 &long_option_index)) != -1)
1832 error_detected = error_detected
1833 + hdate_parser(c, &opt,
1834 &lat, &opt_latitude,
1835 &lon, &opt_Longitude,
1836 &tz, long_option_index);
1837
1838 /**************************************************
1839 * BEGIN - enable user-defined menu
1840 *************************************************/
1841 if (opt.menu)
1842 {
1843 i = menu_select( &opt.menu_item[0], MAX_MENU_ITEMS );
1844 if (i == -1) exit_main(&opt, 0);
1845 else if ((i < MAX_MENU_ITEMS) && (opt.menu_item[i] != NULL))
1846 {
1847
1848 /**************************************************
1849 * parse user's menu selection
1850 *************************************************/
1851 menuptr = opt.menu_item[i];
1852 menu_len = strlen( menuptr );
1853 menu_index = 0;
1854 optptr = NULL;
1855 optarg = NULL;
1856
1857 while (( c = menu_item_parse( menuptr, menu_len, &menu_index,
1858 &optptr, short_options, long_options,
1859 &long_option_index, &error_detected) ) != -1)
1860 {
1861 error_detected = error_detected +
1862 hdate_parser(c, &opt,
1863 &lat, &opt_latitude,
1864 &lon, &opt_Longitude,
1865 &tz, long_option_index);
1866 }
1867 }
1868 }
1869 /**************************************************
1870 * END - enable user-defined menu
1871 *************************************************/
1872
1873
1874
1875 /************************************************************
1876 * function validate_location is defined in the include file
1877 * ./location.include.c
1878 * It issues an exit(EXIT_CODE_BAD_PARMS) [==1]
1879 * if it discovers, um, bad parameters
1880 ************************************************************/
1881 validate_location(opt_latitude, opt_Longitude,
1882 &lat, &lon, &tz,
1883 opt.quiet_alerts, error_detected, print_usage_hdate);
1884
1885 /************************************************************
1886 * option "s" is a subset of option "t"
1887 ************************************************************/
1888 if (opt.sun && opt.times) opt.sun=0;
1889
1890
1891 /************************************************************
1892 * begin parse input date
1893 ************************************************************/
1894
1895 /************************************************************
1896 * parse input date - no date entered
1897 ************************************************************/
1898 if (argc == optind)
1899 {
1900
1901 /* set date for today */
1902 hdate_set_gdate (&h, 0, 0, 0);
1903
1904 if (opt.tablular_output)
1905 {
1906 print_tabular_header( opt );
1907 print_tabular_day(&h, opt, lat, lon, tz);
1908 }
1909 else
1910 {
1911 if (opt.iCal) print_ical_header ();
1912 else if (!opt.not_sunset_aware)
1913 opt.print_tomorrow = check_for_sunset(&h, lat, lon, tz);
1914 print_day (&h, opt, lat, lon, tz);
1915 if (opt.iCal) print_ical_footer ();
1916 }
1917 }
1918
1919 /************************************************************
1920 * parse input date - only year or julian day number entered
1921 ************************************************************/
1922 else if (argc == (optind + 1))
1923 {
1924 /* get year */
1925 year = atoi (argv[optind]);
1926
1927 /* handle error */
1928 if (year <= 0) { print_parm_error(N_("year")); exit_main(&opt,0); }
1929
1930
1931 /************************************************************
1932 * process single Julian day
1933 ************************************************************/
1934 if (year > 348021)
1935 {
1936 hdate_set_jd (&h, year);
1937
1938 if (opt.tablular_output)
1939 {
1940 print_tabular_header( opt );
1941 print_tabular_day(&h, opt, lat, lon, tz);
1942 }
1943 else
1944 {
1945 if (opt.iCal) print_ical_header ();
1946 print_day (&h, opt, lat, lon, tz);
1947 if (opt.iCal) print_ical_footer ();
1948 }
1949 }
1950
1951
1952 /************************************************************
1953 * process entire Hebrew year
1954 ************************************************************/
1955 else if (year > 3000)
1956 {
1957 if (opt.tablular_output)
1958 {
1959 print_tabular_header( opt );
1960 print_tabular_hyear( opt, lat, lon, tz, year);
1961 }
1962 else
1963 {
1964 if (opt.iCal) print_ical_header ();
1965 print_hyear ( opt, lat, lon, tz, year);
1966 if (opt.iCal) print_ical_footer ();
1967 }
1968 }
1969 /************************************************************
1970 * process entire Gregorian year
1971 ************************************************************/
1972 else
1973 {
1974 if (opt.tablular_output)
1975 {
1976 print_tabular_header( opt );
1977 print_tabular_gyear( opt, lat, lon, tz, year);
1978 }
1979 else
1980 {
1981 if (opt.iCal) print_ical_header ();
1982
1983 print_gyear ( opt, lat, lon, tz, year);
1984
1985 if (opt.iCal) print_ical_footer ();
1986 }
1987
1988 }
1989 }
1990
1991
1992 /************************************************************
1993 * parse input date - only month and year entered
1994 ************************************************************/
1995 else if (argc == (optind + 2))
1996 {
1997
1998 year = atoi (argv[optind + 1]);
1999 month = atoi (argv[optind]);
2000
2001 /* handle errors */
2002 if (year <= 0) { print_parm_error(N_("year")); exit_main(&opt,0); }
2003
2004
2005 /************************************************************
2006 * process entire Hebrew month
2007 ************************************************************/
2008 if (year > 3000)
2009 {
2010 /* begin bounds check for month */
2011 if ((month <= 0) || (month > 14))
2012 { print_parm_error(N_("month")); exit_main(&opt,0); }
2013 hdate_set_hdate (&h, 1, 1, year);
2014 if ((h.hd_size_of_year <365) && (month >12))
2015 { print_parm_error(N_("month")); exit_main(&opt,0); }
2016 /* end bounds check for month */
2017
2018
2019 if (opt.tablular_output)
2020 {
2021 print_tabular_header( opt );
2022
2023 /* get date of month start */
2024 hdate_set_hdate (&h, 1, month, year);
2025
2026 /* if leap year, print both Adar months */
2027 if (h.hd_size_of_year > 365 && month == 6)
2028 {
2029 hdate_set_hdate (&h, 1, 13, year);
2030 print_tabular_hmonth ( opt, lat, lon, tz, 13, year);
2031 hdate_set_hdate (&h, 1, 14, year);
2032 print_tabular_hmonth ( opt, lat, lon, tz, 14, year);
2033 }
2034 else
2035 {
2036 print_tabular_hmonth ( opt, lat, lon, tz, month, year);
2037 }
2038 }
2039 else
2040 {
2041 if (opt.iCal) print_ical_header ();
2042
2043 /* get date of month start */
2044 hdate_set_hdate (&h, 1, month, year);
2045
2046 /* if leap year, print both Adar months */
2047 if (h.hd_size_of_year > 365 && month == 6)
2048 {
2049 hdate_set_hdate (&h, 1, 13, year);
2050 print_hmonth (&h, opt, lat, lon, tz, 13, year);
2051 hdate_set_hdate (&h, 1, 14, year);
2052 print_hmonth (&h, opt, lat, lon, tz, 14, year);
2053 }
2054 else
2055 {
2056 print_hmonth (&h, opt, lat, lon, tz, month, year);
2057 }
2058 if (opt.iCal)
2059 print_ical_footer ();
2060 }
2061 }
2062
2063 /************************************************************
2064 * process entire Gregorian month
2065 ************************************************************/
2066 else
2067 {
2068 if ((month <= 0) || (month > 12))
2069 { print_parm_error(N_("month")); exit_main(&opt,0); }
2070
2071 if (opt.tablular_output)
2072 {
2073 print_tabular_header( opt );
2074 print_tabular_gmonth(opt, lat, lon, tz, month, year);
2075 }
2076
2077 else
2078 {
2079 if (opt.iCal)print_ical_header ();
2080
2081 print_gmonth (opt, lat, lon, tz, month, year);
2082
2083 if (opt.iCal) print_ical_footer ();
2084 }
2085 }
2086 }
2087
2088
2089 /************************************************************
2090 * parse input date - day, month and year entered
2091 ************************************************************/
2092 else if (argc == (optind + 3))
2093 {
2094 year = atoi (argv[optind + 2]);
2095 month = atoi (argv[optind + 1]);
2096 day = atoi (argv[optind]);
2097
2098 /* handle error */
2099 if (year <= 0) { print_parm_error(N_("year")); exit_main(&opt,0); }
2100
2101
2102 /************************************************************
2103 * get Hebrew date
2104 ************************************************************/
2105 if (year > 3000)
2106 {
2107 /* begin bounds check for month */
2108 if ((month <= 0) || (month > 14))
2109 { print_parm_error(N_("month")); exit_main(&opt,0); }
2110 hdate_set_hdate (&h, 1, 1, year);
2111 if ((h.hd_size_of_year <365) && (month >12))
2112 { print_parm_error(N_("month")); exit_main(&opt,0); }
2113 /* end bounds check for month */
2114
2115 if ((day <= 0) || (day > 30) ||
2116 ((day > 29) && ((month==4) || (month==6) || (month==8) || (month=10) || (month==12) || (month==14))) ||
2117 (((h.hd_size_of_year==353) || (h.hd_size_of_year==383)) && ((month==2) || (month==3)) && (day >29)) ||
2118 (((h.hd_size_of_year==354) || (h.hd_size_of_year==384)) && (month==2) && (day>29)) )
2119 { print_parm_error(N_("day")); exit_main(&opt,0); }
2120
2121
2122 hdate_set_hdate (&h, day, month, year);
2123 }
2124
2125 /************************************************************
2126 * get Gregorian date
2127 ************************************************************/
2128 else
2129 {
2130 if ((month <= 0) || (month > 12))
2131 { print_parm_error(N_("month")); exit_main(&opt,0); }
2132 if ((day <= 0) ||
2133 ((day > 31) && ((month==1) || (month==3) || (month==5) || (month==7) || (month==8) || (month==10) ||(month==12))) ||
2134 ((day > 30) && ((month==4) || (month==6) || (month==9) || (month==11))) ||
2135 ((day > 29) && (month==2) && ((year%4)==0)) ||
2136 ((day > 28) && (month==2) && ((year%4)!=0))
2137 )
2138 { print_parm_error(N_("day")); exit_main(&opt,0); }
2139
2140 hdate_set_gdate (&h, day, month, year);
2141 }
2142
2143 /************************************************************
2144 * process a single date
2145 ************************************************************/
2146 if (opt.tablular_output)
2147 {
2148 print_tabular_header( opt );
2149 print_tabular_day(&h, opt, lat, lon, tz);
2150 }
2151
2152 else
2153 {
2154 if (opt.iCal) print_ical_header ();
2155 print_day (&h, opt, lat, lon, tz);
2156
2157 if (opt.iCal) print_ical_footer ();
2158 }
2159 }
2160
2161
2162 /************************************************************
2163 * parse input date - too many fields were received
2164 ************************************************************/
2165 else
2166 {
2167 error(0,0,"%s", N_("too many arguments; after options max is dd mm yyyy"));
2168 exit_main(&opt,0);
2169 }
2170
2171 return 0;
2172 }
0 /* local_functions.c http://libhdate.sourceforge.net
1 * a collection of functions in support of both hcal.c and hdate.c
2 * hcal.c Hebrew calendar (part of package libhdate)
3 * hdate.c Hebrew date/times information(part of package libhdate)
4 *
5 * compile:
6 * gcc `pkg-config --libs --cflags libhdate` ocal_functions.c -o local_functions
7 *
8 * Copyright: 2011-2012 (c) Boruch Baum
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 /**************************************************
25 * functions to support hcal and hdate
26 **************************************************/
27 #define _GNU_SOURCE // For mempcpy, asprintf
28
29 #include <hdate.h> // For hebrew date
30 //include "../../src/hdate.h"
31 #include <stdlib.h> // For atoi, malloc
32 #include <error.h> // For error
33 #include <errno.h> // For errno
34 #include <time.h> // For time
35 #include <ctype.h> // for isprint
36 #include <fnmatch.h> // For fnmatch
37 #include <string.h> // For mempcpy
38 #include <getopt.h> // For optarg, optind
39 #include <stdio.h> // For printf, fopen, fclose, fprintf, snprintf. FILE
40
41
42 // support for fnmatch
43 #define FNM_EXTMATCH (1 << 5)
44 #define FNM_NOFLAG 0
45
46 #define BAD_COORDINATE 999
47 #define BAD_TIMEZONE 999
48 #define DELTA_LONGITUDE 30
49
50 #define EXIT_CODE_BAD_PARMS 1
51
52
53
54 // copied from support.h in src dir
55 #ifdef ENABLE_NLS
56 # include <libintl.h>
57 # undef _
58 # define _(String) dgettext (PACKAGE, String)
59 # ifdef gettext_noop
60 # define N_(String) gettext_noop (String)
61 # else
62 # define N_(String) (String)
63 # endif
64 #else
65 # define textdomain(String) (String)
66 # define gettext(String) (String)
67 # define dgettext(Domain,Message) (Message)
68 # define dcgettext(Domain,Message,Type) (Message)
69 # define bindtextdomain(Domain,Directory) (Domain)
70 # define _(String) (String)
71 # define N_(String) (String)
72 #endif
73
74 #define FALSE 0
75 #define TRUE -1
76
77
78 // support for options parsing
79 #define MIN_CANDLES_MINUTES 18
80 #define DEFAULT_CANDLES_MINUTES 20
81 #define MAX_CANDLES_MINUTES 90
82 #define MIN_MOTZASH_MINUTES 20
83 #define MAX_MOTZASH_MINUTES 90
84
85
86 /************************************************************
87 * begin - error message functions
88 ************************************************************/
89 void print_parm_error ( char *parm_name )
90 {
91 error(0,0,"%s: %s %s %s",N_("error"),
92 N_("parameter"), parm_name,
93 N_("is non-numeric or out of bounds"));
94 }
95
96 void print_parm_missing_error ( char *parm_name )
97 {
98 error(0,0,"%s: %s %s %s",N_("error"),
99 N_("option"), parm_name, N_("missing parameter"));
100 }
101
102 void print_alert_timezone( int tz )
103 {
104 error(0,0,"%s: %s, %+d:%d UTC",
105 N_("ALERT: time zone not entered, using system local time zone"),
106 *tzname, tz/60, tz%60);
107 }
108
109 void print_parm_invalid_error( char *parm_name )
110 {
111 error(0,0,"%s: %s %s %s",N_("error"),
112 N_("option"), parm_name, N_("is not a valid option"));
113 }
114
115
116 /************************************************************
117 * end - error message functions
118 ************************************************************/
119
120
121
122
123 /************************************************************
124 * begin - alert message functions
125 ************************************************************/
126 void print_alert_coordinate( char *city_name )
127 {
128 error(0,0,"%s %s",
129 N_("ALERT: guessing... will use co-ordinates for"),
130 city_name);
131 }
132
133 void print_alert_default_location( int tz )
134 {
135 switch (tz/60)
136 {
137 case -8: print_alert_coordinate( N_("Los Angeles") ); break;
138 case -6: print_alert_coordinate( N_("Mexico City") ); break;
139 case -5: print_alert_coordinate( N_("New York City") ); break;
140 // case -5: print_alert_coordinate( N_("Toronto") ); break;
141 // case -3: print_alert_coordinate( N_("Sao Paolo") ); break;
142 case -3: print_alert_coordinate( N_("Buenos Aires") ); break;
143 case 0: print_alert_coordinate( N_("London") ); break;
144 case 1: print_alert_coordinate( N_("Paris") ); break;
145 case 2: print_alert_coordinate( N_("Tel-Aviv") ); break;
146 case 3: print_alert_coordinate( N_("Moscow") ); break;
147 case 5: print_alert_coordinate( N_("Tashkent") ); break;
148 case 8: print_alert_coordinate( N_("Beijing") ); break;
149 // case 8: print_alert_coordinate( N_("Hong Kong") ); break;
150 case -10: print_alert_coordinate( N_("Honolulu") ); break;
151 default: error(0,0,"%s \n%s", N_("Hmmm, ... hate to do this, really ..."), N_("using co-ordinates for the equator, at the center of time zone")); break;
152 }
153 }
154 /************************************************************
155 * end - alert message functions
156 ************************************************************/
157
158
159
160 /************************************************************
161 * set default location
162 ************************************************************/
163 void set_default_location( int tz, double *lat, double *lon )
164 {
165 /* Temporarily, set some default lat/lon coordinates
166 for certain timezones */
167
168 /**
169 { 00 } ( Latitude : 31.78; Longitude : 35.22; Name : 'Jerusalem' ),
170 { 01 } ( Latitude : 32.07; Longitude : 34.77; Name : 'Tel Aviv-Jafa' ),
171 { 02 } ( Latitude : 32.82; Longitude : 34.99; Name : 'Hifa' ),
172 { 03 } ( Latitude : 31.96; Longitude : 34.80; Name : 'Rishon Lezion' ),
173 { 04 } ( Latitude : 31.80; Longitude : 34.64; Name : 'Ashdod' ),
174 { 05 } ( Latitude : 31.25; Longitude : 34.80; Name : 'Be''er Sheva' ),
175 { 06 } ( Latitude : 32.09; Longitude : 34.88; Name : 'Petach Tiqva' ),
176 { 07 } ( Latitude : 32.33; Longitude : 34.86; Name : 'Netanya' ),
177 { 08 } ( Latitude : 32.02; Longitude : 34.76; Name : 'Holon' ),
178 { 09 } ( Latitude : 32.09; Longitude : 34.85; Name : 'B''ene Beraq' ),
179 { 10 } ( Latitude : 32.02; Longitude : 34.75; Name : 'Bat Yam' ),
180 { 11 } ( Latitude : 32.08; Longitude : 34.80; Name : 'Ramat Gan' ),
181 { 12 } ( Latitude : 31.67; Longitude : 34.56; Name : 'Ashqelon' ),
182 { 13 } ( Latitude : 31.89; Longitude : 34.80; Name : 'Rehovot' ),
183 { 14 } ( Latitude : 32.17; Longitude : 34.84; Name : 'Herzeliyya' ),
184 { 15 } ( Latitude : 32.19; Longitude : 34.91; Name : 'Kfar Saba' ),
185 { 16 } ( Latitude : 32.45; Longitude : 34.92; Name : 'Hadera' ),
186 { 17 } ( Latitude : 32.19; Longitude : 34.88; Name : 'Ra''anana' ),
187 { 18 } ( Latitude : 31.96; Longitude : 34.90; Name : 'Lod' ),
188 { 19 } ( Latitude : 31.93; Longitude : 34.86; Name : 'Ramla' )
189 **/
190
191 switch (tz/60)
192 {
193 case -8: *lat = 34.05; *lon =-118.25; break; // Los Angeles
194 case -6: *lat = 19.43; *lon = -99.13; break; // Mexico City
195 case -5: *lat = 40.0; *lon = -74.0; break; // New York
196 // case -5: *lat = 43.71; *lon = -79.43; break; // Toronto
197 // case -3: *lat = -23.55; *lon = -46.61; break; // Sao Paolo
198 case -3: *lat = -34.6; *lon = -58.37; break; // Buenos Aires
199 case 0: *lat = 51.0; *lon = 0.0; break; // London
200 case 1: *lat = 48.0; *lon = 2.0; break; // Paris
201 case 2: *lat = 32.0; *lon = 34.0; break; // Tel aviv
202 case 3: *lat = 55.0; *lon = 37.0; break; // Moscow
203 case 5: *lat = 41.27; *lon = 69.22; break; // Tashkent
204 case 8: *lat = 39.90; *lon = 116.38; break; // Beijing
205 // case 8: *lat = 22.26; *lon = 114.15; break; // Hong Kong
206 case 10: *lat = 21.30; *lon = 157.82; break; // Honolulu
207 default: *lat = 0.0; *lon = tz * .25; break; // center of timeone:
208 // .25 = (15 degrees) / 60 [because tz is in minutes, not hours]
209 }
210 return;
211 }
212
213
214
215 /************************************************************
216 * check for sunset
217 ************************************************************/
218 int check_for_sunset (hdate_struct * h, double lat, double lon, int timezone )
219 {
220 time_t now_time;
221 struct tm *now_timep;
222 int sunrise, sunset;
223
224 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
225 &sunrise, &sunset);
226
227 time(&now_time);
228 now_timep = localtime(&now_time);
229
230 if ( ((now_timep->tm_hour) *60 + now_timep->tm_min) > (sunset + timezone) ) return 1;
231 else return 0;
232 }
233
234
235
236
237 /***********************************************************
238 * reverse a hebrew string (for visual bidi)
239 * parameters:
240 * source is a pointer to a writeable buffer.
241 * source_len is the length of a string in source. This
242 * length must be LESS than the size of the source buffer
243 ***********************************************************/
244 void revstr( char *source, const size_t source_len)
245 {
246 #define H_CHAR_WIDTH 2
247
248 #define DEBUG 0
249 #if DEBUG
250 printf("\nrevstr: entry: sourcelen = %d, source = %s\n",source_len, source);
251 #endif
252
253 if (source == NULL) {error(0,0,"revstr: source buffer pointer is NULL"); exit(0);};
254 if (source_len <= 0) {error(0,0,"revstr: source_len parameter invalid, %d",source_len); exit(0);};
255
256 size_t i,j;
257 char *temp_buff;
258
259 temp_buff = malloc(source_len+2);
260 if (temp_buff == NULL) {error(0,0,"revstr: malloc failure"); exit(0);};
261
262 for (i=(source_len-1), j=0; j < source_len; i--, j++)
263 {
264 if (isprint(source[i])) temp_buff[j] = source[i];
265 else
266 {
267 // FIXME - presumes H_CHAR_WIDTH = 2
268 temp_buff[j++] = source[i-1];
269 temp_buff[j] = source[i--];
270 }
271 }
272 memcpy(source, temp_buff, source_len);
273 source[source_len] = '\0';
274 #if DEBUG
275 printf("\nrevstr: before free(tempbuff): sourcelen = %d, source = %s\n",source_len, source);
276 #endif
277 free(temp_buff);
278 return;
279 }
280
281
282 /************************************************************
283 * parse coordinate
284 *
285 * presumes commandline options were parsed using getopt.
286 * returns 1 to *opt_found on success
287 * returns the floating point value of the coordinate in *coordinate
288 *
289 * type_flag (1-latitude, 2=longitude)
290 ************************************************************/
291 int parse_coordinate( const int type_flag, char *input_string,
292 double *coordinate, int *opt_found)
293 {
294 //#define NEGATIVE_NUMBER_GLOB "-[[:digit:]]?([[:digit:]]?([[:digit:]]))?(.+([[:digit:]]))"
295 //#define NEGATIVE_DMS_GLOB "-[[:digit:]]?([[:digit:]]?([[:digit:]]))?([:\"]?([012345])[[:digit:]]?([:'\"]?([012345])[[:digit:]]))"
296 //#define COORDINATE_GLOB_DECIMAL "?([+-])[[:digit:]]?([[:digit:]]?([[:digit:]]))?(.+([[:digit:]]))"
297 //#define COORDINATE_GLOB_DMS "?([+-])[[:digit:]]?([[:digit:]]?([[:digit:]]))?([':\"]?([012345])[[:digit:]]?([:'\"]?([012345])[[:digit:]]))"
298
299 #define LATITUDE_GLOB_DECIMAL "?([nNsS+-])[[:digit:]]?([[:digit:]]?([[:digit:]]))?(.+([[:digit:]]))?([nNsS])"
300 #define LONGITUDE_GLOB_DECIMAL "?([eEwW+-])[[:digit:]]?([[:digit:]]?([[:digit:]]))?(.+([[:digit:]]))?([eEwW])"
301
302 #define LATITUDE_GLOB_DMS "?([nNsS+-])[[:digit:]]?([[:digit:]]?([[:digit:]]))?([':\"]?([012345])[[:digit:]]?([:'\"]?([012345])[[:digit:]]))?([nNsS])"
303 #define LONGITUDE_GLOB_DMS "?([eEwW+-])[[:digit:]]?([[:digit:]]?([[:digit:]]))?([':\"]?([012345])[[:digit:]]?([:'\"]?([012345])[[:digit:]]))?([eEwW])"
304
305 char* seconds;
306
307 double fractional_part = 0;
308 int direction_modifier = 1;
309
310 /************************************************************
311 * input_string should hold the value to parse
312 * It must exist and be numeric
313 * we don't want confuse it with the next option of for "-x"
314 ************************************************************/
315 if (!input_string)
316 {
317 if (type_flag == 1) print_parm_missing_error(N_("l (latitude)"));
318 else if (type_flag == 2) print_parm_missing_error(N_("L (Longitue)"));
319 return TRUE; // error_detected = TRUE; ie failure
320 }
321
322 /************************************************************
323 * parse latitude
324 ************************************************************/
325 if (type_flag == 1)
326 {
327 if( (fnmatch( LATITUDE_GLOB_DECIMAL, input_string, FNM_EXTMATCH)!=0)
328 && (fnmatch( LATITUDE_GLOB_DMS, input_string, FNM_EXTMATCH) !=0) )
329 {
330 if (fnmatch("-*", input_string, FNM_NOFLAG)==0)
331 print_parm_missing_error(N_("l (latitude)"));
332 else print_parm_error(N_("l (latitude)"));
333 return TRUE; // error_detected = TRUE; ie failure
334 }
335
336
337 if ( strpbrk(input_string, "sS") != NULL ) direction_modifier = -1;
338
339
340 if (fnmatch(LATITUDE_GLOB_DECIMAL, input_string, FNM_EXTMATCH)==0)
341 {
342 *coordinate = (double) atof( strtok( input_string, "nNsS"));
343 }
344 else if (fnmatch(LATITUDE_GLOB_DMS, input_string, FNM_EXTMATCH)==0)
345 {
346 *coordinate = (double) atof( strtok( input_string, "nNsS:'\""));
347 fractional_part = (double) atof( strtok( NULL, "nNsS:'\""))/60;
348 seconds = strtok( NULL, "nNsS:'\"");
349 if (seconds != NULL) fractional_part = fractional_part + (double) atof( seconds)/3600;
350 }
351
352
353 if (*coordinate > 0)
354 *coordinate = (*coordinate + fractional_part) * direction_modifier;
355 else
356 *coordinate = *coordinate - fractional_part;
357
358
359 if( (*coordinate > -90) && (*coordinate < 90) )
360 {
361 *opt_found = 1;
362 return FALSE; // error_detected = FALSE; ie. success
363 }
364 print_parm_error(N_("L (Longitude)"));
365 return TRUE; // error_detected = TRUE; ie failure
366 }
367
368
369 /************************************************************
370 * parse longitude
371 ************************************************************/
372 if (type_flag == 2)
373 {
374 if( (fnmatch( LONGITUDE_GLOB_DECIMAL, input_string, FNM_EXTMATCH)!=0)
375 && (fnmatch( LONGITUDE_GLOB_DMS, input_string, FNM_EXTMATCH) !=0) )
376 {
377 if (fnmatch("-*", input_string, FNM_NOFLAG)==0)
378 print_parm_missing_error(N_("L (Longitude)"));
379 else print_parm_error(N_("L (Longitude)"));
380 return TRUE; // error_detected = TRUE; ie failure
381 }
382
383
384 if ( strpbrk(input_string, "wW") != NULL ) direction_modifier = -1;
385
386
387 if (fnmatch(LONGITUDE_GLOB_DECIMAL, input_string, FNM_EXTMATCH)==0)
388 {
389 *coordinate = (double) atof( strtok( input_string, "eEwW"));
390 }
391 else if (fnmatch(LONGITUDE_GLOB_DMS, input_string, FNM_EXTMATCH)==0)
392 {
393 *coordinate = (double) atof( strtok( input_string, "eEwW:'\""));
394 fractional_part = (double) atof( strtok( NULL, "eEwW:'\""))/60;
395 seconds = strtok( NULL, "eEwW:'\"");
396 if (seconds != NULL) fractional_part = fractional_part + (double) atof( seconds)/3600;
397 }
398
399 if (*coordinate > 0)
400 *coordinate = (*coordinate + fractional_part) * direction_modifier;
401 else
402 *coordinate = *coordinate - fractional_part;
403
404
405 if( (*coordinate > -180) && (*coordinate < 180) )
406 {
407 *opt_found = 1;
408 return FALSE; // error_detected = FALSE; ie. success
409 }
410 print_parm_error(N_("L (Longitude)"));
411 return TRUE; // error_detected = TRUE; ie failure
412 }
413
414 printf("INTERNAL ERROR: coordinate parse\n");
415 return TRUE; // error_detected = TRUE; ie failure
416 }
417
418 /************************************************************
419 * parse timezone
420 *
421 * presumes commandline options were parsed using getopt.
422 * timezone is returned in minutes, not hours
423 ************************************************************/
424 int parse_timezone( char *input_string, int *tz)
425 {
426 #define TIMEZONE_GLOB_DECIMAL "?([+-])?(1)[[:digit:]]?(.+([[:digit:]]))"
427 #define TIMEZONE_GLOB_DM "?([+-])?(1)[[:digit:]]?([:'\"]+([[:digit:]]))"
428
429 int fractional_part;
430
431 /************************************************************
432 * input_string should hold the value to parse
433 * It must exist and be numeric
434 * we don't want confuse it with the next option of for "-x"
435 ************************************************************/
436 if ((!input_string) ||
437 ( (fnmatch("-*",input_string,FNM_NOFLAG)==0) &&
438 (fnmatch(TIMEZONE_GLOB_DECIMAL, input_string, FNM_EXTMATCH)!=0) &&
439 (fnmatch(TIMEZONE_GLOB_DM, input_string, FNM_EXTMATCH)!=0) ) )
440 {
441 print_parm_missing_error(N_("z (time zone)"));
442 }
443 else
444 {
445 if (fnmatch(TIMEZONE_GLOB_DECIMAL, input_string, FNM_EXTMATCH)==0)
446 {
447 *tz = (int) ( atof (input_string) * 60 );
448 }
449 else if (fnmatch(TIMEZONE_GLOB_DM, input_string, FNM_EXTMATCH)==0)
450 {
451 *tz = atoi( strtok( input_string, ":'\"")) * 60;
452 fractional_part = atoi( strtok( NULL, ":'\""));
453 if (*tz < 0) *tz = *tz - fractional_part;
454 else *tz = *tz + fractional_part;
455 }
456
457 if( (*tz > -720) && (*tz < 720) ) // 720 minutes in 12 hours
458 {
459 return FALSE; // error_detected = FALSE; ie. success
460 }
461 else print_parm_error(N_("z (timezone)"));
462 }
463 return TRUE; // error_detected = TRUE; ie failure
464 }
465
466
467
468
469 /************************************************************
470 * validate location parameters - lat, lon, tz
471 ************************************************************/
472 // originally, this was only for hdate, now also for hcal
473 // originally, we did this only if we needed the information
474 // now, because of sunset-awareness, we always perform these checks
475 // if ( (opt.sun) || (opt.times) || (opt.candles) || (opt.havdalah) )
476 void validate_location( const int opt_latitude, const int opt_Longitude,
477 double *lat, double *lon,
478 int *tz, const int quiet_alerts, int error_detected,
479 void (*print_usage)() )
480 {
481
482 /* latitude and longitude must be paired */
483 if ( (opt_latitude) && (!opt_Longitude) )
484 {
485 error(0,0,"%s: %s", N_("error"), N_("valid longitude parameter missing for given latitude"));
486 error_detected = TRUE;
487 }
488 else if ( (opt_Longitude) && (!opt_latitude) )
489 {
490 error(0,0,"%s: %s", N_("error"), N_("valid latitude parameter missing for given longitude"));
491 error_detected = TRUE;
492 }
493
494
495 if (!error_detected)
496 {
497 // if no timezone entered, choose guess method
498 if (*tz==BAD_TIMEZONE)
499 {
500 // system timezone is in seconds, but we deal in minutes
501 tzset();
502 *tz = timezone /-60;
503
504 if ( (opt_latitude) && (opt_Longitude) && ( ((*lon/15)-(*tz/60)) > DELTA_LONGITUDE ) )
505 {
506 /* reject system local timezone, because it's
507 too far from the longitude explicitly provided
508 by the user; guess based on longitude entered */
509 *tz = (*lon /15) * 60;
510 }
511 if (!quiet_alerts) print_alert_timezone( *tz );
512 if ( (*lat==BAD_COORDINATE) && (*lon==BAD_COORDINATE) )
513 {
514 if (!quiet_alerts) print_alert_default_location( *tz );
515 set_default_location( *tz, lat, lon );
516 }
517 printf("\n");
518 }
519 else
520 { /* we have timezone, what about latitude and longitude? */
521 if ( (opt_Longitude) && (opt_latitude) )
522 {
523 // sanity-check longitude versus timezone
524 // timezone is in minutes
525 if ( abs( ( (*tz/60) * 15 ) - *lon ) > DELTA_LONGITUDE )
526 {
527 error(0,0,"%s %d:%d %s %.3f %s",
528 N_("time zone value of"), *tz/60, *tz%60,
529 N_("is incompatible with a longitude of"), *lon, N_("degrees"));
530 error_detected = TRUE;
531 }
532 }
533 else
534 {
535 if (!quiet_alerts) print_alert_default_location( *tz );
536 set_default_location( *tz, lat, lon );
537 printf("\n");
538 }
539 }
540 }
541
542 /* exit after reporting all bad parameters found */
543 if (error_detected)
544 {
545 print_usage();
546 exit(EXIT_CODE_BAD_PARMS);
547 }
548 }
549
550
551 /************************************************************
552 * check validity of date parameters
553 ************************************************************/
554 #define CHECK_DAY_PARM 1
555 #define CHECK_MONTH_PARM 2
556 #define CHECK_YEAR_PARM 3
557 int validate_hdate (int parameter_to_check, int day, int month, int year)
558 {
559 hdate_struct h;
560
561 if (year < 0) return FALSE;
562
563 switch (parameter_to_check)
564 {
565
566 case CHECK_DAY_PARM:
567
568 /************************************************************
569 * check day in Hebrew date
570 ************************************************************/
571 if (year > 3000)
572 {
573 if (year > 10999) return FALSE;
574 hdate_set_hdate (&h, 1, 1, year);
575 if ((day < 1) || (day > 30) ||
576 ((day > 29) && ((month==4) || (month==6) || (month==8) || (month=10) || (month==12) || (month==14))) ||
577 (((h.hd_size_of_year==353) || (h.hd_size_of_year==383)) && ((month==2) || (month==3)) && (day >29)) ||
578 (((h.hd_size_of_year==354) || (h.hd_size_of_year==384)) && (month==2) && (day>29)) )
579 return FALSE;
580 return TRUE;
581 }
582
583 /************************************************************
584 * check day in Gregorian date
585 ************************************************************/
586 else
587 {
588 if ((day < 1) ||
589 ((day > 31) && ((month==1) || (month==3) || (month==5) || (month==7) || (month==8) || (month==10) ||(month==12))) ||
590 ((day > 30) && ((month==4) || (month==6) || (month==9) || (month==11))) ||
591 ((day > 29) && (month==2) && ((year%4)==0)) ||
592 ((day > 28) && (month==2) && ((year%4)!=0))
593 )
594 return FALSE;
595 return TRUE;
596 }
597 break;
598
599
600 case CHECK_MONTH_PARM:
601
602 /************************************************************
603 * check month in Hebrew date
604 ************************************************************/
605 if (year > 3000)
606 {
607 if (year > 10999) return FALSE;
608 if ((month <= 0) || (month > 14)) return FALSE;
609 hdate_set_hdate (&h, 1, 1, year);
610 if ((h.hd_size_of_year <365) && (month >12)) return FALSE;
611 return TRUE;
612 }
613
614 /************************************************************
615 * check month in Gregorian date
616 ************************************************************/
617 else
618 {
619 if ((month <= 0) || (month > 12)) return FALSE;
620 return TRUE;
621 }
622 break;
623
624 case CHECK_YEAR_PARM:
625 if (year > 10999) return FALSE;
626 return TRUE;
627 break;
628 }
629 return FALSE;
630 }
631
632 /************************************************************
633 * Greeting message to new version
634 ************************************************************/
635 void greetings_to_version_16()
636 {
637 error(0,0,"%s",N_("\
638 This seems to be to be your first time using this version.\n\
639 Please read the new documentation in the man page and config\n\
640 file. Attempting to create a config file ..."));
641 }
642
643
644 /************************************************************
645 * Open config file, or create one
646 * - returns filepointer or NULL
647 * - if file does not exist, attempt to create it
648 ************************************************************/
649 FILE* get_config_file( const char* config_dir_name,
650 const char* config_file_name,
651 const char* default_config_file_text )
652 {
653 #include <pwd.h> // for get pwuid
654 #include <unistd.h> // for getuid
655 #include <sys/stat.h>
656 #include <sys/types.h> // for mkdir,
657
658 size_t path_len;
659
660 char* config_home_path_name = "";
661 char* config_sub_path_name = "";
662
663 char* config_dir_path;
664 char* config_file_path;
665
666 FILE* config_file;
667
668 /************************************************************
669 * sub-function to get_config_file: create_config_file
670 ************************************************************/
671 void create_config_file()
672 {
673 config_file = fopen(config_file_path, "a");
674 if (config_file == NULL)
675 {
676 error(0, errno, "%s: %s", N_("failure attempting to create config file"), config_file_path);
677 return;
678 }
679 fprintf(config_file, default_config_file_text);
680 error(0,0,"%s: %s",N_("config file created"), config_file_path);
681 if (fclose(config_file) != 0) error(0,errno,"%s %s",N_("failure closing"),config_file_name);
682 }
683
684 /************************************************************
685 * sub-function to get_config_file: open_config_file
686 ************************************************************/
687 int open_config_file()
688 {
689 config_file = fopen(config_file_path, "r");
690 if (config_file == NULL)
691 {
692 if (errno != ENOENT) return FALSE;
693 // maybe replace all this with a single line asprintf()
694 path_len = strlen(config_home_path_name)
695 + strlen(config_sub_path_name)
696 + strlen(config_dir_name) +1;
697 if (path_len < 1) return FALSE;
698 config_dir_path = malloc(path_len);
699 if (config_dir_path == NULL)
700 {
701 error(0,errno,"%s",N_("memory allocation failure"));
702 return FALSE;
703 }
704 snprintf(config_dir_path, path_len, "%s%s%s",
705 config_home_path_name, config_sub_path_name,
706 config_dir_name);
707
708 if ((mkdir(config_dir_path, (mode_t) 0700) != 0) &&
709 (errno != EEXIST))
710 {
711 free(config_dir_path);
712 return FALSE;
713 }
714 greetings_to_version_16();
715 create_config_file();
716 free(config_dir_path);
717 return FALSE;
718 }
719 return TRUE;
720 }
721
722
723 /************************************************************
724 * main part of function get_config_file
725 ************************************************************/
726 config_home_path_name = getenv("XDG_CONFIG_HOME");
727 if (config_home_path_name == NULL)
728 {
729 config_home_path_name = getenv("HOME");
730 if (config_home_path_name == NULL)
731 {
732 struct passwd *passwdEnt = getpwuid(getuid());
733 config_home_path_name = passwdEnt->pw_dir;
734 if (config_home_path_name == NULL) return NULL;
735 }
736 config_sub_path_name = "/.config";
737 }
738
739 // maybe replace all this with a single line asprintf()
740 path_len = strlen(config_home_path_name) + strlen(config_sub_path_name)
741 + strlen(config_dir_name) + strlen(config_file_name) + 1;
742 if (path_len < 1) return NULL;
743 config_file_path = malloc(path_len);
744 if (config_file_path == NULL)
745 {
746 error(0,errno,"memory allocation failure");
747 return NULL;
748 }
749 snprintf(config_file_path, path_len, "%s%s%s%s",
750 config_home_path_name, config_sub_path_name,
751 config_dir_name, config_file_name);
752
753 if (open_config_file() == TRUE)
754 {
755 free(config_file_path);
756 return config_file;
757 }
758 else
759 free(config_file_path);
760 return NULL;
761 }
762
763
764
765
766 /**********************************************************************
767 * parse user's menu selection into options and their posibile
768 * arguments, which can then be parsed (processed really)
769 *
770 * menuptr points to the beginning of the menu entry string. This
771 * pointer should initially be set to NULL.
772 * menu_len is the length of the menu entry string
773 * menu_index is the current position of the parser within the string.
774 * This value should initially be set to 0.
775 * optptr is a pointer into which we put the location of option text
776 * to be parsed. This pointer should initially be set to NULL.
777 * optarg is a pointer to a possible argument to the option. This is a
778 * global variable defined by GNU getopt(), so it shouldn't be
779 * declared or passed.
780 * long_options is a pointer to a structure of type option, as defined
781 * by getopt_long()
782 * long_option_index is a pointer to position found in long_options, and
783 * simulates the similar value returned by getopt_long()
784 * error_detected is a pointer to an accumulator used to delay aborting
785 * the program until after ALL input syntax errors are reported.
786 *
787 * RETURN VALUES:
788 * -1 means the menu line string has been completely parsed.
789 * Otherwise, the return value should be the short option character
790 * found, or in the case of a long option found, 0.
791 * This should sound suspiciously similar to the return values issued
792 * by getopt_long().
793 ***********************************************************************/
794 int menu_item_parse(char* menuptr, size_t menu_len, int *menu_index,
795 char** optptr, char* short_options,
796 struct option *long_options, int *long_option_index,
797 int *error_detected)
798 {
799 int ahead_index;
800 char *ahead;
801
802 while ( (*menu_index < menu_len) &&
803 (menuptr[*menu_index] != '#') )
804 {
805 if (menuptr[*menu_index] == '-')
806 {
807 if ( ( (*menu_index+1) >= menu_len) ||
808 (menuptr[*menu_index+1] == '#') ) break;
809 else if (menuptr[*menu_index+1] == '-')
810 {
811 if ( ( (*menu_index+2) >= menu_len) ||
812 (menuptr[*menu_index+2] == '#') ) break;
813 *menu_index = *menu_index +2;
814
815 /**************************************************
816 * We have identified the beginning of what could
817 * be a long option string. We store a pointer to
818 * it in optptr and proceed to:
819 * find its endpoint
820 * terminate it with a null
821 * if it has an argument, store a pointer to
822 * it in optarg and terminate it with a null.
823 * Then we compare the optptr to our list of
824 * valid longoptions and pass the information
825 * to the option parser
826 *************************************************/
827 *optptr = &menuptr[*menu_index]; // ??
828 ahead = *optptr;
829 ahead_index = *menu_index;
830 while ( (ahead_index < menu_len) &&
831 (strchr(" =#",*ahead) == NULL) )
832 {
833 ahead_index++;
834 ahead++;
835 }
836 if (memcmp(ahead,"=",1)==0)
837 {
838 *ahead = '\0';
839 ahead++;
840 optarg = ahead;
841 ahead_index++;
842 while ( (ahead_index < menu_len) &&
843 (strchr(" #",*ahead) == NULL) )
844 {
845 ahead_index++;
846 ahead++;
847 }
848 }
849 if ((*ahead == '#' ) && ((ahead_index+1) < menu_len))
850 ahead[1] = '#';
851 *ahead = '\0';
852 *long_option_index = 0;
853 while ( (long_options[*long_option_index].name != 0) &&
854 (strcmp(long_options[*long_option_index].name, *optptr) != 0) )
855 *long_option_index = *long_option_index + 1;
856 if (long_options[*long_option_index].name == 0)
857 {
858 *error_detected = *error_detected + 1;
859 print_parm_invalid_error(*optptr);
860 }
861 else
862 {
863 *menu_index = ahead_index;
864 return long_options[*long_option_index].val;
865 }
866 }
867 else
868 {
869 *menu_index = *menu_index + 1;
870 /**************************************************
871 * parse a short option from a menu line
872 *************************************************/
873 if ((strchr(short_options, (int) menuptr[*menu_index]) == NULL) ||
874 (menuptr[*menu_index] == ':') )
875 {
876 *error_detected = *error_detected + 1;
877 print_parm_invalid_error(*optptr);
878 }
879 else
880 {
881 *optptr = &menuptr[*menu_index];
882 *long_option_index = -1;
883 if (strchr("lLz", (int) menuptr[*menu_index]) != NULL)
884 {
885 ahead_index = *menu_index+1;
886 while ( (ahead_index < menu_len) &&
887 (memcmp(&menuptr[ahead_index]," ",1)==0) ) ahead_index++;
888 optarg = &menuptr[ahead_index];
889 while ( (ahead_index < menu_len) &&
890 (memcmp(&menuptr[ahead_index]," ",1)) ) ahead_index++;
891 menuptr[ahead_index] = '\0';
892 *menu_index = ahead_index;
893 }
894 return **optptr;
895 }
896
897 }
898 }
899 *menu_index = *menu_index + 1;
900 }
901 return -1;
902 }
903
904
905 /**************************************************
906 * prompt user for menu selection
907 *************************************************/
908 int menu_select( char* menu_list[], int max_menu_items )
909 {
910 int i, j;
911
912 for (i=0; i< max_menu_items; i++)
913 {
914 if (menu_list[i] == NULL) break;
915 if (i==0) printf("\n%s:\n\n", N_("your custom menu options (from your config file)"));
916 printf(" %d: %s\n",i,menu_list[i]);
917 }
918 j = i;
919 if (i == 0)
920 {
921 error(0,0,N_("ALERT: -m (--menu) option specified, but no menu items in config file"));
922 return -1;
923 }
924 printf("\n%s: ",N_("enter your selection, or <return> to continue"));
925 i = getchar() - 48; // effectively converts valid values to integers
926 if ((i < 0) || (i >= j))
927 {
928 error(0,0,N_("menu selection received was out of bounds"));
929 return -1;
930 }
931 printf("\n");
932 return i;
933 }
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
161
162 --version) echo "$0 $scriptversion"; exit $?;;
163
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
171 esac
172 shift
173 done
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 done
189 fi
190
191 if test $# -eq 0; then
192 if test -z "$dir_arg"; then
193 echo "$0: no input file specified." >&2
194 exit 1
195 fi
196 # It's OK to call `install-sh -d' without argument.
197 # This can happen when creating conditional directories.
198 exit 0
199 fi
200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
228 for src
229 do
230 # Protect names starting with `-'.
231 case $src in
232 -*) src=./$src;;
233 esac
234
235 if test -n "$dir_arg"; then
236 dst=$src
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
240 else
241
242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
243 # might cause directories to be created, which would be especially bad
244 # if $src (and thus $dsttmp) contains '*'.
245 if test ! -f "$src" && test ! -d "$src"; then
246 echo "$0: $src does not exist." >&2
247 exit 1
248 fi
249
250 if test -z "$dst_arg"; then
251 echo "$0: no destination specified." >&2
252 exit 1
253 fi
254
255 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260
261 # If destination is a directory, append the input filename; won't work
262 # if double slashes aren't ignored.
263 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
267 fi
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
301 fi
302 fi
303
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 then
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
365 else
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
368 fi
369 trap '' 0;;
370 esac;;
371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
397 shift
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
433 fi
434 fi
435 fi
436
437 if test -n "$dir_arg"; then
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
442 else
443
444 # Make a couple of temp file names in the proper directory.
445 dsttmp=$dstdir/_inst.$$_
446 rmtmp=$dstdir/_rm.$$_
447
448 # Trap to clean up those temp files at exit.
449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
450
451 # Copy the file name to the temp name.
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453
454 # and set any options; do chmod last to preserve setuid bits.
455 #
456 # If any of these fail, we abort the whole thing. If we want to
457 # ignore errors from any of these, just make sure not to ignore
458 # errors from the above "$doit $cpprog $src $dsttmp" command.
459 #
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
511 done
512
513 # Local variables:
514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515 # time-stamp-start: "scriptversion="
516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-time-zone: "UTC"
518 # time-stamp-end: "; # UTC"
519 # 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
1 # libtool (GNU libtool) 2.4.2
2 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 # General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1
73 # automake: $automake_version
74 # autoconf: $autoconf_version
75 #
76 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
79
80 PROGRAM=libtool
81 PACKAGE=libtool
82 VERSION="2.4.2 Debian-2.4.2-1"
83 TIMESTAMP=""
84 package_revision=1.3337
85
86 # Be Bourne compatible
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
88 emulate sh
89 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
91 # is contrary to our usage. Disable this feature.
92 alias -g '${1+"$@"}'='"$@"'
93 setopt NO_GLOB_SUBST
94 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
96 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
119 fi"
120 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
127
128 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129 # is ksh but when the shell is invoked as "sh" and the current value of
130 # the _XPG environment variable is not equal to 1 (one), the special
131 # positional parameter $0, within a function call, is the name of the
132 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
163 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
185 # call:
186 # dirname: Compute the dirname of FILE. If nonempty,
187 # add APPEND to the result, otherwise set result
188 # to NONDIR_REPLACEMENT.
189 # value returned in "$func_dirname_result"
190 # basename: Compute filename of FILE.
191 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
201 else
202 func_dirname_result="$func_dirname_result${2}"
203 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
232
233 # func_normal_abspath PATH
234 # Remove doubled-up and trailing slashes, "." path components,
235 # and cancel out any ".." path components in PATH after making
236 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238 func_normal_abspath ()
239 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
287 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
337 fi
338 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
449
450 # A bug in bash halts the script if the last line of a function
451 # fails when set -e is in force, so we need another command to
452 # work around that:
453 :
454 }
455
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
477 :
478 }
479
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
519 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
576 fi
577
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
618 # Aesthetically quote ARG to be evaled later; same as above,
619 # but do not quote variable references.
620 func_quote_for_expand ()
621 {
622 case $1 in
623 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
626 *)
627 my_arg="$1" ;;
628 esac
629
630 case $my_arg in
631 # Double-quote args containing shell metacharacters to delay
632 # word splitting and command substitution for a subsequent eval.
633 # Many Bourne shells cannot handle close brackets correctly
634 # in scan sets, so we specify it separately.
635 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
637 ;;
638 esac
639
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
646 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
647 # is given, then evaluate it.
648 func_show_eval ()
649 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
656 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
670 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
671 # is given, then evaluate it. Use the saved locale for evaluation.
672 func_show_eval_locale ()
673 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
679 eval "func_echo $func_quote_for_expand_result"
680 }
681
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
689 fi
690 fi
691 }
692
693 # func_tr_sh
694 # Turn $1 into a string suitable for a shell variable name.
695 # Result is stored in $func_tr_sh_result. All characters
696 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
697 # if $1 begins with a digit, a '_' is prepended as well.
698 func_tr_sh ()
699 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
754 func_help ()
755 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
784 # Echo program name prefixed message to standard error and set global
785 # exit_cmd.
786 func_missing_arg ()
787 {
788 $opt_debug
789
790 func_error "missing argument for $1."
791 exit_cmd=exit
792 }
793
794
795 # func_split_short_opt shortopt
796 # Set func_split_short_opt_name and func_split_short_opt_arg shell
797 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
889 # Echo program name prefixed message to standard error, followed by
890 # a configuration failure hint, and exit.
891 func_fatal_configuration ()
892 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
896 }
897
898
899 # func_config
900 # Display the configuration for all the tags in this script.
901 func_config ()
902 {
903 re_begincf='^# ### BEGIN LIBTOOL'
904 re_endcf='^# ### END LIBTOOL'
905
906 # Default configuration.
907 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
908
909 # Now print the configurations for the tags.
910 for tagname in $taglist; do
911 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
912 done
913
914 exit $?
915 }
916
917 # func_features
918 # Display the features supported by this script.
919 func_features ()
920 {
921 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
923 echo "enable shared libraries"
924 else
925 echo "disable shared libraries"
926 fi
927 if test "$build_old_libs" = yes; then
928 echo "enable static libraries"
929 else
930 echo "disable static libraries"
931 fi
932
933 exit $?
934 }
935
936 # func_enable_tag tagname
937 # Verify that TAGNAME is valid, and either flag an error and exit, or
938 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
939 # variable here.
940 func_enable_tag ()
941 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
960 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
976
977 # func_check_version_match
978 # Ensure that we are using m4 macros, and libtool script from the same
979 # release of libtool.
980 func_check_version_match ()
981 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
986 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
987 $progname: definition of this LT_INIT comes from an older release.
988 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
989 $progname: and run autoconf again.
990 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
993 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
994 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
995 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
996 $progname: and run autoconf again.
997 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
1001 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
1002 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
1003 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
1004 $progname: of $PACKAGE $VERSION and run autoconf again.
1005 _LT_EOF
1006 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
1197 fi
1198
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
1219
1220
1221
1222 ## ----------- ##
1223 ## Main. ##
1224 ## ----------- ##
1225
1226 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
1228 # This function is only a basic sanity check; it will hardly flush out
1229 # determined imposters.
1230 func_lalib_p ()
1231 {
1232 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
1235 }
1236
1237 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
1239 # This function implements the same check as func_lalib_p without
1240 # resorting to external programs. To this end, it redirects stdin and
1241 # closes it afterwards, without saving the original file descriptor.
1242 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
1244 func_lalib_unsafe_p ()
1245 {
1246 lalib_p=no
1247 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1248 for lalib_p_l in 1 2 3 4
1249 do
1250 read lalib_p_line
1251 case "$lalib_p_line" in
1252 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
1253 esac
1254 done
1255 exec 0<&5 5<&-
1256 fi
1257 test "$lalib_p" = yes
1258 }
1259
1260 # func_ltwrapper_script_p file
1261 # True iff FILE is a libtool wrapper script
1262 # This function is only a basic sanity check; it will hardly flush out
1263 # determined imposters.
1264 func_ltwrapper_script_p ()
1265 {
1266 func_lalib_p "$1"
1267 }
1268
1269 # func_ltwrapper_executable_p file
1270 # True iff FILE is a libtool wrapper executable
1271 # This function is only a basic sanity check; it will hardly flush out
1272 # determined imposters.
1273 func_ltwrapper_executable_p ()
1274 {
1275 func_ltwrapper_exec_suffix=
1276 case $1 in
1277 *.exe) ;;
1278 *) func_ltwrapper_exec_suffix=.exe ;;
1279 esac
1280 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
1281 }
1282
1283 # func_ltwrapper_scriptname file
1284 # Assumes file is an ltwrapper_executable
1285 # uses $file to determine the appropriate filename for a
1286 # temporary ltwrapper_script.
1287 func_ltwrapper_scriptname ()
1288 {
1289 func_dirname_and_basename "$1" "" "."
1290 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
1292 }
1293
1294 # func_ltwrapper_p file
1295 # True iff FILE is a libtool wrapper script or wrapper executable
1296 # This function is only a basic sanity check; it will hardly flush out
1297 # determined imposters.
1298 func_ltwrapper_p ()
1299 {
1300 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
1301 }
1302
1303
1304 # func_execute_cmds commands fail_cmd
1305 # Execute tilde-delimited COMMANDS.
1306 # If FAIL_CMD is given, eval that upon failure.
1307 # FAIL_CMD may read-access the current command in variable CMD!
1308 func_execute_cmds ()
1309 {
1310 $opt_debug
1311 save_ifs=$IFS; IFS='~'
1312 for cmd in $1; do
1313 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
1315 func_show_eval "$cmd" "${2-:}"
1316 done
1317 IFS=$save_ifs
1318 }
1319
1320
1321 # func_source file
1322 # Source FILE, adding directory component if necessary.
1323 # Note that it is not necessary on cygwin/mingw to append a dot to
1324 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1325 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
1327 func_source ()
1328 {
1329 $opt_debug
1330 case $1 in
1331 */* | *\\*) . "$1" ;;
1332 *) . "./$1" ;;
1333 esac
1334 }
1335
1336
1337 # func_resolve_sysroot PATH
1338 # Replace a leading = in PATH with a sysroot. Store the result into
1339 # func_resolve_sysroot_result
1340 func_resolve_sysroot ()
1341 {
1342 func_resolve_sysroot_result=$1
1343 case $func_resolve_sysroot_result in
1344 =*)
1345 func_stripname '=' '' "$func_resolve_sysroot_result"
1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1347 ;;
1348 esac
1349 }
1350
1351 # func_replace_sysroot PATH
1352 # If PATH begins with the sysroot, replace it with = and
1353 # store the result into func_replace_sysroot_result.
1354 func_replace_sysroot ()
1355 {
1356 case "$lt_sysroot:$1" in
1357 ?*:"$lt_sysroot"*)
1358 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
1360 ;;
1361 *)
1362 # Including no sysroot.
1363 func_replace_sysroot_result=$1
1364 ;;
1365 esac
1366 }
1367
1368 # func_infer_tag arg
1369 # Infer tagged configuration to use if any are available and
1370 # if one wasn't chosen via the "--tag" command line option.
1371 # Only attempt this if the compiler in the base compile
1372 # command doesn't match the default compiler.
1373 # arg is usually of the form 'gcc ...'
1374 func_infer_tag ()
1375 {
1376 $opt_debug
1377 if test -n "$available_tags" && test -z "$tagname"; then
1378 CC_quoted=
1379 for arg in $CC; do
1380 func_append_quoted CC_quoted "$arg"
1381 done
1382 CC_expanded=`func_echo_all $CC`
1383 CC_quoted_expanded=`func_echo_all $CC_quoted`
1384 case $@ in
1385 # Blanks in the command may have been stripped by the calling shell,
1386 # but not from the CC environment variable when configure was run.
1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
1389 # Blanks at the start of $base_compile will cause this to fail
1390 # if we don't check for them as well.
1391 *)
1392 for z in $available_tags; do
1393 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1394 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1396 CC_quoted=
1397 for arg in $CC; do
1398 # Double-quote args containing other shell metacharacters.
1399 func_append_quoted CC_quoted "$arg"
1400 done
1401 CC_expanded=`func_echo_all $CC`
1402 CC_quoted_expanded=`func_echo_all $CC_quoted`
1403 case "$@ " in
1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
1406 # The compiler in the base compile command matches
1407 # the one in the tagged configuration.
1408 # Assume this is the tagged configuration we want.
1409 tagname=$z
1410 break
1411 ;;
1412 esac
1413 fi
1414 done
1415 # If $tagname still isn't set, then no tagged configuration
1416 # was found and let the user know that the "--tag" command
1417 # line option must be used.
1418 if test -z "$tagname"; then
1419 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
1421 # else
1422 # func_verbose "using $tagname tagged configuration"
1423 fi
1424 ;;
1425 esac
1426 fi
1427 }
1428
1429
1430
1431 # func_write_libtool_object output_name pic_name nonpic_name
1432 # Create a libtool object file (analogous to a ".la" file),
1433 # but don't create it if we're doing a dry run.
1434 func_write_libtool_object ()
1435 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
1439 else
1440 write_lobj=none
1441 fi
1442
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
1445 else
1446 write_oldobj=none
1447 fi
1448
1449 $opt_dry_run || {
1450 cat >${write_libobj}T <<EOF
1451 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1453 #
1454 # Please DO NOT delete this file!
1455 # It is necessary for linking the library.
1456
1457 # Name of the PIC object.
1458 pic_object=$write_lobj
1459
1460 # Name of the non-PIC object
1461 non_pic_object=$write_oldobj
1462
1463 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
1465 }
1466 }
1467
1468
1469 ##################################################
1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1471 ##################################################
1472
1473 # func_convert_core_file_wine_to_w32 ARG
1474 # Helper function used by file name conversion functions when $build is *nix,
1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1476 # correctly configured wine environment available, with the winepath program
1477 # in $build's $PATH.
1478 #
1479 # ARG is the $build file name to be converted to w32 format.
1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1481 # be empty on error (or when ARG is empty)
1482 func_convert_core_file_wine_to_w32 ()
1483 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1488 # are forced to check the contents of stdout. On the other hand, if the
1489 # command is not found, the shell will set an exit code of 127 and print
1490 # *an error message* to stdout. So we must check for both error code of
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
1496 else
1497 func_convert_core_file_wine_to_w32_result=
1498 fi
1499 fi
1500 }
1501 # end: func_convert_core_file_wine_to_w32
1502
1503
1504 # func_convert_core_path_wine_to_w32 ARG
1505 # Helper function used by path conversion functions when $build is *nix, and
1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1507 # configured wine environment available, with the winepath program in $build's
1508 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1509 #
1510 # ARG is path to be converted from $build format to win32.
1511 # Result is available in $func_convert_core_path_wine_to_w32_result.
1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1513 # are convertible, then the result may be empty.
1514 func_convert_core_path_wine_to_w32 ()
1515 {
1516 $opt_debug
1517 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
1519 if test -n "$1"; then
1520 oldIFS=$IFS
1521 IFS=:
1522 for func_convert_core_path_wine_to_w32_f in $1; do
1523 IFS=$oldIFS
1524 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1528 else
1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1530 fi
1531 fi
1532 done
1533 IFS=$oldIFS
1534 fi
1535 }
1536 # end: func_convert_core_path_wine_to_w32
1537
1538
1539 # func_cygpath ARGS...
1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1544 # file name or path is assumed to be in w32 format, as previously converted
1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1546 # or path in func_cygpath_result (input file name or path is assumed to be in
1547 # Cygwin format). Returns an empty string on error.
1548 #
1549 # ARGS are passed to cygpath, with the last one being the file name or path to
1550 # be converted.
1551 #
1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1553 # environment variable; do not put it in $PATH.
1554 func_cygpath ()
1555 {
1556 $opt_debug
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1559 if test "$?" -ne 0; then
1560 # on failure, ensure result is empty
1561 func_cygpath_result=
1562 fi
1563 else
1564 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1566 fi
1567 }
1568 #end: func_cygpath
1569
1570
1571 # func_convert_core_msys_to_w32 ARG
1572 # Convert file name or path ARG from MSYS format to w32 format. Return
1573 # result in func_convert_core_msys_to_w32_result.
1574 func_convert_core_msys_to_w32 ()
1575 {
1576 $opt_debug
1577 # awkward: cmd appends spaces to result
1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1580 }
1581 #end: func_convert_core_msys_to_w32
1582
1583
1584 # func_convert_file_check ARG1 ARG2
1585 # Verify that ARG1 (a file name in $build format) was converted to $host
1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1587 # func_to_host_file_result to ARG1).
1588 func_convert_file_check ()
1589 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
1592 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
1594 func_error "Continuing, but uninstalled executables may not work."
1595 # Fallback:
1596 func_to_host_file_result="$1"
1597 fi
1598 }
1599 # end func_convert_file_check
1600
1601
1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1603 # Verify that FROM_PATH (a path in $build format) was converted to $host
1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1605 # func_to_host_file_result to a simplistic fallback value (see below).
1606 func_convert_path_check ()
1607 {
1608 $opt_debug
1609 if test -z "$4" && test -n "$3"; then
1610 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
1612 func_error "Continuing, but uninstalled executables may not work."
1613 # Fallback. This is a deliberately simplistic "conversion" and
1614 # should not be "improved". See libtool.info.
1615 if test "x$1" != "x$2"; then
1616 lt_replace_pathsep_chars="s|$1|$2|g"
1617 func_to_host_path_result=`echo "$3" |
1618 $SED -e "$lt_replace_pathsep_chars"`
1619 else
1620 func_to_host_path_result="$3"
1621 fi
1622 fi
1623 }
1624 # end func_convert_path_check
1625
1626
1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1629 # and appending REPL if ORIG matches BACKPAT.
1630 func_convert_path_front_back_pathsep ()
1631 {
1632 $opt_debug
1633 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1635 ;;
1636 esac
1637 case $4 in
1638 $2 ) func_append func_to_host_path_result "$3"
1639 ;;
1640 esac
1641 }
1642 # end func_convert_path_front_back_pathsep
1643
1644
1645 ##################################################
1646 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1647 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
1649 #
1650 # In each case, ARG is the path to be converted from $build to $host format.
1651 # Result will be available in $func_to_host_file_result.
1652
1653
1654 # func_to_host_file ARG
1655 # Converts the file name ARG from $build format to $host format. Return result
1656 # in func_to_host_file_result.
1657 func_to_host_file ()
1658 {
1659 $opt_debug
1660 $to_host_file_cmd "$1"
1661 }
1662 # end func_to_host_file
1663
1664
1665 # func_to_tool_file ARG LAZY
1666 # converts the file name ARG from $build format to toolchain format. Return
1667 # result in func_to_tool_file_result. If the conversion in use is listed
1668 # in (the comma separated) LAZY, no conversion takes place.
1669 func_to_tool_file ()
1670 {
1671 $opt_debug
1672 case ,$2, in
1673 *,"$to_tool_file_cmd",*)
1674 func_to_tool_file_result=$1
1675 ;;
1676 *)
1677 $to_tool_file_cmd "$1"
1678 func_to_tool_file_result=$func_to_host_file_result
1679 ;;
1680 esac
1681 }
1682 # end func_to_tool_file
1683
1684
1685 # func_convert_file_noop ARG
1686 # Copy ARG to func_to_host_file_result.
1687 func_convert_file_noop ()
1688 {
1689 func_to_host_file_result="$1"
1690 }
1691 # end func_convert_file_noop
1692
1693
1694 # func_convert_file_msys_to_w32 ARG
1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1696 # conversion to w32 is not available inside the cwrapper. Returns result in
1697 # func_to_host_file_result.
1698 func_convert_file_msys_to_w32 ()
1699 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
1702 if test -n "$1"; then
1703 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1705 fi
1706 func_convert_file_check "$1" "$func_to_host_file_result"
1707 }
1708 # end func_convert_file_msys_to_w32
1709
1710
1711 # func_convert_file_cygwin_to_w32 ARG
1712 # Convert file name ARG from Cygwin to w32 format. Returns result in
1713 # func_to_host_file_result.
1714 func_convert_file_cygwin_to_w32 ()
1715 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
1718 if test -n "$1"; then
1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1720 # LT_CYGPATH in this case.
1721 func_to_host_file_result=`cygpath -m "$1"`
1722 fi
1723 func_convert_file_check "$1" "$func_to_host_file_result"
1724 }
1725 # end func_convert_file_cygwin_to_w32
1726
1727
1728 # func_convert_file_nix_to_w32 ARG
1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1730 # and a working winepath. Returns result in func_to_host_file_result.
1731 func_convert_file_nix_to_w32 ()
1732 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
1735 if test -n "$1"; then
1736 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1738 fi
1739 func_convert_file_check "$1" "$func_to_host_file_result"
1740 }
1741 # end func_convert_file_nix_to_w32
1742
1743
1744 # func_convert_file_msys_to_cygwin ARG
1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1746 # Returns result in func_to_host_file_result.
1747 func_convert_file_msys_to_cygwin ()
1748 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
1751 if test -n "$1"; then
1752 func_convert_core_msys_to_w32 "$1"
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
1755 fi
1756 func_convert_file_check "$1" "$func_to_host_file_result"
1757 }
1758 # end func_convert_file_msys_to_cygwin
1759
1760
1761 # func_convert_file_nix_to_cygwin ARG
1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1764 # in func_to_host_file_result.
1765 func_convert_file_nix_to_cygwin ()
1766 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
1769 if test -n "$1"; then
1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1771 func_convert_core_file_wine_to_w32 "$1"
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
1774 fi
1775 func_convert_file_check "$1" "$func_to_host_file_result"
1776 }
1777 # end func_convert_file_nix_to_cygwin
1778
1779
1780 #############################################
1781 # $build to $host PATH CONVERSION FUNCTIONS #
1782 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
1784 #
1785 # In each case, ARG is the path to be converted from $build to $host format.
1786 # The result will be available in $func_to_host_path_result.
1787 #
1788 # Path separators are also converted from $build format to $host format. If
1789 # ARG begins or ends with a path separator character, it is preserved (but
1790 # converted to $host format) on output.
1791 #
1792 # All path conversion functions are named using the following convention:
1793 # file name conversion function : func_convert_file_X_to_Y ()
1794 # path conversion function : func_convert_path_X_to_Y ()
1795 # where, for any given $build/$host combination the 'X_to_Y' value is the
1796 # same. If conversion functions are added for new $build/$host combinations,
1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1798 # will break.
1799
1800
1801 # func_init_to_host_path_cmd
1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1803 # appropriate value, based on the value of $to_host_file_cmd.
1804 to_host_path_cmd=
1805 func_init_to_host_path_cmd ()
1806 {
1807 $opt_debug
1808 if test -z "$to_host_path_cmd"; then
1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1811 fi
1812 }
1813
1814
1815 # func_to_host_path ARG
1816 # Converts the path ARG from $build format to $host format. Return result
1817 # in func_to_host_path_result.
1818 func_to_host_path ()
1819 {
1820 $opt_debug
1821 func_init_to_host_path_cmd
1822 $to_host_path_cmd "$1"
1823 }
1824 # end func_to_host_path
1825
1826
1827 # func_convert_path_noop ARG
1828 # Copy ARG to func_to_host_path_result.
1829 func_convert_path_noop ()
1830 {
1831 func_to_host_path_result="$1"
1832 }
1833 # end func_convert_path_noop
1834
1835
1836 # func_convert_path_msys_to_w32 ARG
1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1838 # conversion to w32 is not available inside the cwrapper. Returns result in
1839 # func_to_host_path_result.
1840 func_convert_path_msys_to_w32 ()
1841 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
1844 if test -n "$1"; then
1845 # Remove leading and trailing path separator characters from ARG. MSYS
1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1847 # and winepath ignores them completely.
1848 func_stripname : : "$1"
1849 func_to_host_path_tmp1=$func_stripname_result
1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1852 func_convert_path_check : ";" \
1853 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1855 fi
1856 }
1857 # end func_convert_path_msys_to_w32
1858
1859
1860 # func_convert_path_cygwin_to_w32 ARG
1861 # Convert path ARG from Cygwin to w32 format. Returns result in
1862 # func_to_host_file_result.
1863 func_convert_path_cygwin_to_w32 ()
1864 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
1867 if test -n "$1"; then
1868 # See func_convert_path_msys_to_w32:
1869 func_stripname : : "$1"
1870 func_to_host_path_tmp1=$func_stripname_result
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1872 func_convert_path_check : ";" \
1873 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1875 fi
1876 }
1877 # end func_convert_path_cygwin_to_w32
1878
1879
1880 # func_convert_path_nix_to_w32 ARG
1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1882 # a working winepath. Returns result in func_to_host_file_result.
1883 func_convert_path_nix_to_w32 ()
1884 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
1887 if test -n "$1"; then
1888 # See func_convert_path_msys_to_w32:
1889 func_stripname : : "$1"
1890 func_to_host_path_tmp1=$func_stripname_result
1891 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1893 func_convert_path_check : ";" \
1894 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1896 fi
1897 }
1898 # end func_convert_path_nix_to_w32
1899
1900
1901 # func_convert_path_msys_to_cygwin ARG
1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1903 # Returns result in func_to_host_file_result.
1904 func_convert_path_msys_to_cygwin ()
1905 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
1908 if test -n "$1"; then
1909 # See func_convert_path_msys_to_w32:
1910 func_stripname : : "$1"
1911 func_to_host_path_tmp1=$func_stripname_result
1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
1915 func_convert_path_check : : \
1916 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1918 fi
1919 }
1920 # end func_convert_path_msys_to_cygwin
1921
1922
1923 # func_convert_path_nix_to_cygwin ARG
1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1926 # func_to_host_file_result.
1927 func_convert_path_nix_to_cygwin ()
1928 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
1931 if test -n "$1"; then
1932 # Remove leading and trailing path separator characters from
1933 # ARG. msys behavior is inconsistent here, cygpath turns them
1934 # into '.;' and ';.', and winepath ignores them completely.
1935 func_stripname : : "$1"
1936 func_to_host_path_tmp1=$func_stripname_result
1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
1940 func_convert_path_check : : \
1941 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1943 fi
1944 }
1945 # end func_convert_path_nix_to_cygwin
1946
1947
1948 # func_mode_compile arg...
1949 func_mode_compile ()
1950 {
1951 $opt_debug
1952 # Get the compilation command and the source file.
1953 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1955 suppress_opt=yes
1956 suppress_output=
1957 arg_mode=normal
1958 libobj=
1959 later=
1960 pie_flag=
1961
1962 for arg
1963 do
1964 case $arg_mode in
1965 arg )
1966 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
1968 arg_mode=normal
1969 ;;
1970
1971 target )
1972 libobj="$arg"
1973 arg_mode=normal
1974 continue
1975 ;;
1976
1977 normal )
1978 # Accept any command-line options.
1979 case $arg in
1980 -o)
1981 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
1983 arg_mode=target
1984 continue
1985 ;;
1986
1987 -pie | -fpie | -fPIE)
1988 func_append pie_flag " $arg"
1989 continue
1990 ;;
1991
1992 -shared | -static | -prefer-pic | -prefer-non-pic)
1993 func_append later " $arg"
1994 continue
1995 ;;
1996
1997 -no-suppress)
1998 suppress_opt=no
1999 continue
2000 ;;
2001
2002 -Xcompiler)
2003 arg_mode=arg # the next one goes into the "base_compile" arg list
2004 continue # The current "srcfile" will either be retained or
2005 ;; # replaced later. I would guess that would be a bug.
2006
2007 -Wc,*)
2008 func_stripname '-Wc,' '' "$arg"
2009 args=$func_stripname_result
2010 lastarg=
2011 save_ifs="$IFS"; IFS=','
2012 for arg in $args; do
2013 IFS="$save_ifs"
2014 func_append_quoted lastarg "$arg"
2015 done
2016 IFS="$save_ifs"
2017 func_stripname ' ' '' "$lastarg"
2018 lastarg=$func_stripname_result
2019
2020 # Add the arguments to base_compile.
2021 func_append base_compile " $lastarg"
2022 continue
2023 ;;
2024
2025 *)
2026 # Accept the current argument as the source file.
2027 # The previous "srcfile" becomes the current argument.
2028 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
2031 ;;
2032 esac # case $arg
2033 ;;
2034 esac # case $arg_mode
2035
2036 # Aesthetically quote the previous argument.
2037 func_append_quoted base_compile "$lastarg"
2038 done # for arg
2039
2040 case $arg_mode in
2041 arg)
2042 func_fatal_error "you must specify an argument for -Xcompile"
2043 ;;
2044 target)
2045 func_fatal_error "you must specify a target with \`-o'"
2046 ;;
2047 *)
2048 # Get the name of the library object.
2049 test -z "$libobj" && {
2050 func_basename "$srcfile"
2051 libobj="$func_basename_result"
2052 }
2053 ;;
2054 esac
2055
2056 # Recognize several different file suffixes.
2057 # If the user specifies -o file.o, it is replaced with file.lo
2058 case $libobj in
2059 *.[cCFSifmso] | \
2060 *.ada | *.adb | *.ads | *.asm | \
2061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
2063 func_xform "$libobj"
2064 libobj=$func_xform_result
2065 ;;
2066 esac
2067
2068 case $libobj in
2069 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
2070 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
2072 ;;
2073 esac
2074
2075 func_infer_tag $base_compile
2076
2077 for arg in $later; do
2078 case $arg in
2079 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
2082 build_old_libs=no
2083 continue
2084 ;;
2085
2086 -static)
2087 build_libtool_libs=no
2088 build_old_libs=yes
2089 continue
2090 ;;
2091
2092 -prefer-pic)
2093 pic_mode=yes
2094 continue
2095 ;;
2096
2097 -prefer-non-pic)
2098 pic_mode=no
2099 continue
2100 ;;
2101 esac
2102 done
2103
2104 func_quote_for_eval "$libobj"
2105 test "X$libobj" != "X$func_quote_for_eval_result" \
2106 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
2108 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
2112
2113 test -z "$base_compile" && \
2114 func_fatal_help "you must specify a compilation command"
2115
2116 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
2118 removelist="$obj $lobj $libobj ${libobj}T"
2119 else
2120 removelist="$lobj $libobj ${libobj}T"
2121 fi
2122
2123 # On Cygwin there's no "real" PIC flag so we must build both object types
2124 case $host_os in
2125 cygwin* | mingw* | pw32* | os2* | cegcc*)
2126 pic_mode=default
2127 ;;
2128 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
2130 # non-PIC code in shared libraries is not supported
2131 pic_mode=default
2132 fi
2133
2134 # Calculate the filename of the output object if compiler does
2135 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
2139 else
2140 output_obj=
2141 need_locks=no
2142 lockfile=
2143 fi
2144
2145 # Lock this critical section if it is needed
2146 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
2148 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2149 func_echo "Waiting for $lockfile to be removed"
2150 sleep 2
2151 done
2152 elif test "$need_locks" = warn; then
2153 if test -f "$lockfile"; then
2154 $ECHO "\
2155 *** ERROR, $lockfile exists and contains:
2156 `cat $lockfile 2>/dev/null`
2157
2158 This indicates that another process is trying to use the same
2159 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
2161 repeat this compilation, it may succeed, by chance, but you had better
2162 avoid parallel builds (make -j) in this platform, or get a better
2163 compiler."
2164
2165 $opt_dry_run || $RM $removelist
2166 exit $EXIT_FAILURE
2167 fi
2168 func_append removelist " $output_obj"
2169 $ECHO "$srcfile" > "$lockfile"
2170 fi
2171
2172 $opt_dry_run || $RM $removelist
2173 func_append removelist " $lockfile"
2174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
2175
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
2178 func_quote_for_eval "$srcfile"
2179 qsrcfile=$func_quote_for_eval_result
2180
2181 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
2183 # Without this assignment, base_compile gets emptied.
2184 fbsd_hideous_sh_bug=$base_compile
2185
2186 if test "$pic_mode" != no; then
2187 command="$base_compile $qsrcfile $pic_flag"
2188 else
2189 # Don't build PIC code
2190 command="$base_compile $qsrcfile"
2191 fi
2192
2193 func_mkdir_p "$xdir$objdir"
2194
2195 if test -z "$output_obj"; then
2196 # Place PIC objects in $objdir
2197 func_append command " -o $lobj"
2198 fi
2199
2200 func_show_eval_locale "$command" \
2201 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2202
2203 if test "$need_locks" = warn &&
2204 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2205 $ECHO "\
2206 *** ERROR, $lockfile contains:
2207 `cat $lockfile 2>/dev/null`
2208
2209 but it should contain:
2210 $srcfile
2211
2212 This indicates that another process is trying to use the same
2213 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
2215 repeat this compilation, it may succeed, by chance, but you had better
2216 avoid parallel builds (make -j) in this platform, or get a better
2217 compiler."
2218
2219 $opt_dry_run || $RM $removelist
2220 exit $EXIT_FAILURE
2221 fi
2222
2223 # Just move the object if needed, then go on to compile the next one
2224 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2225 func_show_eval '$MV "$output_obj" "$lobj"' \
2226 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2227 fi
2228
2229 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
2231 suppress_output=' >/dev/null 2>&1'
2232 fi
2233 fi
2234
2235 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
2238 # Don't build PIC code
2239 command="$base_compile $qsrcfile$pie_flag"
2240 else
2241 command="$base_compile $qsrcfile $pic_flag"
2242 fi
2243 if test "$compiler_c_o" = yes; then
2244 func_append command " -o $obj"
2245 fi
2246
2247 # Suppress compiler output if we already did a PIC compilation.
2248 func_append command "$suppress_output"
2249 func_show_eval_locale "$command" \
2250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
2251
2252 if test "$need_locks" = warn &&
2253 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2254 $ECHO "\
2255 *** ERROR, $lockfile contains:
2256 `cat $lockfile 2>/dev/null`
2257
2258 but it should contain:
2259 $srcfile
2260
2261 This indicates that another process is trying to use the same
2262 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
2264 repeat this compilation, it may succeed, by chance, but you had better
2265 avoid parallel builds (make -j) in this platform, or get a better
2266 compiler."
2267
2268 $opt_dry_run || $RM $removelist
2269 exit $EXIT_FAILURE
2270 fi
2271
2272 # Just move the object if needed
2273 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2274 func_show_eval '$MV "$output_obj" "$obj"' \
2275 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2276 fi
2277 fi
2278
2279 $opt_dry_run || {
2280 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
2281
2282 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
2284 removelist=$lockfile
2285 $RM "$lockfile"
2286 fi
2287 }
2288
2289 exit $EXIT_SUCCESS
2290 }
2291
2292 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
2294 }
2295
2296 func_mode_help ()
2297 {
2298 # We need to display help for each of the modes.
2299 case $opt_mode in
2300 "")
2301 # Generic help is extracted from the usage comments
2302 # at the start of this file.
2303 func_help
2304 ;;
2305
2306 clean)
2307 $ECHO \
2308 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2309
2310 Remove files from the build directory.
2311
2312 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2314 to RM.
2315
2316 If FILE is a libtool library, object or program, all the files associated
2317 with it are deleted. Otherwise, only FILE itself is deleted using RM."
2318 ;;
2319
2320 compile)
2321 $ECHO \
2322 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2323
2324 Compile a source file into a libtool library object.
2325
2326 This mode accepts the following additional options:
2327
2328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2329 -no-suppress do not suppress compiler output for multiple passes
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
2335
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2337 from the given SOURCEFILE.
2338
2339 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
2342 ;;
2343
2344 execute)
2345 $ECHO \
2346 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2347
2348 Automatically set library path, then run a program.
2349
2350 This mode accepts the following additional options:
2351
2352 -dlopen FILE add the directory containing FILE to the library path
2353
2354 This mode sets the library path environment variable according to \`-dlopen'
2355 flags.
2356
2357 If any of the ARGS are libtool executable wrappers, then they are translated
2358 into their corresponding uninstalled binary, and any of their required library
2359 directories are added to the library path.
2360
2361 Then, COMMAND is executed, with ARGS as arguments."
2362 ;;
2363
2364 finish)
2365 $ECHO \
2366 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2367
2368 Complete the installation of libtool libraries.
2369
2370 Each LIBDIR is a directory that contains libtool libraries.
2371
2372 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
2374 ;;
2375
2376 install)
2377 $ECHO \
2378 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2379
2380 Install executables or libraries.
2381
2382 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
2384
2385 The following components of INSTALL-COMMAND are treated specially:
2386
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2388
2389 The rest of the components are interpreted as arguments to that command (only
2390 BSD-compatible install options are recognized)."
2391 ;;
2392
2393 link)
2394 $ECHO \
2395 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2396
2397 Link object files or libraries together to form another library, or to
2398 create an executable program.
2399
2400 LINK-COMMAND is a command using the C compiler that you would use to create
2401 a program from several object files.
2402
2403 The following components of LINK-COMMAND are treated specially:
2404
2405 -all-static do not do any dynamic linking at all
2406 -avoid-version do not add a version suffix if possible
2407 -bindir BINDIR specify path to binaries directory (for systems where
2408 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2411 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2412 -export-symbols SYMFILE
2413 try to export only the symbols listed in SYMFILE
2414 -export-symbols-regex REGEX
2415 try to export only the symbols matching REGEX
2416 -LLIBDIR search LIBDIR for required installed libraries
2417 -lNAME OUTPUT-FILE requires the installed library libNAME
2418 -module build a library that can dlopened
2419 -no-fast-install disable the fast-install mode
2420 -no-install link a not-installable executable
2421 -no-undefined declare that a library does not refer to external symbols
2422 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
2424 -precious-files-regex REGEX
2425 don't remove output files matching REGEX
2426 -release RELEASE specify package release information
2427 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2428 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2429 -shared only do dynamic linking of libtool libraries
2430 -shrext SUFFIX override the standard shared library file extension
2431 -static do not do any dynamic linking of uninstalled libtool libraries
2432 -static-libtool-libs
2433 do not do any dynamic linking of libtool libraries
2434 -version-info CURRENT[:REVISION[:AGE]]
2435 specify library version info [each variable defaults to 0]
2436 -weak LIBNAME declare that the target provides the LIBNAME interface
2437 -Wc,FLAG
2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2439 -Wl,FLAG
2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2442
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
2446 treated as uninstalled libtool libraries, other files are standard or library
2447 object files.
2448
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2451 required, except when creating a convenience library.
2452
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2457 is created, otherwise an executable program is created."
2458 ;;
2459
2460 uninstall)
2461 $ECHO \
2462 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2463
2464 Remove libraries from an installation directory.
2465
2466 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2468 to RM.
2469
2470 If FILE is a libtool library, all the files associated with it are deleted.
2471 Otherwise, only FILE itself is deleted using RM."
2472 ;;
2473
2474 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
2476 ;;
2477 esac
2478
2479 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
2481 }
2482
2483 # Now that we've collected a possible --mode arg, show help if necessary
2484 if $opt_help; then
2485 if test "$opt_help" = :; then
2486 func_mode_help
2487 else
2488 {
2489 func_help noexit
2490 for opt_mode in compile link execute install finish uninstall clean; do
2491 func_mode_help
2492 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2494 {
2495 func_help noexit
2496 for opt_mode in compile link execute install finish uninstall clean; do
2497 echo
2498 func_mode_help
2499 done
2500 } |
2501 sed '1d
2502 /^When reporting/,/^Report/{
2503 H
2504 d
2505 }
2506 $x
2507 /information about other modes/d
2508 /more detailed .*MODE/d
2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2510 fi
2511 exit $?
2512 fi
2513
2514
2515 # func_mode_execute arg...
2516 func_mode_execute ()
2517 {
2518 $opt_debug
2519 # The first argument is the command name.
2520 cmd="$nonopt"
2521 test -z "$cmd" && \
2522 func_fatal_help "you must specify a COMMAND"
2523
2524 # Handle -dlopen flags immediately.
2525 for file in $opt_dlopen; do
2526 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
2528
2529 dir=
2530 case $file in
2531 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
2535 # Check to see that this really is a libtool archive.
2536 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
2538
2539 # Read the libtool library.
2540 dlname=
2541 library_names=
2542 func_source "$file"
2543
2544 # Skip this library if it cannot be dlopened.
2545 if test -z "$dlname"; then
2546 # Warn if it was a shared library.
2547 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
2549 continue
2550 fi
2551
2552 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
2554
2555 if test -f "$dir/$objdir/$dlname"; then
2556 func_append dir "/$objdir"
2557 else
2558 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
2560 fi
2561 fi
2562 ;;
2563
2564 *.lo)
2565 # Just add the directory containing the .lo file.
2566 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
2568 ;;
2569
2570 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2572 continue
2573 ;;
2574 esac
2575
2576 # Get the absolute pathname.
2577 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
2579
2580 # Now add the directory to shlibpath_var.
2581 if eval "test -z \"\$$shlibpath_var\""; then
2582 eval "$shlibpath_var=\"\$dir\""
2583 else
2584 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
2585 fi
2586 done
2587
2588 # This variable tells wrapper scripts just to set shlibpath_var
2589 # rather than running their programs.
2590 libtool_execute_magic="$magic"
2591
2592 # Check if any of the arguments is a wrapper script.
2593 args=
2594 for file
2595 do
2596 case $file in
2597 -* | *.la | *.lo ) ;;
2598 *)
2599 # Do a test to see if this is really a libtool program.
2600 if func_ltwrapper_script_p "$file"; then
2601 func_source "$file"
2602 # Transform arg to wrapped name.
2603 file="$progdir/$program"
2604 elif func_ltwrapper_executable_p "$file"; then
2605 func_ltwrapper_scriptname "$file"
2606 func_source "$func_ltwrapper_scriptname_result"
2607 # Transform arg to wrapped name.
2608 file="$progdir/$program"
2609 fi
2610 ;;
2611 esac
2612 # Quote arguments (to preserve shell metacharacters).
2613 func_append_quoted args "$file"
2614 done
2615
2616 if test "X$opt_dry_run" = Xfalse; then
2617 if test -n "$shlibpath_var"; then
2618 # Export the shlibpath_var.
2619 eval "export $shlibpath_var"
2620 fi
2621
2622 # Restore saved environment variables
2623 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
2624 do
2625 eval "if test \"\${save_$lt_var+set}\" = set; then
2626 $lt_var=\$save_$lt_var; export $lt_var
2627 else
2628 $lt_unset $lt_var
2629 fi"
2630 done
2631
2632 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
2642 fi
2643 }
2644
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
2646
2647
2648 # func_mode_finish arg...
2649 func_mode_finish ()
2650 {
2651 $opt_debug
2652 libs=
2653 libdirs=
2654 admincmds=
2655
2656 for opt in "$nonopt" ${1+"$@"}
2657 do
2658 if test -d "$opt"; then
2659 func_append libdirs " $opt"
2660
2661 elif test -f "$opt"; then
2662 if func_lalib_unsafe_p "$opt"; then
2663 func_append libs " $opt"
2664 else
2665 func_warning "\`$opt' is not a valid libtool archive"
2666 fi
2667
2668 else
2669 func_fatal_error "invalid argument \`$opt'"
2670 fi
2671 done
2672
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2677 else
2678 sysroot_cmd=
2679 fi
2680
2681 # Remove sysroot references
2682 if $opt_dry_run; then
2683 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2685 done
2686 else
2687 tmpdir=`func_mktempdir`
2688 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2692 done
2693 ${RM}r "$tmpdir"
2694 fi
2695 fi
2696
2697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2698 for libdir in $libdirs; do
2699 if test -n "$finish_cmds"; then
2700 # Do each command in the finish commands.
2701 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
2702 '"$cmd"'"'
2703 fi
2704 if test -n "$finish_eval"; then
2705 # Do the single finish_eval.
2706 eval cmds=\"$finish_eval\"
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
2708 $cmds"
2709 fi
2710 done
2711 fi
2712
2713 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
2715
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2718 echo "Libraries have been installed in:"
2719 for libdir in $libdirs; do
2720 $ECHO " $libdir"
2721 done
2722 echo
2723 echo "If you ever happen to want to link against installed libraries"
2724 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2726 echo "flag during linking and do at least one of the following:"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2729 echo " during execution"
2730 fi
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2733 echo " during linking"
2734 fi
2735 if test -n "$hardcode_libdir_flag_spec"; then
2736 libdir=LIBDIR
2737 eval flag=\"$hardcode_libdir_flag_spec\"
2738
2739 $ECHO " - use the \`$flag' linker flag"
2740 fi
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2743 fi
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2746 fi
2747 echo
2748
2749 echo "See any operating system documentation about shared libraries for"
2750 case $host in
2751 solaris2.[6789]|solaris2.1[0-9])
2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2753 echo "pages."
2754 ;;
2755 *)
2756 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2757 ;;
2758 esac
2759 echo "----------------------------------------------------------------------"
2760 fi
2761 exit $EXIT_SUCCESS
2762 }
2763
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
2765
2766
2767 # func_mode_install arg...
2768 func_mode_install ()
2769 {
2770 $opt_debug
2771 # There may be an optional sh(1) argument at the beginning of
2772 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
2774 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
2776 # Aesthetically quote it.
2777 func_quote_for_eval "$nonopt"
2778 install_prog="$func_quote_for_eval_result "
2779 arg=$1
2780 shift
2781 else
2782 install_prog=
2783 arg=$nonopt
2784 fi
2785
2786 # The real first argument should be the name of the installation program.
2787 # Aesthetically quote it.
2788 func_quote_for_eval "$arg"
2789 func_append install_prog "$func_quote_for_eval_result"
2790 install_shared_prog=$install_prog
2791 case " $install_prog " in
2792 *[\\\ /]cp\ *) install_cp=: ;;
2793 *) install_cp=false ;;
2794 esac
2795
2796 # We need to accept at least all the BSD install flags.
2797 dest=
2798 files=
2799 opts=
2800 prev=
2801 install_type=
2802 isdir=no
2803 stripme=
2804 no_mode=:
2805 for arg
2806 do
2807 arg2=
2808 if test -n "$dest"; then
2809 func_append files " $dest"
2810 dest=$arg
2811 continue
2812 fi
2813
2814 case $arg in
2815 -d) isdir=yes ;;
2816 -f)
2817 if $install_cp; then :; else
2818 prev=$arg
2819 fi
2820 ;;
2821 -g | -m | -o)
2822 prev=$arg
2823 ;;
2824 -s)
2825 stripme=" -s"
2826 continue
2827 ;;
2828 -*)
2829 ;;
2830 *)
2831 # If the previous option needed an argument, then skip it.
2832 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2834 arg2=$install_override_mode
2835 no_mode=false
2836 fi
2837 prev=
2838 else
2839 dest=$arg
2840 continue
2841 fi
2842 ;;
2843 esac
2844
2845 # Aesthetically quote the argument.
2846 func_quote_for_eval "$arg"
2847 func_append install_prog " $func_quote_for_eval_result"
2848 if test -n "$arg2"; then
2849 func_quote_for_eval "$arg2"
2850 fi
2851 func_append install_shared_prog " $func_quote_for_eval_result"
2852 done
2853
2854 test -z "$install_prog" && \
2855 func_fatal_help "you must specify an install program"
2856
2857 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
2859
2860 if test -n "$install_override_mode" && $no_mode; then
2861 if $install_cp; then :; else
2862 func_quote_for_eval "$install_override_mode"
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
2864 fi
2865 fi
2866
2867 if test -z "$files"; then
2868 if test -z "$dest"; then
2869 func_fatal_help "no file or destination specified"
2870 else
2871 func_fatal_help "you must specify a destination"
2872 fi
2873 fi
2874
2875 # Strip any trailing slash from the destination.
2876 func_stripname '' '/' "$dest"
2877 dest=$func_stripname_result
2878
2879 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
2883 destname=
2884 else
2885 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
2888
2889 # Not a directory, so check to see that there is only one file specified.
2890 set dummy $files; shift
2891 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
2893 fi
2894 case $destdir in
2895 [\\/]* | [A-Za-z]:[\\/]*) ;;
2896 *)
2897 for file in $files; do
2898 case $file in
2899 *.lo) ;;
2900 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
2902 ;;
2903 esac
2904 done
2905 ;;
2906 esac
2907
2908 # This variable tells wrapper scripts just to set variables rather
2909 # than running their programs.
2910 libtool_install_magic="$magic"
2911
2912 staticlibs=
2913 future_libdirs=
2914 current_libdirs=
2915 for file in $files; do
2916
2917 # Do each installation.
2918 case $file in
2919 *.$libext)
2920 # Do the static libraries later.
2921 func_append staticlibs " $file"
2922 ;;
2923
2924 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
2928 # Check to see that this really is a libtool archive.
2929 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
2931
2932 library_names=
2933 old_library=
2934 relink_command=
2935 func_source "$file"
2936
2937 # Add the libdir to current_libdirs if it is the destination.
2938 if test "X$destdir" = "X$libdir"; then
2939 case "$current_libdirs " in
2940 *" $libdir "*) ;;
2941 *) func_append current_libdirs " $libdir" ;;
2942 esac
2943 else
2944 # Note the libdir as a future libdir.
2945 case "$future_libdirs " in
2946 *" $libdir "*) ;;
2947 *) func_append future_libdirs " $libdir" ;;
2948 esac
2949 fi
2950
2951 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
2953 func_append dir "$objdir"
2954
2955 if test -n "$relink_command"; then
2956 # Determine the prefix the user has applied to our future dir.
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2958
2959 # Don't allow the user to place us outside of our expected
2960 # location b/c this prevents finding dependent libraries that
2961 # are installed to the same prefix.
2962 # At present, this check doesn't affect windows .dll's that
2963 # are installed into $libdir/../bin (currently, that works fine)
2964 # but it's something to keep an eye on.
2965 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2967
2968 if test -n "$inst_prefix_dir"; then
2969 # Stick the inst_prefix_dir data into the link command.
2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2971 else
2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
2973 fi
2974
2975 func_warning "relinking \`$file'"
2976 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2978 fi
2979
2980 # See the names of the shared library.
2981 set dummy $library_names; shift
2982 if test -n "$1"; then
2983 realname="$1"
2984 shift
2985
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
2988
2989 # Install the shared library and build the symlinks.
2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
2991 'exit $?'
2992 tstripme="$stripme"
2993 case $host_os in
2994 cygwin* | mingw* | pw32* | cegcc*)
2995 case $realname in
2996 *.dll.a)
2997 tstripme=""
2998 ;;
2999 esac
3000 ;;
3001 esac
3002 if test -n "$tstripme" && test -n "$striplib"; then
3003 func_show_eval "$striplib $destdir/$realname" 'exit $?'
3004 fi
3005
3006 if test "$#" -gt 0; then
3007 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
3009 # the symlink we replace! Solaris /bin/ln does not understand -f,
3010 # so we also need to try rm && ln -s.
3011 for linkname
3012 do
3013 test "$linkname" != "$realname" \
3014 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
3015 done
3016 fi
3017
3018 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
3020 func_execute_cmds "$postinstall_cmds" 'exit $?'
3021 fi
3022
3023 # Install the pseudo-library for information purposes.
3024 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
3027 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
3028
3029 # Maybe install the static library, too.
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
3031 ;;
3032
3033 *.lo)
3034 # Install (i.e. copy) a libtool object.
3035
3036 # Figure out destination file name, if it wasn't already specified.
3037 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
3039 else
3040 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
3043 fi
3044
3045 # Deduce the name of the destination old-style object file.
3046 case $destfile in
3047 *.lo)
3048 func_lo2o "$destfile"
3049 staticdest=$func_lo2o_result
3050 ;;
3051 *.$objext)
3052 staticdest="$destfile"
3053 destfile=
3054 ;;
3055 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
3057 ;;
3058 esac
3059
3060 # Install the libtool object if requested.
3061 test -n "$destfile" && \
3062 func_show_eval "$install_prog $file $destfile" 'exit $?'
3063
3064 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
3066 # Deduce the name of the old-style object file.
3067 func_lo2o "$file"
3068 staticobj=$func_lo2o_result
3069 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
3070 fi
3071 exit $EXIT_SUCCESS
3072 ;;
3073
3074 *)
3075 # Figure out destination file name, if it wasn't already specified.
3076 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
3078 else
3079 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
3082 fi
3083
3084 # If the file is missing, and there is a .exe on the end, strip it
3085 # because it is most likely a libtool script we actually want to
3086 # install
3087 stripped_ext=""
3088 case $file in
3089 *.exe)
3090 if test ! -f "$file"; then
3091 func_stripname '' '.exe' "$file"
3092 file=$func_stripname_result
3093 stripped_ext=".exe"
3094 fi
3095 ;;
3096 esac
3097
3098 # Do a test to see if this is really a libtool program.
3099 case $host in
3100 *cygwin* | *mingw*)
3101 if func_ltwrapper_executable_p "$file"; then
3102 func_ltwrapper_scriptname "$file"
3103 wrapper=$func_ltwrapper_scriptname_result
3104 else
3105 func_stripname '' '.exe' "$file"
3106 wrapper=$func_stripname_result
3107 fi
3108 ;;
3109 *)
3110 wrapper=$file
3111 ;;
3112 esac
3113 if func_ltwrapper_script_p "$wrapper"; then
3114 notinst_deplibs=
3115 relink_command=
3116
3117 func_source "$wrapper"
3118
3119 # Check the variables that should have been set.
3120 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
3124 for lib in $notinst_deplibs; do
3125 # Check to see that each library is installed.
3126 libdir=
3127 if test -f "$lib"; then
3128 func_source "$lib"
3129 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
3131 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
3134 fi
3135 done
3136
3137 relink_command=
3138 func_source "$wrapper"
3139
3140 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
3142 $opt_dry_run || {
3143 if test "$finalize" = yes; then
3144 tmpdir=`func_mktempdir`
3145 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
3148 # Replace the output file specification.
3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
3150
3151 $opt_silent || {
3152 func_quote_for_expand "$relink_command"
3153 eval "func_echo $func_quote_for_expand_result"
3154 }
3155 if eval "$relink_command"; then :
3156 else
3157 func_error "error: relink \`$file' with the above command before installing it"
3158 $opt_dry_run || ${RM}r "$tmpdir"
3159 continue
3160 fi
3161 file="$outputname"
3162 else
3163 func_warning "cannot relink \`$file'"
3164 fi
3165 }
3166 else
3167 # Install the binary that we compiled earlier.
3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
3169 fi
3170 fi
3171
3172 # remove .exe since cygwin /usr/bin/install will append another
3173 # one anyway
3174 case $install_prog,$host in
3175 */usr/bin/install*,*cygwin*)
3176 case $file:$destfile in
3177 *.exe:*.exe)
3178 # this is ok
3179 ;;
3180 *.exe:*)
3181 destfile=$destfile.exe
3182 ;;
3183 *:*.exe)
3184 func_stripname '' '.exe' "$destfile"
3185 destfile=$func_stripname_result
3186 ;;
3187 esac
3188 ;;
3189 esac
3190 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
3191 $opt_dry_run || if test -n "$outputname"; then
3192 ${RM}r "$tmpdir"
3193 fi
3194 ;;
3195 esac
3196 done
3197
3198 for file in $staticlibs; do
3199 func_basename "$file"
3200 name="$func_basename_result"
3201
3202 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
3206
3207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
3208
3209 if test -n "$stripme" && test -n "$old_striplib"; then
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
3211 fi
3212
3213 # Do each command in the postinstall commands.
3214 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
3215 done
3216
3217 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
3219
3220 if test -n "$current_libdirs"; then
3221 # Maybe just do a dry run.
3222 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
3224 else
3225 exit $EXIT_SUCCESS
3226 fi
3227 }
3228
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
3230
3231
3232 # func_generate_dlsyms outputname originator pic_p
3233 # Extract symbols from dlprefiles and create ${outputname}S.o with
3234 # a dlpreopen symbol table.
3235 func_generate_dlsyms ()
3236 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
3242 my_dlsyms=
3243
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3245 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
3247 else
3248 func_error "not configured to extract global symbols from dlpreopened files"
3249 fi
3250 fi
3251
3252 if test -n "$my_dlsyms"; then
3253 case $my_dlsyms in
3254 "") ;;
3255 *.c)
3256 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
3258
3259 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
3260
3261 # Parse the name list into a source file.
3262 func_verbose "creating $output_objdir/$my_dlsyms"
3263
3264 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
3267
3268 #ifdef __cplusplus
3269 extern \"C\" {
3270 #endif
3271
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3273 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3274 #endif
3275
3276 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3279 relocations are performed -- see ld's documentation on pseudo-relocs. */
3280 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
3282 /* This system does not cope well with relocations in const data. */
3283 # define LT_DLSYM_CONST
3284 #else
3285 # define LT_DLSYM_CONST const
3286 #endif
3287
3288 /* External symbol declarations for the compiler. */\
3289 "
3290
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
3293
3294 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
3295
3296 # Add our own program objects to the symbol list.
3297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
3298 for progfile in $progfiles; do
3299 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3301 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
3302 done
3303
3304 if test -n "$exclude_expsyms"; then
3305 $opt_dry_run || {
3306 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3307 eval '$MV "$nlist"T "$nlist"'
3308 }
3309 fi
3310
3311 if test -n "$export_symbols_regex"; then
3312 $opt_dry_run || {
3313 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3314 eval '$MV "$nlist"T "$nlist"'
3315 }
3316 fi
3317
3318 # Prepare the list of exported symbols
3319 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
3321 $opt_dry_run || {
3322 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3324 case $host in
3325 *cygwin* | *mingw* | *cegcc* )
3326 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3327 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
3328 ;;
3329 esac
3330 }
3331 else
3332 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
3334 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3335 eval '$MV "$nlist"T "$nlist"'
3336 case $host in
3337 *cygwin* | *mingw* | *cegcc* )
3338 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3339 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
3340 ;;
3341 esac
3342 }
3343 fi
3344 fi
3345
3346 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
3348 func_basename "$dlprefile"
3349 name="$func_basename_result"
3350 case $host in
3351 *cygwin* | *mingw* | *cegcc* )
3352 # if an import library, we need to obtain dlname
3353 if func_win32_import_lib_p "$dlprefile"; then
3354 func_tr_sh "$dlprefile"
3355 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
3357 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 # Use subshell, to avoid clobbering current variable values
3359 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
3361 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
3363 else
3364 # no lafile. user explicitly requested -dlpreopen <import library>.
3365 $sharedlib_from_linklib_cmd "$dlprefile"
3366 dlprefile_dlbasename=$sharedlib_from_linklib_result
3367 fi
3368 fi
3369 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
3371 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3372 else
3373 func_warning "Could not compute DLL name from $name"
3374 eval '$ECHO ": $name " >> "$nlist"'
3375 fi
3376 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3377 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3378 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3379 }
3380 else # not an import lib
3381 $opt_dry_run || {
3382 eval '$ECHO ": $name " >> "$nlist"'
3383 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3384 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3385 }
3386 fi
3387 ;;
3388 *)
3389 $opt_dry_run || {
3390 eval '$ECHO ": $name " >> "$nlist"'
3391 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3392 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3393 }
3394 ;;
3395 esac
3396 done
3397
3398 $opt_dry_run || {
3399 # Make sure we have at least an empty file.
3400 test -f "$nlist" || : > "$nlist"
3401
3402 if test -n "$exclude_expsyms"; then
3403 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
3404 $MV "$nlist"T "$nlist"
3405 fi
3406
3407 # Try sorting and uniquifying the output.
3408 if $GREP -v "^: " < "$nlist" |
3409 if sort -k 3 </dev/null >/dev/null 2>&1; then
3410 sort -k 3
3411 else
3412 sort +2
3413 fi |
3414 uniq > "$nlist"S; then
3415 :
3416 else
3417 $GREP -v "^: " < "$nlist" > "$nlist"S
3418 fi
3419
3420 if test -f "$nlist"S; then
3421 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
3422 else
3423 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
3424 fi
3425
3426 echo >> "$output_objdir/$my_dlsyms" "\
3427
3428 /* The mapping between symbol names and symbols. */
3429 typedef struct {
3430 const char *name;
3431 void *address;
3432 } lt_dlsymlist;
3433 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
3435 LT_DLSYM_CONST lt_dlsymlist
3436 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
3439
3440 case $need_lib_prefix in
3441 no)
3442 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
3443 ;;
3444 *)
3445 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
3446 ;;
3447 esac
3448 echo >> "$output_objdir/$my_dlsyms" "\
3449 {0, (void *) 0}
3450 };
3451
3452 /* This works around a problem in FreeBSD linker */
3453 #ifdef FREEBSD_WORKAROUND
3454 static const void *lt_preloaded_setup() {
3455 return lt_${my_prefix}_LTX_preloaded_symbols;
3456 }
3457 #endif
3458
3459 #ifdef __cplusplus
3460 }
3461 #endif\
3462 "
3463 } # !$opt_dry_run
3464
3465 pic_flag_for_symtable=
3466 case "$compile_command " in
3467 *" -static "*) ;;
3468 *)
3469 case $host in
3470 # compiling the symbol table file with pic_flag works around
3471 # a FreeBSD bug that causes programs to crash when -lm is
3472 # linked before any other PIC object. But we must not use
3473 # pic_flag when linking with -static. The problem exists in
3474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3477 *-*-hpux*)
3478 pic_flag_for_symtable=" $pic_flag" ;;
3479 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
3483 ;;
3484 esac
3485 ;;
3486 esac
3487 symtab_cflags=
3488 for arg in $LTCFLAGS; do
3489 case $arg in
3490 -pie | -fpie | -fPIE) ;;
3491 *) func_append symtab_cflags " $arg" ;;
3492 esac
3493 done
3494
3495 # Now compile the dynamic symbol file.
3496 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
3497
3498 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
3500
3501 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
3503 case $host in
3504 *cygwin* | *mingw* | *cegcc* )
3505 if test -f "$output_objdir/$my_outputname.def"; then
3506 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3507 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3508 else
3509 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3510 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3511 fi
3512 ;;
3513 *)
3514 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3515 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3516 ;;
3517 esac
3518 ;;
3519 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
3521 ;;
3522 esac
3523 else
3524 # We keep going just in case the user didn't refer to
3525 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
3526 # really was required.
3527
3528 # Nullify the symbol file.
3529 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3530 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
3531 fi
3532 }
3533
3534 # func_win32_libid arg
3535 # return the library type of file 'arg'
3536 #
3537 # Need a lot of goo to handle *both* DLLs and import libs
3538 # Has to be a shell function in order to 'eat' the argument
3539 # that is supplied when $file_magic_command is called.
3540 # Despite the name, also deal with 64 bit binaries.
3541 func_win32_libid ()
3542 {
3543 $opt_debug
3544 win32_libid_type="unknown"
3545 win32_fileres=`file -L $1 2>/dev/null`
3546 case $win32_fileres in
3547 *ar\ archive\ import\ library*) # definitely import
3548 win32_libid_type="x86 archive import"
3549 ;;
3550 *ar\ archive*) # could be an import, or static
3551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
3552 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
3553 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
3557 1,100{
3558 / I /{
3559 s,.*,import,
3560 p
3561 q
3562 }
3563 }'`
3564 case $win32_nmres in
3565 import*) win32_libid_type="x86 archive import";;
3566 *) win32_libid_type="x86 archive static";;
3567 esac
3568 fi
3569 ;;
3570 *DLL*)
3571 win32_libid_type="x86 DLL"
3572 ;;
3573 *executable*) # but shell scripts are "executable" too...
3574 case $win32_fileres in
3575 *MS\ Windows\ PE\ Intel*)
3576 win32_libid_type="x86 DLL"
3577 ;;
3578 esac
3579 ;;
3580 esac
3581 $ECHO "$win32_libid_type"
3582 }
3583
3584 # func_cygming_dll_for_implib ARG
3585 #
3586 # Platform-specific function to extract the
3587 # name of the DLL associated with the specified
3588 # import library ARG.
3589 # Invoked by eval'ing the libtool variable
3590 # $sharedlib_from_linklib_cmd
3591 # Result is available in the variable
3592 # $sharedlib_from_linklib_result
3593 func_cygming_dll_for_implib ()
3594 {
3595 $opt_debug
3596 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3597 }
3598
3599 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3600 #
3601 # The is the core of a fallback implementation of a
3602 # platform-specific function to extract the name of the
3603 # DLL associated with the specified import library LIBNAME.
3604 #
3605 # SECTION_NAME is either .idata$6 or .idata$7, depending
3606 # on the platform and compiler that created the implib.
3607 #
3608 # Echos the name of the DLL associated with the
3609 # specified import library.
3610 func_cygming_dll_for_implib_fallback_core ()
3611 {
3612 $opt_debug
3613 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3614 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3615 $SED '/^Contents of section '"$match_literal"':/{
3616 # Place marker at beginning of archive member dllname section
3617 s/.*/====MARK====/
3618 p
3619 d
3620 }
3621 # These lines can sometimes be longer than 43 characters, but
3622 # are always uninteresting
3623 /:[ ]*file format pe[i]\{,1\}-/d
3624 /^In archive [^:]*:/d
3625 # Ensure marker is printed
3626 /^====MARK====/p
3627 # Remove all lines with less than 43 characters
3628 /^.\{43\}/!d
3629 # From remaining lines, remove first 43 characters
3630 s/^.\{43\}//' |
3631 $SED -n '
3632 # Join marker and all lines until next marker into a single line
3633 /^====MARK====/ b para
3634 H
3635 $ b para
3636 b
3637 :para
3638 x
3639 s/\n//g
3640 # Remove the marker
3641 s/^====MARK====//
3642 # Remove trailing dots and whitespace
3643 s/[\. \t]*$//
3644 # Print
3645 /./p' |
3646 # we now have a list, one entry per line, of the stringified
3647 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
3650 # a '.' (that is, objdump's representation of an unprintable
3651 # character.) This should work for all archives with less than
3652 # 0x302f exports -- but will fail for DLLs whose name actually
3653 # begins with a literal '.' or a single character followed by
3654 # a '.'.
3655 #
3656 # Of those that remain, print the first one.
3657 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
3682 }
3683
3684 # func_cygming_dll_for_implib_fallback ARG
3685 # Platform-specific function to extract the
3686 # name of the DLL associated with the specified
3687 # import library ARG.
3688 #
3689 # This fallback implementation is for use when $DLLTOOL
3690 # does not support the --identify-strict option.
3691 # Invoked by eval'ing the libtool variable
3692 # $sharedlib_from_linklib_cmd
3693 # Result is available in the variable
3694 # $sharedlib_from_linklib_result
3695 func_cygming_dll_for_implib_fallback ()
3696 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
3699 # binutils import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
3702 # ms-generated import library
3703 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3704 else
3705 # unknown
3706 sharedlib_from_linklib_result=""
3707 fi
3708 }
3709
3710
3711 # func_extract_an_archive dir oldlib
3712 func_extract_an_archive ()
3713 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
3718 lockfile=$f_ex_an_ar_oldlib.lock
3719 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3720 func_echo "Waiting for $lockfile to be removed"
3721 sleep 2
3722 done
3723 fi
3724 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
3725 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
3727 $opt_dry_run || rm -f "$lockfile"
3728 fi
3729 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3730 :
3731 else
3732 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
3733 fi
3734 }
3735
3736
3737 # func_extract_archives gentop oldlib ...
3738 func_extract_archives ()
3739 {
3740 $opt_debug
3741 my_gentop="$1"; shift
3742 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
3747
3748 for my_xlib in $my_oldlibs; do
3749 # Extract the objects.
3750 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3752 *) my_xabs=`pwd`"/$my_xlib" ;;
3753 esac
3754 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
3756 my_xlib_u=$my_xlib
3757 while :; do
3758 case " $extracted_archives " in
3759 *" $my_xlib_u "*)
3760 func_arith $extracted_serial + 1
3761 extracted_serial=$func_arith_result
3762 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3763 *) break ;;
3764 esac
3765 done
3766 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
3768
3769 func_mkdir_p "$my_xdir"
3770
3771 case $host in
3772 *-darwin*)
3773 func_verbose "Extracting $my_xabs"
3774 # Do not bother doing anything if just a dry run
3775 $opt_dry_run || {
3776 darwin_orig_dir=`pwd`
3777 cd $my_xdir || exit $?
3778 darwin_archive=$my_xabs
3779 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
3781 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
3782 if test -n "$darwin_arches"; then
3783 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3784 darwin_arch=
3785 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
3791 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3793 done # $darwin_arches
3794 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
3796 darwin_file=
3797 darwin_files=
3798 for darwin_file in $darwin_filelist; do
3799 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
3800 $LIPO -create -output "$darwin_file" $darwin_files
3801 done # $darwin_filelist
3802 $RM -rf unfat-$$
3803 cd "$darwin_orig_dir"
3804 else
3805 cd $darwin_orig_dir
3806 func_extract_an_archive "$my_xdir" "$my_xabs"
3807 fi # $darwin_arches
3808 } # !$opt_dry_run
3809 ;;
3810 *)
3811 func_extract_an_archive "$my_xdir" "$my_xabs"
3812 ;;
3813 esac
3814 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
3815 done
3816
3817 func_extract_archives_result="$my_oldobjs"
3818 }
3819
3820
3821 # func_emit_wrapper [arg=no]
3822 #
3823 # Emit a libtool wrapper script on stdout.
3824 # Don't directly open a file because we may want to
3825 # incorporate the script contents within a cygwin/mingw
3826 # wrapper executable. Must ONLY be called from within
3827 # func_mode_link because it depends on a number of variables
3828 # set therein.
3829 #
3830 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
3831 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
3833 # the $objdir directory. This is a cygwin/mingw-specific
3834 # behavior.
3835 func_emit_wrapper ()
3836 {
3837 func_emit_wrapper_arg1=${1-no}
3838
3839 $ECHO "\
3840 #! $SHELL
3841
3842 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
3844 #
3845 # The $output program cannot be directly executed until all the libtool
3846 # libraries that it depends on are installed.
3847 #
3848 # This wrapper script should never be moved out of the build directory.
3849 # If it is, it will not operate correctly.
3850
3851 # Sed substitution that helps us do robust quoting. It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 sed_quote_subst='$sed_quote_subst'
3854
3855 # Be Bourne compatible
3856 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3857 emulate sh
3858 NULLCMD=:
3859 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
3860 # is contrary to our usage. Disable this feature.
3861 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3862 setopt NO_GLOB_SUBST
3863 else
3864 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3865 fi
3866 BIN_SH=xpg4; export BIN_SH # for Tru64
3867 DUALCASE=1; export DUALCASE # for MKS sh
3868
3869 # The HP-UX ksh and POSIX shell print the target directory to stdout
3870 # if CDPATH is set.
3871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3872
3873 relink_command=\"$relink_command\"
3874
3875 # This environment variable determines our operation mode.
3876 if test \"\$libtool_install_magic\" = \"$magic\"; then
3877 # install mode needs the following variables:
3878 generated_by_libtool_version='$macro_version'
3879 notinst_deplibs='$notinst_deplibs'
3880 else
3881 # When we are sourced in execute mode, \$file and \$ECHO are already set.
3882 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3883 file=\"\$0\""
3884
3885 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
3886 $ECHO "\
3887
3888 # A function that is used when there is no print builtin or printf.
3889 func_fallback_echo ()
3890 {
3891 eval 'cat <<_LTECHO_EOF
3892 \$1
3893 _LTECHO_EOF'
3894 }
3895 ECHO=\"$qECHO\"
3896 fi
3897
3898 # Very basic option parsing. These options are (a) specific to
3899 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
3901 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
3903 # this pattern).
3904 #
3905 # There are only two supported options: --lt-debug and
3906 # --lt-dump-script. There is, deliberately, no --lt-help.
3907 #
3908 # The first argument to this parsing function should be the
3909 # script's $0 value, followed by "$@".
3910 lt_option_debug=
3911 func_parse_lt_options ()
3912 {
3913 lt_script_arg0=\$0
3914 shift
3915 for lt_opt
3916 do
3917 case \"\$lt_opt\" in
3918 --lt-debug) lt_option_debug=1 ;;
3919 --lt-dump-script)
3920 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3921 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3922 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3923 cat \"\$lt_dump_D/\$lt_dump_F\"
3924 exit 0
3925 ;;
3926 --lt-*)
3927 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3928 exit 1
3929 ;;
3930 esac
3931 done
3932
3933 # Print the debug banner immediately:
3934 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3936 fi
3937 }
3938
3939 # Used when --lt-debug. Prints its arguments to stdout
3940 # (redirection is the responsibility of the caller)
3941 func_lt_dump_args ()
3942 {
3943 lt_dump_args_N=1;
3944 for lt_arg
3945 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3947 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3948 done
3949 }
3950
3951 # Core function for launching the target application
3952 func_exec_program_core ()
3953 {
3954 "
3955 case $host in
3956 # Backslashes separate directories on plain windows
3957 *-*-mingw | *-*-os2* | *-cegcc*)
3958 $ECHO "\
3959 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3961 func_lt_dump_args \${1+\"\$@\"} 1>&2
3962 fi
3963 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3964 "
3965 ;;
3966
3967 *)
3968 $ECHO "\
3969 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3971 func_lt_dump_args \${1+\"\$@\"} 1>&2
3972 fi
3973 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3974 "
3975 ;;
3976 esac
3977 $ECHO "\
3978 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3979 exit 1
3980 }
3981
3982 # A function to encapsulate launching the target application
3983 # Strips options in the --lt-* namespace from \$@ and
3984 # launches target application with the remaining arguments.
3985 func_exec_program ()
3986 {
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
3998 func_exec_program_core \${1+\"\$@\"}
3999 }
4000
4001 # Parse options
4002 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
4003
4004 # Find the directory that this script lives in.
4005 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4006 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4007
4008 # Follow symbolic links until we get to the real thisdir.
4009 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4010 while test -n \"\$file\"; do
4011 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4012
4013 # If there was a directory component, then change thisdir.
4014 if test \"x\$destdir\" != \"x\$file\"; then
4015 case \"\$destdir\" in
4016 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4017 *) thisdir=\"\$thisdir/\$destdir\" ;;
4018 esac
4019 fi
4020
4021 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4022 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4023 done
4024
4025 # Usually 'no', except on cygwin/mingw when embedded into
4026 # the cwrapper.
4027 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4028 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4029 # special case for '.'
4030 if test \"\$thisdir\" = \".\"; then
4031 thisdir=\`pwd\`
4032 fi
4033 # remove .libs from thisdir
4034 case \"\$thisdir\" in
4035 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4036 $objdir ) thisdir=. ;;
4037 esac
4038 fi
4039
4040 # Try to get the absolute directory name.
4041 absdir=\`cd \"\$thisdir\" && pwd\`
4042 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4043 "
4044
4045 if test "$fast_install" = yes; then
4046 $ECHO "\
4047 program=lt-'$outputname'$exeext
4048 progdir=\"\$thisdir/$objdir\"
4049
4050 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4052 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4053
4054 file=\"\$\$-\$program\"
4055
4056 if test ! -d \"\$progdir\"; then
4057 $MKDIR \"\$progdir\"
4058 else
4059 $RM \"\$progdir/\$file\"
4060 fi"
4061
4062 $ECHO "\
4063
4064 # relink executable if necessary
4065 if test -n \"\$relink_command\"; then
4066 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4067 else
4068 $ECHO \"\$relink_command_output\" >&2
4069 $RM \"\$progdir/\$file\"
4070 exit 1
4071 fi
4072 fi
4073
4074 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4075 { $RM \"\$progdir/\$program\";
4076 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4077 $RM \"\$progdir/\$file\"
4078 fi"
4079 else
4080 $ECHO "\
4081 program='$outputname'
4082 progdir=\"\$thisdir/$objdir\"
4083 "
4084 fi
4085
4086 $ECHO "\
4087
4088 if test -f \"\$progdir/\$program\"; then"
4089
4090 # fixup the dll searchpath if we need to.
4091 #
4092 # Fix the DLL searchpath if we need to. Do this before prepending
4093 # to shlibpath, because on Windows, both are PATH and uninstalled
4094 # libraries must come first.
4095 if test -n "$dllsearchpath"; then
4096 $ECHO "\
4097 # Add the dll search path components to the executable PATH
4098 PATH=$dllsearchpath:\$PATH
4099 "
4100 fi
4101
4102 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4104 $ECHO "\
4105 # Add our own library path to $shlibpath_var
4106 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4107
4108 # Some systems cannot cope with colon-terminated $shlibpath_var
4109 # The second colon is a workaround for a bug in BeOS R4 sed
4110 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4111
4112 export $shlibpath_var
4113 "
4114 fi
4115
4116 $ECHO "\
4117 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4118 # Run the actual program with our arguments.
4119 func_exec_program \${1+\"\$@\"}
4120 fi
4121 else
4122 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4124 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4125 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4126 exit 1
4127 fi
4128 fi\
4129 "
4130 }
4131
4132
4133 # func_emit_cwrapperexe_src
4134 # emit the source code for a wrapper executable on stdout
4135 # Must ONLY be called from within func_mode_link because
4136 # it depends on a number of variable set therein.
4137 func_emit_cwrapperexe_src ()
4138 {
4139 cat <<EOF
4140
4141 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
4143
4144 The $output program cannot be directly executed until all the libtool
4145 libraries that it depends on are installed.
4146
4147 This wrapper executable should never be moved out of the build directory.
4148 If it is, it will not operate correctly.
4149 */
4150 EOF
4151 cat <<"EOF"
4152 #ifdef _MSC_VER
4153 # define _CRT_SECURE_NO_DEPRECATE 1
4154 #endif
4155 #include <stdio.h>
4156 #include <stdlib.h>
4157 #ifdef _MSC_VER
4158 # include <direct.h>
4159 # include <process.h>
4160 # include <io.h>
4161 #else
4162 # include <unistd.h>
4163 # include <stdint.h>
4164 # ifdef __CYGWIN__
4165 # include <io.h>
4166 # endif
4167 #endif
4168 #include <malloc.h>
4169 #include <stdarg.h>
4170 #include <assert.h>
4171 #include <string.h>
4172 #include <ctype.h>
4173 #include <errno.h>
4174 #include <fcntl.h>
4175 #include <sys/stat.h>
4176
4177 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
4179 # ifdef __STRICT_ANSI__
4180 int _putenv (const char *);
4181 # endif
4182 #elif defined(__CYGWIN__)
4183 # ifdef __STRICT_ANSI__
4184 char *realpath (const char *, char *);
4185 int putenv (char *);
4186 int setenv (const char *, const char *, int);
4187 # endif
4188 /* #elif defined (other platforms) ... */
4189 #endif
4190
4191 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
4193 # define setmode _setmode
4194 # define stat _stat
4195 # define chmod _chmod
4196 # define getcwd _getcwd
4197 # define putenv _putenv
4198 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
4204 # define setmode _setmode
4205 # define stat _stat
4206 # define chmod _chmod
4207 # define getcwd _getcwd
4208 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
4210 # define HAVE_SETENV
4211 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
4213 #endif
4214
4215 #if defined(PATH_MAX)
4216 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
4218 # define LT_PATHMAX MAXPATHLEN
4219 #else
4220 # define LT_PATHMAX 1024
4221 #endif
4222
4223 #ifndef S_IXOTH
4224 # define S_IXOTH 0
4225 #endif
4226 #ifndef S_IXGRP
4227 # define S_IXGRP 0
4228 #endif
4229
4230 /* path handling portability macros */
4231 #ifndef DIR_SEPARATOR
4232 # define DIR_SEPARATOR '/'
4233 # define PATH_SEPARATOR ':'
4234 #endif
4235
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
4238 # define HAVE_DOS_BASED_FILE_SYSTEM
4239 # define FOPEN_WB "wb"
4240 # ifndef DIR_SEPARATOR_2
4241 # define DIR_SEPARATOR_2 '\\'
4242 # endif
4243 # ifndef PATH_SEPARATOR_2
4244 # define PATH_SEPARATOR_2 ';'
4245 # endif
4246 #endif
4247
4248 #ifndef DIR_SEPARATOR_2
4249 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4250 #else /* DIR_SEPARATOR_2 */
4251 # define IS_DIR_SEPARATOR(ch) \
4252 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4253 #endif /* DIR_SEPARATOR_2 */
4254
4255 #ifndef PATH_SEPARATOR_2
4256 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4257 #else /* PATH_SEPARATOR_2 */
4258 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4259 #endif /* PATH_SEPARATOR_2 */
4260
4261 #ifndef FOPEN_WB
4262 # define FOPEN_WB "w"
4263 #endif
4264 #ifndef _O_BINARY
4265 # define _O_BINARY 0
4266 #endif
4267
4268 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4269 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
4271 } while (0)
4272
4273 #if defined(LT_DEBUGWRAPPER)
4274 static int lt_debug = 1;
4275 #else
4276 static int lt_debug = 0;
4277 #endif
4278
4279 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4280
4281 void *xmalloc (size_t num);
4282 char *xstrdup (const char *string);
4283 const char *base_name (const char *name);
4284 char *find_executable (const char *wrapper);
4285 char *chase_symlinks (const char *pathspec);
4286 int make_executable (const char *path);
4287 int check_executable (const char *path);
4288 char *strendzap (char *str, const char *pat);
4289 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4290 void lt_fatal (const char *file, int line, const char *message, ...);
4291 static const char *nonnull (const char *s);
4292 static const char *nonempty (const char *s);
4293 void lt_setenv (const char *name, const char *value);
4294 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
4295 void lt_update_exe_path (const char *name, const char *value);
4296 void lt_update_lib_path (const char *name, const char *value);
4297 char **prepare_spawn (char **argv);
4298 void lt_dump_script (FILE *f);
4299 EOF
4300
4301 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
4303 const char * LIB_PATH_VARNAME = "$shlibpath_var";
4304 EOF
4305
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4307 func_to_host_path "$temp_rpath"
4308 cat <<EOF
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
4310 EOF
4311 else
4312 cat <<"EOF"
4313 const char * LIB_PATH_VALUE = "";
4314 EOF
4315 fi
4316
4317 if test -n "$dllsearchpath"; then
4318 func_to_host_path "$dllsearchpath:"
4319 cat <<EOF
4320 const char * EXE_PATH_VARNAME = "PATH";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
4322 EOF
4323 else
4324 cat <<"EOF"
4325 const char * EXE_PATH_VARNAME = "";
4326 const char * EXE_PATH_VALUE = "";
4327 EOF
4328 fi
4329
4330 if test "$fast_install" = yes; then
4331 cat <<EOF
4332 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4333 EOF
4334 else
4335 cat <<EOF
4336 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
4337 EOF
4338 fi
4339
4340
4341 cat <<"EOF"
4342
4343 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4344
4345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
4346 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4347 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
4348
4349 int
4350 main (int argc, char *argv[])
4351 {
4352 char **newargz;
4353 int newargc;
4354 char *tmp_pathspec;
4355 char *actual_cwrapper_path;
4356 char *actual_cwrapper_name;
4357 char *target_name;
4358 char *lt_argv_zero;
4359 intptr_t rval = 127;
4360
4361 int i;
4362
4363 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
4365
4366 /* very simple arg parsing; don't want to rely on getopt
4367 * also, copy all non cwrapper options to newargz, except
4368 * argz[0], which is handled differently
4369 */
4370 newargc=0;
4371 for (i = 1; i < argc; i++)
4372 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
4374 {
4375 EOF
4376 case "$host" in
4377 *mingw* | *cygwin* )
4378 # make stdout use "unix" line endings
4379 echo " setmode(1,_O_BINARY);"
4380 ;;
4381 esac
4382
4383 cat <<"EOF"
4384 lt_dump_script (stdout);
4385 return 0;
4386 }
4387 if (strcmp (argv[i], debug_opt) == 0)
4388 {
4389 lt_debug = 1;
4390 continue;
4391 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4393 {
4394 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4395 namespace, but it is not one of the ones we know about and
4396 have already dealt with, above (inluding dump-script), then
4397 report an error. Otherwise, targets might begin to believe
4398 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4399 namespace. The first time any user complains about this, we'll
4400 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4401 or a configure.ac-settable value.
4402 */
4403 lt_fatal (__FILE__, __LINE__,
4404 "unrecognized %s option: '%s'",
4405 ltwrapper_option_prefix, argv[i]);
4406 }
4407 /* otherwise ... */
4408 newargz[++newargc] = xstrdup (argv[i]);
4409 }
4410 newargz[++newargc] = NULL;
4411
4412 EOF
4413 cat <<EOF
4414 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4416 EOF
4417 cat <<"EOF"
4418 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4419 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4420
4421 tmp_pathspec = find_executable (argv[0]);
4422 if (tmp_pathspec == NULL)
4423 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4424 lt_debugprintf (__FILE__, __LINE__,
4425 "(main) found exe (before symlink chase) at: %s\n",
4426 tmp_pathspec);
4427
4428 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
4429 lt_debugprintf (__FILE__, __LINE__,
4430 "(main) found exe (after symlink chase) at: %s\n",
4431 actual_cwrapper_path);
4432 XFREE (tmp_pathspec);
4433
4434 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
4435 strendzap (actual_cwrapper_path, actual_cwrapper_name);
4436
4437 /* wrapper name transforms */
4438 strendzap (actual_cwrapper_name, ".exe");
4439 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
4440 XFREE (actual_cwrapper_name);
4441 actual_cwrapper_name = tmp_pathspec;
4442 tmp_pathspec = 0;
4443
4444 /* target_name transforms -- use actual target program name; might have lt- prefix */
4445 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
4446 strendzap (target_name, ".exe");
4447 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
4448 XFREE (target_name);
4449 target_name = tmp_pathspec;
4450 tmp_pathspec = 0;
4451
4452 lt_debugprintf (__FILE__, __LINE__,
4453 "(main) libtool target name: %s\n",
4454 target_name);
4455 EOF
4456
4457 cat <<EOF
4458 newargz[0] =
4459 XMALLOC (char, (strlen (actual_cwrapper_path) +
4460 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
4461 strcpy (newargz[0], actual_cwrapper_path);
4462 strcat (newargz[0], "$objdir");
4463 strcat (newargz[0], "/");
4464 EOF
4465
4466 cat <<"EOF"
4467 /* stop here, and copy so we don't have to do this twice */
4468 tmp_pathspec = xstrdup (newargz[0]);
4469
4470 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4471 strcat (newargz[0], actual_cwrapper_name);
4472
4473 /* DO want the lt- prefix here if it exists, so use target_name */
4474 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
4475 XFREE (tmp_pathspec);
4476 tmp_pathspec = NULL;
4477 EOF
4478
4479 case $host_os in
4480 mingw*)
4481 cat <<"EOF"
4482 {
4483 char* p;
4484 while ((p = strchr (newargz[0], '\\')) != NULL)
4485 {
4486 *p = '/';
4487 }
4488 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
4489 {
4490 *p = '/';
4491 }
4492 }
4493 EOF
4494 ;;
4495 esac
4496
4497 cat <<"EOF"
4498 XFREE (target_name);
4499 XFREE (actual_cwrapper_path);
4500 XFREE (actual_cwrapper_name);
4501
4502 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
4503 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4504 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4505 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4506 because on Windows, both *_VARNAMEs are PATH but uninstalled
4507 libraries must come first. */
4508 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
4509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
4510
4511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4512 nonnull (lt_argv_zero));
4513 for (i = 0; i < newargc; i++)
4514 {
4515 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4516 i, nonnull (newargz[i]));
4517 }
4518
4519 EOF
4520
4521 case $host_os in
4522 mingw*)
4523 cat <<"EOF"
4524 /* execv doesn't actually work on mingw as expected on unix */
4525 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
4527 if (rval == -1)
4528 {
4529 /* failed to start process */
4530 lt_debugprintf (__FILE__, __LINE__,
4531 "(main) failed to launch target \"%s\": %s\n",
4532 lt_argv_zero, nonnull (strerror (errno)));
4533 return 127;
4534 }
4535 return rval;
4536 EOF
4537 ;;
4538 *)
4539 cat <<"EOF"
4540 execv (lt_argv_zero, newargz);
4541 return rval; /* =127, but avoids unused variable warning */
4542 EOF
4543 ;;
4544 esac
4545
4546 cat <<"EOF"
4547 }
4548
4549 void *
4550 xmalloc (size_t num)
4551 {
4552 void *p = (void *) malloc (num);
4553 if (!p)
4554 lt_fatal (__FILE__, __LINE__, "memory exhausted");
4555
4556 return p;
4557 }
4558
4559 char *
4560 xstrdup (const char *string)
4561 {
4562 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
4563 string) : NULL;
4564 }
4565
4566 const char *
4567 base_name (const char *name)
4568 {
4569 const char *base;
4570
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4572 /* Skip over the disk name in MSDOS pathnames. */
4573 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
4574 name += 2;
4575 #endif
4576
4577 for (base = name; *name; name++)
4578 if (IS_DIR_SEPARATOR (*name))
4579 base = name + 1;
4580 return base;
4581 }
4582
4583 int
4584 check_executable (const char *path)
4585 {
4586 struct stat st;
4587
4588 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4589 nonempty (path));
4590 if ((!path) || (!*path))
4591 return 0;
4592
4593 if ((stat (path, &st) >= 0)
4594 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
4595 return 1;
4596 else
4597 return 0;
4598 }
4599
4600 int
4601 make_executable (const char *path)
4602 {
4603 int rval = 0;
4604 struct stat st;
4605
4606 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4607 nonempty (path));
4608 if ((!path) || (!*path))
4609 return 0;
4610
4611 if (stat (path, &st) >= 0)
4612 {
4613 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
4614 }
4615 return rval;
4616 }
4617
4618 /* Searches for the full path of the wrapper. Returns
4619 newly allocated full path name if found, NULL otherwise
4620 Does not chase symlinks, even on platforms that support them.
4621 */
4622 char *
4623 find_executable (const char *wrapper)
4624 {
4625 int has_slash = 0;
4626 const char *p;
4627 const char *p_next;
4628 /* static buffer for getcwd */
4629 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
4631 char *concat_name;
4632
4633 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4634 nonempty (wrapper));
4635
4636 if ((wrapper == NULL) || (*wrapper == '\0'))
4637 return NULL;
4638
4639 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4641 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
4642 {
4643 concat_name = xstrdup (wrapper);
4644 if (check_executable (concat_name))
4645 return concat_name;
4646 XFREE (concat_name);
4647 }
4648 else
4649 {
4650 #endif
4651 if (IS_DIR_SEPARATOR (wrapper[0]))
4652 {
4653 concat_name = xstrdup (wrapper);
4654 if (check_executable (concat_name))
4655 return concat_name;
4656 XFREE (concat_name);
4657 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4659 }
4660 #endif
4661
4662 for (p = wrapper; *p; p++)
4663 if (*p == '/')
4664 {
4665 has_slash = 1;
4666 break;
4667 }
4668 if (!has_slash)
4669 {
4670 /* no slashes; search PATH */
4671 const char *path = getenv ("PATH");
4672 if (path != NULL)
4673 {
4674 for (p = path; *p; p = p_next)
4675 {
4676 const char *q;
4677 size_t p_len;
4678 for (q = p; *q; q++)
4679 if (IS_PATH_SEPARATOR (*q))
4680 break;
4681 p_len = q - p;
4682 p_next = (*q == '\0' ? q : q + 1);
4683 if (p_len == 0)
4684 {
4685 /* empty path: current directory */
4686 if (getcwd (tmp, LT_PATHMAX) == NULL)
4687 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4688 nonnull (strerror (errno)));
4689 tmp_len = strlen (tmp);
4690 concat_name =
4691 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
4692 memcpy (concat_name, tmp, tmp_len);
4693 concat_name[tmp_len] = '/';
4694 strcpy (concat_name + tmp_len + 1, wrapper);
4695 }
4696 else
4697 {
4698 concat_name =
4699 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
4700 memcpy (concat_name, p, p_len);
4701 concat_name[p_len] = '/';
4702 strcpy (concat_name + p_len + 1, wrapper);
4703 }
4704 if (check_executable (concat_name))
4705 return concat_name;
4706 XFREE (concat_name);
4707 }
4708 }
4709 /* not found in PATH; assume curdir */
4710 }
4711 /* Relative path | not found in path: prepend cwd */
4712 if (getcwd (tmp, LT_PATHMAX) == NULL)
4713 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4714 nonnull (strerror (errno)));
4715 tmp_len = strlen (tmp);
4716 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
4717 memcpy (concat_name, tmp, tmp_len);
4718 concat_name[tmp_len] = '/';
4719 strcpy (concat_name + tmp_len + 1, wrapper);
4720
4721 if (check_executable (concat_name))
4722 return concat_name;
4723 XFREE (concat_name);
4724 return NULL;
4725 }
4726
4727 char *
4728 chase_symlinks (const char *pathspec)
4729 {
4730 #ifndef S_ISLNK
4731 return xstrdup (pathspec);
4732 #else
4733 char buf[LT_PATHMAX];
4734 struct stat s;
4735 char *tmp_pathspec = xstrdup (pathspec);
4736 char *p;
4737 int has_symlinks = 0;
4738 while (strlen (tmp_pathspec) && !has_symlinks)
4739 {
4740 lt_debugprintf (__FILE__, __LINE__,
4741 "checking path component for symlinks: %s\n",
4742 tmp_pathspec);
4743 if (lstat (tmp_pathspec, &s) == 0)
4744 {
4745 if (S_ISLNK (s.st_mode) != 0)
4746 {
4747 has_symlinks = 1;
4748 break;
4749 }
4750
4751 /* search backwards for last DIR_SEPARATOR */
4752 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
4753 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
4754 p--;
4755 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
4756 {
4757 /* no more DIR_SEPARATORS left */
4758 break;
4759 }
4760 *p = '\0';
4761 }
4762 else
4763 {
4764 lt_fatal (__FILE__, __LINE__,
4765 "error accessing file \"%s\": %s",
4766 tmp_pathspec, nonnull (strerror (errno)));
4767 }
4768 }
4769 XFREE (tmp_pathspec);
4770
4771 if (!has_symlinks)
4772 {
4773 return xstrdup (pathspec);
4774 }
4775
4776 tmp_pathspec = realpath (pathspec, buf);
4777 if (tmp_pathspec == 0)
4778 {
4779 lt_fatal (__FILE__, __LINE__,
4780 "could not follow symlinks for %s", pathspec);
4781 }
4782 return xstrdup (tmp_pathspec);
4783 #endif
4784 }
4785
4786 char *
4787 strendzap (char *str, const char *pat)
4788 {
4789 size_t len, patlen;
4790
4791 assert (str != NULL);
4792 assert (pat != NULL);
4793
4794 len = strlen (str);
4795 patlen = strlen (pat);
4796
4797 if (patlen <= len)
4798 {
4799 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
4801 *str = '\0';
4802 }
4803 return str;
4804 }
4805
4806 void
4807 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4808 {
4809 va_list args;
4810 if (lt_debug)
4811 {
4812 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4813 va_start (args, fmt);
4814 (void) vfprintf (stderr, fmt, args);
4815 va_end (args);
4816 }
4817 }
4818
4819 static void
4820 lt_error_core (int exit_status, const char *file,
4821 int line, const char *mode,
4822 const char *message, va_list ap)
4823 {
4824 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
4825 vfprintf (stderr, message, ap);
4826 fprintf (stderr, ".\n");
4827
4828 if (exit_status >= 0)
4829 exit (exit_status);
4830 }
4831
4832 void
4833 lt_fatal (const char *file, int line, const char *message, ...)
4834 {
4835 va_list ap;
4836 va_start (ap, message);
4837 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
4838 va_end (ap);
4839 }
4840
4841 static const char *
4842 nonnull (const char *s)
4843 {
4844 return s ? s : "(null)";
4845 }
4846
4847 static const char *
4848 nonempty (const char *s)
4849 {
4850 return (s && !*s) ? "(empty)" : nonnull (s);
4851 }
4852
4853 void
4854 lt_setenv (const char *name, const char *value)
4855 {
4856 lt_debugprintf (__FILE__, __LINE__,
4857 "(lt_setenv) setting '%s' to '%s'\n",
4858 nonnull (name), nonnull (value));
4859 {
4860 #ifdef HAVE_SETENV
4861 /* always make a copy, for consistency with !HAVE_SETENV */
4862 char *str = xstrdup (value);
4863 setenv (name, str, 1);
4864 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
4866 char *str = XMALLOC (char, len);
4867 sprintf (str, "%s=%s", name, value);
4868 if (putenv (str) != EXIT_SUCCESS)
4869 {
4870 XFREE (str);
4871 }
4872 #endif
4873 }
4874 }
4875
4876 char *
4877 lt_extend_str (const char *orig_value, const char *add, int to_end)
4878 {
4879 char *new_value;
4880 if (orig_value && *orig_value)
4881 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
4884 new_value = XMALLOC (char, add_len + orig_value_len + 1);
4885 if (to_end)
4886 {
4887 strcpy (new_value, orig_value);
4888 strcpy (new_value + orig_value_len, add);
4889 }
4890 else
4891 {
4892 strcpy (new_value, add);
4893 strcpy (new_value + add_len, orig_value);
4894 }
4895 }
4896 else
4897 {
4898 new_value = xstrdup (add);
4899 }
4900 return new_value;
4901 }
4902
4903 void
4904 lt_update_exe_path (const char *name, const char *value)
4905 {
4906 lt_debugprintf (__FILE__, __LINE__,
4907 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4908 nonnull (name), nonnull (value));
4909
4910 if (name && *name && value && *value)
4911 {
4912 char *new_value = lt_extend_str (getenv (name), value, 0);
4913 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4916 {
4917 new_value[len-1] = '\0';
4918 }
4919 lt_setenv (name, new_value);
4920 XFREE (new_value);
4921 }
4922 }
4923
4924 void
4925 lt_update_lib_path (const char *name, const char *value)
4926 {
4927 lt_debugprintf (__FILE__, __LINE__,
4928 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4929 nonnull (name), nonnull (value));
4930
4931 if (name && *name && value && *value)
4932 {
4933 char *new_value = lt_extend_str (getenv (name), value, 0);
4934 lt_setenv (name, new_value);
4935 XFREE (new_value);
4936 }
4937 }
4938
4939 EOF
4940 case $host_os in
4941 mingw*)
4942 cat <<"EOF"
4943
4944 /* Prepares an argument vector before calling spawn().
4945 Note that spawn() does not by itself call the command interpreter
4946 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4947 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4948 GetVersionEx(&v);
4949 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4950 }) ? "cmd.exe" : "command.com").
4951 Instead it simply concatenates the arguments, separated by ' ', and calls
4952 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4953 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4954 special way:
4955 - Space and tab are interpreted as delimiters. They are not treated as
4956 delimiters if they are surrounded by double quotes: "...".
4957 - Unescaped double quotes are removed from the input. Their only effect is
4958 that within double quotes, space and tab are treated like normal
4959 characters.
4960 - Backslashes not followed by double quotes are not special.
4961 - But 2*n+1 backslashes followed by a double quote become
4962 n backslashes followed by a double quote (n >= 0):
4963 \" -> "
4964 \\\" -> \"
4965 \\\\\" -> \\"
4966 */
4967 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4968 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4969 char **
4970 prepare_spawn (char **argv)
4971 {
4972 size_t argc;
4973 char **new_argv;
4974 size_t i;
4975
4976 /* Count number of arguments. */
4977 for (argc = 0; argv[argc] != NULL; argc++)
4978 ;
4979
4980 /* Allocate new argument vector. */
4981 new_argv = XMALLOC (char *, argc + 1);
4982
4983 /* Put quoted arguments into the new argument vector. */
4984 for (i = 0; i < argc; i++)
4985 {
4986 const char *string = argv[i];
4987
4988 if (string[0] == '\0')
4989 new_argv[i] = xstrdup ("\"\"");
4990 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4991 {
4992 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4993 size_t length;
4994 unsigned int backslashes;
4995 const char *s;
4996 char *quoted_string;
4997 char *p;
4998
4999 length = 0;
5000 backslashes = 0;
5001 if (quote_around)
5002 length++;
5003 for (s = string; *s != '\0'; s++)
5004 {
5005 char c = *s;
5006 if (c == '"')
5007 length += backslashes + 1;
5008 length++;
5009 if (c == '\\')
5010 backslashes++;
5011 else
5012 backslashes = 0;
5013 }
5014 if (quote_around)
5015 length += backslashes + 1;
5016
5017 quoted_string = XMALLOC (char, length + 1);
5018
5019 p = quoted_string;
5020 backslashes = 0;
5021 if (quote_around)
5022 *p++ = '"';
5023 for (s = string; *s != '\0'; s++)
5024 {
5025 char c = *s;
5026 if (c == '"')
5027 {
5028 unsigned int j;
5029 for (j = backslashes + 1; j > 0; j--)
5030 *p++ = '\\';
5031 }
5032 *p++ = c;
5033 if (c == '\\')
5034 backslashes++;
5035 else
5036 backslashes = 0;
5037 }
5038 if (quote_around)
5039 {
5040 unsigned int j;
5041 for (j = backslashes; j > 0; j--)
5042 *p++ = '\\';
5043 *p++ = '"';
5044 }
5045 *p = '\0';
5046
5047 new_argv[i] = quoted_string;
5048 }
5049 else
5050 new_argv[i] = (char *) string;
5051 }
5052 new_argv[argc] = NULL;
5053
5054 return new_argv;
5055 }
5056 EOF
5057 ;;
5058 esac
5059
5060 cat <<"EOF"
5061 void lt_dump_script (FILE* f)
5062 {
5063 EOF
5064 func_emit_wrapper yes |
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
5074 cat <<"EOF"
5075 }
5076 EOF
5077 }
5078 # end: func_emit_cwrapperexe_src
5079
5080 # func_win32_import_lib_p ARG
5081 # True if ARG is an import lib, as indicated by $file_magic_cmd
5082 func_win32_import_lib_p ()
5083 {
5084 $opt_debug
5085 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5086 *import*) : ;;
5087 *) false ;;
5088 esac
5089 }
5090
5091 # func_mode_link arg...
5092 func_mode_link ()
5093 {
5094 $opt_debug
5095 case $host in
5096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5097 # It is impossible to link a dll without this setting, and
5098 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
5100 # flag for every libtool invocation.
5101 # allow_undefined=no
5102
5103 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
5105 # even a static library is built. For now, we need to specify
5106 # -no-undefined on the libtool link line when we can be certain
5107 # that all symbols are satisfied, otherwise we get a static library.
5108 allow_undefined=yes
5109 ;;
5110 *)
5111 allow_undefined=yes
5112 ;;
5113 esac
5114 libtool_args=$nonopt
5115 base_compile="$nonopt $@"
5116 compile_command=$nonopt
5117 finalize_command=$nonopt
5118
5119 compile_rpath=
5120 finalize_rpath=
5121 compile_shlibpath=
5122 finalize_shlibpath=
5123 convenience=
5124 old_convenience=
5125 deplibs=
5126 old_deplibs=
5127 compiler_flags=
5128 linker_flags=
5129 dllsearchpath=
5130 lib_search_path=`pwd`
5131 inst_prefix_dir=
5132 new_inherited_linker_flags=
5133
5134 avoid_version=no
5135 bindir=
5136 dlfiles=
5137 dlprefiles=
5138 dlself=no
5139 export_dynamic=no
5140 export_symbols=
5141 export_symbols_regex=
5142 generated=
5143 libobjs=
5144 ltlibs=
5145 module=no
5146 no_install=no
5147 objs=
5148 non_pic_objects=
5149 precious_files_regex=
5150 prefer_static_libs=no
5151 preload=no
5152 prev=
5153 prevarg=
5154 release=
5155 rpath=
5156 xrpath=
5157 perm_rpath=
5158 temp_rpath=
5159 thread_safe=no
5160 vinfo=
5161 vinfo_number=no
5162 weak_libs=
5163 single_module="${wl}-single_module"
5164 func_infer_tag $base_compile
5165
5166 # We need to know -static, to get the right output filenames.
5167 for arg
5168 do
5169 case $arg in
5170 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
5173 build_old_libs=no
5174 break
5175 ;;
5176 -all-static | -static | -static-libtool-libs)
5177 case $arg in
5178 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5180 func_warning "complete static linking is impossible in this configuration"
5181 fi
5182 if test -n "$link_static_flag"; then
5183 dlopen_self=$dlopen_self_static
5184 fi
5185 prefer_static_libs=yes
5186 ;;
5187 -static)
5188 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5189 dlopen_self=$dlopen_self_static
5190 fi
5191 prefer_static_libs=built
5192 ;;
5193 -static-libtool-libs)
5194 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5195 dlopen_self=$dlopen_self_static
5196 fi
5197 prefer_static_libs=yes
5198 ;;
5199 esac
5200 build_libtool_libs=no
5201 build_old_libs=yes
5202 break
5203 ;;
5204 esac
5205 done
5206
5207 # See if our shared archives depend on static archives.
5208 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5209
5210 # Go through the arguments, transforming them on the way.
5211 while test "$#" -gt 0; do
5212 arg="$1"
5213 shift
5214 func_quote_for_eval "$arg"
5215 qarg=$func_quote_for_eval_unquoted_result
5216 func_append libtool_args " $func_quote_for_eval_result"
5217
5218 # If the previous option needs an argument, assign it.
5219 if test -n "$prev"; then
5220 case $prev in
5221 output)
5222 func_append compile_command " @OUTPUT@"
5223 func_append finalize_command " @OUTPUT@"
5224 ;;
5225 esac
5226
5227 case $prev in
5228 bindir)
5229 bindir="$arg"
5230 prev=
5231 continue
5232 ;;
5233 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
5235 # Add the symbol object into the linking commands.
5236 func_append compile_command " @SYMFILE@"
5237 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
5240 case $arg in
5241 *.la | *.lo) ;; # We handle these cases below.
5242 force)
5243 if test "$dlself" = no; then
5244 dlself=needless
5245 export_dynamic=yes
5246 fi
5247 prev=
5248 continue
5249 ;;
5250 self)
5251 if test "$prev" = dlprefiles; then
5252 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
5254 dlself=yes
5255 else
5256 dlself=needless
5257 export_dynamic=yes
5258 fi
5259 prev=
5260 continue
5261 ;;
5262 *)
5263 if test "$prev" = dlfiles; then
5264 func_append dlfiles " $arg"
5265 else
5266 func_append dlprefiles " $arg"
5267 fi
5268 prev=
5269 continue
5270 ;;
5271 esac
5272 ;;
5273 expsyms)
5274 export_symbols="$arg"
5275 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
5277 prev=
5278 continue
5279 ;;
5280 expsyms_regex)
5281 export_symbols_regex="$arg"
5282 prev=
5283 continue
5284 ;;
5285 framework)
5286 case $host in
5287 *-*-darwin*)
5288 case "$deplibs " in
5289 *" $qarg.ltframework "*) ;;
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
5291 ;;
5292 esac
5293 ;;
5294 esac
5295 prev=
5296 continue
5297 ;;
5298 inst_prefix)
5299 inst_prefix_dir="$arg"
5300 prev=
5301 continue
5302 ;;
5303 objectlist)
5304 if test -f "$arg"; then
5305 save_arg=$arg
5306 moreargs=
5307 for fil in `cat "$save_arg"`
5308 do
5309 # func_append moreargs " $fil"
5310 arg=$fil
5311 # A libtool-controlled object.
5312
5313 # Check to see that this really is a libtool object.
5314 if func_lalib_unsafe_p "$arg"; then
5315 pic_object=
5316 non_pic_object=
5317
5318 # Read the .lo file
5319 func_source "$arg"
5320
5321 if test -z "$pic_object" ||
5322 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
5326 fi
5327
5328 # Extract subdirectory from the argument.
5329 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
5333 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5338 func_append dlfiles " $pic_object"
5339 prev=
5340 continue
5341 else
5342 # If libtool objects are unsupported, then we need to preload.
5343 prev=dlprefiles
5344 fi
5345 fi
5346
5347 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
5349 # Preload the old-style object.
5350 func_append dlprefiles " $pic_object"
5351 prev=
5352 fi
5353
5354 # A PIC object.
5355 func_append libobjs " $pic_object"
5356 arg="$pic_object"
5357 fi
5358
5359 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
5361 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
5363
5364 # A standard non-PIC object
5365 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
5368 fi
5369 else
5370 # If the PIC object exists, use it instead.
5371 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
5373 func_append non_pic_objects " $non_pic_object"
5374 fi
5375 else
5376 # Only an error if not doing a dry-run.
5377 if $opt_dry_run; then
5378 # Extract subdirectory from the argument.
5379 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
5381
5382 func_lo2o "$arg"
5383 pic_object=$xdir$objdir/$func_lo2o_result
5384 non_pic_object=$xdir$func_lo2o_result
5385 func_append libobjs " $pic_object"
5386 func_append non_pic_objects " $non_pic_object"
5387 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
5389 fi
5390 fi
5391 done
5392 else
5393 func_fatal_error "link input file \`$arg' does not exist"
5394 fi
5395 arg=$save_arg
5396 prev=
5397 continue
5398 ;;
5399 precious_regex)
5400 precious_files_regex="$arg"
5401 prev=
5402 continue
5403 ;;
5404 release)
5405 release="-$arg"
5406 prev=
5407 continue
5408 ;;
5409 rpath | xrpath)
5410 # We need an absolute path.
5411 case $arg in
5412 [\\/]* | [A-Za-z]:[\\/]*) ;;
5413 *)
5414 func_fatal_error "only absolute run-paths are allowed"
5415 ;;
5416 esac
5417 if test "$prev" = rpath; then
5418 case "$rpath " in
5419 *" $arg "*) ;;
5420 *) func_append rpath " $arg" ;;
5421 esac
5422 else
5423 case "$xrpath " in
5424 *" $arg "*) ;;
5425 *) func_append xrpath " $arg" ;;
5426 esac
5427 fi
5428 prev=
5429 continue
5430 ;;
5431 shrext)
5432 shrext_cmds="$arg"
5433 prev=
5434 continue
5435 ;;
5436 weak)
5437 func_append weak_libs " $arg"
5438 prev=
5439 continue
5440 ;;
5441 xcclinker)
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
5444 prev=
5445 func_append compile_command " $qarg"
5446 func_append finalize_command " $qarg"
5447 continue
5448 ;;
5449 xcompiler)
5450 func_append compiler_flags " $qarg"
5451 prev=
5452 func_append compile_command " $qarg"
5453 func_append finalize_command " $qarg"
5454 continue
5455 ;;
5456 xlinker)
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
5459 prev=
5460 func_append compile_command " $wl$qarg"
5461 func_append finalize_command " $wl$qarg"
5462 continue
5463 ;;
5464 *)
5465 eval "$prev=\"\$arg\""
5466 prev=
5467 continue
5468 ;;
5469 esac
5470 fi # test -n "$prev"
5471
5472 prevarg="$arg"
5473
5474 case $arg in
5475 -all-static)
5476 if test -n "$link_static_flag"; then
5477 # See comment for -static flag below, for more details.
5478 func_append compile_command " $link_static_flag"
5479 func_append finalize_command " $link_static_flag"
5480 fi
5481 continue
5482 ;;
5483
5484 -allow-undefined)
5485 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5487 ;;
5488
5489 -avoid-version)
5490 avoid_version=yes
5491 continue
5492 ;;
5493
5494 -bindir)
5495 prev=bindir
5496 continue
5497 ;;
5498
5499 -dlopen)
5500 prev=dlfiles
5501 continue
5502 ;;
5503
5504 -dlpreopen)
5505 prev=dlprefiles
5506 continue
5507 ;;
5508
5509 -export-dynamic)
5510 export_dynamic=yes
5511 continue
5512 ;;
5513
5514 -export-symbols | -export-symbols-regex)
5515 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5516 func_fatal_error "more than one -exported-symbols argument is not allowed"
5517 fi
5518 if test "X$arg" = "X-export-symbols"; then
5519 prev=expsyms
5520 else
5521 prev=expsyms_regex
5522 fi
5523 continue
5524 ;;
5525
5526 -framework)
5527 prev=framework
5528 continue
5529 ;;
5530
5531 -inst-prefix-dir)
5532 prev=inst_prefix
5533 continue
5534 ;;
5535
5536 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5537 # so, if we see these flags be careful not to treat them like -L
5538 -L[A-Z][A-Z]*:*)
5539 case $with_gcc/$host in
5540 no/*-*-irix* | /*-*-irix*)
5541 func_append compile_command " $arg"
5542 func_append finalize_command " $arg"
5543 ;;
5544 esac
5545 continue
5546 ;;
5547
5548 -L*)
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
5551 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
5553 else
5554 func_fatal_error "need path for \`-L' option"
5555 fi
5556 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
5559 # We need an absolute path.
5560 case $dir in
5561 [\\/]* | [A-Za-z]:[\\/]*) ;;
5562 *)
5563 absdir=`cd "$dir" && pwd`
5564 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
5567 ;;
5568 esac
5569 case "$deplibs " in
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
5573 *)
5574 # Preserve sysroot, but never include relative directories
5575 case $dir in
5576 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5577 *) func_append deplibs " -L$dir" ;;
5578 esac
5579 func_append lib_search_path " $dir"
5580 ;;
5581 esac
5582 case $host in
5583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5584 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
5585 case :$dllsearchpath: in
5586 *":$dir:"*) ;;
5587 ::) dllsearchpath=$dir;;
5588 *) func_append dllsearchpath ":$dir";;
5589 esac
5590 case :$dllsearchpath: in
5591 *":$testbindir:"*) ;;
5592 ::) dllsearchpath=$testbindir;;
5593 *) func_append dllsearchpath ":$testbindir";;
5594 esac
5595 ;;
5596 esac
5597 continue
5598 ;;
5599
5600 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5602 case $host in
5603 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
5604 # These systems don't actually have a C or math library (as such)
5605 continue
5606 ;;
5607 *-*-os2*)
5608 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
5610 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5612 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
5614 ;;
5615 *-*-rhapsody* | *-*-darwin1.[012])
5616 # Rhapsody C and math libraries are in the System framework
5617 func_append deplibs " System.ltframework"
5618 continue
5619 ;;
5620 *-*-sco3.2v5* | *-*-sco5v6*)
5621 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
5623 ;;
5624 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5625 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
5627 ;;
5628 esac
5629 elif test "X$arg" = "X-lc_r"; then
5630 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5632 # Do not include libc_r directly, use -pthread flag.
5633 continue
5634 ;;
5635 esac
5636 fi
5637 func_append deplibs " $arg"
5638 continue
5639 ;;
5640
5641 -module)
5642 module=yes
5643 continue
5644 ;;
5645
5646 # Tru64 UNIX uses -model [arg] to determine the layout of C++
5647 # classes, name mangling, and exception handling.
5648 # Darwin uses the -arch flag to determine output architecture.
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
5651 func_append compile_command " $arg"
5652 func_append finalize_command " $arg"
5653 prev=xcompiler
5654 continue
5655 ;;
5656
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
5660 func_append compile_command " $arg"
5661 func_append finalize_command " $arg"
5662 case "$new_inherited_linker_flags " in
5663 *" $arg "*) ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
5665 esac
5666 continue
5667 ;;
5668
5669 -multi_module)
5670 single_module="${wl}-multi_module"
5671 continue
5672 ;;
5673
5674 -no-fast-install)
5675 fast_install=no
5676 continue
5677 ;;
5678
5679 -no-install)
5680 case $host in
5681 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
5682 # The PATH hackery in wrapper scripts is required on Windows
5683 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
5686 fast_install=no
5687 ;;
5688 *) no_install=yes ;;
5689 esac
5690 continue
5691 ;;
5692
5693 -no-undefined)
5694 allow_undefined=no
5695 continue
5696 ;;
5697
5698 -objectlist)
5699 prev=objectlist
5700 continue
5701 ;;
5702
5703 -o) prev=output ;;
5704
5705 -precious-files-regex)
5706 prev=precious_regex
5707 continue
5708 ;;
5709
5710 -release)
5711 prev=release
5712 continue
5713 ;;
5714
5715 -rpath)
5716 prev=rpath
5717 continue
5718 ;;
5719
5720 -R)
5721 prev=xrpath
5722 continue
5723 ;;
5724
5725 -R*)
5726 func_stripname '-R' '' "$arg"
5727 dir=$func_stripname_result
5728 # We need an absolute path.
5729 case $dir in
5730 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
5735 *)
5736 func_fatal_error "only absolute run-paths are allowed"
5737 ;;
5738 esac
5739 case "$xrpath " in
5740 *" $dir "*) ;;
5741 *) func_append xrpath " $dir" ;;
5742 esac
5743 continue
5744 ;;
5745
5746 -shared)
5747 # The effects of -shared are defined in a previous loop.
5748 continue
5749 ;;
5750
5751 -shrext)
5752 prev=shrext
5753 continue
5754 ;;
5755
5756 -static | -static-libtool-libs)
5757 # The effects of -static are defined in a previous loop.
5758 # We used to do the same as -all-static on platforms that
5759 # didn't have a PIC flag, but the assumption that the effects
5760 # would be equivalent was wrong. It would break on at least
5761 # Digital Unix and AIX.
5762 continue
5763 ;;
5764
5765 -thread-safe)
5766 thread_safe=yes
5767 continue
5768 ;;
5769
5770 -version-info)
5771 prev=vinfo
5772 continue
5773 ;;
5774
5775 -version-number)
5776 prev=vinfo
5777 vinfo_number=yes
5778 continue
5779 ;;
5780
5781 -weak)
5782 prev=weak
5783 continue
5784 ;;
5785
5786 -Wc,*)
5787 func_stripname '-Wc,' '' "$arg"
5788 args=$func_stripname_result
5789 arg=
5790 save_ifs="$IFS"; IFS=','
5791 for flag in $args; do
5792 IFS="$save_ifs"
5793 func_quote_for_eval "$flag"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
5796 done
5797 IFS="$save_ifs"
5798 func_stripname ' ' '' "$arg"
5799 arg=$func_stripname_result
5800 ;;
5801
5802 -Wl,*)
5803 func_stripname '-Wl,' '' "$arg"
5804 args=$func_stripname_result
5805 arg=
5806 save_ifs="$IFS"; IFS=','
5807 for flag in $args; do
5808 IFS="$save_ifs"
5809 func_quote_for_eval "$flag"
5810 func_append arg " $wl$func_quote_for_eval_result"
5811 func_append compiler_flags " $wl$func_quote_for_eval_result"
5812 func_append linker_flags " $func_quote_for_eval_result"
5813 done
5814 IFS="$save_ifs"
5815 func_stripname ' ' '' "$arg"
5816 arg=$func_stripname_result
5817 ;;
5818
5819 -Xcompiler)
5820 prev=xcompiler
5821 continue
5822 ;;
5823
5824 -Xlinker)
5825 prev=xlinker
5826 continue
5827 ;;
5828
5829 -XCClinker)
5830 prev=xcclinker
5831 continue
5832 ;;
5833
5834 # -msg_* for osf cc
5835 -msg_*)
5836 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
5838 ;;
5839
5840 # Flags to be passed through unchanged, with rationale:
5841 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5842 # -r[0-9][0-9]* specify processor for the SGI compiler
5843 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5844 # +DA*, +DD* enable 64-bit mode for the HP compiler
5845 # -q* compiler args for the IBM compiler
5846 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5847 # -F/path path to uninstalled frameworks, gcc on darwin
5848 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5849 # @file GCC response files
5850 # -tp=* Portland pgcc target processor selection
5851 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
5853 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
5856 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
5858 func_append compile_command " $arg"
5859 func_append finalize_command " $arg"
5860 func_append compiler_flags " $arg"
5861 continue
5862 ;;
5863
5864 # Some other compiler flag.
5865 -* | +*)
5866 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
5868 ;;
5869
5870 *.$objext)
5871 # A standard object.
5872 func_append objs " $arg"
5873 ;;
5874
5875 *.lo)
5876 # A libtool-controlled object.
5877
5878 # Check to see that this really is a libtool object.
5879 if func_lalib_unsafe_p "$arg"; then
5880 pic_object=
5881 non_pic_object=
5882
5883 # Read the .lo file
5884 func_source "$arg"
5885
5886 if test -z "$pic_object" ||
5887 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
5891 fi
5892
5893 # Extract subdirectory from the argument.
5894 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
5898 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5903 func_append dlfiles " $pic_object"
5904 prev=
5905 continue
5906 else
5907 # If libtool objects are unsupported, then we need to preload.
5908 prev=dlprefiles
5909 fi
5910 fi
5911
5912 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
5914 # Preload the old-style object.
5915 func_append dlprefiles " $pic_object"
5916 prev=
5917 fi
5918
5919 # A PIC object.
5920 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
5923
5924 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
5926 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
5928
5929 # A standard non-PIC object
5930 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
5933 fi
5934 else
5935 # If the PIC object exists, use it instead.
5936 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
5938 func_append non_pic_objects " $non_pic_object"
5939 fi
5940 else
5941 # Only an error if not doing a dry-run.
5942 if $opt_dry_run; then
5943 # Extract subdirectory from the argument.
5944 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
5946
5947 func_lo2o "$arg"
5948 pic_object=$xdir$objdir/$func_lo2o_result
5949 non_pic_object=$xdir$func_lo2o_result
5950 func_append libobjs " $pic_object"
5951 func_append non_pic_objects " $non_pic_object"
5952 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
5954 fi
5955 fi
5956 ;;
5957
5958 *.$libext)
5959 # An archive.
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
5962 continue
5963 ;;
5964
5965 *.la)
5966 # A libtool-controlled library.
5967
5968 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
5970 # This library was specified with -dlopen.
5971 func_append dlfiles " $func_resolve_sysroot_result"
5972 prev=
5973 elif test "$prev" = dlprefiles; then
5974 # The library was specified with -dlpreopen.
5975 func_append dlprefiles " $func_resolve_sysroot_result"
5976 prev=
5977 else
5978 func_append deplibs " $func_resolve_sysroot_result"
5979 fi
5980 continue
5981 ;;
5982
5983 # Some other compiler argument.
5984 *)
5985 # Unknown arguments in both finalize_command and compile_command need
5986 # to be aesthetically quoted because they are evaled later.
5987 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
5989 ;;
5990 esac # arg
5991
5992 # Now actually substitute the argument into the commands.
5993 if test -n "$arg"; then
5994 func_append compile_command " $arg"
5995 func_append finalize_command " $arg"
5996 fi
5997 done # argument parsing loop
5998
5999 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6003 eval arg=\"$export_dynamic_flag_spec\"
6004 func_append compile_command " $arg"
6005 func_append finalize_command " $arg"
6006 fi
6007
6008 oldlibs=
6009 # calculate the name of the file, without its directory
6010 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
6013
6014 if test -n "$shlibpath_var"; then
6015 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
6017 else
6018 shlib_search_path=
6019 fi
6020 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
6021 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
6022
6023 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
6027 # Create the object directory.
6028 func_mkdir_p "$output_objdir"
6029
6030 # Determine the type of output
6031 case $output in
6032 "")
6033 func_fatal_help "you must specify an output file"
6034 ;;
6035 *.$libext) linkmode=oldlib ;;
6036 *.lo | *.$objext) linkmode=obj ;;
6037 *.la) linkmode=lib ;;
6038 *) linkmode=prog ;; # Anything else should be a program.
6039 esac
6040
6041 specialdeplibs=
6042
6043 libs=
6044 # Find all interdependent deplibs by searching for libraries
6045 # that are linked more than once (e.g. -la -lb -la)
6046 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
6048 case "$libs " in
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6050 esac
6051 fi
6052 func_append libs " $deplib"
6053 done
6054
6055 if test "$linkmode" = lib; then
6056 libs="$predeps $libs $compiler_lib_search_path $postdeps"
6057
6058 # Compute libraries that are listed more than once in $predeps
6059 # $postdeps and mark them as special (i.e., whose duplicates are
6060 # not to be eliminated).
6061 pre_post_deps=
6062 if $opt_duplicate_compiler_generated_deps; then
6063 for pre_post_dep in $predeps $postdeps; do
6064 case "$pre_post_deps " in
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
6066 esac
6067 func_append pre_post_deps " $pre_post_dep"
6068 done
6069 fi
6070 pre_post_deps=
6071 fi
6072
6073 deplibs=
6074 newdependency_libs=
6075 newlib_search_path=
6076 need_relink=no # whether we're linking any uninstalled libtool libraries
6077 notinst_deplibs= # not-installed libtool libraries
6078 notinst_path= # paths that contain not-installed libtool libraries
6079
6080 case $linkmode in
6081 lib)
6082 passes="conv dlpreopen link"
6083 for file in $dlfiles $dlprefiles; do
6084 case $file in
6085 *.la) ;;
6086 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6088 ;;
6089 esac
6090 done
6091 ;;
6092 prog)
6093 compile_deplibs=
6094 finalize_deplibs=
6095 alldeplibs=no
6096 newdlfiles=
6097 newdlprefiles=
6098 passes="conv scan dlopen dlpreopen link"
6099 ;;
6100 *) passes="conv"
6101 ;;
6102 esac
6103
6104 for pass in $passes; do
6105 # The preopen pass in lib mode reverses $deplibs; put it back here
6106 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
6108 ## FIXME: Find the place where the list is rebuilt in the wrong
6109 ## order, and fix it there properly
6110 tmp_deplibs=
6111 for deplib in $deplibs; do
6112 tmp_deplibs="$deplib $tmp_deplibs"
6113 done
6114 deplibs="$tmp_deplibs"
6115 fi
6116
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
6120 deplibs=
6121 fi
6122 if test "$linkmode" = prog; then
6123 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
6126 link)
6127 libs="$deplibs %DEPLIBS%"
6128 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
6129 ;;
6130 esac
6131 fi
6132 if test "$linkmode,$pass" = "lib,dlpreopen"; then
6133 # Collect and forward deplibs of preopened libtool libs
6134 for lib in $dlprefiles; do
6135 # Ignore non-libtool-libs
6136 dependency_libs=
6137 func_resolve_sysroot "$lib"
6138 case $lib in
6139 *.la) func_source "$func_resolve_sysroot_result" ;;
6140 esac
6141
6142 # Collect preopened libtool deplibs, except any this library
6143 # has declared as weak libs
6144 for deplib in $dependency_libs; do
6145 func_basename "$deplib"
6146 deplib_base=$func_basename_result
6147 case " $weak_libs " in
6148 *" $deplib_base "*) ;;
6149 *) func_append deplibs " $deplib" ;;
6150 esac
6151 done
6152 done
6153 libs="$dlprefiles"
6154 fi
6155 if test "$pass" = dlopen; then
6156 # Collect dlpreopened libraries
6157 save_deplibs="$deplibs"
6158 deplibs=
6159 fi
6160
6161 for deplib in $libs; do
6162 lib=
6163 found=no
6164 case $deplib in
6165 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6166 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6167 if test "$linkmode,$pass" = "prog,link"; then
6168 compile_deplibs="$deplib $compile_deplibs"
6169 finalize_deplibs="$deplib $finalize_deplibs"
6170 else
6171 func_append compiler_flags " $deplib"
6172 if test "$linkmode" = lib ; then
6173 case "$new_inherited_linker_flags " in
6174 *" $deplib "*) ;;
6175 * ) func_append new_inherited_linker_flags " $deplib" ;;
6176 esac
6177 fi
6178 fi
6179 continue
6180 ;;
6181 -l*)
6182 if test "$linkmode" != lib && test "$linkmode" != prog; then
6183 func_warning "\`-l' is ignored for archives/objects"
6184 continue
6185 fi
6186 func_stripname '-l' '' "$deplib"
6187 name=$func_stripname_result
6188 if test "$linkmode" = lib; then
6189 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
6190 else
6191 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
6192 fi
6193 for searchdir in $searchdirs; do
6194 for search_ext in .la $std_shrext .so .a; do
6195 # Search the libtool library
6196 lib="$searchdir/lib${name}${search_ext}"
6197 if test -f "$lib"; then
6198 if test "$search_ext" = ".la"; then
6199 found=yes
6200 else
6201 found=no
6202 fi
6203 break 2
6204 fi
6205 done
6206 done
6207 if test "$found" != yes; then
6208 # deplib doesn't seem to be a libtool library
6209 if test "$linkmode,$pass" = "prog,link"; then
6210 compile_deplibs="$deplib $compile_deplibs"
6211 finalize_deplibs="$deplib $finalize_deplibs"
6212 else
6213 deplibs="$deplib $deplibs"
6214 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6215 fi
6216 continue
6217 else # deplib is a libtool library
6218 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
6219 # We need to do some special things here, and not later.
6220 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6221 case " $predeps $postdeps " in
6222 *" $deplib "*)
6223 if func_lalib_p "$lib"; then
6224 library_names=
6225 old_library=
6226 func_source "$lib"
6227 for l in $old_library $library_names; do
6228 ll="$l"
6229 done
6230 if test "X$ll" = "X$old_library" ; then # only static version available
6231 found=no
6232 func_dirname "$lib" "" "."
6233 ladir="$func_dirname_result"
6234 lib=$ladir/$old_library
6235 if test "$linkmode,$pass" = "prog,link"; then
6236 compile_deplibs="$deplib $compile_deplibs"
6237 finalize_deplibs="$deplib $finalize_deplibs"
6238 else
6239 deplibs="$deplib $deplibs"
6240 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6241 fi
6242 continue
6243 fi
6244 fi
6245 ;;
6246 *) ;;
6247 esac
6248 fi
6249 fi
6250 ;; # -l
6251 *.ltframework)
6252 if test "$linkmode,$pass" = "prog,link"; then
6253 compile_deplibs="$deplib $compile_deplibs"
6254 finalize_deplibs="$deplib $finalize_deplibs"
6255 else
6256 deplibs="$deplib $deplibs"
6257 if test "$linkmode" = lib ; then
6258 case "$new_inherited_linker_flags " in
6259 *" $deplib "*) ;;
6260 * ) func_append new_inherited_linker_flags " $deplib" ;;
6261 esac
6262 fi
6263 fi
6264 continue
6265 ;;
6266 -L*)
6267 case $linkmode in
6268 lib)
6269 deplibs="$deplib $deplibs"
6270 test "$pass" = conv && continue
6271 newdependency_libs="$deplib $newdependency_libs"
6272 func_stripname '-L' '' "$deplib"
6273 func_resolve_sysroot "$func_stripname_result"
6274 func_append newlib_search_path " $func_resolve_sysroot_result"
6275 ;;
6276 prog)
6277 if test "$pass" = conv; then
6278 deplibs="$deplib $deplibs"
6279 continue
6280 fi
6281 if test "$pass" = scan; then
6282 deplibs="$deplib $deplibs"
6283 else
6284 compile_deplibs="$deplib $compile_deplibs"
6285 finalize_deplibs="$deplib $finalize_deplibs"
6286 fi
6287 func_stripname '-L' '' "$deplib"
6288 func_resolve_sysroot "$func_stripname_result"
6289 func_append newlib_search_path " $func_resolve_sysroot_result"
6290 ;;
6291 *)
6292 func_warning "\`-L' is ignored for archives/objects"
6293 ;;
6294 esac # linkmode
6295 continue
6296 ;; # -L
6297 -R*)
6298 if test "$pass" = link; then
6299 func_stripname '-R' '' "$deplib"
6300 func_resolve_sysroot "$func_stripname_result"
6301 dir=$func_resolve_sysroot_result
6302 # Make sure the xrpath contains only unique directories.
6303 case "$xrpath " in
6304 *" $dir "*) ;;
6305 *) func_append xrpath " $dir" ;;
6306 esac
6307 fi
6308 deplibs="$deplib $deplibs"
6309 continue
6310 ;;
6311 *.la)
6312 func_resolve_sysroot "$deplib"
6313 lib=$func_resolve_sysroot_result
6314 ;;
6315 *.$libext)
6316 if test "$pass" = conv; then
6317 deplibs="$deplib $deplibs"
6318 continue
6319 fi
6320 case $linkmode in
6321 lib)
6322 # Linking convenience modules into shared libraries is allowed,
6323 # but linking other static libraries is non-portable.
6324 case " $dlpreconveniencelibs " in
6325 *" $deplib "*) ;;
6326 *)
6327 valid_a_lib=no
6328 case $deplibs_check_method in
6329 match_pattern*)
6330 set dummy $deplibs_check_method; shift
6331 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6332 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
6333 | $EGREP "$match_pattern_regex" > /dev/null; then
6334 valid_a_lib=yes
6335 fi
6336 ;;
6337 pass_all)
6338 valid_a_lib=yes
6339 ;;
6340 esac
6341 if test "$valid_a_lib" != yes; then
6342 echo
6343 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
6344 echo "*** I have the capability to make that library automatically link in when"
6345 echo "*** you link to this library. But I can only do this if you have a"
6346 echo "*** shared version of the library, which you do not appear to have"
6347 echo "*** because the file extensions .$libext of this argument makes me believe"
6348 echo "*** that it is just a static archive that I should not use here."
6349 else
6350 echo
6351 $ECHO "*** Warning: Linking the shared library $output against the"
6352 $ECHO "*** static library $deplib is not portable!"
6353 deplibs="$deplib $deplibs"
6354 fi
6355 ;;
6356 esac
6357 continue
6358 ;;
6359 prog)
6360 if test "$pass" != link; then
6361 deplibs="$deplib $deplibs"
6362 else
6363 compile_deplibs="$deplib $compile_deplibs"
6364 finalize_deplibs="$deplib $finalize_deplibs"
6365 fi
6366 continue
6367 ;;
6368 esac # linkmode
6369 ;; # *.$libext
6370 *.lo | *.$objext)
6371 if test "$pass" = conv; then
6372 deplibs="$deplib $deplibs"
6373 elif test "$linkmode" = prog; then
6374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
6375 # If there is no dlopen support or we're linking statically,
6376 # we need to preload.
6377 func_append newdlprefiles " $deplib"
6378 compile_deplibs="$deplib $compile_deplibs"
6379 finalize_deplibs="$deplib $finalize_deplibs"
6380 else
6381 func_append newdlfiles " $deplib"
6382 fi
6383 fi
6384 continue
6385 ;;
6386 %DEPLIBS%)
6387 alldeplibs=yes
6388 continue
6389 ;;
6390 esac # case $deplib
6391
6392 if test "$found" = yes || test -f "$lib"; then :
6393 else
6394 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6395 fi
6396
6397 # Check to see that this really is a libtool archive.
6398 func_lalib_unsafe_p "$lib" \
6399 || func_fatal_error "\`$lib' is not a valid libtool archive"
6400
6401 func_dirname "$lib" "" "."
6402 ladir="$func_dirname_result"
6403
6404 dlname=
6405 dlopen=
6406 dlpreopen=
6407 libdir=
6408 library_names=
6409 old_library=
6410 inherited_linker_flags=
6411 # If the library was installed with an old release of libtool,
6412 # it will not redefine variables installed, or shouldnotlink
6413 installed=yes
6414 shouldnotlink=no
6415 avoidtemprpath=
6416
6417
6418 # Read the .la file
6419 func_source "$lib"
6420
6421 # Convert "-framework foo" to "foo.ltframework"
6422 if test -n "$inherited_linker_flags"; then
6423 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
6424 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
6425 case " $new_inherited_linker_flags " in
6426 *" $tmp_inherited_linker_flag "*) ;;
6427 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
6428 esac
6429 done
6430 fi
6431 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6432 if test "$linkmode,$pass" = "lib,link" ||
6433 test "$linkmode,$pass" = "prog,scan" ||
6434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
6435 test -n "$dlopen" && func_append dlfiles " $dlopen"
6436 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
6437 fi
6438
6439 if test "$pass" = conv; then
6440 # Only check for convenience libraries
6441 deplibs="$lib $deplibs"
6442 if test -z "$libdir"; then
6443 if test -z "$old_library"; then
6444 func_fatal_error "cannot find name of link library for \`$lib'"
6445 fi
6446 # It is a libtool convenience library, so add in its objects.
6447 func_append convenience " $ladir/$objdir/$old_library"
6448 func_append old_convenience " $ladir/$objdir/$old_library"
6449 tmp_libs=
6450 for deplib in $dependency_libs; do
6451 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
6453 case "$tmp_libs " in
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6455 esac
6456 fi
6457 func_append tmp_libs " $deplib"
6458 done
6459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6460 func_fatal_error "\`$lib' is not a convenience library"
6461 fi
6462 continue
6463 fi # $pass = conv
6464
6465
6466 # Get the name of the library we link against.
6467 linklib=
6468 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
6471 linklib=$old_library
6472 else
6473 for l in $old_library $library_names; do
6474 linklib="$l"
6475 done
6476 fi
6477 if test -z "$linklib"; then
6478 func_fatal_error "cannot find name of link library for \`$lib'"
6479 fi
6480
6481 # This library was specified with -dlopen.
6482 if test "$pass" = dlopen; then
6483 if test -z "$libdir"; then
6484 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6485 fi
6486 if test -z "$dlname" ||
6487 test "$dlopen_support" != yes ||
6488 test "$build_libtool_libs" = no; then
6489 # If there is no dlname, no dlopen support or we're linking
6490 # statically, we need to preload. We also need to preload any
6491 # dependent libraries so libltdl's deplib preloader doesn't
6492 # bomb out in the load deplibs phase.
6493 func_append dlprefiles " $lib $dependency_libs"
6494 else
6495 func_append newdlfiles " $lib"
6496 fi
6497 continue
6498 fi # $pass = dlopen
6499
6500 # We need an absolute path.
6501 case $ladir in
6502 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6503 *)
6504 abs_ladir=`cd "$ladir" && pwd`
6505 if test -z "$abs_ladir"; then
6506 func_warning "cannot determine absolute directory name of \`$ladir'"
6507 func_warning "passing it literally to the linker, although it might fail"
6508 abs_ladir="$ladir"
6509 fi
6510 ;;
6511 esac
6512 func_basename "$lib"
6513 laname="$func_basename_result"
6514
6515 # Find the relevant object directory and library name.
6516 if test "X$installed" = Xyes; then
6517 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6518 func_warning "library \`$lib' was moved."
6519 dir="$ladir"
6520 absdir="$abs_ladir"
6521 libdir="$abs_ladir"
6522 else
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
6525 fi
6526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
6527 else
6528 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6529 dir="$ladir"
6530 absdir="$abs_ladir"
6531 # Remove this search path later
6532 func_append notinst_path " $abs_ladir"
6533 else
6534 dir="$ladir/$objdir"
6535 absdir="$abs_ladir/$objdir"
6536 # Remove this search path later
6537 func_append notinst_path " $abs_ladir"
6538 fi
6539 fi # $installed = yes
6540 func_stripname 'lib' '.la' "$laname"
6541 name=$func_stripname_result
6542
6543 # This library was specified with -dlpreopen.
6544 if test "$pass" = dlpreopen; then
6545 if test -z "$libdir" && test "$linkmode" = prog; then
6546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6547 fi
6548 case "$host" in
6549 # special handling for platforms with PE-DLLs.
6550 *cygwin* | *mingw* | *cegcc* )
6551 # Linker will automatically link against shared library if both
6552 # static and shared are present. Therefore, ensure we extract
6553 # symbols from the import library if a shared library is present
6554 # (otherwise, the dlopen module name will be incorrect). We do
6555 # this by putting the import library name into $newdlprefiles.
6556 # We recover the dlopen module name by 'saving' the la file
6557 # name in a special purpose variable, and (later) extracting the
6558 # dlname from the la file.
6559 if test -n "$dlname"; then
6560 func_tr_sh "$dir/$linklib"
6561 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6562 func_append newdlprefiles " $dir/$linklib"
6563 else
6564 func_append newdlprefiles " $dir/$old_library"
6565 # Keep a list of preopened convenience libraries to check
6566 # that they are being used correctly in the link pass.
6567 test -z "$libdir" && \
6568 func_append dlpreconveniencelibs " $dir/$old_library"
6569 fi
6570 ;;
6571 * )
6572 # Prefer using a static library (so that no silly _DYNAMIC symbols
6573 # are required to link).
6574 if test -n "$old_library"; then
6575 func_append newdlprefiles " $dir/$old_library"
6576 # Keep a list of preopened convenience libraries to check
6577 # that they are being used correctly in the link pass.
6578 test -z "$libdir" && \
6579 func_append dlpreconveniencelibs " $dir/$old_library"
6580 # Otherwise, use the dlname, so that lt_dlopen finds it.
6581 elif test -n "$dlname"; then
6582 func_append newdlprefiles " $dir/$dlname"
6583 else
6584 func_append newdlprefiles " $dir/$linklib"
6585 fi
6586 ;;
6587 esac
6588 fi # $pass = dlpreopen
6589
6590 if test -z "$libdir"; then
6591 # Link the convenience library
6592 if test "$linkmode" = lib; then
6593 deplibs="$dir/$old_library $deplibs"
6594 elif test "$linkmode,$pass" = "prog,link"; then
6595 compile_deplibs="$dir/$old_library $compile_deplibs"
6596 finalize_deplibs="$dir/$old_library $finalize_deplibs"
6597 else
6598 deplibs="$lib $deplibs" # used for prog,scan pass
6599 fi
6600 continue
6601 fi
6602
6603
6604 if test "$linkmode" = prog && test "$pass" != link; then
6605 func_append newlib_search_path " $ladir"
6606 deplibs="$lib $deplibs"
6607
6608 linkalldeplibs=no
6609 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6610 test "$build_libtool_libs" = no; then
6611 linkalldeplibs=yes
6612 fi
6613
6614 tmp_libs=
6615 for deplib in $dependency_libs; do
6616 case $deplib in
6617 -L*) func_stripname '-L' '' "$deplib"
6618 func_resolve_sysroot "$func_stripname_result"
6619 func_append newlib_search_path " $func_resolve_sysroot_result"
6620 ;;
6621 esac
6622 # Need to link against all dependency_libs?
6623 if test "$linkalldeplibs" = yes; then
6624 deplibs="$deplib $deplibs"
6625 else
6626 # Need to hardcode shared library paths
6627 # or/and link against static libraries
6628 newdependency_libs="$deplib $newdependency_libs"
6629 fi
6630 if $opt_preserve_dup_deps ; then
6631 case "$tmp_libs " in
6632 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6633 esac
6634 fi
6635 func_append tmp_libs " $deplib"
6636 done # for deplib
6637 continue
6638 fi # $linkmode = prog...
6639
6640 if test "$linkmode,$pass" = "prog,link"; then
6641 if test -n "$library_names" &&
6642 { { test "$prefer_static_libs" = no ||
6643 test "$prefer_static_libs,$installed" = "built,yes"; } ||
6644 test -z "$old_library"; }; then
6645 # We need to hardcode the library path
6646 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
6647 # Make sure the rpath contains only unique directories.
6648 case "$temp_rpath:" in
6649 *"$absdir:"*) ;;
6650 *) func_append temp_rpath "$absdir:" ;;
6651 esac
6652 fi
6653
6654 # Hardcode the library path.
6655 # Skip directories that are in the system default run-time
6656 # search path.
6657 case " $sys_lib_dlsearch_path " in
6658 *" $absdir "*) ;;
6659 *)
6660 case "$compile_rpath " in
6661 *" $absdir "*) ;;
6662 *) func_append compile_rpath " $absdir" ;;
6663 esac
6664 ;;
6665 esac
6666 case " $sys_lib_dlsearch_path " in
6667 *" $libdir "*) ;;
6668 *)
6669 case "$finalize_rpath " in
6670 *" $libdir "*) ;;
6671 *) func_append finalize_rpath " $libdir" ;;
6672 esac
6673 ;;
6674 esac
6675 fi # $linkmode,$pass = prog,link...
6676
6677 if test "$alldeplibs" = yes &&
6678 { test "$deplibs_check_method" = pass_all ||
6679 { test "$build_libtool_libs" = yes &&
6680 test -n "$library_names"; }; }; then
6681 # We only need to search for static libraries
6682 continue
6683 fi
6684 fi
6685
6686 link_static=no # Whether the deplib will be linked statically
6687 use_static_libs=$prefer_static_libs
6688 if test "$use_static_libs" = built && test "$installed" = yes; then
6689 use_static_libs=no
6690 fi
6691 if test -n "$library_names" &&
6692 { test "$use_static_libs" = no || test -z "$old_library"; }; then
6693 case $host in
6694 *cygwin* | *mingw* | *cegcc*)
6695 # No point in relinking DLLs because paths are not encoded
6696 func_append notinst_deplibs " $lib"
6697 need_relink=no
6698 ;;
6699 *)
6700 if test "$installed" = no; then
6701 func_append notinst_deplibs " $lib"
6702 need_relink=yes
6703 fi
6704 ;;
6705 esac
6706 # This is a shared library
6707
6708 # Warn about portability, can't link against -module's on some
6709 # systems (darwin). Don't bleat about dlopened modules though!
6710 dlopenmodule=""
6711 for dlpremoduletest in $dlprefiles; do
6712 if test "X$dlpremoduletest" = "X$lib"; then
6713 dlopenmodule="$dlpremoduletest"
6714 break
6715 fi
6716 done
6717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6718 echo
6719 if test "$linkmode" = prog; then
6720 $ECHO "*** Warning: Linking the executable $output against the loadable module"
6721 else
6722 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
6723 fi
6724 $ECHO "*** $linklib is not portable!"
6725 fi
6726 if test "$linkmode" = lib &&
6727 test "$hardcode_into_libs" = yes; then
6728 # Hardcode the library path.
6729 # Skip directories that are in the system default run-time
6730 # search path.
6731 case " $sys_lib_dlsearch_path " in
6732 *" $absdir "*) ;;
6733 *)
6734 case "$compile_rpath " in
6735 *" $absdir "*) ;;
6736 *) func_append compile_rpath " $absdir" ;;
6737 esac
6738 ;;
6739 esac
6740 case " $sys_lib_dlsearch_path " in
6741 *" $libdir "*) ;;
6742 *)
6743 case "$finalize_rpath " in
6744 *" $libdir "*) ;;
6745 *) func_append finalize_rpath " $libdir" ;;
6746 esac
6747 ;;
6748 esac
6749 fi
6750
6751 if test -n "$old_archive_from_expsyms_cmds"; then
6752 # figure out the soname
6753 set dummy $library_names
6754 shift
6755 realname="$1"
6756 shift
6757 libname=`eval "\\$ECHO \"$libname_spec\""`
6758 # use dlname if we got it. it's perfectly good, no?
6759 if test -n "$dlname"; then
6760 soname="$dlname"
6761 elif test -n "$soname_spec"; then
6762 # bleh windows
6763 case $host in
6764 *cygwin* | mingw* | *cegcc*)
6765 func_arith $current - $age
6766 major=$func_arith_result
6767 versuffix="-$major"
6768 ;;
6769 esac
6770 eval soname=\"$soname_spec\"
6771 else
6772 soname="$realname"
6773 fi
6774
6775 # Make a new name for the extract_expsyms_cmds to use
6776 soroot="$soname"
6777 func_basename "$soroot"
6778 soname="$func_basename_result"
6779 func_stripname 'lib' '.dll' "$soname"
6780 newlib=libimp-$func_stripname_result.a
6781
6782 # If the library has no export list, then create one now
6783 if test -f "$output_objdir/$soname-def"; then :
6784 else
6785 func_verbose "extracting exported symbol list from \`$soname'"
6786 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
6787 fi
6788
6789 # Create $newlib
6790 if test -f "$output_objdir/$newlib"; then :; else
6791 func_verbose "generating import library for \`$soname'"
6792 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
6793 fi
6794 # make sure the library variables are pointing to the new library
6795 dir=$output_objdir
6796 linklib=$newlib
6797 fi # test -n "$old_archive_from_expsyms_cmds"
6798
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
6800 add_shlibpath=
6801 add_dir=
6802 add=
6803 lib_linked=yes
6804 case $hardcode_action in
6805 immediate | unsupported)
6806 if test "$hardcode_direct" = no; then
6807 add="$dir/$linklib"
6808 case $host in
6809 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6810 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
6811 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6812 *-*-unixware7*) add_dir="-L$dir" ;;
6813 *-*-darwin* )
6814 # if the lib is a (non-dlopened) module then we can not
6815 # link against it, someone is ignoring the earlier warnings
6816 if /usr/bin/file -L $add 2> /dev/null |
6817 $GREP ": [^:]* bundle" >/dev/null ; then
6818 if test "X$dlopenmodule" != "X$lib"; then
6819 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6820 if test -z "$old_library" ; then
6821 echo
6822 echo "*** And there doesn't seem to be a static archive available"
6823 echo "*** The link will probably fail, sorry"
6824 else
6825 add="$dir/$old_library"
6826 fi
6827 elif test -n "$old_library"; then
6828 add="$dir/$old_library"
6829 fi
6830 fi
6831 esac
6832 elif test "$hardcode_minus_L" = no; then
6833 case $host in
6834 *-*-sunos*) add_shlibpath="$dir" ;;
6835 esac
6836 add_dir="-L$dir"
6837 add="-l$name"
6838 elif test "$hardcode_shlibpath_var" = no; then
6839 add_shlibpath="$dir"
6840 add="-l$name"
6841 else
6842 lib_linked=no
6843 fi
6844 ;;
6845 relink)
6846 if test "$hardcode_direct" = yes &&
6847 test "$hardcode_direct_absolute" = no; then
6848 add="$dir/$linklib"
6849 elif test "$hardcode_minus_L" = yes; then
6850 add_dir="-L$absdir"
6851 # Try looking first in the location we're being installed to.
6852 if test -n "$inst_prefix_dir"; then
6853 case $libdir in
6854 [\\/]*)
6855 func_append add_dir " -L$inst_prefix_dir$libdir"
6856 ;;
6857 esac
6858 fi
6859 add="-l$name"
6860 elif test "$hardcode_shlibpath_var" = yes; then
6861 add_shlibpath="$dir"
6862 add="-l$name"
6863 else
6864 lib_linked=no
6865 fi
6866 ;;
6867 *) lib_linked=no ;;
6868 esac
6869
6870 if test "$lib_linked" != yes; then
6871 func_fatal_configuration "unsupported hardcode properties"
6872 fi
6873
6874 if test -n "$add_shlibpath"; then
6875 case :$compile_shlibpath: in
6876 *":$add_shlibpath:"*) ;;
6877 *) func_append compile_shlibpath "$add_shlibpath:" ;;
6878 esac
6879 fi
6880 if test "$linkmode" = prog; then
6881 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6882 test -n "$add" && compile_deplibs="$add $compile_deplibs"
6883 else
6884 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6885 test -n "$add" && deplibs="$add $deplibs"
6886 if test "$hardcode_direct" != yes &&
6887 test "$hardcode_minus_L" != yes &&
6888 test "$hardcode_shlibpath_var" = yes; then
6889 case :$finalize_shlibpath: in
6890 *":$libdir:"*) ;;
6891 *) func_append finalize_shlibpath "$libdir:" ;;
6892 esac
6893 fi
6894 fi
6895 fi
6896
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
6898 add_shlibpath=
6899 add_dir=
6900 add=
6901 # Finalize command for both is simple: just hardcode it.
6902 if test "$hardcode_direct" = yes &&
6903 test "$hardcode_direct_absolute" = no; then
6904 add="$libdir/$linklib"
6905 elif test "$hardcode_minus_L" = yes; then
6906 add_dir="-L$libdir"
6907 add="-l$name"
6908 elif test "$hardcode_shlibpath_var" = yes; then
6909 case :$finalize_shlibpath: in
6910 *":$libdir:"*) ;;
6911 *) func_append finalize_shlibpath "$libdir:" ;;
6912 esac
6913 add="-l$name"
6914 elif test "$hardcode_automatic" = yes; then
6915 if test -n "$inst_prefix_dir" &&
6916 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6917 add="$inst_prefix_dir$libdir/$linklib"
6918 else
6919 add="$libdir/$linklib"
6920 fi
6921 else
6922 # We cannot seem to hardcode it, guess we'll fake it.
6923 add_dir="-L$libdir"
6924 # Try looking first in the location we're being installed to.
6925 if test -n "$inst_prefix_dir"; then
6926 case $libdir in
6927 [\\/]*)
6928 func_append add_dir " -L$inst_prefix_dir$libdir"
6929 ;;
6930 esac
6931 fi
6932 add="-l$name"
6933 fi
6934
6935 if test "$linkmode" = prog; then
6936 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6937 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6938 else
6939 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6940 test -n "$add" && deplibs="$add $deplibs"
6941 fi
6942 fi
6943 elif test "$linkmode" = prog; then
6944 # Here we assume that one of hardcode_direct or hardcode_minus_L
6945 # is not unsupported. This is valid on all known static and
6946 # shared platforms.
6947 if test "$hardcode_direct" != unsupported; then
6948 test -n "$old_library" && linklib="$old_library"
6949 compile_deplibs="$dir/$linklib $compile_deplibs"
6950 finalize_deplibs="$dir/$linklib $finalize_deplibs"
6951 else
6952 compile_deplibs="-l$name -L$dir $compile_deplibs"
6953 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6954 fi
6955 elif test "$build_libtool_libs" = yes; then
6956 # Not a shared library
6957 if test "$deplibs_check_method" != pass_all; then
6958 # We're trying link a shared library against a static one
6959 # but the system doesn't support it.
6960
6961 # Just print a warning and add the library to dependency_libs so
6962 # that the program can be linked against the static library.
6963 echo
6964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
6965 echo "*** I have the capability to make that library automatically link in when"
6966 echo "*** you link to this library. But I can only do this if you have a"
6967 echo "*** shared version of the library, which you do not appear to have."
6968 if test "$module" = yes; then
6969 echo "*** But as you try to build a module library, libtool will still create "
6970 echo "*** a static module, that should work as long as the dlopening application"
6971 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
6972 if test -z "$global_symbol_pipe"; then
6973 echo
6974 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6976 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
6978 fi
6979 if test "$build_old_libs" = no; then
6980 build_libtool_libs=module
6981 build_old_libs=yes
6982 else
6983 build_libtool_libs=no
6984 fi
6985 fi
6986 else
6987 deplibs="$dir/$old_library $deplibs"
6988 link_static=yes
6989 fi
6990 fi # link shared/static library?
6991
6992 if test "$linkmode" = lib; then
6993 if test -n "$dependency_libs" &&
6994 { test "$hardcode_into_libs" != yes ||
6995 test "$build_old_libs" = yes ||
6996 test "$link_static" = yes; }; then
6997 # Extract -R from dependency_libs
6998 temp_deplibs=
6999 for libdir in $dependency_libs; do
7000 case $libdir in
7001 -R*) func_stripname '-R' '' "$libdir"
7002 temp_xrpath=$func_stripname_result
7003 case " $xrpath " in
7004 *" $temp_xrpath "*) ;;
7005 *) func_append xrpath " $temp_xrpath";;
7006 esac;;
7007 *) func_append temp_deplibs " $libdir";;
7008 esac
7009 done
7010 dependency_libs="$temp_deplibs"
7011 fi
7012
7013 func_append newlib_search_path " $absdir"
7014 # Link against this library
7015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
7016 # ... and its dependency_libs
7017 tmp_libs=
7018 for deplib in $dependency_libs; do
7019 newdependency_libs="$deplib $newdependency_libs"
7020 case $deplib in
7021 -L*) func_stripname '-L' '' "$deplib"
7022 func_resolve_sysroot "$func_stripname_result";;
7023 *) func_resolve_sysroot "$deplib" ;;
7024 esac
7025 if $opt_preserve_dup_deps ; then
7026 case "$tmp_libs " in
7027 *" $func_resolve_sysroot_result "*)
7028 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
7029 esac
7030 fi
7031 func_append tmp_libs " $func_resolve_sysroot_result"
7032 done
7033
7034 if test "$link_all_deplibs" != no; then
7035 # Add the search paths of all dependency libraries
7036 for deplib in $dependency_libs; do
7037 path=
7038 case $deplib in
7039 -L*) path="$deplib" ;;
7040 *.la)
7041 func_resolve_sysroot "$deplib"
7042 deplib=$func_resolve_sysroot_result
7043 func_dirname "$deplib" "" "."
7044 dir=$func_dirname_result
7045 # We need an absolute path.
7046 case $dir in
7047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7048 *)
7049 absdir=`cd "$dir" && pwd`
7050 if test -z "$absdir"; then
7051 func_warning "cannot determine absolute directory name of \`$dir'"
7052 absdir="$dir"
7053 fi
7054 ;;
7055 esac
7056 if $GREP "^installed=no" $deplib > /dev/null; then
7057 case $host in
7058 *-*-darwin*)
7059 depdepl=
7060 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7061 if test -n "$deplibrary_names" ; then
7062 for tmp in $deplibrary_names ; do
7063 depdepl=$tmp
7064 done
7065 if test -f "$absdir/$objdir/$depdepl" ; then
7066 depdepl="$absdir/$objdir/$depdepl"
7067 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7068 if test -z "$darwin_install_name"; then
7069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7070 fi
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
7073 path=
7074 fi
7075 fi
7076 ;;
7077 *)
7078 path="-L$absdir/$objdir"
7079 ;;
7080 esac
7081 else
7082 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7083 test -z "$libdir" && \
7084 func_fatal_error "\`$deplib' is not a valid libtool archive"
7085 test "$absdir" != "$libdir" && \
7086 func_warning "\`$deplib' seems to be moved"
7087
7088 path="-L$absdir"
7089 fi
7090 ;;
7091 esac
7092 case " $deplibs " in
7093 *" $path "*) ;;
7094 *) deplibs="$path $deplibs" ;;
7095 esac
7096 done
7097 fi # link_all_deplibs != no
7098 fi # linkmode = lib
7099 done # for deplib in $libs
7100 if test "$pass" = link; then
7101 if test "$linkmode" = "prog"; then
7102 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
7103 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
7104 else
7105 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7106 fi
7107 fi
7108 dependency_libs="$newdependency_libs"
7109 if test "$pass" = dlpreopen; then
7110 # Link the dlpreopened libraries before other libraries
7111 for deplib in $save_deplibs; do
7112 deplibs="$deplib $deplibs"
7113 done
7114 fi
7115 if test "$pass" != dlopen; then
7116 if test "$pass" != conv; then
7117 # Make sure lib_search_path contains only unique directories.
7118 lib_search_path=
7119 for dir in $newlib_search_path; do
7120 case "$lib_search_path " in
7121 *" $dir "*) ;;
7122 *) func_append lib_search_path " $dir" ;;
7123 esac
7124 done
7125 newlib_search_path=
7126 fi
7127
7128 if test "$linkmode,$pass" != "prog,link"; then
7129 vars="deplibs"
7130 else
7131 vars="compile_deplibs finalize_deplibs"
7132 fi
7133 for var in $vars dependency_libs; do
7134 # Add libraries to $var in reverse order
7135 eval tmp_libs=\"\$$var\"
7136 new_libs=
7137 for deplib in $tmp_libs; do
7138 # FIXME: Pedantically, this is the right thing to do, so
7139 # that some nasty dependency loop isn't accidentally
7140 # broken:
7141 #new_libs="$deplib $new_libs"
7142 # Pragmatically, this seems to cause very few problems in
7143 # practice:
7144 case $deplib in
7145 -L*) new_libs="$deplib $new_libs" ;;
7146 -R*) ;;
7147 *)
7148 # And here is the reason: when a library appears more
7149 # than once as an explicit dependence of a library, or
7150 # is implicitly linked in more than once by the
7151 # compiler, it is considered special, and multiple
7152 # occurrences thereof are not removed. Compare this
7153 # with having the same library being listed as a
7154 # dependency of multiple other libraries: in this case,
7155 # we know (pedantically, we assume) the library does not
7156 # need to be listed more than once, so we keep only the
7157 # last copy. This is not always right, but it is rare
7158 # enough that we require users that really mean to play
7159 # such unportable linking tricks to link the library
7160 # using -Wl,-lname, so that libtool does not consider it
7161 # for duplicate removal.
7162 case " $specialdeplibs " in
7163 *" $deplib "*) new_libs="$deplib $new_libs" ;;
7164 *)
7165 case " $new_libs " in
7166 *" $deplib "*) ;;
7167 *) new_libs="$deplib $new_libs" ;;
7168 esac
7169 ;;
7170 esac
7171 ;;
7172 esac
7173 done
7174 tmp_libs=
7175 for deplib in $new_libs; do
7176 case $deplib in
7177 -L*)
7178 case " $tmp_libs " in
7179 *" $deplib "*) ;;
7180 *) func_append tmp_libs " $deplib" ;;
7181 esac
7182 ;;
7183 *) func_append tmp_libs " $deplib" ;;
7184 esac
7185 done
7186 eval $var=\"$tmp_libs\"
7187 done # for var
7188 fi
7189 # Last step: remove runtime libs from dependency_libs
7190 # (they stay in deplibs)
7191 tmp_libs=
7192 for i in $dependency_libs ; do
7193 case " $predeps $postdeps $compiler_lib_search_path " in
7194 *" $i "*)
7195 i=""
7196 ;;
7197 esac
7198 if test -n "$i" ; then
7199 func_append tmp_libs " $i"
7200 fi
7201 done
7202 dependency_libs=$tmp_libs
7203 done # for pass
7204 if test "$linkmode" = prog; then
7205 dlfiles="$newdlfiles"
7206 fi
7207 if test "$linkmode" = prog || test "$linkmode" = lib; then
7208 dlprefiles="$newdlprefiles"
7209 fi
7210
7211 case $linkmode in
7212 oldlib)
7213 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7214 func_warning "\`-dlopen' is ignored for archives"
7215 fi
7216
7217 case " $deplibs" in
7218 *\ -l* | *\ -L*)
7219 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7220 esac
7221
7222 test -n "$rpath" && \
7223 func_warning "\`-rpath' is ignored for archives"
7224
7225 test -n "$xrpath" && \
7226 func_warning "\`-R' is ignored for archives"
7227
7228 test -n "$vinfo" && \
7229 func_warning "\`-version-info/-version-number' is ignored for archives"
7230
7231 test -n "$release" && \
7232 func_warning "\`-release' is ignored for archives"
7233
7234 test -n "$export_symbols$export_symbols_regex" && \
7235 func_warning "\`-export-symbols' is ignored for archives"
7236
7237 # Now set the variables for building old libraries.
7238 build_libtool_libs=no
7239 oldlibs="$output"
7240 func_append objs "$old_deplibs"
7241 ;;
7242
7243 lib)
7244 # Make sure we only generate libraries of the form `libNAME.la'.
7245 case $outputname in
7246 lib*)
7247 func_stripname 'lib' '.la' "$outputname"
7248 name=$func_stripname_result
7249 eval shared_ext=\"$shrext_cmds\"
7250 eval libname=\"$libname_spec\"
7251 ;;
7252 *)
7253 test "$module" = no && \
7254 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7255
7256 if test "$need_lib_prefix" != no; then
7257 # Add the "lib" prefix for modules if required
7258 func_stripname '' '.la' "$outputname"
7259 name=$func_stripname_result
7260 eval shared_ext=\"$shrext_cmds\"
7261 eval libname=\"$libname_spec\"
7262 else
7263 func_stripname '' '.la' "$outputname"
7264 libname=$func_stripname_result
7265 fi
7266 ;;
7267 esac
7268
7269 if test -n "$objs"; then
7270 if test "$deplibs_check_method" != pass_all; then
7271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
7272 else
7273 echo
7274 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7275 $ECHO "*** objects $objs is not portable!"
7276 func_append libobjs " $objs"
7277 fi
7278 fi
7279
7280 test "$dlself" != no && \
7281 func_warning "\`-dlopen self' is ignored for libtool libraries"
7282
7283 set dummy $rpath
7284 shift
7285 test "$#" -gt 1 && \
7286 func_warning "ignoring multiple \`-rpath's for a libtool library"
7287
7288 install_libdir="$1"
7289
7290 oldlibs=
7291 if test -z "$rpath"; then
7292 if test "$build_libtool_libs" = yes; then
7293 # Building a libtool convenience library.
7294 # Some compilers have problems with a `.al' extension so
7295 # convenience libraries should have the same extension an
7296 # archive normally would.
7297 oldlibs="$output_objdir/$libname.$libext $oldlibs"
7298 build_libtool_libs=convenience
7299 build_old_libs=yes
7300 fi
7301
7302 test -n "$vinfo" && \
7303 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7304
7305 test -n "$release" && \
7306 func_warning "\`-release' is ignored for convenience libraries"
7307 else
7308
7309 # Parse the version information argument.
7310 save_ifs="$IFS"; IFS=':'
7311 set dummy $vinfo 0 0 0
7312 shift
7313 IFS="$save_ifs"
7314
7315 test -n "$7" && \
7316 func_fatal_help "too many parameters to \`-version-info'"
7317
7318 # convert absolute version numbers to libtool ages
7319 # this retains compatibility with .la files and attempts
7320 # to make the code below a bit more comprehensible
7321
7322 case $vinfo_number in
7323 yes)
7324 number_major="$1"
7325 number_minor="$2"
7326 number_revision="$3"
7327 #
7328 # There are really only two kinds -- those that
7329 # use the current revision as the major version
7330 # and those that subtract age and use age as
7331 # a minor version. But, then there is irix
7332 # which has an extra 1 added just for fun
7333 #
7334 case $version_type in
7335 # correct linux to gnu/linux during the next big refactor
7336 darwin|linux|osf|windows|none)
7337 func_arith $number_major + $number_minor
7338 current=$func_arith_result
7339 age="$number_minor"
7340 revision="$number_revision"
7341 ;;
7342 freebsd-aout|freebsd-elf|qnx|sunos)
7343 current="$number_major"
7344 revision="$number_minor"
7345 age="0"
7346 ;;
7347 irix|nonstopux)
7348 func_arith $number_major + $number_minor
7349 current=$func_arith_result
7350 age="$number_minor"
7351 revision="$number_minor"
7352 lt_irix_increment=no
7353 ;;
7354 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
7356 ;;
7357 esac
7358 ;;
7359 no)
7360 current="$1"
7361 revision="$2"
7362 age="$3"
7363 ;;
7364 esac
7365
7366 # Check that each of the things are valid numbers.
7367 case $current in
7368 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]) ;;
7369 *)
7370 func_error "CURRENT \`$current' must be a nonnegative integer"
7371 func_fatal_error "\`$vinfo' is not valid version information"
7372 ;;
7373 esac
7374
7375 case $revision in
7376 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]) ;;
7377 *)
7378 func_error "REVISION \`$revision' must be a nonnegative integer"
7379 func_fatal_error "\`$vinfo' is not valid version information"
7380 ;;
7381 esac
7382
7383 case $age in
7384 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]) ;;
7385 *)
7386 func_error "AGE \`$age' must be a nonnegative integer"
7387 func_fatal_error "\`$vinfo' is not valid version information"
7388 ;;
7389 esac
7390
7391 if test "$age" -gt "$current"; then
7392 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7393 func_fatal_error "\`$vinfo' is not valid version information"
7394 fi
7395
7396 # Calculate the version variables.
7397 major=
7398 versuffix=
7399 verstring=
7400 case $version_type in
7401 none) ;;
7402
7403 darwin)
7404 # Like Linux, but with the current version available in
7405 # verstring for coding it into the library header
7406 func_arith $current - $age
7407 major=.$func_arith_result
7408 versuffix="$major.$age.$revision"
7409 # Darwin ld doesn't like 0 for these options...
7410 func_arith $current + 1
7411 minor_current=$func_arith_result
7412 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
7413 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7414 ;;
7415
7416 freebsd-aout)
7417 major=".$current"
7418 versuffix=".$current.$revision";
7419 ;;
7420
7421 freebsd-elf)
7422 major=".$current"
7423 versuffix=".$current"
7424 ;;
7425
7426 irix | nonstopux)
7427 if test "X$lt_irix_increment" = "Xno"; then
7428 func_arith $current - $age
7429 else
7430 func_arith $current - $age + 1
7431 fi
7432 major=$func_arith_result
7433
7434 case $version_type in
7435 nonstopux) verstring_prefix=nonstopux ;;
7436 *) verstring_prefix=sgi ;;
7437 esac
7438 verstring="$verstring_prefix$major.$revision"
7439
7440 # Add in all the interfaces that we are compatible with.
7441 loop=$revision
7442 while test "$loop" -ne 0; do
7443 func_arith $revision - $loop
7444 iface=$func_arith_result
7445 func_arith $loop - 1
7446 loop=$func_arith_result
7447 verstring="$verstring_prefix$major.$iface:$verstring"
7448 done
7449
7450 # Before this point, $major must not contain `.'.
7451 major=.$major
7452 versuffix="$major.$revision"
7453 ;;
7454
7455 linux) # correct to gnu/linux during the next big refactor
7456 func_arith $current - $age
7457 major=.$func_arith_result
7458 versuffix="$major.$age.$revision"
7459 ;;
7460
7461 osf)
7462 func_arith $current - $age
7463 major=.$func_arith_result
7464 versuffix=".$current.$age.$revision"
7465 verstring="$current.$age.$revision"
7466
7467 # Add in all the interfaces that we are compatible with.
7468 loop=$age
7469 while test "$loop" -ne 0; do
7470 func_arith $current - $loop
7471 iface=$func_arith_result
7472 func_arith $loop - 1
7473 loop=$func_arith_result
7474 verstring="$verstring:${iface}.0"
7475 done
7476
7477 # Make executables depend on our current version.
7478 func_append verstring ":${current}.0"
7479 ;;
7480
7481 qnx)
7482 major=".$current"
7483 versuffix=".$current"
7484 ;;
7485
7486 sunos)
7487 major=".$current"
7488 versuffix=".$current.$revision"
7489 ;;
7490
7491 windows)
7492 # Use '-' rather than '.', since we only want one
7493 # extension on DOS 8.3 filesystems.
7494 func_arith $current - $age
7495 major=$func_arith_result
7496 versuffix="-$major"
7497 ;;
7498
7499 *)
7500 func_fatal_configuration "unknown library version type \`$version_type'"
7501 ;;
7502 esac
7503
7504 # Clear the version info if we defaulted, and they specified a release.
7505 if test -z "$vinfo" && test -n "$release"; then
7506 major=
7507 case $version_type in
7508 darwin)
7509 # we can't check for "0.0" in archive_cmds due to quoting
7510 # problems, so we reset it completely
7511 verstring=
7512 ;;
7513 *)
7514 verstring="0.0"
7515 ;;
7516 esac
7517 if test "$need_version" = no; then
7518 versuffix=
7519 else
7520 versuffix=".0.0"
7521 fi
7522 fi
7523
7524 # Remove version info from name if versioning should be avoided
7525 if test "$avoid_version" = yes && test "$need_version" = no; then
7526 major=
7527 versuffix=
7528 verstring=""
7529 fi
7530
7531 # Check to see if the archive will have undefined symbols.
7532 if test "$allow_undefined" = yes; then
7533 if test "$allow_undefined_flag" = unsupported; then
7534 func_warning "undefined symbols not allowed in $host shared libraries"
7535 build_libtool_libs=no
7536 build_old_libs=yes
7537 fi
7538 else
7539 # Don't allow undefined symbols.
7540 allow_undefined_flag="$no_undefined_flag"
7541 fi
7542
7543 fi
7544
7545 func_generate_dlsyms "$libname" "$libname" "yes"
7546 func_append libobjs " $symfileobj"
7547 test "X$libobjs" = "X " && libobjs=
7548
7549 if test "$opt_mode" != relink; then
7550 # Remove our outputs, but don't remove object files since they
7551 # may have been created when compiling PIC objects.
7552 removelist=
7553 tempremovelist=`$ECHO "$output_objdir/*"`
7554 for p in $tempremovelist; do
7555 case $p in
7556 *.$objext | *.gcno)
7557 ;;
7558 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7559 if test "X$precious_files_regex" != "X"; then
7560 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7561 then
7562 continue
7563 fi
7564 fi
7565 func_append removelist " $p"
7566 ;;
7567 *) ;;
7568 esac
7569 done
7570 test -n "$removelist" && \
7571 func_show_eval "${RM}r \$removelist"
7572 fi
7573
7574 # Now set the variables for building old libraries.
7575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
7576 func_append oldlibs " $output_objdir/$libname.$libext"
7577
7578 # Transform .lo files to .o files.
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
7580 fi
7581
7582 # Eliminate all temporary directories.
7583 #for path in $notinst_path; do
7584 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
7585 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7586 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
7587 #done
7588
7589 if test -n "$xrpath"; then
7590 # If the user specified any rpath flags, then add them.
7591 temp_xrpath=
7592 for libdir in $xrpath; do
7593 func_replace_sysroot "$libdir"
7594 func_append temp_xrpath " -R$func_replace_sysroot_result"
7595 case "$finalize_rpath " in
7596 *" $libdir "*) ;;
7597 *) func_append finalize_rpath " $libdir" ;;
7598 esac
7599 done
7600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
7601 dependency_libs="$temp_xrpath $dependency_libs"
7602 fi
7603 fi
7604
7605 # Make sure dlfiles contains only unique files that won't be dlpreopened
7606 old_dlfiles="$dlfiles"
7607 dlfiles=
7608 for lib in $old_dlfiles; do
7609 case " $dlprefiles $dlfiles " in
7610 *" $lib "*) ;;
7611 *) func_append dlfiles " $lib" ;;
7612 esac
7613 done
7614
7615 # Make sure dlprefiles contains only unique files
7616 old_dlprefiles="$dlprefiles"
7617 dlprefiles=
7618 for lib in $old_dlprefiles; do
7619 case "$dlprefiles " in
7620 *" $lib "*) ;;
7621 *) func_append dlprefiles " $lib" ;;
7622 esac
7623 done
7624
7625 if test "$build_libtool_libs" = yes; then
7626 if test -n "$rpath"; then
7627 case $host in
7628 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
7629 # these systems don't actually have a c library (as such)!
7630 ;;
7631 *-*-rhapsody* | *-*-darwin1.[012])
7632 # Rhapsody C library is in the System framework
7633 func_append deplibs " System.ltframework"
7634 ;;
7635 *-*-netbsd*)
7636 # Don't link with libc until the a.out ld.so is fixed.
7637 ;;
7638 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7639 # Do not include libc due to us having libc/libc_r.
7640 ;;
7641 *-*-sco3.2v5* | *-*-sco5v6*)
7642 # Causes problems with __ctype
7643 ;;
7644 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7645 # Compiler inserts libc in the correct place for threads to work
7646 ;;
7647 *)
7648 # Add libc to deplibs on all other systems if necessary.
7649 if test "$build_libtool_need_lc" = "yes"; then
7650 func_append deplibs " -lc"
7651 fi
7652 ;;
7653 esac
7654 fi
7655
7656 # Transform deplibs into only deplibs that can be linked in shared.
7657 name_save=$name
7658 libname_save=$libname
7659 release_save=$release
7660 versuffix_save=$versuffix
7661 major_save=$major
7662 # I'm not sure if I'm treating the release correctly. I think
7663 # release should show up in the -l (ie -lgmp5) so we don't want to
7664 # add it in twice. Is that correct?
7665 release=""
7666 versuffix=""
7667 major=""
7668 newdeplibs=
7669 droppeddeps=no
7670 case $deplibs_check_method in
7671 pass_all)
7672 # Don't check for shared/static. Everything works.
7673 # This might be a little naive. We might want to check
7674 # whether the library exists or not. But this is on
7675 # osf3 & osf4 and I'm not really sure... Just
7676 # implementing what was already the behavior.
7677 newdeplibs=$deplibs
7678 ;;
7679 test_compile)
7680 # This code stresses the "libraries are programs" paradigm to its
7681 # limits. Maybe even breaks it. We compile a program, linking it
7682 # against the deplibs as a proxy for the library. Then we can check
7683 # whether they linked in statically or dynamically with ldd.
7684 $opt_dry_run || $RM conftest.c
7685 cat > conftest.c <<EOF
7686 int main() { return 0; }
7687 EOF
7688 $opt_dry_run || $RM conftest
7689 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7690 ldd_output=`ldd conftest`
7691 for i in $deplibs; do
7692 case $i in
7693 -l*)
7694 func_stripname -l '' "$i"
7695 name=$func_stripname_result
7696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7697 case " $predeps $postdeps " in
7698 *" $i "*)
7699 func_append newdeplibs " $i"
7700 i=""
7701 ;;
7702 esac
7703 fi
7704 if test -n "$i" ; then
7705 libname=`eval "\\$ECHO \"$libname_spec\""`
7706 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
7707 set dummy $deplib_matches; shift
7708 deplib_match=$1
7709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7710 func_append newdeplibs " $i"
7711 else
7712 droppeddeps=yes
7713 echo
7714 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
7715 echo "*** I have the capability to make that library automatically link in when"
7716 echo "*** you link to this library. But I can only do this if you have a"
7717 echo "*** shared version of the library, which I believe you do not have"
7718 echo "*** because a test_compile did reveal that the linker did not use it for"
7719 echo "*** its dynamic dependency list that programs get resolved with at runtime."
7720 fi
7721 fi
7722 ;;
7723 *)
7724 func_append newdeplibs " $i"
7725 ;;
7726 esac
7727 done
7728 else
7729 # Error occurred in the first compile. Let's try to salvage
7730 # the situation: Compile a separate program for each library.
7731 for i in $deplibs; do
7732 case $i in
7733 -l*)
7734 func_stripname -l '' "$i"
7735 name=$func_stripname_result
7736 $opt_dry_run || $RM conftest
7737 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7738 ldd_output=`ldd conftest`
7739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7740 case " $predeps $postdeps " in
7741 *" $i "*)
7742 func_append newdeplibs " $i"
7743 i=""
7744 ;;
7745 esac
7746 fi
7747 if test -n "$i" ; then
7748 libname=`eval "\\$ECHO \"$libname_spec\""`
7749 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
7750 set dummy $deplib_matches; shift
7751 deplib_match=$1
7752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7753 func_append newdeplibs " $i"
7754 else
7755 droppeddeps=yes
7756 echo
7757 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
7758 echo "*** I have the capability to make that library automatically link in when"
7759 echo "*** you link to this library. But I can only do this if you have a"
7760 echo "*** shared version of the library, which you do not appear to have"
7761 echo "*** because a test_compile did reveal that the linker did not use this one"
7762 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
7763 fi
7764 fi
7765 else
7766 droppeddeps=yes
7767 echo
7768 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
7769 echo "*** make it link in! You will probably need to install it or some"
7770 echo "*** library that it depends on before this library will be fully"
7771 echo "*** functional. Installing it before continuing would be even better."
7772 fi
7773 ;;
7774 *)
7775 func_append newdeplibs " $i"
7776 ;;
7777 esac
7778 done
7779 fi
7780 ;;
7781 file_magic*)
7782 set dummy $deplibs_check_method; shift
7783 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7784 for a_deplib in $deplibs; do
7785 case $a_deplib in
7786 -l*)
7787 func_stripname -l '' "$a_deplib"
7788 name=$func_stripname_result
7789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7790 case " $predeps $postdeps " in
7791 *" $a_deplib "*)
7792 func_append newdeplibs " $a_deplib"
7793 a_deplib=""
7794 ;;
7795 esac
7796 fi
7797 if test -n "$a_deplib" ; then
7798 libname=`eval "\\$ECHO \"$libname_spec\""`
7799 if test -n "$file_magic_glob"; then
7800 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7801 else
7802 libnameglob=$libname
7803 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
7805 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7806 if test "$want_nocaseglob" = yes; then
7807 shopt -s nocaseglob
7808 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7809 $nocaseglob
7810 else
7811 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7812 fi
7813 for potent_lib in $potential_libs; do
7814 # Follow soft links.
7815 if ls -lLd "$potent_lib" 2>/dev/null |
7816 $GREP " -> " >/dev/null; then
7817 continue
7818 fi
7819 # The statement above tries to avoid entering an
7820 # endless loop below, in case of cyclic links.
7821 # We might still enter an endless loop, since a link
7822 # loop can be closed while we follow links,
7823 # but so what?
7824 potlib="$potent_lib"
7825 while test -h "$potlib" 2>/dev/null; do
7826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
7827 case $potliblink in
7828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
7830 esac
7831 done
7832 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
7833 $SED -e 10q |
7834 $EGREP "$file_magic_regex" > /dev/null; then
7835 func_append newdeplibs " $a_deplib"
7836 a_deplib=""
7837 break 2
7838 fi
7839 done
7840 done
7841 fi
7842 if test -n "$a_deplib" ; then
7843 droppeddeps=yes
7844 echo
7845 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7846 echo "*** I have the capability to make that library automatically link in when"
7847 echo "*** you link to this library. But I can only do this if you have a"
7848 echo "*** shared version of the library, which you do not appear to have"
7849 echo "*** because I did check the linker path looking for a file starting"
7850 if test -z "$potlib" ; then
7851 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
7852 else
7853 $ECHO "*** with $libname and none of the candidates passed a file format test"
7854 $ECHO "*** using a file magic. Last file checked: $potlib"
7855 fi
7856 fi
7857 ;;
7858 *)
7859 # Add a -L argument.
7860 func_append newdeplibs " $a_deplib"
7861 ;;
7862 esac
7863 done # Gone through all deplibs.
7864 ;;
7865 match_pattern*)
7866 set dummy $deplibs_check_method; shift
7867 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7868 for a_deplib in $deplibs; do
7869 case $a_deplib in
7870 -l*)
7871 func_stripname -l '' "$a_deplib"
7872 name=$func_stripname_result
7873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7874 case " $predeps $postdeps " in
7875 *" $a_deplib "*)
7876 func_append newdeplibs " $a_deplib"
7877 a_deplib=""
7878 ;;
7879 esac
7880 fi
7881 if test -n "$a_deplib" ; then
7882 libname=`eval "\\$ECHO \"$libname_spec\""`
7883 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7884 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7885 for potent_lib in $potential_libs; do
7886 potlib="$potent_lib" # see symlink-check above in file_magic test
7887 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
7888 $EGREP "$match_pattern_regex" > /dev/null; then
7889 func_append newdeplibs " $a_deplib"
7890 a_deplib=""
7891 break 2
7892 fi
7893 done
7894 done
7895 fi
7896 if test -n "$a_deplib" ; then
7897 droppeddeps=yes
7898 echo
7899 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7900 echo "*** I have the capability to make that library automatically link in when"
7901 echo "*** you link to this library. But I can only do this if you have a"
7902 echo "*** shared version of the library, which you do not appear to have"
7903 echo "*** because I did check the linker path looking for a file starting"
7904 if test -z "$potlib" ; then
7905 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
7906 else
7907 $ECHO "*** with $libname and none of the candidates passed a file format test"
7908 $ECHO "*** using a regex pattern. Last file checked: $potlib"
7909 fi
7910 fi
7911 ;;
7912 *)
7913 # Add a -L argument.
7914 func_append newdeplibs " $a_deplib"
7915 ;;
7916 esac
7917 done # Gone through all deplibs.
7918 ;;
7919 none | unknown | *)
7920 newdeplibs=""
7921 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7923 for i in $predeps $postdeps ; do
7924 # can't use Xsed below, because $i might contain '/'
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
7926 done
7927 fi
7928 case $tmp_deplibs in
7929 *[!\ \ ]*)
7930 echo
7931 if test "X$deplibs_check_method" = "Xnone"; then
7932 echo "*** Warning: inter-library dependencies are not supported in this platform."
7933 else
7934 echo "*** Warning: inter-library dependencies are not known to be supported."
7935 fi
7936 echo "*** All declared inter-library dependencies are being dropped."
7937 droppeddeps=yes
7938 ;;
7939 esac
7940 ;;
7941 esac
7942 versuffix=$versuffix_save
7943 major=$major_save
7944 release=$release_save
7945 libname=$libname_save
7946 name=$name_save
7947
7948 case $host in
7949 *-*-rhapsody* | *-*-darwin1.[012])
7950 # On Rhapsody replace the C library with the System framework
7951 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
7952 ;;
7953 esac
7954
7955 if test "$droppeddeps" = yes; then
7956 if test "$module" = yes; then
7957 echo
7958 echo "*** Warning: libtool could not satisfy all declared inter-library"
7959 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
7960 echo "*** a static module, that should work as long as the dlopening"
7961 echo "*** application is linked with the -dlopen flag."
7962 if test -z "$global_symbol_pipe"; then
7963 echo
7964 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7966 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
7968 fi
7969 if test "$build_old_libs" = no; then
7970 oldlibs="$output_objdir/$libname.$libext"
7971 build_libtool_libs=module
7972 build_old_libs=yes
7973 else
7974 build_libtool_libs=no
7975 fi
7976 else
7977 echo "*** The inter-library dependencies that have been dropped here will be"
7978 echo "*** automatically added whenever a program is linked with this library"
7979 echo "*** or is declared to -dlopen it."
7980
7981 if test "$allow_undefined" = no; then
7982 echo
7983 echo "*** Since this library must not contain undefined symbols,"
7984 echo "*** because either the platform does not support them or"
7985 echo "*** it was explicitly requested with -no-undefined,"
7986 echo "*** libtool will only create a static version of it."
7987 if test "$build_old_libs" = no; then
7988 oldlibs="$output_objdir/$libname.$libext"
7989 build_libtool_libs=module
7990 build_old_libs=yes
7991 else
7992 build_libtool_libs=no
7993 fi
7994 fi
7995 fi
7996 fi
7997 # Done checking deplibs!
7998 deplibs=$newdeplibs
7999 fi
8000 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8001 case $host in
8002 *-*-darwin*)
8003 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8004 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8005 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8006 ;;
8007 esac
8008
8009 # move library search paths that coincide with paths to not yet
8010 # installed libraries to the beginning of the library search list
8011 new_libs=
8012 for path in $notinst_path; do
8013 case " $new_libs " in
8014 *" -L$path/$objdir "*) ;;
8015 *)
8016 case " $deplibs " in
8017 *" -L$path/$objdir "*)
8018 func_append new_libs " -L$path/$objdir" ;;
8019 esac
8020 ;;
8021 esac
8022 done
8023 for deplib in $deplibs; do
8024 case $deplib in
8025 -L*)
8026 case " $new_libs " in
8027 *" $deplib "*) ;;
8028 *) func_append new_libs " $deplib" ;;
8029 esac
8030 ;;
8031 *) func_append new_libs " $deplib" ;;
8032 esac
8033 done
8034 deplibs="$new_libs"
8035
8036 # All the library-specific variables (install_libdir is set above).
8037 library_names=
8038 old_library=
8039 dlname=
8040
8041 # Test again, we may have decided not to build it any more
8042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
8044 # FIXME: should test the right _cmds variable.
8045 case $archive_cmds in
8046 *\$LD\ *) wl= ;;
8047 esac
8048 if test "$hardcode_into_libs" = yes; then
8049 # Hardcode the library paths
8050 hardcode_libdirs=
8051 dep_rpath=
8052 rpath="$finalize_rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
8054 for libdir in $rpath; do
8055 if test -n "$hardcode_libdir_flag_spec"; then
8056 if test -n "$hardcode_libdir_separator"; then
8057 func_replace_sysroot "$libdir"
8058 libdir=$func_replace_sysroot_result
8059 if test -z "$hardcode_libdirs"; then
8060 hardcode_libdirs="$libdir"
8061 else
8062 # Just accumulate the unique libdirs.
8063 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8064 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8065 ;;
8066 *)
8067 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8068 ;;
8069 esac
8070 fi
8071 else
8072 eval flag=\"$hardcode_libdir_flag_spec\"
8073 func_append dep_rpath " $flag"
8074 fi
8075 elif test -n "$runpath_var"; then
8076 case "$perm_rpath " in
8077 *" $libdir "*) ;;
8078 *) func_append perm_rpath " $libdir" ;;
8079 esac
8080 fi
8081 done
8082 # Substitute the hardcoded libdirs into the rpath.
8083 if test -n "$hardcode_libdir_separator" &&
8084 test -n "$hardcode_libdirs"; then
8085 libdir="$hardcode_libdirs"
8086 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
8087 fi
8088 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8089 # We should set the runpath_var.
8090 rpath=
8091 for dir in $perm_rpath; do
8092 func_append rpath "$dir:"
8093 done
8094 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
8095 fi
8096 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8097 fi
8098
8099 shlibpath="$finalize_shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8101 if test -n "$shlibpath"; then
8102 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
8103 fi
8104
8105 # Get the real and link names of the library.
8106 eval shared_ext=\"$shrext_cmds\"
8107 eval library_names=\"$library_names_spec\"
8108 set dummy $library_names
8109 shift
8110 realname="$1"
8111 shift
8112
8113 if test -n "$soname_spec"; then
8114 eval soname=\"$soname_spec\"
8115 else
8116 soname="$realname"
8117 fi
8118 if test -z "$dlname"; then
8119 dlname=$soname
8120 fi
8121
8122 lib="$output_objdir/$realname"
8123 linknames=
8124 for link
8125 do
8126 func_append linknames " $link"
8127 done
8128
8129 # Use standard objects if they are pic
8130 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8131 test "X$libobjs" = "X " && libobjs=
8132
8133 delfiles=
8134 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8135 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8136 export_symbols="$output_objdir/$libname.uexp"
8137 func_append delfiles " $export_symbols"
8138 fi
8139
8140 orig_export_symbols=
8141 case $host_os in
8142 cygwin* | mingw* | cegcc*)
8143 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8144 # exporting using user supplied symfile
8145 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
8146 # and it's NOT already a .def file. Must figure out
8147 # which of the given symbols are data symbols and tag
8148 # them as such. So, trigger use of export_symbols_cmds.
8149 # export_symbols gets reassigned inside the "prepare
8150 # the list of exported symbols" if statement, so the
8151 # include_expsyms logic still works.
8152 orig_export_symbols="$export_symbols"
8153 export_symbols=
8154 always_export_symbols=yes
8155 fi
8156 fi
8157 ;;
8158 esac
8159
8160 # Prepare the list of exported symbols
8161 if test -z "$export_symbols"; then
8162 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8163 func_verbose "generating symbol list for \`$libname.la'"
8164 export_symbols="$output_objdir/$libname.exp"
8165 $opt_dry_run || $RM $export_symbols
8166 cmds=$export_symbols_cmds
8167 save_ifs="$IFS"; IFS='~'
8168 for cmd1 in $cmds; do
8169 IFS="$save_ifs"
8170 # Take the normal branch if the nm_file_list_spec branch
8171 # doesn't work or if tool conversion is not needed.
8172 case $nm_file_list_spec~$to_tool_file_cmd in
8173 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8174 try_normal_branch=yes
8175 eval cmd=\"$cmd1\"
8176 func_len " $cmd"
8177 len=$func_len_result
8178 ;;
8179 *)
8180 try_normal_branch=no
8181 ;;
8182 esac
8183 if test "$try_normal_branch" = yes \
8184 && { test "$len" -lt "$max_cmd_len" \
8185 || test "$max_cmd_len" -le -1; }
8186 then
8187 func_show_eval "$cmd" 'exit $?'
8188 skipped_export=false
8189 elif test -n "$nm_file_list_spec"; then
8190 func_basename "$output"
8191 output_la=$func_basename_result
8192 save_libobjs=$libobjs
8193 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
8195 func_to_tool_file "$output"
8196 libobjs=$nm_file_list_spec$func_to_tool_file_result
8197 func_append delfiles " $output"
8198 func_verbose "creating $NM input file list: $output"
8199 for obj in $save_libobjs; do
8200 func_to_tool_file "$obj"
8201 $ECHO "$func_to_tool_file_result"
8202 done > "$output"
8203 eval cmd=\"$cmd1\"
8204 func_show_eval "$cmd" 'exit $?'
8205 output=$save_output
8206 libobjs=$save_libobjs
8207 skipped_export=false
8208 else
8209 # The command line is too long to execute in one step.
8210 func_verbose "using reloadable object file for export list..."
8211 skipped_export=:
8212 # Break out early, otherwise skipped_export may be
8213 # set to false by a later but shorter cmd.
8214 break
8215 fi
8216 done
8217 IFS="$save_ifs"
8218 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8219 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8220 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8221 fi
8222 fi
8223 fi
8224
8225 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8226 tmp_export_symbols="$export_symbols"
8227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8228 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8229 fi
8230
8231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8232 # The given exports_symbols file has to be filtered, so filter it.
8233 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8234 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8235 # 's' commands which not all seds can handle. GNU sed should be fine
8236 # though. Also, the filter scales superlinearly with the number of
8237 # global variables. join(1) would be nice here, but unfortunately
8238 # isn't a blessed tool.
8239 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8240 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
8241 export_symbols=$output_objdir/$libname.def
8242 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8243 fi
8244
8245 tmp_deplibs=
8246 for test_deplib in $deplibs; do
8247 case " $convenience " in
8248 *" $test_deplib "*) ;;
8249 *)
8250 func_append tmp_deplibs " $test_deplib"
8251 ;;
8252 esac
8253 done
8254 deplibs="$tmp_deplibs"
8255
8256 if test -n "$convenience"; then
8257 if test -n "$whole_archive_flag_spec" &&
8258 test "$compiler_needs_object" = yes &&
8259 test -z "$libobjs"; then
8260 # extract the archives, so we have objects to list.
8261 # TODO: could optimize this to just extract one archive.
8262 whole_archive_flag_spec=
8263 fi
8264 if test -n "$whole_archive_flag_spec"; then
8265 save_libobjs=$libobjs
8266 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8267 test "X$libobjs" = "X " && libobjs=
8268 else
8269 gentop="$output_objdir/${outputname}x"
8270 func_append generated " $gentop"
8271
8272 func_extract_archives $gentop $convenience
8273 func_append libobjs " $func_extract_archives_result"
8274 test "X$libobjs" = "X " && libobjs=
8275 fi
8276 fi
8277
8278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8279 eval flag=\"$thread_safe_flag_spec\"
8280 func_append linker_flags " $flag"
8281 fi
8282
8283 # Make a backup of the uninstalled library when relinking
8284 if test "$opt_mode" = relink; then
8285 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
8286 fi
8287
8288 # Do each of the archive commands.
8289 if test "$module" = yes && test -n "$module_cmds" ; then
8290 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8291 eval test_cmds=\"$module_expsym_cmds\"
8292 cmds=$module_expsym_cmds
8293 else
8294 eval test_cmds=\"$module_cmds\"
8295 cmds=$module_cmds
8296 fi
8297 else
8298 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8299 eval test_cmds=\"$archive_expsym_cmds\"
8300 cmds=$archive_expsym_cmds
8301 else
8302 eval test_cmds=\"$archive_cmds\"
8303 cmds=$archive_cmds
8304 fi
8305 fi
8306
8307 if test "X$skipped_export" != "X:" &&
8308 func_len " $test_cmds" &&
8309 len=$func_len_result &&
8310 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8311 :
8312 else
8313 # The command line is too long to link in one step, link piecewise
8314 # or, if using GNU ld and skipped_export is not :, use a linker
8315 # script.
8316
8317 # Save the value of $output and $libobjs because we want to
8318 # use them later. If we have whole_archive_flag_spec, we
8319 # want to use save_libobjs as it was before
8320 # whole_archive_flag_spec was expanded, because we can't
8321 # assume the linker understands whole_archive_flag_spec.
8322 # This may have to be revisited, in case too many
8323 # convenience libraries get linked in and end up exceeding
8324 # the spec.
8325 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8326 save_libobjs=$libobjs
8327 fi
8328 save_output=$output
8329 func_basename "$output"
8330 output_la=$func_basename_result
8331
8332 # Clear the reloadable object creation command queue and
8333 # initialize k to one.
8334 test_cmds=
8335 concat_cmds=
8336 objlist=
8337 last_robj=
8338 k=1
8339
8340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8341 output=${output_objdir}/${output_la}.lnkscript
8342 func_verbose "creating GNU ld script: $output"
8343 echo 'INPUT (' > $output
8344 for obj in $save_libobjs
8345 do
8346 func_to_tool_file "$obj"
8347 $ECHO "$func_to_tool_file_result" >> $output
8348 done
8349 echo ')' >> $output
8350 func_append delfiles " $output"
8351 func_to_tool_file "$output"
8352 output=$func_to_tool_file_result
8353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8354 output=${output_objdir}/${output_la}.lnk
8355 func_verbose "creating linker input file list: $output"
8356 : > $output
8357 set x $save_libobjs
8358 shift
8359 firstobj=
8360 if test "$compiler_needs_object" = yes; then
8361 firstobj="$1 "
8362 shift
8363 fi
8364 for obj
8365 do
8366 func_to_tool_file "$obj"
8367 $ECHO "$func_to_tool_file_result" >> $output
8368 done
8369 func_append delfiles " $output"
8370 func_to_tool_file "$output"
8371 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
8372 else
8373 if test -n "$save_libobjs"; then
8374 func_verbose "creating reloadable object files..."
8375 output=$output_objdir/$output_la-${k}.$objext
8376 eval test_cmds=\"$reload_cmds\"
8377 func_len " $test_cmds"
8378 len0=$func_len_result
8379 len=$len0
8380
8381 # Loop over the list of objects to be linked.
8382 for obj in $save_libobjs
8383 do
8384 func_len " $obj"
8385 func_arith $len + $func_len_result
8386 len=$func_arith_result
8387 if test "X$objlist" = X ||
8388 test "$len" -lt "$max_cmd_len"; then
8389 func_append objlist " $obj"
8390 else
8391 # The command $test_cmds is almost too long, add a
8392 # command to the queue.
8393 if test "$k" -eq 1 ; then
8394 # The first file doesn't have a previous command to add.
8395 reload_objs=$objlist
8396 eval concat_cmds=\"$reload_cmds\"
8397 else
8398 # All subsequent reloadable object files will link in
8399 # the last one created.
8400 reload_objs="$objlist $last_robj"
8401 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
8402 fi
8403 last_robj=$output_objdir/$output_la-${k}.$objext
8404 func_arith $k + 1
8405 k=$func_arith_result
8406 output=$output_objdir/$output_la-${k}.$objext
8407 objlist=" $obj"
8408 func_len " $last_robj"
8409 func_arith $len0 + $func_len_result
8410 len=$func_arith_result
8411 fi
8412 done
8413 # Handle the remaining objects by creating one last
8414 # reloadable object file. All subsequent reloadable object
8415 # files will link in the last one created.
8416 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8417 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
8419 if test -n "$last_robj"; then
8420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
8421 fi
8422 func_append delfiles " $output"
8423
8424 else
8425 output=
8426 fi
8427
8428 if ${skipped_export-false}; then
8429 func_verbose "generating symbol list for \`$libname.la'"
8430 export_symbols="$output_objdir/$libname.exp"
8431 $opt_dry_run || $RM $export_symbols
8432 libobjs=$output
8433 # Append the command to create the export file.
8434 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8435 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
8436 if test -n "$last_robj"; then
8437 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
8438 fi
8439 fi
8440
8441 test -n "$save_libobjs" &&
8442 func_verbose "creating a temporary reloadable object file: $output"
8443
8444 # Loop through the commands generated above and execute them.
8445 save_ifs="$IFS"; IFS='~'
8446 for cmd in $concat_cmds; do
8447 IFS="$save_ifs"
8448 $opt_silent || {
8449 func_quote_for_expand "$cmd"
8450 eval "func_echo $func_quote_for_expand_result"
8451 }
8452 $opt_dry_run || eval "$cmd" || {
8453 lt_exit=$?
8454
8455 # Restore the uninstalled library and exit
8456 if test "$opt_mode" = relink; then
8457 ( cd "$output_objdir" && \
8458 $RM "${realname}T" && \
8459 $MV "${realname}U" "$realname" )
8460 fi
8461
8462 exit $lt_exit
8463 }
8464 done
8465 IFS="$save_ifs"
8466
8467 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8468 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8469 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8470 fi
8471 fi
8472
8473 if ${skipped_export-false}; then
8474 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8475 tmp_export_symbols="$export_symbols"
8476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8477 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8478 fi
8479
8480 if test -n "$orig_export_symbols"; then
8481 # The given exports_symbols file has to be filtered, so filter it.
8482 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8483 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8484 # 's' commands which not all seds can handle. GNU sed should be fine
8485 # though. Also, the filter scales superlinearly with the number of
8486 # global variables. join(1) would be nice here, but unfortunately
8487 # isn't a blessed tool.
8488 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8489 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
8490 export_symbols=$output_objdir/$libname.def
8491 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8492 fi
8493 fi
8494
8495 libobjs=$output
8496 # Restore the value of output.
8497 output=$save_output
8498
8499 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8500 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8501 test "X$libobjs" = "X " && libobjs=
8502 fi
8503 # Expand the library linking commands again to reset the
8504 # value of $libobjs for piecewise linking.
8505
8506 # Do each of the archive commands.
8507 if test "$module" = yes && test -n "$module_cmds" ; then
8508 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8509 cmds=$module_expsym_cmds
8510 else
8511 cmds=$module_cmds
8512 fi
8513 else
8514 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8515 cmds=$archive_expsym_cmds
8516 else
8517 cmds=$archive_cmds
8518 fi
8519 fi
8520 fi
8521
8522 if test -n "$delfiles"; then
8523 # Append the command to remove temporary files to $cmds.
8524 eval cmds=\"\$cmds~\$RM $delfiles\"
8525 fi
8526
8527 # Add any objects from preloaded convenience libraries
8528 if test -n "$dlprefiles"; then
8529 gentop="$output_objdir/${outputname}x"
8530 func_append generated " $gentop"
8531
8532 func_extract_archives $gentop $dlprefiles
8533 func_append libobjs " $func_extract_archives_result"
8534 test "X$libobjs" = "X " && libobjs=
8535 fi
8536
8537 save_ifs="$IFS"; IFS='~'
8538 for cmd in $cmds; do
8539 IFS="$save_ifs"
8540 eval cmd=\"$cmd\"
8541 $opt_silent || {
8542 func_quote_for_expand "$cmd"
8543 eval "func_echo $func_quote_for_expand_result"
8544 }
8545 $opt_dry_run || eval "$cmd" || {
8546 lt_exit=$?
8547
8548 # Restore the uninstalled library and exit
8549 if test "$opt_mode" = relink; then
8550 ( cd "$output_objdir" && \
8551 $RM "${realname}T" && \
8552 $MV "${realname}U" "$realname" )
8553 fi
8554
8555 exit $lt_exit
8556 }
8557 done
8558 IFS="$save_ifs"
8559
8560 # Restore the uninstalled library and exit
8561 if test "$opt_mode" = relink; then
8562 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
8563
8564 if test -n "$convenience"; then
8565 if test -z "$whole_archive_flag_spec"; then
8566 func_show_eval '${RM}r "$gentop"'
8567 fi
8568 fi
8569
8570 exit $EXIT_SUCCESS
8571 fi
8572
8573 # Create links to the real library.
8574 for linkname in $linknames; do
8575 if test "$realname" != "$linkname"; then
8576 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
8577 fi
8578 done
8579
8580 # If -module or -export-dynamic was specified, set the dlname.
8581 if test "$module" = yes || test "$export_dynamic" = yes; then
8582 # On all known operating systems, these are identical.
8583 dlname="$soname"
8584 fi
8585 fi
8586 ;;
8587
8588 obj)
8589 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8590 func_warning "\`-dlopen' is ignored for objects"
8591 fi
8592
8593 case " $deplibs" in
8594 *\ -l* | *\ -L*)
8595 func_warning "\`-l' and \`-L' are ignored for objects" ;;
8596 esac
8597
8598 test -n "$rpath" && \
8599 func_warning "\`-rpath' is ignored for objects"
8600
8601 test -n "$xrpath" && \
8602 func_warning "\`-R' is ignored for objects"
8603
8604 test -n "$vinfo" && \
8605 func_warning "\`-version-info' is ignored for objects"
8606
8607 test -n "$release" && \
8608 func_warning "\`-release' is ignored for objects"
8609
8610 case $output in
8611 *.lo)
8612 test -n "$objs$old_deplibs" && \
8613 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
8614
8615 libobj=$output
8616 func_lo2o "$libobj"
8617 obj=$func_lo2o_result
8618 ;;
8619 *)
8620 libobj=
8621 obj="$output"
8622 ;;
8623 esac
8624
8625 # Delete the old objects.
8626 $opt_dry_run || $RM $obj $libobj
8627
8628 # Objects from convenience libraries. This assumes
8629 # single-version convenience libraries. Whenever we create
8630 # different ones for PIC/non-PIC, this we'll have to duplicate
8631 # the extraction.
8632 reload_conv_objs=
8633 gentop=
8634 # reload_cmds runs $LD directly, so let us get rid of
8635 # -Wl from whole_archive_flag_spec and hope we can get by with
8636 # turning comma into space..
8637 wl=
8638
8639 if test -n "$convenience"; then
8640 if test -n "$whole_archive_flag_spec"; then
8641 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
8643 else
8644 gentop="$output_objdir/${obj}x"
8645 func_append generated " $gentop"
8646
8647 func_extract_archives $gentop $convenience
8648 reload_conv_objs="$reload_objs $func_extract_archives_result"
8649 fi
8650 fi
8651
8652 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
8654
8655 # Create the old-style object.
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8657
8658 output="$obj"
8659 func_execute_cmds "$reload_cmds" 'exit $?'
8660
8661 # Exit if we aren't doing a library object file.
8662 if test -z "$libobj"; then
8663 if test -n "$gentop"; then
8664 func_show_eval '${RM}r "$gentop"'
8665 fi
8666
8667 exit $EXIT_SUCCESS
8668 fi
8669
8670 if test "$build_libtool_libs" != yes; then
8671 if test -n "$gentop"; then
8672 func_show_eval '${RM}r "$gentop"'
8673 fi
8674
8675 # Create an invalid libtool object if no PIC, so that we don't
8676 # accidentally link it into a program.
8677 # $show "echo timestamp > $libobj"
8678 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
8679 exit $EXIT_SUCCESS
8680 fi
8681
8682 if test -n "$pic_flag" || test "$pic_mode" != default; then
8683 # Only do commands if we really have different PIC objects.
8684 reload_objs="$libobjs $reload_conv_objs"
8685 output="$libobj"
8686 func_execute_cmds "$reload_cmds" 'exit $?'
8687 fi
8688
8689 if test -n "$gentop"; then
8690 func_show_eval '${RM}r "$gentop"'
8691 fi
8692
8693 exit $EXIT_SUCCESS
8694 ;;
8695
8696 prog)
8697 case $host in
8698 *cygwin*) func_stripname '' '.exe' "$output"
8699 output=$func_stripname_result.exe;;
8700 esac
8701 test -n "$vinfo" && \
8702 func_warning "\`-version-info' is ignored for programs"
8703
8704 test -n "$release" && \
8705 func_warning "\`-release' is ignored for programs"
8706
8707 test "$preload" = yes \
8708 && test "$dlopen_support" = unknown \
8709 && test "$dlopen_self" = unknown \
8710 && test "$dlopen_self_static" = unknown && \
8711 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
8712
8713 case $host in
8714 *-*-rhapsody* | *-*-darwin1.[012])
8715 # On Rhapsody replace the C library is the System framework
8716 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8717 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
8718 ;;
8719 esac
8720
8721 case $host in
8722 *-*-darwin*)
8723 # Don't allow lazy linking, it breaks C++ global constructors
8724 # But is supposedly fixed on 10.4 or later (yay!).
8725 if test "$tagname" = CXX ; then
8726 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8727 10.[0123])
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
8730 ;;
8731 esac
8732 fi
8733 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8734 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8735 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8736 ;;
8737 esac
8738
8739
8740 # move library search paths that coincide with paths to not yet
8741 # installed libraries to the beginning of the library search list
8742 new_libs=
8743 for path in $notinst_path; do
8744 case " $new_libs " in
8745 *" -L$path/$objdir "*) ;;
8746 *)
8747 case " $compile_deplibs " in
8748 *" -L$path/$objdir "*)
8749 func_append new_libs " -L$path/$objdir" ;;
8750 esac
8751 ;;
8752 esac
8753 done
8754 for deplib in $compile_deplibs; do
8755 case $deplib in
8756 -L*)
8757 case " $new_libs " in
8758 *" $deplib "*) ;;
8759 *) func_append new_libs " $deplib" ;;
8760 esac
8761 ;;
8762 *) func_append new_libs " $deplib" ;;
8763 esac
8764 done
8765 compile_deplibs="$new_libs"
8766
8767
8768 func_append compile_command " $compile_deplibs"
8769 func_append finalize_command " $finalize_deplibs"
8770
8771 if test -n "$rpath$xrpath"; then
8772 # If the user specified any rpath flags, then add them.
8773 for libdir in $rpath $xrpath; do
8774 # This is the magic to use -rpath.
8775 case "$finalize_rpath " in
8776 *" $libdir "*) ;;
8777 *) func_append finalize_rpath " $libdir" ;;
8778 esac
8779 done
8780 fi
8781
8782 # Now hardcode the library paths
8783 rpath=
8784 hardcode_libdirs=
8785 for libdir in $compile_rpath $finalize_rpath; do
8786 if test -n "$hardcode_libdir_flag_spec"; then
8787 if test -n "$hardcode_libdir_separator"; then
8788 if test -z "$hardcode_libdirs"; then
8789 hardcode_libdirs="$libdir"
8790 else
8791 # Just accumulate the unique libdirs.
8792 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8793 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8794 ;;
8795 *)
8796 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8797 ;;
8798 esac
8799 fi
8800 else
8801 eval flag=\"$hardcode_libdir_flag_spec\"
8802 func_append rpath " $flag"
8803 fi
8804 elif test -n "$runpath_var"; then
8805 case "$perm_rpath " in
8806 *" $libdir "*) ;;
8807 *) func_append perm_rpath " $libdir" ;;
8808 esac
8809 fi
8810 case $host in
8811 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8812 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
8813 case :$dllsearchpath: in
8814 *":$libdir:"*) ;;
8815 ::) dllsearchpath=$libdir;;
8816 *) func_append dllsearchpath ":$libdir";;
8817 esac
8818 case :$dllsearchpath: in
8819 *":$testbindir:"*) ;;
8820 ::) dllsearchpath=$testbindir;;
8821 *) func_append dllsearchpath ":$testbindir";;
8822 esac
8823 ;;
8824 esac
8825 done
8826 # Substitute the hardcoded libdirs into the rpath.
8827 if test -n "$hardcode_libdir_separator" &&
8828 test -n "$hardcode_libdirs"; then
8829 libdir="$hardcode_libdirs"
8830 eval rpath=\" $hardcode_libdir_flag_spec\"
8831 fi
8832 compile_rpath="$rpath"
8833
8834 rpath=
8835 hardcode_libdirs=
8836 for libdir in $finalize_rpath; do
8837 if test -n "$hardcode_libdir_flag_spec"; then
8838 if test -n "$hardcode_libdir_separator"; then
8839 if test -z "$hardcode_libdirs"; then
8840 hardcode_libdirs="$libdir"
8841 else
8842 # Just accumulate the unique libdirs.
8843 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8844 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8845 ;;
8846 *)
8847 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8848 ;;
8849 esac
8850 fi
8851 else
8852 eval flag=\"$hardcode_libdir_flag_spec\"
8853 func_append rpath " $flag"
8854 fi
8855 elif test -n "$runpath_var"; then
8856 case "$finalize_perm_rpath " in
8857 *" $libdir "*) ;;
8858 *) func_append finalize_perm_rpath " $libdir" ;;
8859 esac
8860 fi
8861 done
8862 # Substitute the hardcoded libdirs into the rpath.
8863 if test -n "$hardcode_libdir_separator" &&
8864 test -n "$hardcode_libdirs"; then
8865 libdir="$hardcode_libdirs"
8866 eval rpath=\" $hardcode_libdir_flag_spec\"
8867 fi
8868 finalize_rpath="$rpath"
8869
8870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
8871 # Transform all the library objects into standard objects.
8872 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8873 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8874 fi
8875
8876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
8877
8878 # template prelinking step
8879 if test -n "$prelink_cmds"; then
8880 func_execute_cmds "$prelink_cmds" 'exit $?'
8881 fi
8882
8883 wrappers_required=yes
8884 case $host in
8885 *cegcc* | *mingw32ce*)
8886 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
8888 ;;
8889 *cygwin* | *mingw* )
8890 if test "$build_libtool_libs" != yes; then
8891 wrappers_required=no
8892 fi
8893 ;;
8894 *)
8895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8896 wrappers_required=no
8897 fi
8898 ;;
8899 esac
8900 if test "$wrappers_required" = no; then
8901 # Replace the output file specification.
8902 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8903 link_command="$compile_command$compile_rpath"
8904
8905 # We have no uninstalled library dependencies, so finalize right now.
8906 exit_status=0
8907 func_show_eval "$link_command" 'exit_status=$?'
8908
8909 if test -n "$postlink_cmds"; then
8910 func_to_tool_file "$output"
8911 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8912 func_execute_cmds "$postlink_cmds" 'exit $?'
8913 fi
8914
8915 # Delete the generated files.
8916 if test -f "$output_objdir/${outputname}S.${objext}"; then
8917 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
8918 fi
8919
8920 exit $exit_status
8921 fi
8922
8923 if test -n "$compile_shlibpath$finalize_shlibpath"; then
8924 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
8925 fi
8926 if test -n "$finalize_shlibpath"; then
8927 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
8928 fi
8929
8930 compile_var=
8931 finalize_var=
8932 if test -n "$runpath_var"; then
8933 if test -n "$perm_rpath"; then
8934 # We should set the runpath_var.
8935 rpath=
8936 for dir in $perm_rpath; do
8937 func_append rpath "$dir:"
8938 done
8939 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
8940 fi
8941 if test -n "$finalize_perm_rpath"; then
8942 # We should set the runpath_var.
8943 rpath=
8944 for dir in $finalize_perm_rpath; do
8945 func_append rpath "$dir:"
8946 done
8947 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
8948 fi
8949 fi
8950
8951 if test "$no_install" = yes; then
8952 # We don't need to create a wrapper script.
8953 link_command="$compile_var$compile_command$compile_rpath"
8954 # Replace the output file specification.
8955 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8956 # Delete the old output file.
8957 $opt_dry_run || $RM $output
8958 # Link the executable and exit
8959 func_show_eval "$link_command" 'exit $?'
8960
8961 if test -n "$postlink_cmds"; then
8962 func_to_tool_file "$output"
8963 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8964 func_execute_cmds "$postlink_cmds" 'exit $?'
8965 fi
8966
8967 exit $EXIT_SUCCESS
8968 fi
8969
8970 if test "$hardcode_action" = relink; then
8971 # Fast installation is not supported
8972 link_command="$compile_var$compile_command$compile_rpath"
8973 relink_command="$finalize_var$finalize_command$finalize_rpath"
8974
8975 func_warning "this platform does not like uninstalled shared libraries"
8976 func_warning "\`$output' will be relinked during installation"
8977 else
8978 if test "$fast_install" != no; then
8979 link_command="$finalize_var$compile_command$finalize_rpath"
8980 if test "$fast_install" = yes; then
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8982 else
8983 # fast_install is set to needless
8984 relink_command=
8985 fi
8986 else
8987 link_command="$compile_var$compile_command$compile_rpath"
8988 relink_command="$finalize_var$finalize_command$finalize_rpath"
8989 fi
8990 fi
8991
8992 # Replace the output file specification.
8993 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8994
8995 # Delete the old output files.
8996 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
8997
8998 func_show_eval "$link_command" 'exit $?'
8999
9000 if test -n "$postlink_cmds"; then
9001 func_to_tool_file "$output_objdir/$outputname"
9002 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
9003 func_execute_cmds "$postlink_cmds" 'exit $?'
9004 fi
9005
9006 # Now create the wrapper script.
9007 func_verbose "creating $output"
9008
9009 # Quote the relink command for shipping.
9010 if test -n "$relink_command"; then
9011 # Preserve any variables that may affect compiler behavior
9012 for var in $variables_saved_for_relink; do
9013 if eval test -z \"\${$var+set}\"; then
9014 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
9015 elif eval var_value=\$$var; test -z "$var_value"; then
9016 relink_command="$var=; export $var; $relink_command"
9017 else
9018 func_quote_for_eval "$var_value"
9019 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
9020 fi
9021 done
9022 relink_command="(cd `pwd`; $relink_command)"
9023 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9024 fi
9025
9026 # Only actually do things if not in dry run mode.
9027 $opt_dry_run || {
9028 # win32 will think the script is a binary if it has
9029 # a .exe suffix, so we strip it off here.
9030 case $output in
9031 *.exe) func_stripname '' '.exe' "$output"
9032 output=$func_stripname_result ;;
9033 esac
9034 # test for cygwin because mv fails w/o .exe extensions
9035 case $host in
9036 *cygwin*)
9037 exeext=.exe
9038 func_stripname '' '.exe' "$outputname"
9039 outputname=$func_stripname_result ;;
9040 *) exeext= ;;
9041 esac
9042 case $host in
9043 *cygwin* | *mingw* )
9044 func_dirname_and_basename "$output" "" "."
9045 output_name=$func_basename_result
9046 output_path=$func_dirname_result
9047 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9048 cwrapper="$output_path/$output_name.exe"
9049 $RM $cwrappersource $cwrapper
9050 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
9051
9052 func_emit_cwrapperexe_src > $cwrappersource
9053
9054 # The wrapper executable is built using the $host compiler,
9055 # because it contains $host paths and files. If cross-
9056 # compiling, it, like the target executable, must be
9057 # executed on the $host or under an emulation environment.
9058 $opt_dry_run || {
9059 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9060 $STRIP $cwrapper
9061 }
9062
9063 # Now, create the wrapper script for func_source use:
9064 func_ltwrapper_scriptname $cwrapper
9065 $RM $func_ltwrapper_scriptname_result
9066 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
9067 $opt_dry_run || {
9068 # note: this script will not be executed, so do not chmod.
9069 if test "x$build" = "x$host" ; then
9070 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9071 else
9072 func_emit_wrapper no > $func_ltwrapper_scriptname_result
9073 fi
9074 }
9075 ;;
9076 * )
9077 $RM $output
9078 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
9079
9080 func_emit_wrapper no > $output
9081 chmod +x $output
9082 ;;
9083 esac
9084 }
9085 exit $EXIT_SUCCESS
9086 ;;
9087 esac
9088
9089 # See if we need to build an old-fashioned archive.
9090 for oldlib in $oldlibs; do
9091
9092 if test "$build_libtool_libs" = convenience; then
9093 oldobjs="$libobjs_save $symfileobj"
9094 addlibs="$convenience"
9095 build_libtool_libs=no
9096 else
9097 if test "$build_libtool_libs" = module; then
9098 oldobjs="$libobjs_save"
9099 build_libtool_libs=no
9100 else
9101 oldobjs="$old_deplibs $non_pic_objects"
9102 if test "$preload" = yes && test -f "$symfileobj"; then
9103 func_append oldobjs " $symfileobj"
9104 fi
9105 fi
9106 addlibs="$old_convenience"
9107 fi
9108
9109 if test -n "$addlibs"; then
9110 gentop="$output_objdir/${outputname}x"
9111 func_append generated " $gentop"
9112
9113 func_extract_archives $gentop $addlibs
9114 func_append oldobjs " $func_extract_archives_result"
9115 fi
9116
9117 # Do each command in the archive commands.
9118 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9119 cmds=$old_archive_from_new_cmds
9120 else
9121
9122 # Add any objects from preloaded convenience libraries
9123 if test -n "$dlprefiles"; then
9124 gentop="$output_objdir/${outputname}x"
9125 func_append generated " $gentop"
9126
9127 func_extract_archives $gentop $dlprefiles
9128 func_append oldobjs " $func_extract_archives_result"
9129 fi
9130
9131 # POSIX demands no paths to be encoded in archives. We have
9132 # to avoid creating archives with duplicate basenames if we
9133 # might have to extract them afterwards, e.g., when creating a
9134 # static archive out of a convenience library, or when linking
9135 # the entirety of a libtool archive into another (currently
9136 # not supported by libtool).
9137 if (for obj in $oldobjs
9138 do
9139 func_basename "$obj"
9140 $ECHO "$func_basename_result"
9141 done | sort | sort -uc >/dev/null 2>&1); then
9142 :
9143 else
9144 echo "copying selected object files to avoid basename conflicts..."
9145 gentop="$output_objdir/${outputname}x"
9146 func_append generated " $gentop"
9147 func_mkdir_p "$gentop"
9148 save_oldobjs=$oldobjs
9149 oldobjs=
9150 counter=1
9151 for obj in $save_oldobjs
9152 do
9153 func_basename "$obj"
9154 objbase="$func_basename_result"
9155 case " $oldobjs " in
9156 " ") oldobjs=$obj ;;
9157 *[\ /]"$objbase "*)
9158 while :; do
9159 # Make sure we don't pick an alternate name that also
9160 # overlaps.
9161 newobj=lt$counter-$objbase
9162 func_arith $counter + 1
9163 counter=$func_arith_result
9164 case " $oldobjs " in
9165 *[\ /]"$newobj "*) ;;
9166 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9167 esac
9168 done
9169 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9170 func_append oldobjs " $gentop/$newobj"
9171 ;;
9172 *) func_append oldobjs " $obj" ;;
9173 esac
9174 done
9175 fi
9176 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9177 tool_oldlib=$func_to_tool_file_result
9178 eval cmds=\"$old_archive_cmds\"
9179
9180 func_len " $cmds"
9181 len=$func_len_result
9182 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9183 cmds=$old_archive_cmds
9184 elif test -n "$archiver_list_spec"; then
9185 func_verbose "using command file archive linking..."
9186 for obj in $oldobjs
9187 do
9188 func_to_tool_file "$obj"
9189 $ECHO "$func_to_tool_file_result"
9190 done > $output_objdir/$libname.libcmd
9191 func_to_tool_file "$output_objdir/$libname.libcmd"
9192 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
9193 cmds=$old_archive_cmds
9194 else
9195 # the command line is too long to link in one step, link in parts
9196 func_verbose "using piecewise archive linking..."
9197 save_RANLIB=$RANLIB
9198 RANLIB=:
9199 objlist=
9200 concat_cmds=
9201 save_oldobjs=$oldobjs
9202 oldobjs=
9203 # Is there a better way of finding the last object in the list?
9204 for obj in $save_oldobjs
9205 do
9206 last_oldobj=$obj
9207 done
9208 eval test_cmds=\"$old_archive_cmds\"
9209 func_len " $test_cmds"
9210 len0=$func_len_result
9211 len=$len0
9212 for obj in $save_oldobjs
9213 do
9214 func_len " $obj"
9215 func_arith $len + $func_len_result
9216 len=$func_arith_result
9217 func_append objlist " $obj"
9218 if test "$len" -lt "$max_cmd_len"; then
9219 :
9220 else
9221 # the above command should be used before it gets too long
9222 oldobjs=$objlist
9223 if test "$obj" = "$last_oldobj" ; then
9224 RANLIB=$save_RANLIB
9225 fi
9226 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9227 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
9228 objlist=
9229 len=$len0
9230 fi
9231 done
9232 RANLIB=$save_RANLIB
9233 oldobjs=$objlist
9234 if test "X$oldobjs" = "X" ; then
9235 eval cmds=\"\$concat_cmds\"
9236 else
9237 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
9238 fi
9239 fi
9240 fi
9241 func_execute_cmds "$cmds" 'exit $?'
9242 done
9243
9244 test -n "$generated" && \
9245 func_show_eval "${RM}r$generated"
9246
9247 # Now create the libtool archive.
9248 case $output in
9249 *.la)
9250 old_library=
9251 test "$build_old_libs" = yes && old_library="$libname.$libext"
9252 func_verbose "creating $output"
9253
9254 # Preserve any variables that may affect compiler behavior
9255 for var in $variables_saved_for_relink; do
9256 if eval test -z \"\${$var+set}\"; then
9257 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
9258 elif eval var_value=\$$var; test -z "$var_value"; then
9259 relink_command="$var=; export $var; $relink_command"
9260 else
9261 func_quote_for_eval "$var_value"
9262 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
9263 fi
9264 done
9265 # Quote the link command for shipping.
9266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9267 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9268 if test "$hardcode_automatic" = yes ; then
9269 relink_command=
9270 fi
9271
9272 # Only create the output if not a dry run.
9273 $opt_dry_run || {
9274 for installed in no yes; do
9275 if test "$installed" = yes; then
9276 if test -z "$install_libdir"; then
9277 break
9278 fi
9279 output="$output_objdir/$outputname"i
9280 # Replace all uninstalled libtool libraries with the installed ones
9281 newdependency_libs=
9282 for deplib in $dependency_libs; do
9283 case $deplib in
9284 *.la)
9285 func_basename "$deplib"
9286 name="$func_basename_result"
9287 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
9289 test -z "$libdir" && \
9290 func_fatal_error "\`$deplib' is not a valid libtool archive"
9291 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
9292 ;;
9293 -L*)
9294 func_stripname -L '' "$deplib"
9295 func_replace_sysroot "$func_stripname_result"
9296 func_append newdependency_libs " -L$func_replace_sysroot_result"
9297 ;;
9298 -R*)
9299 func_stripname -R '' "$deplib"
9300 func_replace_sysroot "$func_stripname_result"
9301 func_append newdependency_libs " -R$func_replace_sysroot_result"
9302 ;;
9303 *) func_append newdependency_libs " $deplib" ;;
9304 esac
9305 done
9306 dependency_libs="$newdependency_libs"
9307 newdlfiles=
9308
9309 for lib in $dlfiles; do
9310 case $lib in
9311 *.la)
9312 func_basename "$lib"
9313 name="$func_basename_result"
9314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9315 test -z "$libdir" && \
9316 func_fatal_error "\`$lib' is not a valid libtool archive"
9317 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
9318 ;;
9319 *) func_append newdlfiles " $lib" ;;
9320 esac
9321 done
9322 dlfiles="$newdlfiles"
9323 newdlprefiles=
9324 for lib in $dlprefiles; do
9325 case $lib in
9326 *.la)
9327 # Only pass preopened files to the pseudo-archive (for
9328 # eventual linking with the app. that links it) if we
9329 # didn't already link the preopened objects directly into
9330 # the library:
9331 func_basename "$lib"
9332 name="$func_basename_result"
9333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9334 test -z "$libdir" && \
9335 func_fatal_error "\`$lib' is not a valid libtool archive"
9336 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
9337 ;;
9338 esac
9339 done
9340 dlprefiles="$newdlprefiles"
9341 else
9342 newdlfiles=
9343 for lib in $dlfiles; do
9344 case $lib in
9345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9346 *) abs=`pwd`"/$lib" ;;
9347 esac
9348 func_append newdlfiles " $abs"
9349 done
9350 dlfiles="$newdlfiles"
9351 newdlprefiles=
9352 for lib in $dlprefiles; do
9353 case $lib in
9354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9355 *) abs=`pwd`"/$lib" ;;
9356 esac
9357 func_append newdlprefiles " $abs"
9358 done
9359 dlprefiles="$newdlprefiles"
9360 fi
9361 $RM $output
9362 # place dlname in correct position for cygwin
9363 # In fact, it would be nice if we could use this code for all target
9364 # systems that can't hard-code library paths into their executables
9365 # and that have no shared library path variable independent of PATH,
9366 # but it turns out we can't easily determine that from inspecting
9367 # libtool variables, so we have to hard-code the OSs to which it
9368 # applies here; at the moment, that means platforms that use the PE
9369 # object format with DLL files. See the long comment at the top of
9370 # tests/bindir.at for full details.
9371 tdlname=$dlname
9372 case $host,$output,$installed,$module,$dlname in
9373 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9374 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
9377 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
9379 else
9380 # Otherwise fall back on heuristic.
9381 tdlname=../bin/$dlname
9382 fi
9383 ;;
9384 esac
9385 $ECHO > $output "\
9386 # $outputname - a libtool library file
9387 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
9388 #
9389 # Please DO NOT delete this file!
9390 # It is necessary for linking the library.
9391
9392 # The name that we can dlopen(3).
9393 dlname='$tdlname'
9394
9395 # Names of this library.
9396 library_names='$library_names'
9397
9398 # The name of the static archive.
9399 old_library='$old_library'
9400
9401 # Linker flags that can not go in dependency_libs.
9402 inherited_linker_flags='$new_inherited_linker_flags'
9403
9404 # Libraries that this one depends upon.
9405 dependency_libs='$dependency_libs'
9406
9407 # Names of additional weak libraries provided by this library
9408 weak_library_names='$weak_libs'
9409
9410 # Version information for $libname.
9411 current=$current
9412 age=$age
9413 revision=$revision
9414
9415 # Is this an already installed library?
9416 installed=$installed
9417
9418 # Should we warn about portability when linking against -modules?
9419 shouldnotlink=$module
9420
9421 # Files to dlopen/dlpreopen
9422 dlopen='$dlfiles'
9423 dlpreopen='$dlprefiles'
9424
9425 # Directory that this library needs to be installed in:
9426 libdir='$install_libdir'"
9427 if test "$installed" = no && test "$need_relink" = yes; then
9428 $ECHO >> $output "\
9429 relink_command=\"$relink_command\""
9430 fi
9431 done
9432 }
9433
9434 # Do a symbolic link so that the libtool archive can be found in
9435 # LD_LIBRARY_PATH before the program is installed.
9436 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
9437 ;;
9438 esac
9439 exit $EXIT_SUCCESS
9440 }
9441
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9443 func_mode_link ${1+"$@"}
9444
9445
9446 # func_mode_uninstall arg...
9447 func_mode_uninstall ()
9448 {
9449 $opt_debug
9450 RM="$nonopt"
9451 files=
9452 rmforce=
9453 exit_status=0
9454
9455 # This variable tells wrapper scripts just to set variables rather
9456 # than running their programs.
9457 libtool_install_magic="$magic"
9458
9459 for arg
9460 do
9461 case $arg in
9462 -f) func_append RM " $arg"; rmforce=yes ;;
9463 -*) func_append RM " $arg" ;;
9464 *) func_append files " $arg" ;;
9465 esac
9466 done
9467
9468 test -z "$RM" && \
9469 func_fatal_help "you must specify an RM program"
9470
9471 rmdirs=
9472
9473 for file in $files; do
9474 func_dirname "$file" "" "."
9475 dir="$func_dirname_result"
9476 if test "X$dir" = X.; then
9477 odir="$objdir"
9478 else
9479 odir="$dir/$objdir"
9480 fi
9481 func_basename "$file"
9482 name="$func_basename_result"
9483 test "$opt_mode" = uninstall && odir="$dir"
9484
9485 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
9487 case " $rmdirs " in
9488 *" $odir "*) ;;
9489 *) func_append rmdirs " $odir" ;;
9490 esac
9491 fi
9492
9493 # Don't error if the file doesn't exist and rm -f was used.
9494 if { test -L "$file"; } >/dev/null 2>&1 ||
9495 { test -h "$file"; } >/dev/null 2>&1 ||
9496 test -f "$file"; then
9497 :
9498 elif test -d "$file"; then
9499 exit_status=1
9500 continue
9501 elif test "$rmforce" = yes; then
9502 continue
9503 fi
9504
9505 rmfiles="$file"
9506
9507 case $name in
9508 *.la)
9509 # Possibly a libtool archive, so verify it.
9510 if func_lalib_p "$file"; then
9511 func_source $dir/$name
9512
9513 # Delete the libtool libraries and symlinks.
9514 for n in $library_names; do
9515 func_append rmfiles " $odir/$n"
9516 done
9517 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9518
9519 case "$opt_mode" in
9520 clean)
9521 case " $library_names " in
9522 *" $dlname "*) ;;
9523 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
9524 esac
9525 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
9526 ;;
9527 uninstall)
9528 if test -n "$library_names"; then
9529 # Do each command in the postuninstall commands.
9530 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9531 fi
9532
9533 if test -n "$old_library"; then
9534 # Do each command in the old_postuninstall commands.
9535 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9536 fi
9537 # FIXME: should reinstall the best remaining shared library.
9538 ;;
9539 esac
9540 fi
9541 ;;
9542
9543 *.lo)
9544 # Possibly a libtool object, so verify it.
9545 if func_lalib_p "$file"; then
9546
9547 # Read the .lo file
9548 func_source $dir/$name
9549
9550 # Add PIC object to the list of files to remove.
9551 if test -n "$pic_object" &&
9552 test "$pic_object" != none; then
9553 func_append rmfiles " $dir/$pic_object"
9554 fi
9555
9556 # Add non-PIC object to the list of files to remove.
9557 if test -n "$non_pic_object" &&
9558 test "$non_pic_object" != none; then
9559 func_append rmfiles " $dir/$non_pic_object"
9560 fi
9561 fi
9562 ;;
9563
9564 *)
9565 if test "$opt_mode" = clean ; then
9566 noexename=$name
9567 case $file in
9568 *.exe)
9569 func_stripname '' '.exe' "$file"
9570 file=$func_stripname_result
9571 func_stripname '' '.exe' "$name"
9572 noexename=$func_stripname_result
9573 # $file with .exe has already been added to rmfiles,
9574 # add $file without .exe
9575 func_append rmfiles " $file"
9576 ;;
9577 esac
9578 # Do a test to see if this is a libtool program.
9579 if func_ltwrapper_p "$file"; then
9580 if func_ltwrapper_executable_p "$file"; then
9581 func_ltwrapper_scriptname "$file"
9582 relink_command=
9583 func_source $func_ltwrapper_scriptname_result
9584 func_append rmfiles " $func_ltwrapper_scriptname_result"
9585 else
9586 relink_command=
9587 func_source $dir/$noexename
9588 fi
9589
9590 # note $name still contains .exe if it was in $file originally
9591 # as does the version of $file that was added into $rmfiles
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9593 if test "$fast_install" = yes && test -n "$relink_command"; then
9594 func_append rmfiles " $odir/lt-$name"
9595 fi
9596 if test "X$noexename" != "X$name" ; then
9597 func_append rmfiles " $odir/lt-${noexename}.c"
9598 fi
9599 fi
9600 fi
9601 ;;
9602 esac
9603 func_show_eval "$RM $rmfiles" 'exit_status=1'
9604 done
9605
9606 # Try to remove the ${objdir}s in the directories where we deleted files
9607 for dir in $rmdirs; do
9608 if test -d "$dir"; then
9609 func_show_eval "rmdir $dir >/dev/null 2>&1"
9610 fi
9611 done
9612
9613 exit $exit_status
9614 }
9615
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9617 func_mode_uninstall ${1+"$@"}
9618
9619 test -z "$opt_mode" && {
9620 help="$generic_help"
9621 func_fatal_help "you must specify a MODE"
9622 }
9623
9624 test -z "$exec_cmd" && \
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
9626
9627 if test -n "$exec_cmd"; then
9628 eval exec "$exec_cmd"
9629 exit $EXIT_FAILURE
9630 fi
9631
9632 exit $exit_status
9633
9634
9635 # The TAGs below are defined such that we never get into a situation
9636 # in which we disable both kinds of libraries. Given conflicting
9637 # choices, we go for a static library, that is the most portable,
9638 # since we can't tell whether shared libraries were disabled because
9639 # the user asked for that or because the platform doesn't support
9640 # them. This is particularly important on AIX, because we don't
9641 # support having both static and shared libraries enabled at the same
9642 # time on that platform, so we default to a shared-only configuration.
9643 # If a disable-shared tag is given, we'll fallback to a static-only
9644 # configuration. But we'll never go from static-only to shared-only.
9645
9646 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9647 build_libtool_libs=no
9648 build_old_libs=yes
9649 # ### END LIBTOOL TAG CONFIG: disable-shared
9650
9651 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9652 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
9653 # ### END LIBTOOL TAG CONFIG: disable-static
9654
9655 # Local Variables:
9656 # mode:shell-script
9657 # sh-indentation:2
9658 # End:
9659 # vi:sw=2
9660
0 # gettext.m4 serial 63 (gettext-0.18)
1 dnl Copyright (C) 1995-2010 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, 2008-2010.
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(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
63 [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
64 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
65 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
66 ])])])])
67 define([gt_included_intl],
68 ifelse([$1], [external],
69 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
70 [yes]))
71 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
72 gt_NEEDS_INIT
73 AM_GNU_GETTEXT_NEED([$2])
74
75 AC_REQUIRE([AM_PO_SUBDIRS])dnl
76 ifelse(gt_included_intl, yes, [
77 AC_REQUIRE([AM_INTL_SUBDIR])dnl
78 ])
79
80 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
81 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
82 AC_REQUIRE([AC_LIB_RPATH])
83
84 dnl Sometimes libintl requires libiconv, so first search for libiconv.
85 dnl Ideally we would do this search only after the
86 dnl if test "$USE_NLS" = "yes"; then
87 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
88 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
89 dnl the configure script would need to contain the same shell code
90 dnl again, outside any 'if'. There are two solutions:
91 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
92 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
93 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
94 dnl documented, we avoid it.
95 ifelse(gt_included_intl, yes, , [
96 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
97 ])
98
99 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
100 gt_INTL_MACOSX
101
102 dnl Set USE_NLS.
103 AC_REQUIRE([AM_NLS])
104
105 ifelse(gt_included_intl, yes, [
106 BUILD_INCLUDED_LIBINTL=no
107 USE_INCLUDED_LIBINTL=no
108 ])
109 LIBINTL=
110 LTLIBINTL=
111 POSUB=
112
113 dnl Add a version number to the cache macros.
114 case " $gt_needs " in
115 *" need-formatstring-macros "*) gt_api_version=3 ;;
116 *" need-ngettext "*) gt_api_version=2 ;;
117 *) gt_api_version=1 ;;
118 esac
119 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
120 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
121
122 dnl If we use NLS figure out what method
123 if test "$USE_NLS" = "yes"; then
124 gt_use_preinstalled_gnugettext=no
125 ifelse(gt_included_intl, yes, [
126 AC_MSG_CHECKING([whether included gettext is requested])
127 AC_ARG_WITH([included-gettext],
128 [ --with-included-gettext use the GNU gettext library included here],
129 nls_cv_force_use_gnu_gettext=$withval,
130 nls_cv_force_use_gnu_gettext=no)
131 AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
132
133 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
134 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
135 ])
136 dnl User does not insist on using GNU NLS library. Figure out what
137 dnl to use. If GNU gettext is available we use this. Else we have
138 dnl to fall back to GNU NLS library.
139
140 if test $gt_api_version -ge 3; then
141 gt_revision_test_code='
142 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
143 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
144 #endif
145 changequote(,)dnl
146 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
147 changequote([,])dnl
148 '
149 else
150 gt_revision_test_code=
151 fi
152 if test $gt_api_version -ge 2; then
153 gt_expression_test_code=' + * ngettext ("", "", 0)'
154 else
155 gt_expression_test_code=
156 fi
157
158 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
159 [AC_TRY_LINK([#include <libintl.h>
160 $gt_revision_test_code
161 extern int _nl_msg_cat_cntr;
162 extern int *_nl_domain_bindings;],
163 [bindtextdomain ("", "");
164 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
165 [eval "$gt_func_gnugettext_libc=yes"],
166 [eval "$gt_func_gnugettext_libc=no"])])
167
168 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
169 dnl Sometimes libintl requires libiconv, so first search for libiconv.
170 ifelse(gt_included_intl, yes, , [
171 AM_ICONV_LINK
172 ])
173 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
174 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
175 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
176 dnl even if libiconv doesn't exist.
177 AC_LIB_LINKFLAGS_BODY([intl])
178 AC_CACHE_CHECK([for GNU gettext in libintl],
179 [$gt_func_gnugettext_libintl],
180 [gt_save_CPPFLAGS="$CPPFLAGS"
181 CPPFLAGS="$CPPFLAGS $INCINTL"
182 gt_save_LIBS="$LIBS"
183 LIBS="$LIBS $LIBINTL"
184 dnl Now see whether libintl exists and does not depend on libiconv.
185 AC_TRY_LINK([#include <libintl.h>
186 $gt_revision_test_code
187 extern int _nl_msg_cat_cntr;
188 extern
189 #ifdef __cplusplus
190 "C"
191 #endif
192 const char *_nl_expand_alias (const char *);],
193 [bindtextdomain ("", "");
194 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
195 [eval "$gt_func_gnugettext_libintl=yes"],
196 [eval "$gt_func_gnugettext_libintl=no"])
197 dnl Now see whether libintl exists and depends on libiconv.
198 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
199 LIBS="$LIBS $LIBICONV"
200 AC_TRY_LINK([#include <libintl.h>
201 $gt_revision_test_code
202 extern int _nl_msg_cat_cntr;
203 extern
204 #ifdef __cplusplus
205 "C"
206 #endif
207 const char *_nl_expand_alias (const char *);],
208 [bindtextdomain ("", "");
209 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
210 [LIBINTL="$LIBINTL $LIBICONV"
211 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
212 eval "$gt_func_gnugettext_libintl=yes"
213 ])
214 fi
215 CPPFLAGS="$gt_save_CPPFLAGS"
216 LIBS="$gt_save_LIBS"])
217 fi
218
219 dnl If an already present or preinstalled GNU gettext() is found,
220 dnl use it. But if this macro is used in GNU gettext, and GNU
221 dnl gettext is already preinstalled in libintl, we update this
222 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
223 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
224 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
225 && test "$PACKAGE" != gettext-runtime \
226 && test "$PACKAGE" != gettext-tools; }; then
227 gt_use_preinstalled_gnugettext=yes
228 else
229 dnl Reset the values set by searching for libintl.
230 LIBINTL=
231 LTLIBINTL=
232 INCINTL=
233 fi
234
235 ifelse(gt_included_intl, yes, [
236 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
237 dnl GNU gettext is not found in the C library.
238 dnl Fall back on included GNU gettext library.
239 nls_cv_use_gnu_gettext=yes
240 fi
241 fi
242
243 if test "$nls_cv_use_gnu_gettext" = "yes"; then
244 dnl Mark actions used to generate GNU NLS library.
245 BUILD_INCLUDED_LIBINTL=yes
246 USE_INCLUDED_LIBINTL=yes
247 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
248 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
249 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
250 fi
251
252 CATOBJEXT=
253 if test "$gt_use_preinstalled_gnugettext" = "yes" \
254 || test "$nls_cv_use_gnu_gettext" = "yes"; then
255 dnl Mark actions to use GNU gettext tools.
256 CATOBJEXT=.gmo
257 fi
258 ])
259
260 if test -n "$INTL_MACOSX_LIBS"; then
261 if test "$gt_use_preinstalled_gnugettext" = "yes" \
262 || test "$nls_cv_use_gnu_gettext" = "yes"; then
263 dnl Some extra flags are needed during linking.
264 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
265 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
266 fi
267 fi
268
269 if test "$gt_use_preinstalled_gnugettext" = "yes" \
270 || test "$nls_cv_use_gnu_gettext" = "yes"; then
271 AC_DEFINE([ENABLE_NLS], [1],
272 [Define to 1 if translation of program messages to the user's native language
273 is requested.])
274 else
275 USE_NLS=no
276 fi
277 fi
278
279 AC_MSG_CHECKING([whether to use NLS])
280 AC_MSG_RESULT([$USE_NLS])
281 if test "$USE_NLS" = "yes"; then
282 AC_MSG_CHECKING([where the gettext function comes from])
283 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
284 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
285 gt_source="external libintl"
286 else
287 gt_source="libc"
288 fi
289 else
290 gt_source="included intl directory"
291 fi
292 AC_MSG_RESULT([$gt_source])
293 fi
294
295 if test "$USE_NLS" = "yes"; then
296
297 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
298 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
299 AC_MSG_CHECKING([how to link with libintl])
300 AC_MSG_RESULT([$LIBINTL])
301 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
302 fi
303
304 dnl For backward compatibility. Some packages may be using this.
305 AC_DEFINE([HAVE_GETTEXT], [1],
306 [Define if the GNU gettext() function is already present or preinstalled.])
307 AC_DEFINE([HAVE_DCGETTEXT], [1],
308 [Define if the GNU dcgettext() function is already present or preinstalled.])
309 fi
310
311 dnl We need to process the po/ directory.
312 POSUB=po
313 fi
314
315 ifelse(gt_included_intl, yes, [
316 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
317 dnl to 'yes' because some of the testsuite requires it.
318 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
319 BUILD_INCLUDED_LIBINTL=yes
320 fi
321
322 dnl Make all variables we use known to autoconf.
323 AC_SUBST([BUILD_INCLUDED_LIBINTL])
324 AC_SUBST([USE_INCLUDED_LIBINTL])
325 AC_SUBST([CATOBJEXT])
326
327 dnl For backward compatibility. Some configure.ins may be using this.
328 nls_cv_header_intl=
329 nls_cv_header_libgt=
330
331 dnl For backward compatibility. Some Makefiles may be using this.
332 DATADIRNAME=share
333 AC_SUBST([DATADIRNAME])
334
335 dnl For backward compatibility. Some Makefiles may be using this.
336 INSTOBJEXT=.mo
337 AC_SUBST([INSTOBJEXT])
338
339 dnl For backward compatibility. Some Makefiles may be using this.
340 GENCAT=gencat
341 AC_SUBST([GENCAT])
342
343 dnl For backward compatibility. Some Makefiles may be using this.
344 INTLOBJS=
345 if test "$USE_INCLUDED_LIBINTL" = yes; then
346 INTLOBJS="\$(GETTOBJS)"
347 fi
348 AC_SUBST([INTLOBJS])
349
350 dnl Enable libtool support if the surrounding package wishes it.
351 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
352 AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
353 ])
354
355 dnl For backward compatibility. Some Makefiles may be using this.
356 INTLLIBS="$LIBINTL"
357 AC_SUBST([INTLLIBS])
358
359 dnl Make all documented variables known to autoconf.
360 AC_SUBST([LIBINTL])
361 AC_SUBST([LTLIBINTL])
362 AC_SUBST([POSUB])
363 ])
364
365
366 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
367 m4_define([gt_NEEDS_INIT],
368 [
369 m4_divert_text([DEFAULTS], [gt_needs=])
370 m4_define([gt_NEEDS_INIT], [])
371 ])
372
373
374 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
375 AC_DEFUN([AM_GNU_GETTEXT_NEED],
376 [
377 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
378 ])
379
380
381 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
382 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
0 # iconv.m4 serial 11 (gettext-0.18.1)
1 dnl Copyright (C) 2000-2002, 2007-2010 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, HP-UX 11.11, Solaris 10.
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 /* Test against Solaris 10 bug: Failures are not distinguishable from
90 successful returns. */
91 {
92 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
93 if (cd_ascii_to_88591 != (iconv_t)(-1))
94 {
95 static const char input[] = "\263";
96 char buf[10];
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_ascii_to_88591,
102 (char **) &inptr, &inbytesleft,
103 &outptr, &outbytesleft);
104 if (res == 0)
105 return 1;
106 }
107 }
108 #if 0 /* This bug could be worked around by the caller. */
109 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
110 {
111 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
112 if (cd_88591_to_utf8 != (iconv_t)(-1))
113 {
114 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
115 char buf[50];
116 const char *inptr = input;
117 size_t inbytesleft = strlen (input);
118 char *outptr = buf;
119 size_t outbytesleft = sizeof (buf);
120 size_t res = iconv (cd_88591_to_utf8,
121 (char **) &inptr, &inbytesleft,
122 &outptr, &outbytesleft);
123 if ((int)res > 0)
124 return 1;
125 }
126 }
127 #endif
128 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
129 provided. */
130 if (/* Try standardized names. */
131 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
132 /* Try IRIX, OSF/1 names. */
133 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
134 /* Try AIX names. */
135 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
136 /* Try HP-UX names. */
137 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
138 return 1;
139 return 0;
140 }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
141 [case "$host_os" in
142 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
143 *) am_cv_func_iconv_works="guessing yes" ;;
144 esac])
145 LIBS="$am_save_LIBS"
146 ])
147 case "$am_cv_func_iconv_works" in
148 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
149 *) am_func_iconv=yes ;;
150 esac
151 else
152 am_func_iconv=no am_cv_lib_iconv=no
153 fi
154 if test "$am_func_iconv" = yes; then
155 AC_DEFINE([HAVE_ICONV], [1],
156 [Define if you have the iconv() function and it works.])
157 fi
158 if test "$am_cv_lib_iconv" = yes; then
159 AC_MSG_CHECKING([how to link with libiconv])
160 AC_MSG_RESULT([$LIBICONV])
161 else
162 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
163 dnl either.
164 CPPFLAGS="$am_save_CPPFLAGS"
165 LIBICONV=
166 LTLIBICONV=
167 fi
168 AC_SUBST([LIBICONV])
169 AC_SUBST([LTLIBICONV])
170 ])
171
172 dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
173 dnl avoid warnings like
174 dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
175 dnl This is tricky because of the way 'aclocal' is implemented:
176 dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
177 dnl Otherwise aclocal's initial scan pass would miss the macro definition.
178 dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
179 dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
180 dnl warnings.
181 m4_define([gl_iconv_AC_DEFUN],
182 m4_version_prereq([2.64],
183 [[AC_DEFUN_ONCE(
184 [$1], [$2])]],
185 [[AC_DEFUN(
186 [$1], [$2])]]))
187 gl_iconv_AC_DEFUN([AM_ICONV],
188 [
189 AM_ICONV_LINK
190 if test "$am_cv_func_iconv" = yes; then
191 AC_MSG_CHECKING([for iconv declaration])
192 AC_CACHE_VAL([am_cv_proto_iconv], [
193 AC_TRY_COMPILE([
194 #include <stdlib.h>
195 #include <iconv.h>
196 extern
197 #ifdef __cplusplus
198 "C"
199 #endif
200 #if defined(__STDC__) || defined(__cplusplus)
201 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
202 #else
203 size_t iconv();
204 #endif
205 ], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"])
206 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);"])
207 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
208 AC_MSG_RESULT([
209 $am_cv_proto_iconv])
210 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
211 [Define as const if the declaration of iconv() needs const.])
212 fi
213 ])
0 # intlmacosx.m4 serial 3 (gettext-0.18)
1 dnl Copyright (C) 2004-2010 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 4 (gettext-0.18)
1 dnl Copyright (C) 1996-2003, 2009-2010 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 21 (gettext-0.18)
1 dnl Copyright (C) 2001-2010 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 pushdef([Name],[translit([$1],[./-], [___])])
21 pushdef([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 popdef([NAME])
42 popdef([Name])
43 ])
44
45 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
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. The missing-message
49 dnl defaults to 'no' and may contain additional hints for the user.
50 dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
51 dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
52 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
53 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
54 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
55 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
56 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
57 [
58 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
59 AC_REQUIRE([AC_LIB_RPATH])
60 pushdef([Name],[translit([$1],[./-], [___])])
61 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
62 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
63
64 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
65 dnl accordingly.
66 AC_LIB_LINKFLAGS_BODY([$1], [$2])
67
68 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
69 dnl because if the user has installed lib[]Name and not disabled its use
70 dnl via --without-lib[]Name-prefix, he wants to use it.
71 ac_save_CPPFLAGS="$CPPFLAGS"
72 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
73
74 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
75 ac_save_LIBS="$LIBS"
76 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
77 dnl because these -l options might require -L options that are present in
78 dnl LIBS. -l options benefit only from the -L options listed before it.
79 dnl Otherwise, add it to the front of LIBS, because it may be a static
80 dnl library that depends on another static library that is present in LIBS.
81 dnl Static libraries benefit only from the static libraries listed after
82 dnl it.
83 case " $LIB[]NAME" in
84 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
85 *) LIBS="$LIB[]NAME $LIBS" ;;
86 esac
87 AC_TRY_LINK([$3], [$4],
88 [ac_cv_lib[]Name=yes],
89 [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
90 LIBS="$ac_save_LIBS"
91 ])
92 if test "$ac_cv_lib[]Name" = yes; then
93 HAVE_LIB[]NAME=yes
94 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
95 AC_MSG_CHECKING([how to link with lib[]$1])
96 AC_MSG_RESULT([$LIB[]NAME])
97 else
98 HAVE_LIB[]NAME=no
99 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
100 dnl $INC[]NAME either.
101 CPPFLAGS="$ac_save_CPPFLAGS"
102 LIB[]NAME=
103 LTLIB[]NAME=
104 LIB[]NAME[]_PREFIX=
105 fi
106 AC_SUBST([HAVE_LIB]NAME)
107 AC_SUBST([LIB]NAME)
108 AC_SUBST([LTLIB]NAME)
109 AC_SUBST([LIB]NAME[_PREFIX])
110 popdef([NAME])
111 popdef([Name])
112 ])
113
114 dnl Determine the platform dependent parameters needed to use rpath:
115 dnl acl_libext,
116 dnl acl_shlibext,
117 dnl acl_hardcode_libdir_flag_spec,
118 dnl acl_hardcode_libdir_separator,
119 dnl acl_hardcode_direct,
120 dnl acl_hardcode_minus_L.
121 AC_DEFUN([AC_LIB_RPATH],
122 [
123 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
124 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
125 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
126 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
127 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
128 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
129 AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
130 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
131 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
132 . ./conftest.sh
133 rm -f ./conftest.sh
134 acl_cv_rpath=done
135 ])
136 wl="$acl_cv_wl"
137 acl_libext="$acl_cv_libext"
138 acl_shlibext="$acl_cv_shlibext"
139 acl_libname_spec="$acl_cv_libname_spec"
140 acl_library_names_spec="$acl_cv_library_names_spec"
141 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
142 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
143 acl_hardcode_direct="$acl_cv_hardcode_direct"
144 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
145 dnl Determine whether the user wants rpath handling at all.
146 AC_ARG_ENABLE([rpath],
147 [ --disable-rpath do not hardcode runtime library paths],
148 :, enable_rpath=yes)
149 ])
150
151 dnl AC_LIB_FROMPACKAGE(name, package)
152 dnl declares that libname comes from the given package. The configure file
153 dnl will then not have a --with-libname-prefix option but a
154 dnl --with-package-prefix option. Several libraries can come from the same
155 dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
156 dnl macro call that searches for libname.
157 AC_DEFUN([AC_LIB_FROMPACKAGE],
158 [
159 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
160 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
161 define([acl_frompackage_]NAME, [$2])
162 popdef([NAME])
163 pushdef([PACK],[$2])
164 pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
165 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
166 define([acl_libsinpackage_]PACKUP,
167 m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1])
168 popdef([PACKUP])
169 popdef([PACK])
170 ])
171
172 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
173 dnl the libraries corresponding to explicit and implicit dependencies.
174 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
175 dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
176 dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
177 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
178 [
179 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
180 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
181 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
182 pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
183 pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
184 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
185 pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
186 dnl Autoconf >= 2.61 supports dots in --with options.
187 pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)])
188 dnl By default, look in $includedir and $libdir.
189 use_additional=yes
190 AC_LIB_WITH_FINAL_PREFIX([
191 eval additional_includedir=\"$includedir\"
192 eval additional_libdir=\"$libdir\"
193 ])
194 AC_ARG_WITH(P_A_C_K[-prefix],
195 [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
196 --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
197 [
198 if test "X$withval" = "Xno"; then
199 use_additional=no
200 else
201 if test "X$withval" = "X"; then
202 AC_LIB_WITH_FINAL_PREFIX([
203 eval additional_includedir=\"$includedir\"
204 eval additional_libdir=\"$libdir\"
205 ])
206 else
207 additional_includedir="$withval/include"
208 additional_libdir="$withval/$acl_libdirstem"
209 if test "$acl_libdirstem2" != "$acl_libdirstem" \
210 && ! test -d "$withval/$acl_libdirstem"; then
211 additional_libdir="$withval/$acl_libdirstem2"
212 fi
213 fi
214 fi
215 ])
216 dnl Search the library and its dependencies in $additional_libdir and
217 dnl $LDFLAGS. Using breadth-first-seach.
218 LIB[]NAME=
219 LTLIB[]NAME=
220 INC[]NAME=
221 LIB[]NAME[]_PREFIX=
222 dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
223 dnl computed. So it has to be reset here.
224 HAVE_LIB[]NAME=
225 rpathdirs=
226 ltrpathdirs=
227 names_already_handled=
228 names_next_round='$1 $2'
229 while test -n "$names_next_round"; do
230 names_this_round="$names_next_round"
231 names_next_round=
232 for name in $names_this_round; do
233 already_handled=
234 for n in $names_already_handled; do
235 if test "$n" = "$name"; then
236 already_handled=yes
237 break
238 fi
239 done
240 if test -z "$already_handled"; then
241 names_already_handled="$names_already_handled $name"
242 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
243 dnl or AC_LIB_HAVE_LINKFLAGS call.
244 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
245 eval value=\"\$HAVE_LIB$uppername\"
246 if test -n "$value"; then
247 if test "$value" = yes; then
248 eval value=\"\$LIB$uppername\"
249 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
250 eval value=\"\$LTLIB$uppername\"
251 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
252 else
253 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
254 dnl that this library doesn't exist. So just drop it.
255 :
256 fi
257 else
258 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
259 dnl and the already constructed $LIBNAME/$LTLIBNAME.
260 found_dir=
261 found_la=
262 found_so=
263 found_a=
264 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
265 if test -n "$acl_shlibext"; then
266 shrext=".$acl_shlibext" # typically: shrext=.so
267 else
268 shrext=
269 fi
270 if test $use_additional = yes; then
271 dir="$additional_libdir"
272 dnl The same code as in the loop below:
273 dnl First look for a shared library.
274 if test -n "$acl_shlibext"; then
275 if test -f "$dir/$libname$shrext"; then
276 found_dir="$dir"
277 found_so="$dir/$libname$shrext"
278 else
279 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
280 ver=`(cd "$dir" && \
281 for f in "$libname$shrext".*; do echo "$f"; done \
282 | sed -e "s,^$libname$shrext\\\\.,," \
283 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
284 | sed 1q ) 2>/dev/null`
285 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
286 found_dir="$dir"
287 found_so="$dir/$libname$shrext.$ver"
288 fi
289 else
290 eval library_names=\"$acl_library_names_spec\"
291 for f in $library_names; do
292 if test -f "$dir/$f"; then
293 found_dir="$dir"
294 found_so="$dir/$f"
295 break
296 fi
297 done
298 fi
299 fi
300 fi
301 dnl Then look for a static library.
302 if test "X$found_dir" = "X"; then
303 if test -f "$dir/$libname.$acl_libext"; then
304 found_dir="$dir"
305 found_a="$dir/$libname.$acl_libext"
306 fi
307 fi
308 if test "X$found_dir" != "X"; then
309 if test -f "$dir/$libname.la"; then
310 found_la="$dir/$libname.la"
311 fi
312 fi
313 fi
314 if test "X$found_dir" = "X"; then
315 for x in $LDFLAGS $LTLIB[]NAME; do
316 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
317 case "$x" in
318 -L*)
319 dir=`echo "X$x" | sed -e 's/^X-L//'`
320 dnl First look for a shared library.
321 if test -n "$acl_shlibext"; then
322 if test -f "$dir/$libname$shrext"; then
323 found_dir="$dir"
324 found_so="$dir/$libname$shrext"
325 else
326 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
327 ver=`(cd "$dir" && \
328 for f in "$libname$shrext".*; do echo "$f"; done \
329 | sed -e "s,^$libname$shrext\\\\.,," \
330 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
331 | sed 1q ) 2>/dev/null`
332 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
333 found_dir="$dir"
334 found_so="$dir/$libname$shrext.$ver"
335 fi
336 else
337 eval library_names=\"$acl_library_names_spec\"
338 for f in $library_names; do
339 if test -f "$dir/$f"; then
340 found_dir="$dir"
341 found_so="$dir/$f"
342 break
343 fi
344 done
345 fi
346 fi
347 fi
348 dnl Then look for a static library.
349 if test "X$found_dir" = "X"; then
350 if test -f "$dir/$libname.$acl_libext"; then
351 found_dir="$dir"
352 found_a="$dir/$libname.$acl_libext"
353 fi
354 fi
355 if test "X$found_dir" != "X"; then
356 if test -f "$dir/$libname.la"; then
357 found_la="$dir/$libname.la"
358 fi
359 fi
360 ;;
361 esac
362 if test "X$found_dir" != "X"; then
363 break
364 fi
365 done
366 fi
367 if test "X$found_dir" != "X"; then
368 dnl Found the library.
369 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
370 if test "X$found_so" != "X"; then
371 dnl Linking with a shared library. We attempt to hardcode its
372 dnl directory into the executable's runpath, unless it's the
373 dnl standard /usr/lib.
374 if test "$enable_rpath" = no \
375 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
376 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
377 dnl No hardcoding is needed.
378 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
379 else
380 dnl Use an explicit option to hardcode DIR into the resulting
381 dnl binary.
382 dnl Potentially add DIR to ltrpathdirs.
383 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
384 haveit=
385 for x in $ltrpathdirs; do
386 if test "X$x" = "X$found_dir"; then
387 haveit=yes
388 break
389 fi
390 done
391 if test -z "$haveit"; then
392 ltrpathdirs="$ltrpathdirs $found_dir"
393 fi
394 dnl The hardcoding into $LIBNAME is system dependent.
395 if test "$acl_hardcode_direct" = yes; then
396 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
397 dnl resulting binary.
398 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
399 else
400 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
401 dnl Use an explicit option to hardcode DIR into the resulting
402 dnl binary.
403 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
404 dnl Potentially add DIR to rpathdirs.
405 dnl The rpathdirs will be appended to $LIBNAME at the end.
406 haveit=
407 for x in $rpathdirs; do
408 if test "X$x" = "X$found_dir"; then
409 haveit=yes
410 break
411 fi
412 done
413 if test -z "$haveit"; then
414 rpathdirs="$rpathdirs $found_dir"
415 fi
416 else
417 dnl Rely on "-L$found_dir".
418 dnl But don't add it if it's already contained in the LDFLAGS
419 dnl or the already constructed $LIBNAME
420 haveit=
421 for x in $LDFLAGS $LIB[]NAME; do
422 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
423 if test "X$x" = "X-L$found_dir"; then
424 haveit=yes
425 break
426 fi
427 done
428 if test -z "$haveit"; then
429 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
430 fi
431 if test "$acl_hardcode_minus_L" != no; then
432 dnl FIXME: Not sure whether we should use
433 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
434 dnl here.
435 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
436 else
437 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
438 dnl here, because this doesn't fit in flags passed to the
439 dnl compiler. So give up. No hardcoding. This affects only
440 dnl very old systems.
441 dnl FIXME: Not sure whether we should use
442 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
443 dnl here.
444 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
445 fi
446 fi
447 fi
448 fi
449 else
450 if test "X$found_a" != "X"; then
451 dnl Linking with a static library.
452 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
453 else
454 dnl We shouldn't come here, but anyway it's good to have a
455 dnl fallback.
456 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
457 fi
458 fi
459 dnl Assume the include files are nearby.
460 additional_includedir=
461 case "$found_dir" in
462 */$acl_libdirstem | */$acl_libdirstem/)
463 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
464 if test "$name" = '$1'; then
465 LIB[]NAME[]_PREFIX="$basedir"
466 fi
467 additional_includedir="$basedir/include"
468 ;;
469 */$acl_libdirstem2 | */$acl_libdirstem2/)
470 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
471 if test "$name" = '$1'; then
472 LIB[]NAME[]_PREFIX="$basedir"
473 fi
474 additional_includedir="$basedir/include"
475 ;;
476 esac
477 if test "X$additional_includedir" != "X"; then
478 dnl Potentially add $additional_includedir to $INCNAME.
479 dnl But don't add it
480 dnl 1. if it's the standard /usr/include,
481 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
482 dnl 3. if it's already present in $CPPFLAGS or the already
483 dnl constructed $INCNAME,
484 dnl 4. if it doesn't exist as a directory.
485 if test "X$additional_includedir" != "X/usr/include"; then
486 haveit=
487 if test "X$additional_includedir" = "X/usr/local/include"; then
488 if test -n "$GCC"; then
489 case $host_os in
490 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
491 esac
492 fi
493 fi
494 if test -z "$haveit"; then
495 for x in $CPPFLAGS $INC[]NAME; do
496 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
497 if test "X$x" = "X-I$additional_includedir"; then
498 haveit=yes
499 break
500 fi
501 done
502 if test -z "$haveit"; then
503 if test -d "$additional_includedir"; then
504 dnl Really add $additional_includedir to $INCNAME.
505 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
506 fi
507 fi
508 fi
509 fi
510 fi
511 dnl Look for dependencies.
512 if test -n "$found_la"; then
513 dnl Read the .la file. It defines the variables
514 dnl dlname, library_names, old_library, dependency_libs, current,
515 dnl age, revision, installed, dlopen, dlpreopen, libdir.
516 save_libdir="$libdir"
517 case "$found_la" in
518 */* | *\\*) . "$found_la" ;;
519 *) . "./$found_la" ;;
520 esac
521 libdir="$save_libdir"
522 dnl We use only dependency_libs.
523 for dep in $dependency_libs; do
524 case "$dep" in
525 -L*)
526 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
527 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
528 dnl But don't add it
529 dnl 1. if it's the standard /usr/lib,
530 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
531 dnl 3. if it's already present in $LDFLAGS or the already
532 dnl constructed $LIBNAME,
533 dnl 4. if it doesn't exist as a directory.
534 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
535 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
536 haveit=
537 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
538 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
539 if test -n "$GCC"; then
540 case $host_os in
541 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
542 esac
543 fi
544 fi
545 if test -z "$haveit"; then
546 haveit=
547 for x in $LDFLAGS $LIB[]NAME; do
548 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
549 if test "X$x" = "X-L$additional_libdir"; then
550 haveit=yes
551 break
552 fi
553 done
554 if test -z "$haveit"; then
555 if test -d "$additional_libdir"; then
556 dnl Really add $additional_libdir to $LIBNAME.
557 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
558 fi
559 fi
560 haveit=
561 for x in $LDFLAGS $LTLIB[]NAME; do
562 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
563 if test "X$x" = "X-L$additional_libdir"; then
564 haveit=yes
565 break
566 fi
567 done
568 if test -z "$haveit"; then
569 if test -d "$additional_libdir"; then
570 dnl Really add $additional_libdir to $LTLIBNAME.
571 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
572 fi
573 fi
574 fi
575 fi
576 ;;
577 -R*)
578 dir=`echo "X$dep" | sed -e 's/^X-R//'`
579 if test "$enable_rpath" != no; then
580 dnl Potentially add DIR to rpathdirs.
581 dnl The rpathdirs will be appended to $LIBNAME at the end.
582 haveit=
583 for x in $rpathdirs; do
584 if test "X$x" = "X$dir"; then
585 haveit=yes
586 break
587 fi
588 done
589 if test -z "$haveit"; then
590 rpathdirs="$rpathdirs $dir"
591 fi
592 dnl Potentially add DIR to ltrpathdirs.
593 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
594 haveit=
595 for x in $ltrpathdirs; do
596 if test "X$x" = "X$dir"; then
597 haveit=yes
598 break
599 fi
600 done
601 if test -z "$haveit"; then
602 ltrpathdirs="$ltrpathdirs $dir"
603 fi
604 fi
605 ;;
606 -l*)
607 dnl Handle this in the next round.
608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
609 ;;
610 *.la)
611 dnl Handle this in the next round. Throw away the .la's
612 dnl directory; it is already contained in a preceding -L
613 dnl option.
614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
615 ;;
616 *)
617 dnl Most likely an immediate library name.
618 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
619 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
620 ;;
621 esac
622 done
623 fi
624 else
625 dnl Didn't find the library; assume it is in the system directories
626 dnl known to the linker and runtime loader. (All the system
627 dnl directories known to the linker should also be known to the
628 dnl runtime loader, otherwise the system is severely misconfigured.)
629 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
630 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
631 fi
632 fi
633 fi
634 done
635 done
636 if test "X$rpathdirs" != "X"; then
637 if test -n "$acl_hardcode_libdir_separator"; then
638 dnl Weird platform: only the last -rpath option counts, the user must
639 dnl pass all path elements in one option. We can arrange that for a
640 dnl single library, but not when more than one $LIBNAMEs are used.
641 alldirs=
642 for found_dir in $rpathdirs; do
643 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
644 done
645 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
646 acl_save_libdir="$libdir"
647 libdir="$alldirs"
648 eval flag=\"$acl_hardcode_libdir_flag_spec\"
649 libdir="$acl_save_libdir"
650 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
651 else
652 dnl The -rpath options are cumulative.
653 for found_dir in $rpathdirs; do
654 acl_save_libdir="$libdir"
655 libdir="$found_dir"
656 eval flag=\"$acl_hardcode_libdir_flag_spec\"
657 libdir="$acl_save_libdir"
658 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
659 done
660 fi
661 fi
662 if test "X$ltrpathdirs" != "X"; then
663 dnl When using libtool, the option that works for both libraries and
664 dnl executables is -R. The -R options are cumulative.
665 for found_dir in $ltrpathdirs; do
666 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
667 done
668 fi
669 popdef([P_A_C_K])
670 popdef([PACKLIBS])
671 popdef([PACKUP])
672 popdef([PACK])
673 popdef([NAME])
674 ])
675
676 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
677 dnl unless already present in VAR.
678 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
679 dnl contains two or three consecutive elements that belong together.
680 AC_DEFUN([AC_LIB_APPENDTOVAR],
681 [
682 for element in [$2]; do
683 haveit=
684 for x in $[$1]; do
685 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
686 if test "X$x" = "X$element"; then
687 haveit=yes
688 break
689 fi
690 done
691 if test -z "$haveit"; then
692 [$1]="${[$1]}${[$1]:+ }$element"
693 fi
694 done
695 ])
696
697 dnl For those cases where a variable contains several -L and -l options
698 dnl referring to unknown libraries and directories, this macro determines the
699 dnl necessary additional linker options for the runtime path.
700 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
701 dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
702 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
703 dnl otherwise linking without libtool is assumed.
704 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
705 [
706 AC_REQUIRE([AC_LIB_RPATH])
707 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
708 $1=
709 if test "$enable_rpath" != no; then
710 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
711 dnl Use an explicit option to hardcode directories into the resulting
712 dnl binary.
713 rpathdirs=
714 next=
715 for opt in $2; do
716 if test -n "$next"; then
717 dir="$next"
718 dnl No need to hardcode the standard /usr/lib.
719 if test "X$dir" != "X/usr/$acl_libdirstem" \
720 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
721 rpathdirs="$rpathdirs $dir"
722 fi
723 next=
724 else
725 case $opt in
726 -L) next=yes ;;
727 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
728 dnl No need to hardcode the standard /usr/lib.
729 if test "X$dir" != "X/usr/$acl_libdirstem" \
730 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
731 rpathdirs="$rpathdirs $dir"
732 fi
733 next= ;;
734 *) next= ;;
735 esac
736 fi
737 done
738 if test "X$rpathdirs" != "X"; then
739 if test -n ""$3""; then
740 dnl libtool is used for linking. Use -R options.
741 for dir in $rpathdirs; do
742 $1="${$1}${$1:+ }-R$dir"
743 done
744 else
745 dnl The linker is used for linking directly.
746 if test -n "$acl_hardcode_libdir_separator"; then
747 dnl Weird platform: only the last -rpath option counts, the user
748 dnl must pass all path elements in one option.
749 alldirs=
750 for dir in $rpathdirs; do
751 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
752 done
753 acl_save_libdir="$libdir"
754 libdir="$alldirs"
755 eval flag=\"$acl_hardcode_libdir_flag_spec\"
756 libdir="$acl_save_libdir"
757 $1="$flag"
758 else
759 dnl The -rpath options are cumulative.
760 for dir in $rpathdirs; do
761 acl_save_libdir="$libdir"
762 libdir="$dir"
763 eval flag=\"$acl_hardcode_libdir_flag_spec\"
764 libdir="$acl_save_libdir"
765 $1="${$1}${$1:+ }$flag"
766 done
767 fi
768 fi
769 fi
770 fi
771 fi
772 AC_SUBST([$1])
773 ])
0 # lib-prefix.m4 serial 7 (gettext-0.18)
1 dnl Copyright (C) 2001-2005, 2008-2010 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
156 dnl - a variable acl_libdirstem, containing the basename of the libdir, either
157 dnl "lib" or "lib64" or "lib/64",
158 dnl - a variable acl_libdirstem2, as a secondary possible value for
159 dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
160 dnl "lib/amd64".
161 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
162 [
163 dnl There is no formal standard regarding lib and lib64.
164 dnl On glibc systems, the current practice is that on a system supporting
165 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
166 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
167 dnl the compiler's default mode by looking at the compiler's library search
168 dnl path. If at least one of its elements ends in /lib64 or points to a
169 dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
170 dnl Otherwise we use the default, namely "lib".
171 dnl On Solaris systems, the current practice is that on a system supporting
172 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
173 dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
174 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
175 AC_REQUIRE([AC_CANONICAL_HOST])
176 acl_libdirstem=lib
177 acl_libdirstem2=
178 case "$host_os" in
179 solaris*)
180 dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
181 dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
182 dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
183 dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
184 dnl symlink is missing, so we set acl_libdirstem2 too.
185 AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
186 [AC_EGREP_CPP([sixtyfour bits], [
187 #ifdef _LP64
188 sixtyfour bits
189 #endif
190 ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
191 ])
192 if test $gl_cv_solaris_64bit = yes; then
193 acl_libdirstem=lib/64
194 case "$host_cpu" in
195 sparc*) acl_libdirstem2=lib/sparcv9 ;;
196 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
197 esac
198 fi
199 ;;
200 *)
201 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
202 if test -n "$searchpath"; then
203 acl_save_IFS="${IFS= }"; IFS=":"
204 for searchdir in $searchpath; do
205 if test -d "$searchdir"; then
206 case "$searchdir" in
207 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
208 */../ | */.. )
209 # Better ignore directories of this form. They are misleading.
210 ;;
211 *) searchdir=`cd "$searchdir" && pwd`
212 case "$searchdir" in
213 */lib64 ) acl_libdirstem=lib64 ;;
214 esac ;;
215 esac
216 fi
217 done
218 IFS="$acl_save_IFS"
219 fi
220 ;;
221 esac
222 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
223 ])
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
5 # Written by Gordon Matzigkeit, 1996
6 #
7 # This file is free software; the Free Software Foundation gives
8 # unlimited permission to copy and/or distribute it, with or without
9 # modifications, as long as this notice is preserved.
10
11 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
16 #
17 # This file is part of GNU Libtool.
18 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 # GNU General Public License for more details.
33 #
34 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39 ])
40
41 # serial 57 LT_INIT
42
43
44 # LT_PREREQ(VERSION)
45 # ------------------
46 # Complain and exit if this libtool version is less that VERSION.
47 m4_defun([LT_PREREQ],
48 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
49 [m4_default([$3],
50 [m4_fatal([Libtool version $1 or higher is required],
51 63)])],
52 [$2])])
53
54
55 # _LT_CHECK_BUILDDIR
56 # ------------------
57 # Complain if the absolute build directory name contains unusual characters
58 m4_defun([_LT_CHECK_BUILDDIR],
59 [case `pwd` in
60 *\ * | *\ *)
61 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
62 esac
63 ])
64
65
66 # LT_INIT([OPTIONS])
67 # ------------------
68 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
70 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
71 AC_BEFORE([$0], [LT_LANG])dnl
72 AC_BEFORE([$0], [LT_OUTPUT])dnl
73 AC_BEFORE([$0], [LTDL_INIT])dnl
74 m4_require([_LT_CHECK_BUILDDIR])dnl
75
76 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
77 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
78 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
79 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
80 dnl unless we require an AC_DEFUNed macro:
81 AC_REQUIRE([LTOPTIONS_VERSION])dnl
82 AC_REQUIRE([LTSUGAR_VERSION])dnl
83 AC_REQUIRE([LTVERSION_VERSION])dnl
84 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
85 m4_require([_LT_PROG_LTMAIN])dnl
86
87 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
88
89 dnl Parse OPTIONS
90 _LT_SET_OPTIONS([$0], [$1])
91
92 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
94
95 # Always use our own libtool.
96 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
97 AC_SUBST(LIBTOOL)dnl
98
99 _LT_SETUP
100
101 # Only expand once:
102 m4_define([LT_INIT])
103 ])# LT_INIT
104
105 # Old names:
106 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
107 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
108 dnl aclocal-1.4 backwards compatibility:
109 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
110 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111
112
113 # _LT_CC_BASENAME(CC)
114 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
116 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
126 ])
127
128
129 # _LT_FILEUTILS_DEFAULTS
130 # ----------------------
131 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
133 m4_defun([_LT_FILEUTILS_DEFAULTS],
134 [: ${CP="cp -f"}
135 : ${MV="mv -f"}
136 : ${RM="rm -f"}
137 ])# _LT_FILEUTILS_DEFAULTS
138
139
140 # _LT_SETUP
141 # ---------
142 m4_defun([_LT_SETUP],
143 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
144 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
145 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
146 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
147
148 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
149 dnl
150 _LT_DECL([], [host_alias], [0], [The host system])dnl
151 _LT_DECL([], [host], [0])dnl
152 _LT_DECL([], [host_os], [0])dnl
153 dnl
154 _LT_DECL([], [build_alias], [0], [The build system])dnl
155 _LT_DECL([], [build], [0])dnl
156 _LT_DECL([], [build_os], [0])dnl
157 dnl
158 AC_REQUIRE([AC_PROG_CC])dnl
159 AC_REQUIRE([LT_PATH_LD])dnl
160 AC_REQUIRE([LT_PATH_NM])dnl
161 dnl
162 AC_REQUIRE([AC_PROG_LN_S])dnl
163 test -z "$LN_S" && LN_S="ln -s"
164 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
165 dnl
166 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
167 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
168 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
169 dnl
170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
171 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
172 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
173 m4_require([_LT_CMD_RELOAD])dnl
174 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
175 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
176 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178 m4_require([_LT_WITH_SYSROOT])dnl
179
180 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
182 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
184 setopt NO_GLOB_SUBST
185 fi
186 ])
187 if test -n "${ZSH_VERSION+set}" ; then
188 setopt NO_GLOB_SUBST
189 fi
190
191 _LT_CHECK_OBJDIR
192
193 m4_require([_LT_TAG_COMPILER])dnl
194
195 case $host_os in
196 aix3*)
197 # AIX sometimes has problems with the GCC collect2 program. For some
198 # reason, if we set the COLLECT_NAMES environment variable, the problems
199 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
201 COLLECT_NAMES=
202 export COLLECT_NAMES
203 fi
204 ;;
205 esac
206
207 # Global variables:
208 ofile=libtool
209 can_build_shared=yes
210
211 # All known linkers require a `.a' archive for static linking (except MSVC,
212 # which needs '.lib').
213 libext=a
214
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
219
220 # Set sane defaults for various variables
221 test -z "$CC" && CC=cc
222 test -z "$LTCC" && LTCC=$CC
223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
224 test -z "$LD" && LD=ld
225 test -z "$ac_objext" && ac_objext=o
226
227 _LT_CC_BASENAME([$compiler])
228
229 # Only perform the check for file, if the check method requires it
230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
231 case $deplibs_check_method in
232 file_magic*)
233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
234 _LT_PATH_MAGIC
235 fi
236 ;;
237 esac
238
239 # Use C for the default configuration in the libtool script
240 LT_SUPPORTED_TAG([CC])
241 _LT_LANG_C_CONFIG
242 _LT_LANG_DEFAULT_CONFIG
243 _LT_CONFIG_COMMANDS
244 ])# _LT_SETUP
245
246
247 # _LT_PREPARE_SED_QUOTE_VARS
248 # --------------------------
249 # Define a few sed substitution that help us do robust quoting.
250 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
251 [# Backslashify metacharacters that are still active within
252 # double-quoted strings.
253 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
254
255 # Same as above, but do not quote variable references.
256 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
257
258 # Sed substitution to delay expansion of an escaped shell variable in a
259 # double_quote_subst'ed string.
260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
261
262 # Sed substitution to delay expansion of an escaped single quote.
263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
264
265 # Sed substitution to avoid accidental globbing in evaled expressions
266 no_glob_subst='s/\*/\\\*/g'
267 ])
268
269 # _LT_PROG_LTMAIN
270 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
272 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
274 # so we pass a copy along to make sure it has a sensible value anyway.
275 m4_defun([_LT_PROG_LTMAIN],
276 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
279 ])# _LT_PROG_LTMAIN
280
281
282 ## ------------------------------------- ##
283 ## Accumulate code for creating libtool. ##
284 ## ------------------------------------- ##
285
286 # So that we can recreate a full libtool script including additional
287 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
289 # label.
290
291
292 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
293 # ----------------------------------------
294 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
295 m4_define([_LT_CONFIG_LIBTOOL_INIT],
296 [m4_ifval([$1],
297 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
298 [$1
299 ])])])
300
301 # Initialize.
302 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
303
304
305 # _LT_CONFIG_LIBTOOL([COMMANDS])
306 # ------------------------------
307 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
308 m4_define([_LT_CONFIG_LIBTOOL],
309 [m4_ifval([$1],
310 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
311 [$1
312 ])])])
313
314 # Initialize.
315 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
316
317
318 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
319 # -----------------------------------------------------
320 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
321 [_LT_CONFIG_LIBTOOL([$1])
322 _LT_CONFIG_LIBTOOL_INIT([$2])
323 ])
324
325
326 # _LT_FORMAT_COMMENT([COMMENT])
327 # -----------------------------
328 # Add leading comment marks to the start of each line, and a trailing
329 # full-stop to the whole comment if one is not present already.
330 m4_define([_LT_FORMAT_COMMENT],
331 [m4_ifval([$1], [
332 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
333 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
334 )])
335
336
337
338 ## ------------------------ ##
339 ## FIXME: Eliminate VARNAME ##
340 ## ------------------------ ##
341
342
343 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
344 # -------------------------------------------------------------------
345 # CONFIGNAME is the name given to the value in the libtool script.
346 # VARNAME is the (base) name used in the configure script.
347 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
348 # VARNAME. Any other value will be used directly.
349 m4_define([_LT_DECL],
350 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
351 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
352 [m4_ifval([$1], [$1], [$2])])
353 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
354 m4_ifval([$4],
355 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
356 lt_dict_add_subkey([lt_decl_dict], [$2],
357 [tagged?], [m4_ifval([$5], [yes], [no])])])
358 ])
359
360
361 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
362 # --------------------------------------------------------
363 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
364
365
366 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
367 # ------------------------------------------------
368 m4_define([lt_decl_tag_varnames],
369 [_lt_decl_filter([tagged?], [yes], $@)])
370
371
372 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
373 # ---------------------------------------------------------
374 m4_define([_lt_decl_filter],
375 [m4_case([$#],
376 [0], [m4_fatal([$0: too few arguments: $#])],
377 [1], [m4_fatal([$0: too few arguments: $#: $1])],
378 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
379 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
380 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
381 ])
382
383
384 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
385 # --------------------------------------------------
386 m4_define([lt_decl_quote_varnames],
387 [_lt_decl_filter([value], [1], $@)])
388
389
390 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
391 # ---------------------------------------------------
392 m4_define([lt_decl_dquote_varnames],
393 [_lt_decl_filter([value], [2], $@)])
394
395
396 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
397 # ---------------------------------------------------
398 m4_define([lt_decl_varnames_tagged],
399 [m4_assert([$# <= 2])dnl
400 _$0(m4_quote(m4_default([$1], [[, ]])),
401 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
402 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
403 m4_define([_lt_decl_varnames_tagged],
404 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
405
406
407 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
408 # ------------------------------------------------
409 m4_define([lt_decl_all_varnames],
410 [_$0(m4_quote(m4_default([$1], [[, ]])),
411 m4_if([$2], [],
412 m4_quote(lt_decl_varnames),
413 m4_quote(m4_shift($@))))[]dnl
414 ])
415 m4_define([_lt_decl_all_varnames],
416 [lt_join($@, lt_decl_varnames_tagged([$1],
417 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
418 ])
419
420
421 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
425 # must have a single quote delimited value for this to work.
426 m4_define([_LT_CONFIG_STATUS_DECLARE],
427 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
428
429
430 # _LT_CONFIG_STATUS_DECLARATIONS
431 # ------------------------------
432 # We delimit libtool config variables with single quotes, so when
433 # we write them to config.status, we have to be sure to quote all
434 # embedded single quotes properly. In configure, this macro expands
435 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
436 #
437 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
438 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
439 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
440 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
441
442
443 # _LT_LIBTOOL_TAGS
444 # ----------------
445 # Output comment and list of tags supported by the script
446 m4_defun([_LT_LIBTOOL_TAGS],
447 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
449 ])
450
451
452 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
453 # -----------------------------------
454 # Extract the dictionary values for VARNAME (optionally with TAG) and
455 # expand to a commented shell variable setting:
456 #
457 # # Some comment about what VAR is for.
458 # visible_name=$lt_internal_name
459 m4_define([_LT_LIBTOOL_DECLARE],
460 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
461 [description])))[]dnl
462 m4_pushdef([_libtool_name],
463 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
464 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
465 [0], [_libtool_name=[$]$1],
466 [1], [_libtool_name=$lt_[]$1],
467 [2], [_libtool_name=$lt_[]$1],
468 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
469 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
470 ])
471
472
473 # _LT_LIBTOOL_CONFIG_VARS
474 # -----------------------
475 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
477 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
480 [m4_foreach([_lt_var],
481 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
482 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
483
484
485 # _LT_LIBTOOL_TAG_VARS(TAG)
486 # -------------------------
487 m4_define([_LT_LIBTOOL_TAG_VARS],
488 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
489 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
490
491
492 # _LT_TAGVAR(VARNAME, [TAGNAME])
493 # ------------------------------
494 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
495
496
497 # _LT_CONFIG_COMMANDS
498 # -------------------
499 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500 # variables for single and double quote escaping we saved from calls
501 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
504 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505 m4_defun([_LT_CONFIG_COMMANDS],
506 [AC_PROVIDE_IFELSE([LT_OUTPUT],
507 dnl If the libtool generation code has been placed in $CONFIG_LT,
508 dnl instead of duplicating it all over again into config.status,
509 dnl then we will have config.status run $CONFIG_LT later, so it
510 dnl needs to know what name is stored there:
511 [AC_CONFIG_COMMANDS([libtool],
512 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
513 dnl If the libtool generation code is destined for config.status,
514 dnl expand the accumulated commands and init code now:
515 [AC_CONFIG_COMMANDS([libtool],
516 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
517 ])#_LT_CONFIG_COMMANDS
518
519
520 # Initialize.
521 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
522 [
523
524 # The HP-UX ksh and POSIX shell print the target directory to stdout
525 # if CDPATH is set.
526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527
528 sed_quote_subst='$sed_quote_subst'
529 double_quote_subst='$double_quote_subst'
530 delay_variable_subst='$delay_variable_subst'
531 _LT_CONFIG_STATUS_DECLARATIONS
532 LTCC='$LTCC'
533 LTCFLAGS='$LTCFLAGS'
534 compiler='$compiler_DEFAULT'
535
536 # A function that is used when there is no print builtin or printf.
537 func_fallback_echo ()
538 {
539 eval 'cat <<_LTECHO_EOF
540 \$[]1
541 _LTECHO_EOF'
542 }
543
544 # Quote evaled strings.
545 for var in lt_decl_all_varnames([[ \
546 ]], lt_decl_quote_varnames); do
547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
550 ;;
551 *)
552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
553 ;;
554 esac
555 done
556
557 # Double-quote double-evaled strings.
558 for var in lt_decl_all_varnames([[ \
559 ]], lt_decl_dquote_varnames); do
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
563 ;;
564 *)
565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
566 ;;
567 esac
568 done
569
570 _LT_OUTPUT_LIBTOOL_INIT
571 ])
572
573 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
574 # ------------------------------------
575 # Generate a child script FILE with all initialization necessary to
576 # reuse the environment learned by the parent script, and make the
577 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
579 # macro, additional text can be appended to FILE to form the body of
580 # the child script. The macro ends with non-zero status if the
581 # file could not be fully written (such as if the disk is full).
582 m4_ifdef([AS_INIT_GENERATED],
583 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
584 [m4_defun([_LT_GENERATED_FILE_INIT],
585 [m4_require([AS_PREPARE])]dnl
586 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
587 [lt_write_fail=0
588 cat >$1 <<_ASEOF || lt_write_fail=1
589 #! $SHELL
590 # Generated by $as_me.
591 $2
592 SHELL=\${CONFIG_SHELL-$SHELL}
593 export SHELL
594 _ASEOF
595 cat >>$1 <<\_ASEOF || lt_write_fail=1
596 AS_SHELL_SANITIZE
597 _AS_PREPARE
598 exec AS_MESSAGE_FD>&1
599 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
601 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602
603 # LT_OUTPUT
604 # ---------
605 # This macro allows early generation of the libtool script (before
606 # AC_OUTPUT is called), incase it is used in configure for compilation
607 # tests.
608 AC_DEFUN([LT_OUTPUT],
609 [: ${CONFIG_LT=./config.lt}
610 AC_MSG_NOTICE([creating $CONFIG_LT])
611 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
612 [# Run this file to recreate a libtool stub with the current configuration.])
613
614 cat >>"$CONFIG_LT" <<\_LTEOF
615 lt_cl_silent=false
616 exec AS_MESSAGE_LOG_FD>>config.log
617 {
618 echo
619 AS_BOX([Running $as_me.])
620 } >&AS_MESSAGE_LOG_FD
621
622 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
624 for use in further configure time tests before the real libtool is
625 generated.
626
627 Usage: $[0] [[OPTIONS]]
628
629 -h, --help print this help, then exit
630 -V, --version print version number, then exit
631 -q, --quiet do not print progress messages
632 -d, --debug don't remove temporary files
633
634 Report bugs to <bug-libtool@gnu.org>."
635
636 lt_cl_version="\
637 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
638 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
639 configured by $[0], generated by m4_PACKAGE_STRING.
640
641 Copyright (C) 2011 Free Software Foundation, Inc.
642 This config.lt script is free software; the Free Software Foundation
643 gives unlimited permision to copy, distribute and modify it."
644
645 while test $[#] != 0
646 do
647 case $[1] in
648 --version | --v* | -V )
649 echo "$lt_cl_version"; exit 0 ;;
650 --help | --h* | -h )
651 echo "$lt_cl_help"; exit 0 ;;
652 --debug | --d* | -d )
653 debug=: ;;
654 --quiet | --q* | --silent | --s* | -q )
655 lt_cl_silent=: ;;
656
657 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
659
660 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
662 esac
663 shift
664 done
665
666 if $lt_cl_silent; then
667 exec AS_MESSAGE_FD>/dev/null
668 fi
669 _LTEOF
670
671 cat >>"$CONFIG_LT" <<_LTEOF
672 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
673 _LTEOF
674
675 cat >>"$CONFIG_LT" <<\_LTEOF
676 AC_MSG_NOTICE([creating $ofile])
677 _LT_OUTPUT_LIBTOOL_COMMANDS
678 AS_EXIT(0)
679 _LTEOF
680 chmod +x "$CONFIG_LT"
681
682 # configure is writing to config.log, but config.lt does its own redirection,
683 # appending to config.log, which fails on DOS, as config.log is still kept
684 # open by configure. Here we exec the FD to /dev/null, effectively closing
685 # config.log, so it can be properly (re)opened and appended to by config.lt.
686 lt_cl_success=:
687 test "$silent" = yes &&
688 lt_config_lt_args="$lt_config_lt_args --quiet"
689 exec AS_MESSAGE_LOG_FD>/dev/null
690 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 $lt_cl_success || AS_EXIT(1)
693 ])# LT_OUTPUT
694
695
696 # _LT_CONFIG(TAG)
697 # ---------------
698 # If TAG is the built-in tag, create an initial libtool script with a
699 # default configuration from the untagged config vars. Otherwise add code
700 # to config.status for appending the configuration named by TAG from the
701 # matching tagged config vars.
702 m4_defun([_LT_CONFIG],
703 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
704 _LT_CONFIG_SAVE_COMMANDS([
705 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
708 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
710 setopt NO_GLOB_SUBST
711 fi
712
713 cfgfile="${ofile}T"
714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715 $RM "$cfgfile"
716
717 cat <<_LT_EOF >> "$cfgfile"
718 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
725 _LT_COPYING
726 _LT_LIBTOOL_TAGS
727
728 # ### BEGIN LIBTOOL CONFIG
729 _LT_LIBTOOL_CONFIG_VARS
730 _LT_LIBTOOL_TAG_VARS
731 # ### END LIBTOOL CONFIG
732
733 _LT_EOF
734
735 case $host_os in
736 aix3*)
737 cat <<\_LT_EOF >> "$cfgfile"
738 # AIX sometimes has problems with the GCC collect2 program. For some
739 # reason, if we set the COLLECT_NAMES environment variable, the problems
740 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
742 COLLECT_NAMES=
743 export COLLECT_NAMES
744 fi
745 _LT_EOF
746 ;;
747 esac
748
749 _LT_PROG_LTMAIN
750
751 # We use sed instead of cat because bash on DJGPP gets confused if
752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
753 # text mode, it properly converts lines to CR/LF. This bash problem
754 # is reportedly fixed, but why not run on old versions too?
755 sed '$q' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759
760 mv -f "$cfgfile" "$ofile" ||
761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
762 chmod +x "$ofile"
763 ],
764 [cat <<_LT_EOF >> "$ofile"
765
766 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
767 dnl in a comment (ie after a #).
768 # ### BEGIN LIBTOOL TAG CONFIG: $1
769 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
770 # ### END LIBTOOL TAG CONFIG: $1
771 _LT_EOF
772 ])dnl /m4_if
773 ],
774 [m4_if([$1], [], [
775 PACKAGE='$PACKAGE'
776 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778 RM='$RM'
779 ofile='$ofile'], [])
780 ])dnl /_LT_CONFIG_SAVE_COMMANDS
781 ])# _LT_CONFIG
782
783
784 # LT_SUPPORTED_TAG(TAG)
785 # ---------------------
786 # Trace this macro to discover what tags are supported by the libtool
787 # --tag option, using:
788 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
789 AC_DEFUN([LT_SUPPORTED_TAG], [])
790
791
792 # C support is built-in for now
793 m4_define([_LT_LANG_C_enabled], [])
794 m4_define([_LT_TAGS], [])
795
796
797 # LT_LANG(LANG)
798 # -------------
799 # Enable libtool support for the given language if not already enabled.
800 AC_DEFUN([LT_LANG],
801 [AC_BEFORE([$0], [LT_OUTPUT])dnl
802 m4_case([$1],
803 [C], [_LT_LANG(C)],
804 [C++], [_LT_LANG(CXX)],
805 [Go], [_LT_LANG(GO)],
806 [Java], [_LT_LANG(GCJ)],
807 [Fortran 77], [_LT_LANG(F77)],
808 [Fortran], [_LT_LANG(FC)],
809 [Windows Resource], [_LT_LANG(RC)],
810 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
811 [_LT_LANG($1)],
812 [m4_fatal([$0: unsupported language: "$1"])])])dnl
813 ])# LT_LANG
814
815
816 # _LT_LANG(LANGNAME)
817 # ------------------
818 m4_defun([_LT_LANG],
819 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
820 [LT_SUPPORTED_TAG([$1])dnl
821 m4_append([_LT_TAGS], [$1 ])dnl
822 m4_define([_LT_LANG_]$1[_enabled], [])dnl
823 _LT_LANG_$1_CONFIG($1)])dnl
824 ])# _LT_LANG
825
826
827 m4_ifndef([AC_PROG_GO], [
828 ############################################################
829 # NOTE: This macro has been submitted for inclusion into #
830 # GNU Autoconf as AC_PROG_GO. When it is available in #
831 # a released version of Autoconf we should remove this #
832 # macro and use it instead. #
833 ############################################################
834 m4_defun([AC_PROG_GO],
835 [AC_LANG_PUSH(Go)dnl
836 AC_ARG_VAR([GOC], [Go compiler command])dnl
837 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
838 _AC_ARG_VAR_LDFLAGS()dnl
839 AC_CHECK_TOOL(GOC, gccgo)
840 if test -z "$GOC"; then
841 if test -n "$ac_tool_prefix"; then
842 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
843 fi
844 fi
845 if test -z "$GOC"; then
846 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
847 fi
848 ])#m4_defun
849 ])#m4_ifndef
850
851
852 # _LT_LANG_DEFAULT_CONFIG
853 # -----------------------
854 m4_defun([_LT_LANG_DEFAULT_CONFIG],
855 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
856 [LT_LANG(CXX)],
857 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
858
859 AC_PROVIDE_IFELSE([AC_PROG_F77],
860 [LT_LANG(F77)],
861 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
862
863 AC_PROVIDE_IFELSE([AC_PROG_FC],
864 [LT_LANG(FC)],
865 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
866
867 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
868 dnl pulling things in needlessly.
869 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
870 [LT_LANG(GCJ)],
871 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
872 [LT_LANG(GCJ)],
873 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
874 [LT_LANG(GCJ)],
875 [m4_ifdef([AC_PROG_GCJ],
876 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
877 m4_ifdef([A][M_PROG_GCJ],
878 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
879 m4_ifdef([LT_PROG_GCJ],
880 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
881
882 AC_PROVIDE_IFELSE([AC_PROG_GO],
883 [LT_LANG(GO)],
884 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
885
886 AC_PROVIDE_IFELSE([LT_PROG_RC],
887 [LT_LANG(RC)],
888 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
889 ])# _LT_LANG_DEFAULT_CONFIG
890
891 # Obsolete macros:
892 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
893 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
894 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
895 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
896 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
897 dnl aclocal-1.4 backwards compatibility:
898 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
899 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
900 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
901 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
902 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
903
904
905 # _LT_TAG_COMPILER
906 # ----------------
907 m4_defun([_LT_TAG_COMPILER],
908 [AC_REQUIRE([AC_PROG_CC])dnl
909
910 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
911 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
912 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
913 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
914
915 # If no C compiler was specified, use CC.
916 LTCC=${LTCC-"$CC"}
917
918 # If no C compiler flags were specified, use CFLAGS.
919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
920
921 # Allow CC to be a program name with arguments.
922 compiler=$CC
923 ])# _LT_TAG_COMPILER
924
925
926 # _LT_COMPILER_BOILERPLATE
927 # ------------------------
928 # Check for compiler boilerplate output or warnings with
929 # the simple compiler test code.
930 m4_defun([_LT_COMPILER_BOILERPLATE],
931 [m4_require([_LT_DECL_SED])dnl
932 ac_outfile=conftest.$ac_objext
933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
935 _lt_compiler_boilerplate=`cat conftest.err`
936 $RM conftest*
937 ])# _LT_COMPILER_BOILERPLATE
938
939
940 # _LT_LINKER_BOILERPLATE
941 # ----------------------
942 # Check for linker boilerplate output or warnings with
943 # the simple link test code.
944 m4_defun([_LT_LINKER_BOILERPLATE],
945 [m4_require([_LT_DECL_SED])dnl
946 ac_outfile=conftest.$ac_objext
947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
949 _lt_linker_boilerplate=`cat conftest.err`
950 $RM -r conftest*
951 ])# _LT_LINKER_BOILERPLATE
952
953 # _LT_REQUIRED_DARWIN_CHECKS
954 # -------------------------
955 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
956 case $host_os in
957 rhapsody* | darwin*)
958 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
959 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
960 AC_CHECK_TOOL([LIPO], [lipo], [:])
961 AC_CHECK_TOOL([OTOOL], [otool], [:])
962 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
963 _LT_DECL([], [DSYMUTIL], [1],
964 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
965 _LT_DECL([], [NMEDIT], [1],
966 [Tool to change global to local symbols on Mac OS X])
967 _LT_DECL([], [LIPO], [1],
968 [Tool to manipulate fat objects and archives on Mac OS X])
969 _LT_DECL([], [OTOOL], [1],
970 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
971 _LT_DECL([], [OTOOL64], [1],
972 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
973
974 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
977 # By default we will add the -single_module flag. You can override
978 # by either setting the environment variable LT_MULTI_MODULE
979 # non-empty at configure time, or by adding -multi_module to the
980 # link flags.
981 rm -rf libconftest.dylib*
982 echo "int foo(void){return 1;}" > conftest.c
983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
984 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
987 _lt_result=$?
988 # If there is a non-empty error log, and "single_module"
989 # appears in it, assume the flag caused a linker warning
990 if test -s conftest.err && $GREP single_module conftest.err; then
991 cat conftest.err >&AS_MESSAGE_LOG_FD
992 # Otherwise, if the output was created with a 0 exit code from
993 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
995 lt_cv_apple_cc_single_mod=yes
996 else
997 cat conftest.err >&AS_MESSAGE_LOG_FD
998 fi
999 rm -rf libconftest.dylib*
1000 rm -f conftest.*
1001 fi])
1002
1003 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1004 [lt_cv_ld_exported_symbols_list],
1005 [lt_cv_ld_exported_symbols_list=no
1006 save_LDFLAGS=$LDFLAGS
1007 echo "_main" > conftest.sym
1008 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1009 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1010 [lt_cv_ld_exported_symbols_list=yes],
1011 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1013 ])
1014
1015 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1016 [lt_cv_ld_force_load=no
1017 cat > conftest.c << _LT_EOF
1018 int forced_loaded() { return 2;}
1019 _LT_EOF
1020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1024 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1025 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1026 cat > conftest.c << _LT_EOF
1027 int main() { return 0;}
1028 _LT_EOF
1029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1031 _lt_result=$?
1032 if test -s conftest.err && $GREP force_load conftest.err; then
1033 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1035 lt_cv_ld_force_load=yes
1036 else
1037 cat conftest.err >&AS_MESSAGE_LOG_FD
1038 fi
1039 rm -f conftest.err libconftest.a conftest conftest.c
1040 rm -rf conftest.dSYM
1041 ])
1042 case $host_os in
1043 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1045 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1047 darwin*) # darwin 5.x on
1048 # if running on 10.5 or later, the deployment target defaults
1049 # to the OS version, if on x86, and 10.4, the deployment
1050 # target defaults to 10.4. Don't you love it?
1051 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1052 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1056 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1058 esac
1059 ;;
1060 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1062 _lt_dar_single_mod='$single_module'
1063 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1066 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1068 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1070 _lt_dsymutil='~$DSYMUTIL $lib || :'
1071 else
1072 _lt_dsymutil=
1073 fi
1074 ;;
1075 esac
1076 ])
1077
1078
1079 # _LT_DARWIN_LINKER_FEATURES([TAG])
1080 # ---------------------------------
1081 # Checks for linker and compiler features on darwin
1082 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1083 [
1084 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1085 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1086 _LT_TAGVAR(hardcode_direct, $1)=no
1087 _LT_TAGVAR(hardcode_automatic, $1)=yes
1088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1091 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1092 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1093 else
1094 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1095 fi
1096 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1098 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1100 *) _lt_dar_can_shared=$GCC ;;
1101 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1103 output_verbose_link_cmd=func_echo_all
1104 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1107 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1108 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1111 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1112 fi
1113 ],[])
1114 else
1115 _LT_TAGVAR(ld_shlibs, $1)=no
1116 fi
1117 ])
1118
1119 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1120 # ----------------------------------
1121 # Links a minimal program and checks the executable
1122 # for the system default hardcoded library path. In most cases,
1123 # this is /usr/lib:/lib, but when the MPI compilers are used
1124 # the location of the communication and MPI libs are included too.
1125 # If we don't find anything, use the default library path according
1126 # to the aix ld manual.
1127 # Store the results from the different compilers for each TAGNAME.
1128 # Allow to override them for all tags through lt_cv_aix_libpath.
1129 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1130 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1132 aix_libpath=$lt_cv_aix_libpath
1133 else
1134 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1135 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1136 lt_aix_libpath_sed='[
1137 /Import File Strings/,/^$/ {
1138 /^0/ {
1139 s/^0 *\([^ ]*\) *$/\1/
1140 p
1141 }
1142 }]'
1143 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1144 # Check for a 64-bit object if we didn't find anything.
1145 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1146 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1147 fi],[])
1148 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1150 fi
1151 ])
1152 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1153 fi
1154 ])# _LT_SYS_MODULE_PATH_AIX
1155
1156
1157 # _LT_SHELL_INIT(ARG)
1158 # -------------------
1159 m4_define([_LT_SHELL_INIT],
1160 [m4_divert_text([M4SH-INIT], [$1
1161 ])])# _LT_SHELL_INIT
1162
1163
1164
1165 # _LT_PROG_ECHO_BACKSLASH
1166 # -----------------------
1167 # Find how we can fake an echo command that does not interpret backslash.
1168 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1171 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1172 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1175
1176 AC_MSG_CHECKING([how to print strings])
1177 # Test print first, because it will be a builtin if present.
1178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1180 ECHO='print -r --'
1181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1182 ECHO='printf %s\n'
1183 else
1184 # Use this function as a fallback that always works.
1185 func_fallback_echo ()
1186 {
1187 eval 'cat <<_LTECHO_EOF
1188 $[]1
1189 _LTECHO_EOF'
1190 }
1191 ECHO='func_fallback_echo'
1192 fi
1193
1194 # func_echo_all arg...
1195 # Invoke $ECHO with all args, space-separated.
1196 func_echo_all ()
1197 {
1198 $ECHO "$*"
1199 }
1200
1201 case "$ECHO" in
1202 printf*) AC_MSG_RESULT([printf]) ;;
1203 print*) AC_MSG_RESULT([print -r]) ;;
1204 *) AC_MSG_RESULT([cat]) ;;
1205 esac
1206
1207 m4_ifdef([_AS_DETECT_SUGGESTED],
1208 [_AS_DETECT_SUGGESTED([
1209 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1213 PATH=/empty FPATH=/empty; export PATH FPATH
1214 test "X`printf %s $ECHO`" = "X$ECHO" \
1215 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1216
1217 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1218 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1219 ])# _LT_PROG_ECHO_BACKSLASH
1220
1221
1222 # _LT_WITH_SYSROOT
1223 # ----------------
1224 AC_DEFUN([_LT_WITH_SYSROOT],
1225 [AC_MSG_CHECKING([for sysroot])
1226 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1229 [], [with_sysroot=no])
1230
1231 dnl lt_sysroot will always be passed unquoted. We quote it here
1232 dnl in case the user passed a directory name.
1233 lt_sysroot=
1234 case ${with_sysroot} in #(
1235 yes)
1236 if test "$GCC" = yes; then
1237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1238 fi
1239 ;; #(
1240 /*)
1241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1242 ;; #(
1243 no|'')
1244 ;; #(
1245 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1247 AC_MSG_ERROR([The sysroot must be an absolute path.])
1248 ;;
1249 esac
1250
1251 AC_MSG_RESULT([${lt_sysroot:-no}])
1252 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1254
1255 # _LT_ENABLE_LOCK
1256 # ---------------
1257 m4_defun([_LT_ENABLE_LOCK],
1258 [AC_ARG_ENABLE([libtool-lock],
1259 [AS_HELP_STRING([--disable-libtool-lock],
1260 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1262
1263 # Some flags need to be propagated to the compiler or linker for good
1264 # libtool support.
1265 case $host in
1266 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1268 echo 'int i;' > conftest.$ac_ext
1269 if AC_TRY_EVAL(ac_compile); then
1270 case `/usr/bin/file conftest.$ac_objext` in
1271 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1273 ;;
1274 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1276 ;;
1277 esac
1278 fi
1279 rm -rf conftest*
1280 ;;
1281 *-*-irix6*)
1282 # Find out which ABI we are using.
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1284 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1286 case `/usr/bin/file conftest.$ac_objext` in
1287 *32-bit*)
1288 LD="${LD-ld} -melf32bsmip"
1289 ;;
1290 *N32*)
1291 LD="${LD-ld} -melf32bmipn32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -melf64bmip"
1295 ;;
1296 esac
1297 else
1298 case `/usr/bin/file conftest.$ac_objext` in
1299 *32-bit*)
1300 LD="${LD-ld} -32"
1301 ;;
1302 *N32*)
1303 LD="${LD-ld} -n32"
1304 ;;
1305 *64-bit*)
1306 LD="${LD-ld} -64"
1307 ;;
1308 esac
1309 fi
1310 fi
1311 rm -rf conftest*
1312 ;;
1313
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1317 echo 'int i;' > conftest.$ac_ext
1318 if AC_TRY_EVAL(ac_compile); then
1319 case `/usr/bin/file conftest.o` in
1320 *32-bit*)
1321 case $host in
1322 x86_64-*kfreebsd*-gnu)
1323 LD="${LD-ld} -m elf_i386_fbsd"
1324 ;;
1325 x86_64-*linux*)
1326 LD="${LD-ld} -m elf_i386"
1327 ;;
1328 ppc64-*linux*|powerpc64-*linux*)
1329 LD="${LD-ld} -m elf32ppclinux"
1330 ;;
1331 s390x-*linux*)
1332 LD="${LD-ld} -m elf_s390"
1333 ;;
1334 sparc64-*linux*)
1335 LD="${LD-ld} -m elf32_sparc"
1336 ;;
1337 esac
1338 ;;
1339 *64-bit*)
1340 case $host in
1341 x86_64-*kfreebsd*-gnu)
1342 LD="${LD-ld} -m elf_x86_64_fbsd"
1343 ;;
1344 x86_64-*linux*)
1345 LD="${LD-ld} -m elf_x86_64"
1346 ;;
1347 ppc*-*linux*|powerpc*-*linux*)
1348 LD="${LD-ld} -m elf64ppc"
1349 ;;
1350 s390*-*linux*|s390*-*tpf*)
1351 LD="${LD-ld} -m elf64_s390"
1352 ;;
1353 sparc*-*linux*)
1354 LD="${LD-ld} -m elf64_sparc"
1355 ;;
1356 esac
1357 ;;
1358 esac
1359 fi
1360 rm -rf conftest*
1361 ;;
1362
1363 *-*-sco3.2v5*)
1364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1365 SAVE_CFLAGS="$CFLAGS"
1366 CFLAGS="$CFLAGS -belf"
1367 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1368 [AC_LANG_PUSH(C)
1369 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1370 AC_LANG_POP])
1371 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1373 CFLAGS="$SAVE_CFLAGS"
1374 fi
1375 ;;
1376 *-*solaris*)
1377 # Find out which ABI we are using.
1378 echo 'int i;' > conftest.$ac_ext
1379 if AC_TRY_EVAL(ac_compile); then
1380 case `/usr/bin/file conftest.o` in
1381 *64-bit*)
1382 case $lt_cv_prog_gnu_ld in
1383 yes*)
1384 case $host in
1385 i?86-*-solaris*)
1386 LD="${LD-ld} -m elf_x86_64"
1387 ;;
1388 sparc*-*-solaris*)
1389 LD="${LD-ld} -m elf64_sparc"
1390 ;;
1391 esac
1392 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1393 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1394 LD="${LD-ld}_sol2"
1395 fi
1396 ;;
1397 *)
1398 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1399 LD="${LD-ld} -64"
1400 fi
1401 ;;
1402 esac
1403 ;;
1404 esac
1405 fi
1406 rm -rf conftest*
1407 ;;
1408 esac
1409
1410 need_locks="$enable_libtool_lock"
1411 ])# _LT_ENABLE_LOCK
1412
1413
1414 # _LT_PROG_AR
1415 # -----------
1416 m4_defun([_LT_PROG_AR],
1417 [AC_CHECK_TOOLS(AR, [ar], false)
1418 : ${AR=ar}
1419 : ${AR_FLAGS=cru}
1420 _LT_DECL([], [AR], [1], [The archiver])
1421 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1422
1423 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1424 [lt_cv_ar_at_file=no
1425 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1426 [echo conftest.$ac_objext > conftest.lst
1427 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1428 AC_TRY_EVAL([lt_ar_try])
1429 if test "$ac_status" -eq 0; then
1430 # Ensure the archiver fails upon bogus file names.
1431 rm -f conftest.$ac_objext libconftest.a
1432 AC_TRY_EVAL([lt_ar_try])
1433 if test "$ac_status" -ne 0; then
1434 lt_cv_ar_at_file=@
1435 fi
1436 fi
1437 rm -f conftest.* libconftest.a
1438 ])
1439 ])
1440
1441 if test "x$lt_cv_ar_at_file" = xno; then
1442 archiver_list_spec=
1443 else
1444 archiver_list_spec=$lt_cv_ar_at_file
1445 fi
1446 _LT_DECL([], [archiver_list_spec], [1],
1447 [How to feed a file listing to the archiver])
1448 ])# _LT_PROG_AR
1449
1450
1451 # _LT_CMD_OLD_ARCHIVE
1452 # -------------------
1453 m4_defun([_LT_CMD_OLD_ARCHIVE],
1454 [_LT_PROG_AR
1455
1456 AC_CHECK_TOOL(STRIP, strip, :)
1457 test -z "$STRIP" && STRIP=:
1458 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1459
1460 AC_CHECK_TOOL(RANLIB, ranlib, :)
1461 test -z "$RANLIB" && RANLIB=:
1462 _LT_DECL([], [RANLIB], [1],
1463 [Commands used to install an old-style archive])
1464
1465 # Determine commands to create old-style static archives.
1466 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1467 old_postinstall_cmds='chmod 644 $oldlib'
1468 old_postuninstall_cmds=
1469
1470 if test -n "$RANLIB"; then
1471 case $host_os in
1472 openbsd*)
1473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1474 ;;
1475 *)
1476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1477 ;;
1478 esac
1479 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1480 fi
1481
1482 case $host_os in
1483 darwin*)
1484 lock_old_archive_extraction=yes ;;
1485 *)
1486 lock_old_archive_extraction=no ;;
1487 esac
1488 _LT_DECL([], [old_postinstall_cmds], [2])
1489 _LT_DECL([], [old_postuninstall_cmds], [2])
1490 _LT_TAGDECL([], [old_archive_cmds], [2],
1491 [Commands used to build an old-style archive])
1492 _LT_DECL([], [lock_old_archive_extraction], [0],
1493 [Whether to use a lock for old archive extraction])
1494 ])# _LT_CMD_OLD_ARCHIVE
1495
1496
1497 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1498 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1499 # ----------------------------------------------------------------
1500 # Check whether the given compiler option works
1501 AC_DEFUN([_LT_COMPILER_OPTION],
1502 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1503 m4_require([_LT_DECL_SED])dnl
1504 AC_CACHE_CHECK([$1], [$2],
1505 [$2=no
1506 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1508 lt_compiler_flag="$3"
1509 # Insert the option either (1) after the last *FLAGS variable, or
1510 # (2) before a word containing "conftest.", or (3) at the end.
1511 # Note that $ac_compile itself does not contain backslashes and begins
1512 # with a dollar sign (not a hyphen), so the echo should work correctly.
1513 # The option is referenced via a variable to avoid confusing sed.
1514 lt_compile=`echo "$ac_compile" | $SED \
1515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1516 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1517 -e 's:$: $lt_compiler_flag:'`
1518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1519 (eval "$lt_compile" 2>conftest.err)
1520 ac_status=$?
1521 cat conftest.err >&AS_MESSAGE_LOG_FD
1522 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1523 if (exit $ac_status) && test -s "$ac_outfile"; then
1524 # The compiler can only warn and ignore the option if not recognized
1525 # So say no if there are warnings other than the usual output.
1526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1529 $2=yes
1530 fi
1531 fi
1532 $RM conftest*
1533 ])
1534
1535 if test x"[$]$2" = xyes; then
1536 m4_if([$5], , :, [$5])
1537 else
1538 m4_if([$6], , :, [$6])
1539 fi
1540 ])# _LT_COMPILER_OPTION
1541
1542 # Old name:
1543 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1544 dnl aclocal-1.4 backwards compatibility:
1545 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1546
1547
1548 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1549 # [ACTION-SUCCESS], [ACTION-FAILURE])
1550 # ----------------------------------------------------
1551 # Check whether the given linker option works
1552 AC_DEFUN([_LT_LINKER_OPTION],
1553 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1554 m4_require([_LT_DECL_SED])dnl
1555 AC_CACHE_CHECK([$1], [$2],
1556 [$2=no
1557 save_LDFLAGS="$LDFLAGS"
1558 LDFLAGS="$LDFLAGS $3"
1559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1561 # The linker can only warn and ignore the option if not recognized
1562 # So say no if there are warnings
1563 if test -s conftest.err; then
1564 # Append any errors to the config.log.
1565 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1568 if diff conftest.exp conftest.er2 >/dev/null; then
1569 $2=yes
1570 fi
1571 else
1572 $2=yes
1573 fi
1574 fi
1575 $RM -r conftest*
1576 LDFLAGS="$save_LDFLAGS"
1577 ])
1578
1579 if test x"[$]$2" = xyes; then
1580 m4_if([$4], , :, [$4])
1581 else
1582 m4_if([$5], , :, [$5])
1583 fi
1584 ])# _LT_LINKER_OPTION
1585
1586 # Old name:
1587 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1588 dnl aclocal-1.4 backwards compatibility:
1589 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1590
1591
1592 # LT_CMD_MAX_LEN
1593 #---------------
1594 AC_DEFUN([LT_CMD_MAX_LEN],
1595 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1596 # find the maximum length of command line arguments
1597 AC_MSG_CHECKING([the maximum length of command line arguments])
1598 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1599 i=0
1600 teststring="ABCD"
1601
1602 case $build_os in
1603 msdosdjgpp*)
1604 # On DJGPP, this test can blow up pretty badly due to problems in libc
1605 # (any single argument exceeding 2000 bytes causes a buffer overrun
1606 # during glob expansion). Even if it were fixed, the result of this
1607 # check would be larger than it should be.
1608 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1609 ;;
1610
1611 gnu*)
1612 # Under GNU Hurd, this test is not required because there is
1613 # no limit to the length of command line arguments.
1614 # Libtool will interpret -1 as no limit whatsoever
1615 lt_cv_sys_max_cmd_len=-1;
1616 ;;
1617
1618 cygwin* | mingw* | cegcc*)
1619 # On Win9x/ME, this test blows up -- it succeeds, but takes
1620 # about 5 minutes as the teststring grows exponentially.
1621 # Worse, since 9x/ME are not pre-emptively multitasking,
1622 # you end up with a "frozen" computer, even though with patience
1623 # the test eventually succeeds (with a max line length of 256k).
1624 # Instead, let's just punt: use the minimum linelength reported by
1625 # all of the supported platforms: 8192 (on NT/2K/XP).
1626 lt_cv_sys_max_cmd_len=8192;
1627 ;;
1628
1629 mint*)
1630 # On MiNT this can take a long time and run out of memory.
1631 lt_cv_sys_max_cmd_len=8192;
1632 ;;
1633
1634 amigaos*)
1635 # On AmigaOS with pdksh, this test takes hours, literally.
1636 # So we just punt and use a minimum line length of 8192.
1637 lt_cv_sys_max_cmd_len=8192;
1638 ;;
1639
1640 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1641 # This has been around since 386BSD, at least. Likely further.
1642 if test -x /sbin/sysctl; then
1643 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1644 elif test -x /usr/sbin/sysctl; then
1645 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1646 else
1647 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1648 fi
1649 # And add a safety zone
1650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1652 ;;
1653
1654 interix*)
1655 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1656 lt_cv_sys_max_cmd_len=196608
1657 ;;
1658
1659 os2*)
1660 # The test takes a long time on OS/2.
1661 lt_cv_sys_max_cmd_len=8192
1662 ;;
1663
1664 osf*)
1665 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1666 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1667 # nice to cause kernel panics so lets avoid the loop below.
1668 # First set a reasonable default.
1669 lt_cv_sys_max_cmd_len=16384
1670 #
1671 if test -x /sbin/sysconfig; then
1672 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1673 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1674 esac
1675 fi
1676 ;;
1677 sco3.2v5*)
1678 lt_cv_sys_max_cmd_len=102400
1679 ;;
1680 sysv5* | sco5v6* | sysv4.2uw2*)
1681 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1682 if test -n "$kargmax"; then
1683 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1684 else
1685 lt_cv_sys_max_cmd_len=32768
1686 fi
1687 ;;
1688 *)
1689 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1690 if test -n "$lt_cv_sys_max_cmd_len"; then
1691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1693 else
1694 # Make teststring a little bigger before we do anything with it.
1695 # a 1K string should be a reasonable start.
1696 for i in 1 2 3 4 5 6 7 8 ; do
1697 teststring=$teststring$teststring
1698 done
1699 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1700 # If test is not a shell built-in, we'll probably end up computing a
1701 # maximum length that is only half of the actual maximum length, but
1702 # we can't tell.
1703 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1704 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1705 test $i != 17 # 1/2 MB should be enough
1706 do
1707 i=`expr $i + 1`
1708 teststring=$teststring$teststring
1709 done
1710 # Only check the string length outside the loop.
1711 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1712 teststring=
1713 # Add a significant safety factor because C++ compilers can tack on
1714 # massive amounts of additional arguments before passing them to the
1715 # linker. It appears as though 1/2 is a usable value.
1716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1717 fi
1718 ;;
1719 esac
1720 ])
1721 if test -n $lt_cv_sys_max_cmd_len ; then
1722 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1723 else
1724 AC_MSG_RESULT(none)
1725 fi
1726 max_cmd_len=$lt_cv_sys_max_cmd_len
1727 _LT_DECL([], [max_cmd_len], [0],
1728 [What is the maximum length of a command?])
1729 ])# LT_CMD_MAX_LEN
1730
1731 # Old name:
1732 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1733 dnl aclocal-1.4 backwards compatibility:
1734 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1735
1736
1737 # _LT_HEADER_DLFCN
1738 # ----------------
1739 m4_defun([_LT_HEADER_DLFCN],
1740 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1741 ])# _LT_HEADER_DLFCN
1742
1743
1744 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1745 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1746 # ----------------------------------------------------------------
1747 m4_defun([_LT_TRY_DLOPEN_SELF],
1748 [m4_require([_LT_HEADER_DLFCN])dnl
1749 if test "$cross_compiling" = yes; then :
1750 [$4]
1751 else
1752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1753 lt_status=$lt_dlunknown
1754 cat > conftest.$ac_ext <<_LT_EOF
1755 [#line $LINENO "configure"
1756 #include "confdefs.h"
1757
1758 #if HAVE_DLFCN_H
1759 #include <dlfcn.h>
1760 #endif
1761
1762 #include <stdio.h>
1763
1764 #ifdef RTLD_GLOBAL
1765 # define LT_DLGLOBAL RTLD_GLOBAL
1766 #else
1767 # ifdef DL_GLOBAL
1768 # define LT_DLGLOBAL DL_GLOBAL
1769 # else
1770 # define LT_DLGLOBAL 0
1771 # endif
1772 #endif
1773
1774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1775 find out it does not work in some platform. */
1776 #ifndef LT_DLLAZY_OR_NOW
1777 # ifdef RTLD_LAZY
1778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1779 # else
1780 # ifdef DL_LAZY
1781 # define LT_DLLAZY_OR_NOW DL_LAZY
1782 # else
1783 # ifdef RTLD_NOW
1784 # define LT_DLLAZY_OR_NOW RTLD_NOW
1785 # else
1786 # ifdef DL_NOW
1787 # define LT_DLLAZY_OR_NOW DL_NOW
1788 # else
1789 # define LT_DLLAZY_OR_NOW 0
1790 # endif
1791 # endif
1792 # endif
1793 # endif
1794 #endif
1795
1796 /* When -fvisbility=hidden is used, assume the code has been annotated
1797 correspondingly for the symbols needed. */
1798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1799 int fnord () __attribute__((visibility("default")));
1800 #endif
1801
1802 int fnord () { return 42; }
1803 int main ()
1804 {
1805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1806 int status = $lt_dlunknown;
1807
1808 if (self)
1809 {
1810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1811 else
1812 {
1813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1814 else puts (dlerror ());
1815 }
1816 /* dlclose (self); */
1817 }
1818 else
1819 puts (dlerror ());
1820
1821 return status;
1822 }]
1823 _LT_EOF
1824 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1825 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1826 lt_status=$?
1827 case x$lt_status in
1828 x$lt_dlno_uscore) $1 ;;
1829 x$lt_dlneed_uscore) $2 ;;
1830 x$lt_dlunknown|x*) $3 ;;
1831 esac
1832 else :
1833 # compilation failed
1834 $3
1835 fi
1836 fi
1837 rm -fr conftest*
1838 ])# _LT_TRY_DLOPEN_SELF
1839
1840
1841 # LT_SYS_DLOPEN_SELF
1842 # ------------------
1843 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1844 [m4_require([_LT_HEADER_DLFCN])dnl
1845 if test "x$enable_dlopen" != xyes; then
1846 enable_dlopen=unknown
1847 enable_dlopen_self=unknown
1848 enable_dlopen_self_static=unknown
1849 else
1850 lt_cv_dlopen=no
1851 lt_cv_dlopen_libs=
1852
1853 case $host_os in
1854 beos*)
1855 lt_cv_dlopen="load_add_on"
1856 lt_cv_dlopen_libs=
1857 lt_cv_dlopen_self=yes
1858 ;;
1859
1860 mingw* | pw32* | cegcc*)
1861 lt_cv_dlopen="LoadLibrary"
1862 lt_cv_dlopen_libs=
1863 ;;
1864
1865 cygwin*)
1866 lt_cv_dlopen="dlopen"
1867 lt_cv_dlopen_libs=
1868 ;;
1869
1870 darwin*)
1871 # if libdl is installed we need to link against it
1872 AC_CHECK_LIB([dl], [dlopen],
1873 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1874 lt_cv_dlopen="dyld"
1875 lt_cv_dlopen_libs=
1876 lt_cv_dlopen_self=yes
1877 ])
1878 ;;
1879
1880 *)
1881 AC_CHECK_FUNC([shl_load],
1882 [lt_cv_dlopen="shl_load"],
1883 [AC_CHECK_LIB([dld], [shl_load],
1884 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1885 [AC_CHECK_FUNC([dlopen],
1886 [lt_cv_dlopen="dlopen"],
1887 [AC_CHECK_LIB([dl], [dlopen],
1888 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1889 [AC_CHECK_LIB([svld], [dlopen],
1890 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1891 [AC_CHECK_LIB([dld], [dld_link],
1892 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1893 ])
1894 ])
1895 ])
1896 ])
1897 ])
1898 ;;
1899 esac
1900
1901 if test "x$lt_cv_dlopen" != xno; then
1902 enable_dlopen=yes
1903 else
1904 enable_dlopen=no
1905 fi
1906
1907 case $lt_cv_dlopen in
1908 dlopen)
1909 save_CPPFLAGS="$CPPFLAGS"
1910 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1911
1912 save_LDFLAGS="$LDFLAGS"
1913 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1914
1915 save_LIBS="$LIBS"
1916 LIBS="$lt_cv_dlopen_libs $LIBS"
1917
1918 AC_CACHE_CHECK([whether a program can dlopen itself],
1919 lt_cv_dlopen_self, [dnl
1920 _LT_TRY_DLOPEN_SELF(
1921 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1922 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1923 ])
1924
1925 if test "x$lt_cv_dlopen_self" = xyes; then
1926 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1927 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1928 lt_cv_dlopen_self_static, [dnl
1929 _LT_TRY_DLOPEN_SELF(
1930 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1931 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1932 ])
1933 fi
1934
1935 CPPFLAGS="$save_CPPFLAGS"
1936 LDFLAGS="$save_LDFLAGS"
1937 LIBS="$save_LIBS"
1938 ;;
1939 esac
1940
1941 case $lt_cv_dlopen_self in
1942 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1943 *) enable_dlopen_self=unknown ;;
1944 esac
1945
1946 case $lt_cv_dlopen_self_static in
1947 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1948 *) enable_dlopen_self_static=unknown ;;
1949 esac
1950 fi
1951 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1952 [Whether dlopen is supported])
1953 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1954 [Whether dlopen of programs is supported])
1955 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1956 [Whether dlopen of statically linked programs is supported])
1957 ])# LT_SYS_DLOPEN_SELF
1958
1959 # Old name:
1960 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1961 dnl aclocal-1.4 backwards compatibility:
1962 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1963
1964
1965 # _LT_COMPILER_C_O([TAGNAME])
1966 # ---------------------------
1967 # Check to see if options -c and -o are simultaneously supported by compiler.
1968 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1969 m4_defun([_LT_COMPILER_C_O],
1970 [m4_require([_LT_DECL_SED])dnl
1971 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1972 m4_require([_LT_TAG_COMPILER])dnl
1973 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1974 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1975 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1976 $RM -r conftest 2>/dev/null
1977 mkdir conftest
1978 cd conftest
1979 mkdir out
1980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1981
1982 lt_compiler_flag="-o out/conftest2.$ac_objext"
1983 # Insert the option either (1) after the last *FLAGS variable, or
1984 # (2) before a word containing "conftest.", or (3) at the end.
1985 # Note that $ac_compile itself does not contain backslashes and begins
1986 # with a dollar sign (not a hyphen), so the echo should work correctly.
1987 lt_compile=`echo "$ac_compile" | $SED \
1988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1989 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1990 -e 's:$: $lt_compiler_flag:'`
1991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1992 (eval "$lt_compile" 2>out/conftest.err)
1993 ac_status=$?
1994 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1997 then
1998 # The compiler can only warn and ignore the option if not recognized
1999 # So say no if there are warnings
2000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2003 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2004 fi
2005 fi
2006 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2007 $RM conftest*
2008 # SGI C++ compiler will create directory out/ii_files/ for
2009 # template instantiation
2010 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2011 $RM out/* && rmdir out
2012 cd ..
2013 $RM -r conftest
2014 $RM conftest*
2015 ])
2016 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2017 [Does compiler simultaneously support -c and -o options?])
2018 ])# _LT_COMPILER_C_O
2019
2020
2021 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2022 # ----------------------------------
2023 # Check to see if we can do hard links to lock some files if needed
2024 m4_defun([_LT_COMPILER_FILE_LOCKS],
2025 [m4_require([_LT_ENABLE_LOCK])dnl
2026 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2027 _LT_COMPILER_C_O([$1])
2028
2029 hard_links="nottested"
2030 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2031 # do not overwrite the value of need_locks provided by the user
2032 AC_MSG_CHECKING([if we can lock with hard links])
2033 hard_links=yes
2034 $RM conftest*
2035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2036 touch conftest.a
2037 ln conftest.a conftest.b 2>&5 || hard_links=no
2038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2039 AC_MSG_RESULT([$hard_links])
2040 if test "$hard_links" = no; then
2041 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2042 need_locks=warn
2043 fi
2044 else
2045 need_locks=no
2046 fi
2047 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2048 ])# _LT_COMPILER_FILE_LOCKS
2049
2050
2051 # _LT_CHECK_OBJDIR
2052 # ----------------
2053 m4_defun([_LT_CHECK_OBJDIR],
2054 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2055 [rm -f .libs 2>/dev/null
2056 mkdir .libs 2>/dev/null
2057 if test -d .libs; then
2058 lt_cv_objdir=.libs
2059 else
2060 # MS-DOS does not allow filenames that begin with a dot.
2061 lt_cv_objdir=_libs
2062 fi
2063 rmdir .libs 2>/dev/null])
2064 objdir=$lt_cv_objdir
2065 _LT_DECL([], [objdir], [0],
2066 [The name of the directory that contains temporary libtool files])dnl
2067 m4_pattern_allow([LT_OBJDIR])dnl
2068 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2069 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2070 ])# _LT_CHECK_OBJDIR
2071
2072
2073 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2074 # --------------------------------------
2075 # Check hardcoding attributes.
2076 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2077 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2078 _LT_TAGVAR(hardcode_action, $1)=
2079 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2080 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2081 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2082
2083 # We can hardcode non-existent directories.
2084 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2086 # have to relink, otherwise we might link with an installed library
2087 # when we should be linking with a yet-to-be-installed one
2088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2089 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2090 # Linking always hardcodes the temporary library directory.
2091 _LT_TAGVAR(hardcode_action, $1)=relink
2092 else
2093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2094 _LT_TAGVAR(hardcode_action, $1)=immediate
2095 fi
2096 else
2097 # We cannot hardcode anything, or else we can only hardcode existing
2098 # directories.
2099 _LT_TAGVAR(hardcode_action, $1)=unsupported
2100 fi
2101 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2102
2103 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2104 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2105 # Fast installation is not supported
2106 enable_fast_install=no
2107 elif test "$shlibpath_overrides_runpath" = yes ||
2108 test "$enable_shared" = no; then
2109 # Fast installation is not necessary
2110 enable_fast_install=needless
2111 fi
2112 _LT_TAGDECL([], [hardcode_action], [0],
2113 [How to hardcode a shared library path into an executable])
2114 ])# _LT_LINKER_HARDCODE_LIBPATH
2115
2116
2117 # _LT_CMD_STRIPLIB
2118 # ----------------
2119 m4_defun([_LT_CMD_STRIPLIB],
2120 [m4_require([_LT_DECL_EGREP])
2121 striplib=
2122 old_striplib=
2123 AC_MSG_CHECKING([whether stripping libraries is possible])
2124 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2125 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2126 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2127 AC_MSG_RESULT([yes])
2128 else
2129 # FIXME - insert some real tests, host_os isn't really good enough
2130 case $host_os in
2131 darwin*)
2132 if test -n "$STRIP" ; then
2133 striplib="$STRIP -x"
2134 old_striplib="$STRIP -S"
2135 AC_MSG_RESULT([yes])
2136 else
2137 AC_MSG_RESULT([no])
2138 fi
2139 ;;
2140 *)
2141 AC_MSG_RESULT([no])
2142 ;;
2143 esac
2144 fi
2145 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2146 _LT_DECL([], [striplib], [1])
2147 ])# _LT_CMD_STRIPLIB
2148
2149
2150 # _LT_SYS_DYNAMIC_LINKER([TAG])
2151 # -----------------------------
2152 # PORTME Fill in your ld.so characteristics
2153 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2154 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2155 m4_require([_LT_DECL_EGREP])dnl
2156 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2157 m4_require([_LT_DECL_OBJDUMP])dnl
2158 m4_require([_LT_DECL_SED])dnl
2159 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2160 AC_MSG_CHECKING([dynamic linker characteristics])
2161 m4_if([$1],
2162 [], [
2163 if test "$GCC" = yes; then
2164 case $host_os in
2165 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2166 *) lt_awk_arg="/^libraries:/" ;;
2167 esac
2168 case $host_os in
2169 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2170 *) lt_sed_strip_eq="s,=/,/,g" ;;
2171 esac
2172 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2173 case $lt_search_path_spec in
2174 *\;*)
2175 # if the path contains ";" then we assume it to be the separator
2176 # otherwise default to the standard path separator (i.e. ":") - it is
2177 # assumed that no part of a normal pathname contains ";" but that should
2178 # okay in the real world where ";" in dirpaths is itself problematic.
2179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2180 ;;
2181 *)
2182 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2183 ;;
2184 esac
2185 # Ok, now we have the path, separated by spaces, we can step through it
2186 # and add multilib dir if necessary.
2187 lt_tmp_lt_search_path_spec=
2188 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2189 for lt_sys_path in $lt_search_path_spec; do
2190 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2192 else
2193 test -d "$lt_sys_path" && \
2194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2195 fi
2196 done
2197 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2198 BEGIN {RS=" "; FS="/|\n";} {
2199 lt_foo="";
2200 lt_count=0;
2201 for (lt_i = NF; lt_i > 0; lt_i--) {
2202 if ($lt_i != "" && $lt_i != ".") {
2203 if ($lt_i == "..") {
2204 lt_count++;
2205 } else {
2206 if (lt_count == 0) {
2207 lt_foo="/" $lt_i lt_foo;
2208 } else {
2209 lt_count--;
2210 }
2211 }
2212 }
2213 }
2214 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2215 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2216 }'`
2217 # AWK program above erroneously prepends '/' to C:/dos/paths
2218 # for these hosts.
2219 case $host_os in
2220 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2221 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2222 esac
2223 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2224 else
2225 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2226 fi])
2227 library_names_spec=
2228 libname_spec='lib$name'
2229 soname_spec=
2230 shrext_cmds=".so"
2231 postinstall_cmds=
2232 postuninstall_cmds=
2233 finish_cmds=
2234 finish_eval=
2235 shlibpath_var=
2236 shlibpath_overrides_runpath=unknown
2237 version_type=none
2238 dynamic_linker="$host_os ld.so"
2239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2240 need_lib_prefix=unknown
2241 hardcode_into_libs=no
2242
2243 # when you set need_version to no, make sure it does not cause -set_version
2244 # flags to be left without arguments
2245 need_version=unknown
2246
2247 case $host_os in
2248 aix3*)
2249 version_type=linux # correct to gnu/linux during the next big refactor
2250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2251 shlibpath_var=LIBPATH
2252
2253 # AIX 3 has no versioning support, so we append a major version to the name.
2254 soname_spec='${libname}${release}${shared_ext}$major'
2255 ;;
2256
2257 aix[[4-9]]*)
2258 version_type=linux # correct to gnu/linux during the next big refactor
2259 need_lib_prefix=no
2260 need_version=no
2261 hardcode_into_libs=yes
2262 if test "$host_cpu" = ia64; then
2263 # AIX 5 supports IA64
2264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2265 shlibpath_var=LD_LIBRARY_PATH
2266 else
2267 # With GCC up to 2.95.x, collect2 would create an import file
2268 # for dependence libraries. The import file would start with
2269 # the line `#! .'. This would cause the generated library to
2270 # depend on `.', always an invalid library. This was fixed in
2271 # development snapshots of GCC prior to 3.0.
2272 case $host_os in
2273 aix4 | aix4.[[01]] | aix4.[[01]].*)
2274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2275 echo ' yes '
2276 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2277 :
2278 else
2279 can_build_shared=no
2280 fi
2281 ;;
2282 esac
2283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2284 # soname into executable. Probably we can add versioning support to
2285 # collect2, so additional links can be useful in future.
2286 if test "$aix_use_runtimelinking" = yes; then
2287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2288 # instead of lib<name>.a to let people know that these are not
2289 # typical AIX shared libraries.
2290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2291 else
2292 # We preserve .a as extension for shared libraries through AIX4.2
2293 # and later when we are not doing run time linking.
2294 library_names_spec='${libname}${release}.a $libname.a'
2295 soname_spec='${libname}${release}${shared_ext}$major'
2296 fi
2297 shlibpath_var=LIBPATH
2298 fi
2299 ;;
2300
2301 amigaos*)
2302 case $host_cpu in
2303 powerpc)
2304 # Since July 2007 AmigaOS4 officially supports .so libraries.
2305 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2307 ;;
2308 m68k)
2309 library_names_spec='$libname.ixlibrary $libname.a'
2310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2311 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2312 ;;
2313 esac
2314 ;;
2315
2316 beos*)
2317 library_names_spec='${libname}${shared_ext}'
2318 dynamic_linker="$host_os ld.so"
2319 shlibpath_var=LIBRARY_PATH
2320 ;;
2321
2322 bsdi[[45]]*)
2323 version_type=linux # correct to gnu/linux during the next big refactor
2324 need_version=no
2325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2326 soname_spec='${libname}${release}${shared_ext}$major'
2327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2328 shlibpath_var=LD_LIBRARY_PATH
2329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2331 # the default ld.so.conf also contains /usr/contrib/lib and
2332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2333 # libtool to hard-code these into programs
2334 ;;
2335
2336 cygwin* | mingw* | pw32* | cegcc*)
2337 version_type=windows
2338 shrext_cmds=".dll"
2339 need_version=no
2340 need_lib_prefix=no
2341
2342 case $GCC,$cc_basename in
2343 yes,*)
2344 # gcc
2345 library_names_spec='$libname.dll.a'
2346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2347 postinstall_cmds='base_file=`basename \${file}`~
2348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2349 dldir=$destdir/`dirname \$dlpath`~
2350 test -d \$dldir || mkdir -p \$dldir~
2351 $install_prog $dir/$dlname \$dldir/$dlname~
2352 chmod a+x \$dldir/$dlname~
2353 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2354 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2355 fi'
2356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2357 dlpath=$dir/\$dldll~
2358 $RM \$dlpath'
2359 shlibpath_overrides_runpath=yes
2360
2361 case $host_os in
2362 cygwin*)
2363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2365 m4_if([$1], [],[
2366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2367 ;;
2368 mingw* | cegcc*)
2369 # MinGW DLLs use traditional 'lib' prefix
2370 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2371 ;;
2372 pw32*)
2373 # pw32 DLLs use 'pw' prefix rather than 'lib'
2374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2375 ;;
2376 esac
2377 dynamic_linker='Win32 ld.exe'
2378 ;;
2379
2380 *,cl*)
2381 # Native MSVC
2382 libname_spec='$name'
2383 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2384 library_names_spec='${libname}.dll.lib'
2385
2386 case $build_os in
2387 mingw*)
2388 sys_lib_search_path_spec=
2389 lt_save_ifs=$IFS
2390 IFS=';'
2391 for lt_path in $LIB
2392 do
2393 IFS=$lt_save_ifs
2394 # Let DOS variable expansion print the short 8.3 style file name.
2395 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2396 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2397 done
2398 IFS=$lt_save_ifs
2399 # Convert to MSYS style.
2400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2401 ;;
2402 cygwin*)
2403 # Convert to unix form, then to dos form, then back to unix form
2404 # but this time dos style (no spaces!) so that the unix form looks
2405 # like /cygdrive/c/PROGRA~1:/cygdr...
2406 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2407 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2408 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2409 ;;
2410 *)
2411 sys_lib_search_path_spec="$LIB"
2412 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2413 # It is most probably a Windows format PATH.
2414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2415 else
2416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2417 fi
2418 # FIXME: find the short name or the path components, as spaces are
2419 # common. (e.g. "Program Files" -> "PROGRA~1")
2420 ;;
2421 esac
2422
2423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2424 postinstall_cmds='base_file=`basename \${file}`~
2425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2426 dldir=$destdir/`dirname \$dlpath`~
2427 test -d \$dldir || mkdir -p \$dldir~
2428 $install_prog $dir/$dlname \$dldir/$dlname'
2429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2430 dlpath=$dir/\$dldll~
2431 $RM \$dlpath'
2432 shlibpath_overrides_runpath=yes
2433 dynamic_linker='Win32 link.exe'
2434 ;;
2435
2436 *)
2437 # Assume MSVC wrapper
2438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2439 dynamic_linker='Win32 ld.exe'
2440 ;;
2441 esac
2442 # FIXME: first we should search . and the directory the executable is in
2443 shlibpath_var=PATH
2444 ;;
2445
2446 darwin* | rhapsody*)
2447 dynamic_linker="$host_os dyld"
2448 version_type=darwin
2449 need_lib_prefix=no
2450 need_version=no
2451 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2452 soname_spec='${libname}${release}${major}$shared_ext'
2453 shlibpath_overrides_runpath=yes
2454 shlibpath_var=DYLD_LIBRARY_PATH
2455 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2456 m4_if([$1], [],[
2457 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2459 ;;
2460
2461 dgux*)
2462 version_type=linux # correct to gnu/linux during the next big refactor
2463 need_lib_prefix=no
2464 need_version=no
2465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2466 soname_spec='${libname}${release}${shared_ext}$major'
2467 shlibpath_var=LD_LIBRARY_PATH
2468 ;;
2469
2470 freebsd* | dragonfly*)
2471 # DragonFly does not have aout. When/if they implement a new
2472 # versioning mechanism, adjust this.
2473 if test -x /usr/bin/objformat; then
2474 objformat=`/usr/bin/objformat`
2475 else
2476 case $host_os in
2477 freebsd[[23]].*) objformat=aout ;;
2478 *) objformat=elf ;;
2479 esac
2480 fi
2481 version_type=freebsd-$objformat
2482 case $version_type in
2483 freebsd-elf*)
2484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2485 need_version=no
2486 need_lib_prefix=no
2487 ;;
2488 freebsd-*)
2489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2490 need_version=yes
2491 ;;
2492 esac
2493 shlibpath_var=LD_LIBRARY_PATH
2494 case $host_os in
2495 freebsd2.*)
2496 shlibpath_overrides_runpath=yes
2497 ;;
2498 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2499 shlibpath_overrides_runpath=yes
2500 hardcode_into_libs=yes
2501 ;;
2502 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2503 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2504 shlibpath_overrides_runpath=no
2505 hardcode_into_libs=yes
2506 ;;
2507 *) # from 4.6 on, and DragonFly
2508 shlibpath_overrides_runpath=yes
2509 hardcode_into_libs=yes
2510 ;;
2511 esac
2512 ;;
2513
2514 gnu*)
2515 version_type=linux # correct to gnu/linux during the next big refactor
2516 need_lib_prefix=no
2517 need_version=no
2518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2519 soname_spec='${libname}${release}${shared_ext}$major'
2520 shlibpath_var=LD_LIBRARY_PATH
2521 shlibpath_overrides_runpath=no
2522 hardcode_into_libs=yes
2523 ;;
2524
2525 haiku*)
2526 version_type=linux # correct to gnu/linux during the next big refactor
2527 need_lib_prefix=no
2528 need_version=no
2529 dynamic_linker="$host_os runtime_loader"
2530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2531 soname_spec='${libname}${release}${shared_ext}$major'
2532 shlibpath_var=LIBRARY_PATH
2533 shlibpath_overrides_runpath=yes
2534 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2535 hardcode_into_libs=yes
2536 ;;
2537
2538 hpux9* | hpux10* | hpux11*)
2539 # Give a soname corresponding to the major version so that dld.sl refuses to
2540 # link against other versions.
2541 version_type=sunos
2542 need_lib_prefix=no
2543 need_version=no
2544 case $host_cpu in
2545 ia64*)
2546 shrext_cmds='.so'
2547 hardcode_into_libs=yes
2548 dynamic_linker="$host_os dld.so"
2549 shlibpath_var=LD_LIBRARY_PATH
2550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2552 soname_spec='${libname}${release}${shared_ext}$major'
2553 if test "X$HPUX_IA64_MODE" = X32; then
2554 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2555 else
2556 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2557 fi
2558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2559 ;;
2560 hppa*64*)
2561 shrext_cmds='.sl'
2562 hardcode_into_libs=yes
2563 dynamic_linker="$host_os dld.sl"
2564 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2567 soname_spec='${libname}${release}${shared_ext}$major'
2568 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2570 ;;
2571 *)
2572 shrext_cmds='.sl'
2573 dynamic_linker="$host_os dld.sl"
2574 shlibpath_var=SHLIB_PATH
2575 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2577 soname_spec='${libname}${release}${shared_ext}$major'
2578 ;;
2579 esac
2580 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2581 postinstall_cmds='chmod 555 $lib'
2582 # or fails outright, so override atomically:
2583 install_override_mode=555
2584 ;;
2585
2586 interix[[3-9]]*)
2587 version_type=linux # correct to gnu/linux during the next big refactor
2588 need_lib_prefix=no
2589 need_version=no
2590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2591 soname_spec='${libname}${release}${shared_ext}$major'
2592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2593 shlibpath_var=LD_LIBRARY_PATH
2594 shlibpath_overrides_runpath=no
2595 hardcode_into_libs=yes
2596 ;;
2597
2598 irix5* | irix6* | nonstopux*)
2599 case $host_os in
2600 nonstopux*) version_type=nonstopux ;;
2601 *)
2602 if test "$lt_cv_prog_gnu_ld" = yes; then
2603 version_type=linux # correct to gnu/linux during the next big refactor
2604 else
2605 version_type=irix
2606 fi ;;
2607 esac
2608 need_lib_prefix=no
2609 need_version=no
2610 soname_spec='${libname}${release}${shared_ext}$major'
2611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2612 case $host_os in
2613 irix5* | nonstopux*)
2614 libsuff= shlibsuff=
2615 ;;
2616 *)
2617 case $LD in # libtool.m4 will add one of these switches to LD
2618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2619 libsuff= shlibsuff= libmagic=32-bit;;
2620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2621 libsuff=32 shlibsuff=N32 libmagic=N32;;
2622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2624 *) libsuff= shlibsuff= libmagic=never-match;;
2625 esac
2626 ;;
2627 esac
2628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2629 shlibpath_overrides_runpath=no
2630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2632 hardcode_into_libs=yes
2633 ;;
2634
2635 # No shared lib support for Linux oldld, aout, or coff.
2636 linux*oldld* | linux*aout* | linux*coff*)
2637 dynamic_linker=no
2638 ;;
2639
2640 # This must be glibc/ELF.
2641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2642 version_type=linux # correct to gnu/linux during the next big refactor
2643 need_lib_prefix=no
2644 need_version=no
2645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2646 soname_spec='${libname}${release}${shared_ext}$major'
2647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2648 shlibpath_var=LD_LIBRARY_PATH
2649 shlibpath_overrides_runpath=no
2650
2651 # Some binutils ld are patched to set DT_RUNPATH
2652 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2653 [lt_cv_shlibpath_overrides_runpath=no
2654 save_LDFLAGS=$LDFLAGS
2655 save_libdir=$libdir
2656 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2657 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2658 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2659 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2660 [lt_cv_shlibpath_overrides_runpath=yes])])
2661 LDFLAGS=$save_LDFLAGS
2662 libdir=$save_libdir
2663 ])
2664 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2665
2666 # This implies no fast_install, which is unacceptable.
2667 # Some rework will be needed to allow for fast_install
2668 # before this can be enabled.
2669 hardcode_into_libs=yes
2670
2671 # Append ld.so.conf contents to the search path
2672 if test -f /etc/ld.so.conf; then
2673 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2675 fi
2676
2677 # We used to test for /lib/ld.so.1 and disable shared libraries on
2678 # powerpc, because MkLinux only supported shared libraries with the
2679 # GNU dynamic linker. Since this was broken with cross compilers,
2680 # most powerpc-linux boxes support dynamic linking these days and
2681 # people can always --disable-shared, the test was removed, and we
2682 # assume the GNU/Linux dynamic linker is in use.
2683 dynamic_linker='GNU/Linux ld.so'
2684 ;;
2685
2686 netbsdelf*-gnu)
2687 version_type=linux
2688 need_lib_prefix=no
2689 need_version=no
2690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2691 soname_spec='${libname}${release}${shared_ext}$major'
2692 shlibpath_var=LD_LIBRARY_PATH
2693 shlibpath_overrides_runpath=no
2694 hardcode_into_libs=yes
2695 dynamic_linker='NetBSD ld.elf_so'
2696 ;;
2697
2698 netbsd*)
2699 version_type=sunos
2700 need_lib_prefix=no
2701 need_version=no
2702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2705 dynamic_linker='NetBSD (a.out) ld.so'
2706 else
2707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2708 soname_spec='${libname}${release}${shared_ext}$major'
2709 dynamic_linker='NetBSD ld.elf_so'
2710 fi
2711 shlibpath_var=LD_LIBRARY_PATH
2712 shlibpath_overrides_runpath=yes
2713 hardcode_into_libs=yes
2714 ;;
2715
2716 newsos6)
2717 version_type=linux # correct to gnu/linux during the next big refactor
2718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2719 shlibpath_var=LD_LIBRARY_PATH
2720 shlibpath_overrides_runpath=yes
2721 ;;
2722
2723 *nto* | *qnx*)
2724 version_type=qnx
2725 need_lib_prefix=no
2726 need_version=no
2727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2728 soname_spec='${libname}${release}${shared_ext}$major'
2729 shlibpath_var=LD_LIBRARY_PATH
2730 shlibpath_overrides_runpath=no
2731 hardcode_into_libs=yes
2732 dynamic_linker='ldqnx.so'
2733 ;;
2734
2735 openbsd*)
2736 version_type=sunos
2737 sys_lib_dlsearch_path_spec="/usr/lib"
2738 need_lib_prefix=no
2739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2740 case $host_os in
2741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2742 *) need_version=no ;;
2743 esac
2744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2746 shlibpath_var=LD_LIBRARY_PATH
2747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2748 case $host_os in
2749 openbsd2.[[89]] | openbsd2.[[89]].*)
2750 shlibpath_overrides_runpath=no
2751 ;;
2752 *)
2753 shlibpath_overrides_runpath=yes
2754 ;;
2755 esac
2756 else
2757 shlibpath_overrides_runpath=yes
2758 fi
2759 ;;
2760
2761 os2*)
2762 libname_spec='$name'
2763 shrext_cmds=".dll"
2764 need_lib_prefix=no
2765 library_names_spec='$libname${shared_ext} $libname.a'
2766 dynamic_linker='OS/2 ld.exe'
2767 shlibpath_var=LIBPATH
2768 ;;
2769
2770 osf3* | osf4* | osf5*)
2771 version_type=osf
2772 need_lib_prefix=no
2773 need_version=no
2774 soname_spec='${libname}${release}${shared_ext}$major'
2775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2776 shlibpath_var=LD_LIBRARY_PATH
2777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2779 ;;
2780
2781 rdos*)
2782 dynamic_linker=no
2783 ;;
2784
2785 solaris*)
2786 version_type=linux # correct to gnu/linux during the next big refactor
2787 need_lib_prefix=no
2788 need_version=no
2789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2790 soname_spec='${libname}${release}${shared_ext}$major'
2791 shlibpath_var=LD_LIBRARY_PATH
2792 shlibpath_overrides_runpath=yes
2793 hardcode_into_libs=yes
2794 # ldd complains unless libraries are executable
2795 postinstall_cmds='chmod +x $lib'
2796 ;;
2797
2798 sunos4*)
2799 version_type=sunos
2800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2802 shlibpath_var=LD_LIBRARY_PATH
2803 shlibpath_overrides_runpath=yes
2804 if test "$with_gnu_ld" = yes; then
2805 need_lib_prefix=no
2806 fi
2807 need_version=yes
2808 ;;
2809
2810 sysv4 | sysv4.3*)
2811 version_type=linux # correct to gnu/linux during the next big refactor
2812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2813 soname_spec='${libname}${release}${shared_ext}$major'
2814 shlibpath_var=LD_LIBRARY_PATH
2815 case $host_vendor in
2816 sni)
2817 shlibpath_overrides_runpath=no
2818 need_lib_prefix=no
2819 runpath_var=LD_RUN_PATH
2820 ;;
2821 siemens)
2822 need_lib_prefix=no
2823 ;;
2824 motorola)
2825 need_lib_prefix=no
2826 need_version=no
2827 shlibpath_overrides_runpath=no
2828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2829 ;;
2830 esac
2831 ;;
2832
2833 sysv4*MP*)
2834 if test -d /usr/nec ;then
2835 version_type=linux # correct to gnu/linux during the next big refactor
2836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2837 soname_spec='$libname${shared_ext}.$major'
2838 shlibpath_var=LD_LIBRARY_PATH
2839 fi
2840 ;;
2841
2842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2843 version_type=freebsd-elf
2844 need_lib_prefix=no
2845 need_version=no
2846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2847 soname_spec='${libname}${release}${shared_ext}$major'
2848 shlibpath_var=LD_LIBRARY_PATH
2849 shlibpath_overrides_runpath=yes
2850 hardcode_into_libs=yes
2851 if test "$with_gnu_ld" = yes; then
2852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2853 else
2854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2855 case $host_os in
2856 sco3.2v5*)
2857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2858 ;;
2859 esac
2860 fi
2861 sys_lib_dlsearch_path_spec='/usr/lib'
2862 ;;
2863
2864 tpf*)
2865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2866 version_type=linux # correct to gnu/linux during the next big refactor
2867 need_lib_prefix=no
2868 need_version=no
2869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2870 shlibpath_var=LD_LIBRARY_PATH
2871 shlibpath_overrides_runpath=no
2872 hardcode_into_libs=yes
2873 ;;
2874
2875 uts4*)
2876 version_type=linux # correct to gnu/linux during the next big refactor
2877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2878 soname_spec='${libname}${release}${shared_ext}$major'
2879 shlibpath_var=LD_LIBRARY_PATH
2880 ;;
2881
2882 *)
2883 dynamic_linker=no
2884 ;;
2885 esac
2886 AC_MSG_RESULT([$dynamic_linker])
2887 test "$dynamic_linker" = no && can_build_shared=no
2888
2889 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2890 if test "$GCC" = yes; then
2891 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2892 fi
2893
2894 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2895 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2896 fi
2897 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2898 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2899 fi
2900
2901 _LT_DECL([], [variables_saved_for_relink], [1],
2902 [Variables whose values should be saved in libtool wrapper scripts and
2903 restored at link time])
2904 _LT_DECL([], [need_lib_prefix], [0],
2905 [Do we need the "lib" prefix for modules?])
2906 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2907 _LT_DECL([], [version_type], [0], [Library versioning type])
2908 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2909 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2910 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2911 [Is shlibpath searched before the hard-coded library search path?])
2912 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2913 _LT_DECL([], [library_names_spec], [1],
2914 [[List of archive names. First name is the real one, the rest are links.
2915 The last name is the one that the linker finds with -lNAME]])
2916 _LT_DECL([], [soname_spec], [1],
2917 [[The coded name of the library, if different from the real name]])
2918 _LT_DECL([], [install_override_mode], [1],
2919 [Permission mode override for installation of shared libraries])
2920 _LT_DECL([], [postinstall_cmds], [2],
2921 [Command to use after installation of a shared archive])
2922 _LT_DECL([], [postuninstall_cmds], [2],
2923 [Command to use after uninstallation of a shared archive])
2924 _LT_DECL([], [finish_cmds], [2],
2925 [Commands used to finish a libtool library installation in a directory])
2926 _LT_DECL([], [finish_eval], [1],
2927 [[As "finish_cmds", except a single script fragment to be evaled but
2928 not shown]])
2929 _LT_DECL([], [hardcode_into_libs], [0],
2930 [Whether we should hardcode library paths into libraries])
2931 _LT_DECL([], [sys_lib_search_path_spec], [2],
2932 [Compile-time system search path for libraries])
2933 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2934 [Run-time system search path for libraries])
2935 ])# _LT_SYS_DYNAMIC_LINKER
2936
2937
2938 # _LT_PATH_TOOL_PREFIX(TOOL)
2939 # --------------------------
2940 # find a file program which can recognize shared library
2941 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2942 [m4_require([_LT_DECL_EGREP])dnl
2943 AC_MSG_CHECKING([for $1])
2944 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2945 [case $MAGIC_CMD in
2946 [[\\/*] | ?:[\\/]*])
2947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2948 ;;
2949 *)
2950 lt_save_MAGIC_CMD="$MAGIC_CMD"
2951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2952 dnl $ac_dummy forces splitting on constant user-supplied paths.
2953 dnl POSIX.2 word splitting is done only on the output of word expansions,
2954 dnl not every word. This closes a longstanding sh security hole.
2955 ac_dummy="m4_if([$2], , $PATH, [$2])"
2956 for ac_dir in $ac_dummy; do
2957 IFS="$lt_save_ifs"
2958 test -z "$ac_dir" && ac_dir=.
2959 if test -f $ac_dir/$1; then
2960 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2961 if test -n "$file_magic_test_file"; then
2962 case $deplibs_check_method in
2963 "file_magic "*)
2964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2967 $EGREP "$file_magic_regex" > /dev/null; then
2968 :
2969 else
2970 cat <<_LT_EOF 1>&2
2971
2972 *** Warning: the command libtool uses to detect shared libraries,
2973 *** $file_magic_cmd, produces output that libtool cannot recognize.
2974 *** The result is that libtool may fail to recognize shared libraries
2975 *** as such. This will affect the creation of libtool libraries that
2976 *** depend on shared libraries, but programs linked with such libtool
2977 *** libraries will work regardless of this problem. Nevertheless, you
2978 *** may want to report the problem to your system manager and/or to
2979 *** bug-libtool@gnu.org
2980
2981 _LT_EOF
2982 fi ;;
2983 esac
2984 fi
2985 break
2986 fi
2987 done
2988 IFS="$lt_save_ifs"
2989 MAGIC_CMD="$lt_save_MAGIC_CMD"
2990 ;;
2991 esac])
2992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2993 if test -n "$MAGIC_CMD"; then
2994 AC_MSG_RESULT($MAGIC_CMD)
2995 else
2996 AC_MSG_RESULT(no)
2997 fi
2998 _LT_DECL([], [MAGIC_CMD], [0],
2999 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3000 ])# _LT_PATH_TOOL_PREFIX
3001
3002 # Old name:
3003 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3004 dnl aclocal-1.4 backwards compatibility:
3005 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3006
3007
3008 # _LT_PATH_MAGIC
3009 # --------------
3010 # find a file program which can recognize a shared library
3011 m4_defun([_LT_PATH_MAGIC],
3012 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3013 if test -z "$lt_cv_path_MAGIC_CMD"; then
3014 if test -n "$ac_tool_prefix"; then
3015 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3016 else
3017 MAGIC_CMD=:
3018 fi
3019 fi
3020 ])# _LT_PATH_MAGIC
3021
3022
3023 # LT_PATH_LD
3024 # ----------
3025 # find the pathname to the GNU or non-GNU linker
3026 AC_DEFUN([LT_PATH_LD],
3027 [AC_REQUIRE([AC_PROG_CC])dnl
3028 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3029 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3030 m4_require([_LT_DECL_SED])dnl
3031 m4_require([_LT_DECL_EGREP])dnl
3032 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3033
3034 AC_ARG_WITH([gnu-ld],
3035 [AS_HELP_STRING([--with-gnu-ld],
3036 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3037 [test "$withval" = no || with_gnu_ld=yes],
3038 [with_gnu_ld=no])dnl
3039
3040 ac_prog=ld
3041 if test "$GCC" = yes; then
3042 # Check if gcc -print-prog-name=ld gives a path.
3043 AC_MSG_CHECKING([for ld used by $CC])
3044 case $host in
3045 *-*-mingw*)
3046 # gcc leaves a trailing carriage return which upsets mingw
3047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3048 *)
3049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3050 esac
3051 case $ac_prog in
3052 # Accept absolute paths.
3053 [[\\/]]* | ?:[[\\/]]*)
3054 re_direlt='/[[^/]][[^/]]*/\.\./'
3055 # Canonicalize the pathname of ld
3056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3059 done
3060 test -z "$LD" && LD="$ac_prog"
3061 ;;
3062 "")
3063 # If it fails, then pretend we aren't using GCC.
3064 ac_prog=ld
3065 ;;
3066 *)
3067 # If it is relative, then search for the first ld in PATH.
3068 with_gnu_ld=unknown
3069 ;;
3070 esac
3071 elif test "$with_gnu_ld" = yes; then
3072 AC_MSG_CHECKING([for GNU ld])
3073 else
3074 AC_MSG_CHECKING([for non-GNU ld])
3075 fi
3076 AC_CACHE_VAL(lt_cv_path_LD,
3077 [if test -z "$LD"; then
3078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3079 for ac_dir in $PATH; do
3080 IFS="$lt_save_ifs"
3081 test -z "$ac_dir" && ac_dir=.
3082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3083 lt_cv_path_LD="$ac_dir/$ac_prog"
3084 # Check to see if the program is GNU ld. I'd rather use --version,
3085 # but apparently some variants of GNU ld only accept -v.
3086 # Break only if it was the GNU/non-GNU ld that we prefer.
3087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3088 *GNU* | *'with BFD'*)
3089 test "$with_gnu_ld" != no && break
3090 ;;
3091 *)
3092 test "$with_gnu_ld" != yes && break
3093 ;;
3094 esac
3095 fi
3096 done
3097 IFS="$lt_save_ifs"
3098 else
3099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3100 fi])
3101 LD="$lt_cv_path_LD"
3102 if test -n "$LD"; then
3103 AC_MSG_RESULT($LD)
3104 else
3105 AC_MSG_RESULT(no)
3106 fi
3107 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3108 _LT_PATH_LD_GNU
3109 AC_SUBST([LD])
3110
3111 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3112 ])# LT_PATH_LD
3113
3114 # Old names:
3115 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3116 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3117 dnl aclocal-1.4 backwards compatibility:
3118 dnl AC_DEFUN([AM_PROG_LD], [])
3119 dnl AC_DEFUN([AC_PROG_LD], [])
3120
3121
3122 # _LT_PATH_LD_GNU
3123 #- --------------
3124 m4_defun([_LT_PATH_LD_GNU],
3125 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3126 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3127 case `$LD -v 2>&1 </dev/null` in
3128 *GNU* | *'with BFD'*)
3129 lt_cv_prog_gnu_ld=yes
3130 ;;
3131 *)
3132 lt_cv_prog_gnu_ld=no
3133 ;;
3134 esac])
3135 with_gnu_ld=$lt_cv_prog_gnu_ld
3136 ])# _LT_PATH_LD_GNU
3137
3138
3139 # _LT_CMD_RELOAD
3140 # --------------
3141 # find reload flag for linker
3142 # -- PORTME Some linkers may need a different reload flag.
3143 m4_defun([_LT_CMD_RELOAD],
3144 [AC_CACHE_CHECK([for $LD option to reload object files],
3145 lt_cv_ld_reload_flag,
3146 [lt_cv_ld_reload_flag='-r'])
3147 reload_flag=$lt_cv_ld_reload_flag
3148 case $reload_flag in
3149 "" | " "*) ;;
3150 *) reload_flag=" $reload_flag" ;;
3151 esac
3152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3153 case $host_os in
3154 cygwin* | mingw* | pw32* | cegcc*)
3155 if test "$GCC" != yes; then
3156 reload_cmds=false
3157 fi
3158 ;;
3159 darwin*)
3160 if test "$GCC" = yes; then
3161 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3162 else
3163 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3164 fi
3165 ;;
3166 esac
3167 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3168 _LT_TAGDECL([], [reload_cmds], [2])dnl
3169 ])# _LT_CMD_RELOAD
3170
3171
3172 # _LT_CHECK_MAGIC_METHOD
3173 # ----------------------
3174 # how to check for library dependencies
3175 # -- PORTME fill in with the dynamic library characteristics
3176 m4_defun([_LT_CHECK_MAGIC_METHOD],
3177 [m4_require([_LT_DECL_EGREP])
3178 m4_require([_LT_DECL_OBJDUMP])
3179 AC_CACHE_CHECK([how to recognize dependent libraries],
3180 lt_cv_deplibs_check_method,
3181 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3182 lt_cv_file_magic_test_file=
3183 lt_cv_deplibs_check_method='unknown'
3184 # Need to set the preceding variable on all platforms that support
3185 # interlibrary dependencies.
3186 # 'none' -- dependencies not supported.
3187 # `unknown' -- same as none, but documents that we really don't know.
3188 # 'pass_all' -- all dependencies passed with no checks.
3189 # 'test_compile' -- check by making test program.
3190 # 'file_magic [[regex]]' -- check by looking for files in library path
3191 # which responds to the $file_magic_cmd with a given extended regex.
3192 # If you have `file' or equivalent on your system and you're not sure
3193 # whether `pass_all' will *always* work, you probably want this one.
3194
3195 case $host_os in
3196 aix[[4-9]]*)
3197 lt_cv_deplibs_check_method=pass_all
3198 ;;
3199
3200 beos*)
3201 lt_cv_deplibs_check_method=pass_all
3202 ;;
3203
3204 bsdi[[45]]*)
3205 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3206 lt_cv_file_magic_cmd='/usr/bin/file -L'
3207 lt_cv_file_magic_test_file=/shlib/libc.so
3208 ;;
3209
3210 cygwin*)
3211 # func_win32_libid is a shell function defined in ltmain.sh
3212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3213 lt_cv_file_magic_cmd='func_win32_libid'
3214 ;;
3215
3216 mingw* | pw32*)
3217 # Base MSYS/MinGW do not provide the 'file' command needed by
3218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3219 # unless we find 'file', for example because we are cross-compiling.
3220 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3221 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3223 lt_cv_file_magic_cmd='func_win32_libid'
3224 else
3225 # Keep this pattern in sync with the one in func_win32_libid.
3226 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3227 lt_cv_file_magic_cmd='$OBJDUMP -f'
3228 fi
3229 ;;
3230
3231 cegcc*)
3232 # use the weaker test based on 'objdump'. See mingw*.
3233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3234 lt_cv_file_magic_cmd='$OBJDUMP -f'
3235 ;;
3236
3237 darwin* | rhapsody*)
3238 lt_cv_deplibs_check_method=pass_all
3239 ;;
3240
3241 freebsd* | dragonfly*)
3242 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3243 case $host_cpu in
3244 i*86 )
3245 # Not sure whether the presence of OpenBSD here was a mistake.
3246 # Let's accept both of them until this is cleared up.
3247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3248 lt_cv_file_magic_cmd=/usr/bin/file
3249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3250 ;;
3251 esac
3252 else
3253 lt_cv_deplibs_check_method=pass_all
3254 fi
3255 ;;
3256
3257 gnu*)
3258 lt_cv_deplibs_check_method=pass_all
3259 ;;
3260
3261 haiku*)
3262 lt_cv_deplibs_check_method=pass_all
3263 ;;
3264
3265 hpux10.20* | hpux11*)
3266 lt_cv_file_magic_cmd=/usr/bin/file
3267 case $host_cpu in
3268 ia64*)
3269 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3270 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3271 ;;
3272 hppa*64*)
3273 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3274 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3275 ;;
3276 *)
3277 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3278 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3279 ;;
3280 esac
3281 ;;
3282
3283 interix[[3-9]]*)
3284 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3285 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3286 ;;
3287
3288 irix5* | irix6* | nonstopux*)
3289 case $LD in
3290 *-32|*"-32 ") libmagic=32-bit;;
3291 *-n32|*"-n32 ") libmagic=N32;;
3292 *-64|*"-64 ") libmagic=64-bit;;
3293 *) libmagic=never-match;;
3294 esac
3295 lt_cv_deplibs_check_method=pass_all
3296 ;;
3297
3298 # This must be glibc/ELF.
3299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3300 lt_cv_deplibs_check_method=pass_all
3301 ;;
3302
3303 netbsd* | netbsdelf*-gnu)
3304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3306 else
3307 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3308 fi
3309 ;;
3310
3311 newos6*)
3312 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3313 lt_cv_file_magic_cmd=/usr/bin/file
3314 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3315 ;;
3316
3317 *nto* | *qnx*)
3318 lt_cv_deplibs_check_method=pass_all
3319 ;;
3320
3321 openbsd*)
3322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3323 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3324 else
3325 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3326 fi
3327 ;;
3328
3329 osf3* | osf4* | osf5*)
3330 lt_cv_deplibs_check_method=pass_all
3331 ;;
3332
3333 rdos*)
3334 lt_cv_deplibs_check_method=pass_all
3335 ;;
3336
3337 solaris*)
3338 lt_cv_deplibs_check_method=pass_all
3339 ;;
3340
3341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3342 lt_cv_deplibs_check_method=pass_all
3343 ;;
3344
3345 sysv4 | sysv4.3*)
3346 case $host_vendor in
3347 motorola)
3348 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]]'
3349 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3350 ;;
3351 ncr)
3352 lt_cv_deplibs_check_method=pass_all
3353 ;;
3354 sequent)
3355 lt_cv_file_magic_cmd='/bin/file'
3356 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3357 ;;
3358 sni)
3359 lt_cv_file_magic_cmd='/bin/file'
3360 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3361 lt_cv_file_magic_test_file=/lib/libc.so
3362 ;;
3363 siemens)
3364 lt_cv_deplibs_check_method=pass_all
3365 ;;
3366 pc)
3367 lt_cv_deplibs_check_method=pass_all
3368 ;;
3369 esac
3370 ;;
3371
3372 tpf*)
3373 lt_cv_deplibs_check_method=pass_all
3374 ;;
3375 esac
3376 ])
3377
3378 file_magic_glob=
3379 want_nocaseglob=no
3380 if test "$build" = "$host"; then
3381 case $host_os in
3382 mingw* | pw32*)
3383 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3384 want_nocaseglob=yes
3385 else
3386 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3387 fi
3388 ;;
3389 esac
3390 fi
3391
3392 file_magic_cmd=$lt_cv_file_magic_cmd
3393 deplibs_check_method=$lt_cv_deplibs_check_method
3394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3395
3396 _LT_DECL([], [deplibs_check_method], [1],
3397 [Method to check whether dependent libraries are shared objects])
3398 _LT_DECL([], [file_magic_cmd], [1],
3399 [Command to use when deplibs_check_method = "file_magic"])
3400 _LT_DECL([], [file_magic_glob], [1],
3401 [How to find potential files when deplibs_check_method = "file_magic"])
3402 _LT_DECL([], [want_nocaseglob], [1],
3403 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3404 ])# _LT_CHECK_MAGIC_METHOD
3405
3406
3407 # LT_PATH_NM
3408 # ----------
3409 # find the pathname to a BSD- or MS-compatible name lister
3410 AC_DEFUN([LT_PATH_NM],
3411 [AC_REQUIRE([AC_PROG_CC])dnl
3412 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3413 [if test -n "$NM"; then
3414 # Let the user override the test.
3415 lt_cv_path_NM="$NM"
3416 else
3417 lt_nm_to_check="${ac_tool_prefix}nm"
3418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3419 lt_nm_to_check="$lt_nm_to_check nm"
3420 fi
3421 for lt_tmp_nm in $lt_nm_to_check; do
3422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3424 IFS="$lt_save_ifs"
3425 test -z "$ac_dir" && ac_dir=.
3426 tmp_nm="$ac_dir/$lt_tmp_nm"
3427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3428 # Check to see if the nm accepts a BSD-compat flag.
3429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3430 # nm: unknown option "B" ignored
3431 # Tru64's nm complains that /dev/null is an invalid object file
3432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3433 */dev/null* | *'Invalid file or object type'*)
3434 lt_cv_path_NM="$tmp_nm -B"
3435 break
3436 ;;
3437 *)
3438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3439 */dev/null*)
3440 lt_cv_path_NM="$tmp_nm -p"
3441 break
3442 ;;
3443 *)
3444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3445 continue # so that we can try to find one that supports BSD flags
3446 ;;
3447 esac
3448 ;;
3449 esac
3450 fi
3451 done
3452 IFS="$lt_save_ifs"
3453 done
3454 : ${lt_cv_path_NM=no}
3455 fi])
3456 if test "$lt_cv_path_NM" != "no"; then
3457 NM="$lt_cv_path_NM"
3458 else
3459 # Didn't find any BSD compatible name lister, look for dumpbin.
3460 if test -n "$DUMPBIN"; then :
3461 # Let the user override the test.
3462 else
3463 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3464 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3465 *COFF*)
3466 DUMPBIN="$DUMPBIN -symbols"
3467 ;;
3468 *)
3469 DUMPBIN=:
3470 ;;
3471 esac
3472 fi
3473 AC_SUBST([DUMPBIN])
3474 if test "$DUMPBIN" != ":"; then
3475 NM="$DUMPBIN"
3476 fi
3477 fi
3478 test -z "$NM" && NM=nm
3479 AC_SUBST([NM])
3480 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3481
3482 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3483 [lt_cv_nm_interface="BSD nm"
3484 echo "int some_variable = 0;" > conftest.$ac_ext
3485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3486 (eval "$ac_compile" 2>conftest.err)
3487 cat conftest.err >&AS_MESSAGE_LOG_FD
3488 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3489 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3490 cat conftest.err >&AS_MESSAGE_LOG_FD
3491 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3492 cat conftest.out >&AS_MESSAGE_LOG_FD
3493 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3494 lt_cv_nm_interface="MS dumpbin"
3495 fi
3496 rm -f conftest*])
3497 ])# LT_PATH_NM
3498
3499 # Old names:
3500 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3501 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3502 dnl aclocal-1.4 backwards compatibility:
3503 dnl AC_DEFUN([AM_PROG_NM], [])
3504 dnl AC_DEFUN([AC_PROG_NM], [])
3505
3506 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3507 # --------------------------------
3508 # how to determine the name of the shared library
3509 # associated with a specific link library.
3510 # -- PORTME fill in with the dynamic library characteristics
3511 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3512 [m4_require([_LT_DECL_EGREP])
3513 m4_require([_LT_DECL_OBJDUMP])
3514 m4_require([_LT_DECL_DLLTOOL])
3515 AC_CACHE_CHECK([how to associate runtime and link libraries],
3516 lt_cv_sharedlib_from_linklib_cmd,
3517 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3518
3519 case $host_os in
3520 cygwin* | mingw* | pw32* | cegcc*)
3521 # two different shell functions defined in ltmain.sh
3522 # decide which to use based on capabilities of $DLLTOOL
3523 case `$DLLTOOL --help 2>&1` in
3524 *--identify-strict*)
3525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3526 ;;
3527 *)
3528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3529 ;;
3530 esac
3531 ;;
3532 *)
3533 # fallback: assume linklib IS sharedlib
3534 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3535 ;;
3536 esac
3537 ])
3538 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3539 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3540
3541 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3542 [Command to associate shared and link libraries])
3543 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3544
3545
3546 # _LT_PATH_MANIFEST_TOOL
3547 # ----------------------
3548 # locate the manifest tool
3549 m4_defun([_LT_PATH_MANIFEST_TOOL],
3550 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3551 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3552 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3553 [lt_cv_path_mainfest_tool=no
3554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3556 cat conftest.err >&AS_MESSAGE_LOG_FD
3557 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3558 lt_cv_path_mainfest_tool=yes
3559 fi
3560 rm -f conftest*])
3561 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3562 MANIFEST_TOOL=:
3563 fi
3564 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3565 ])# _LT_PATH_MANIFEST_TOOL
3566
3567
3568 # LT_LIB_M
3569 # --------
3570 # check for math library
3571 AC_DEFUN([LT_LIB_M],
3572 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3573 LIBM=
3574 case $host in
3575 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3576 # These system don't have libm, or don't need it
3577 ;;
3578 *-ncr-sysv4.3*)
3579 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3580 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3581 ;;
3582 *)
3583 AC_CHECK_LIB(m, cos, LIBM="-lm")
3584 ;;
3585 esac
3586 AC_SUBST([LIBM])
3587 ])# LT_LIB_M
3588
3589 # Old name:
3590 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3591 dnl aclocal-1.4 backwards compatibility:
3592 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3593
3594
3595 # _LT_COMPILER_NO_RTTI([TAGNAME])
3596 # -------------------------------
3597 m4_defun([_LT_COMPILER_NO_RTTI],
3598 [m4_require([_LT_TAG_COMPILER])dnl
3599
3600 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3601
3602 if test "$GCC" = yes; then
3603 case $cc_basename in
3604 nvcc*)
3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3606 *)
3607 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3608 esac
3609
3610 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3611 lt_cv_prog_compiler_rtti_exceptions,
3612 [-fno-rtti -fno-exceptions], [],
3613 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3614 fi
3615 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3616 [Compiler flag to turn off builtin functions])
3617 ])# _LT_COMPILER_NO_RTTI
3618
3619
3620 # _LT_CMD_GLOBAL_SYMBOLS
3621 # ----------------------
3622 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3623 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3624 AC_REQUIRE([AC_PROG_CC])dnl
3625 AC_REQUIRE([AC_PROG_AWK])dnl
3626 AC_REQUIRE([LT_PATH_NM])dnl
3627 AC_REQUIRE([LT_PATH_LD])dnl
3628 m4_require([_LT_DECL_SED])dnl
3629 m4_require([_LT_DECL_EGREP])dnl
3630 m4_require([_LT_TAG_COMPILER])dnl
3631
3632 # Check for command to grab the raw symbol name followed by C symbol from nm.
3633 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3634 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3635 [
3636 # These are sane defaults that work on at least a few old systems.
3637 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3638
3639 # Character class describing NM global symbol codes.
3640 symcode='[[BCDEGRST]]'
3641
3642 # Regexp to match symbols that can be accessed directly from C.
3643 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3644
3645 # Define system-specific variables.
3646 case $host_os in
3647 aix*)
3648 symcode='[[BCDT]]'
3649 ;;
3650 cygwin* | mingw* | pw32* | cegcc*)
3651 symcode='[[ABCDGISTW]]'
3652 ;;
3653 hpux*)
3654 if test "$host_cpu" = ia64; then
3655 symcode='[[ABCDEGRST]]'
3656 fi
3657 ;;
3658 irix* | nonstopux*)
3659 symcode='[[BCDEGRST]]'
3660 ;;
3661 osf*)
3662 symcode='[[BCDEGQRST]]'
3663 ;;
3664 solaris*)
3665 symcode='[[BDRT]]'
3666 ;;
3667 sco3.2v5*)
3668 symcode='[[DT]]'
3669 ;;
3670 sysv4.2uw2*)
3671 symcode='[[DT]]'
3672 ;;
3673 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3674 symcode='[[ABDT]]'
3675 ;;
3676 sysv4)
3677 symcode='[[DFNSTU]]'
3678 ;;
3679 esac
3680
3681 # If we're using GNU nm, then use its standard symbol codes.
3682 case `$NM -V 2>&1` in
3683 *GNU* | *'with BFD'*)
3684 symcode='[[ABCDGIRSTW]]' ;;
3685 esac
3686
3687 # Transform an extracted symbol line into a proper C declaration.
3688 # Some systems (esp. on ia64) link data and code symbols differently,
3689 # so use this general approach.
3690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3691
3692 # Transform an extracted symbol line into symbol name and symbol address
3693 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3694 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3695
3696 # Handle CRLF in mingw tool chain
3697 opt_cr=
3698 case $build_os in
3699 mingw*)
3700 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3701 ;;
3702 esac
3703
3704 # Try without a prefix underscore, then with it.
3705 for ac_symprfx in "" "_"; do
3706
3707 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3708 symxfrm="\\1 $ac_symprfx\\2 \\2"
3709
3710 # Write the raw and C identifiers.
3711 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3712 # Fake it for dumpbin and say T for any non-static function
3713 # and D for any global variable.
3714 # Also find C++ and __fastcall symbols from MSVC++,
3715 # which start with @ or ?.
3716 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3717 " {last_section=section; section=\$ 3};"\
3718 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3719 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3720 " \$ 0!~/External *\|/{next};"\
3721 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3722 " {if(hide[section]) next};"\
3723 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3724 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3725 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3726 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3727 " ' prfx=^$ac_symprfx]"
3728 else
3729 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3730 fi
3731 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3732
3733 # Check to see that the pipe works correctly.
3734 pipe_works=no
3735
3736 rm -f conftest*
3737 cat > conftest.$ac_ext <<_LT_EOF
3738 #ifdef __cplusplus
3739 extern "C" {
3740 #endif
3741 char nm_test_var;
3742 void nm_test_func(void);
3743 void nm_test_func(void){}
3744 #ifdef __cplusplus
3745 }
3746 #endif
3747 int main(){nm_test_var='a';nm_test_func();return(0);}
3748 _LT_EOF
3749
3750 if AC_TRY_EVAL(ac_compile); then
3751 # Now try to grab the symbols.
3752 nlist=conftest.nm
3753 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3754 # Try sorting and uniquifying the output.
3755 if sort "$nlist" | uniq > "$nlist"T; then
3756 mv -f "$nlist"T "$nlist"
3757 else
3758 rm -f "$nlist"T
3759 fi
3760
3761 # Make sure that we snagged all the symbols we need.
3762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3764 cat <<_LT_EOF > conftest.$ac_ext
3765 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3766 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3767 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3768 relocations are performed -- see ld's documentation on pseudo-relocs. */
3769 # define LT@&t@_DLSYM_CONST
3770 #elif defined(__osf__)
3771 /* This system does not cope well with relocations in const data. */
3772 # define LT@&t@_DLSYM_CONST
3773 #else
3774 # define LT@&t@_DLSYM_CONST const
3775 #endif
3776
3777 #ifdef __cplusplus
3778 extern "C" {
3779 #endif
3780
3781 _LT_EOF
3782 # Now generate the symbol file.
3783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3784
3785 cat <<_LT_EOF >> conftest.$ac_ext
3786
3787 /* The mapping between symbol names and symbols. */
3788 LT@&t@_DLSYM_CONST struct {
3789 const char *name;
3790 void *address;
3791 }
3792 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3793 {
3794 { "@PROGRAM@", (void *) 0 },
3795 _LT_EOF
3796 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3797 cat <<\_LT_EOF >> conftest.$ac_ext
3798 {0, (void *) 0}
3799 };
3800
3801 /* This works around a problem in FreeBSD linker */
3802 #ifdef FREEBSD_WORKAROUND
3803 static const void *lt_preloaded_setup() {
3804 return lt__PROGRAM__LTX_preloaded_symbols;
3805 }
3806 #endif
3807
3808 #ifdef __cplusplus
3809 }
3810 #endif
3811 _LT_EOF
3812 # Now try linking the two files.
3813 mv conftest.$ac_objext conftstm.$ac_objext
3814 lt_globsym_save_LIBS=$LIBS
3815 lt_globsym_save_CFLAGS=$CFLAGS
3816 LIBS="conftstm.$ac_objext"
3817 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3818 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3819 pipe_works=yes
3820 fi
3821 LIBS=$lt_globsym_save_LIBS
3822 CFLAGS=$lt_globsym_save_CFLAGS
3823 else
3824 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3825 fi
3826 else
3827 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3828 fi
3829 else
3830 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3831 fi
3832 else
3833 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3834 cat conftest.$ac_ext >&5
3835 fi
3836 rm -rf conftest* conftst*
3837
3838 # Do not use the global_symbol_pipe unless it works.
3839 if test "$pipe_works" = yes; then
3840 break
3841 else
3842 lt_cv_sys_global_symbol_pipe=
3843 fi
3844 done
3845 ])
3846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3847 lt_cv_sys_global_symbol_to_cdecl=
3848 fi
3849 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3850 AC_MSG_RESULT(failed)
3851 else
3852 AC_MSG_RESULT(ok)
3853 fi
3854
3855 # Response file support.
3856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3857 nm_file_list_spec='@'
3858 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3859 nm_file_list_spec='@'
3860 fi
3861
3862 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3863 [Take the output of nm and produce a listing of raw symbols and C names])
3864 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3865 [Transform the output of nm in a proper C declaration])
3866 _LT_DECL([global_symbol_to_c_name_address],
3867 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3868 [Transform the output of nm in a C name address pair])
3869 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3870 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3871 [Transform the output of nm in a C name address pair when lib prefix is needed])
3872 _LT_DECL([], [nm_file_list_spec], [1],
3873 [Specify filename containing input files for $NM])
3874 ]) # _LT_CMD_GLOBAL_SYMBOLS
3875
3876
3877 # _LT_COMPILER_PIC([TAGNAME])
3878 # ---------------------------
3879 m4_defun([_LT_COMPILER_PIC],
3880 [m4_require([_LT_TAG_COMPILER])dnl
3881 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3882 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3883 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3884
3885 m4_if([$1], [CXX], [
3886 # C++ specific cases for pic, static, wl, etc.
3887 if test "$GXX" = yes; then
3888 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3889 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3890
3891 case $host_os in
3892 aix*)
3893 # All AIX code is PIC.
3894 if test "$host_cpu" = ia64; then
3895 # AIX 5 now supports IA64 processor
3896 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3897 fi
3898 ;;
3899
3900 amigaos*)
3901 case $host_cpu in
3902 powerpc)
3903 # see comment about AmigaOS4 .so support
3904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3905 ;;
3906 m68k)
3907 # FIXME: we need at least 68020 code to build shared libraries, but
3908 # adding the `-m68020' flag to GCC prevents building anything better,
3909 # like `-m68040'.
3910 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3911 ;;
3912 esac
3913 ;;
3914
3915 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3916 # PIC is the default for these OSes.
3917 ;;
3918 mingw* | cygwin* | os2* | pw32* | cegcc*)
3919 # This hack is so that the source file can tell whether it is being
3920 # built for inclusion in a dll (and should export symbols for example).
3921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3922 # (--disable-auto-import) libraries
3923 m4_if([$1], [GCJ], [],
3924 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3925 ;;
3926 darwin* | rhapsody*)
3927 # PIC is the default on this platform
3928 # Common symbols not allowed in MH_DYLIB files
3929 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3930 ;;
3931 *djgpp*)
3932 # DJGPP does not support shared libraries at all
3933 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3934 ;;
3935 haiku*)
3936 # PIC is the default for Haiku.
3937 # The "-static" flag exists, but is broken.
3938 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3939 ;;
3940 interix[[3-9]]*)
3941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3942 # Instead, we relocate shared libraries at runtime.
3943 ;;
3944 sysv4*MP*)
3945 if test -d /usr/nec; then
3946 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3947 fi
3948 ;;
3949 hpux*)
3950 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3951 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3952 # sets the default TLS model and affects inlining.
3953 case $host_cpu in
3954 hppa*64*)
3955 ;;
3956 *)
3957 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3958 ;;
3959 esac
3960 ;;
3961 *qnx* | *nto*)
3962 # QNX uses GNU C++, but need to define -shared option too, otherwise
3963 # it will coredump.
3964 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3965 ;;
3966 *)
3967 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3968 ;;
3969 esac
3970 else
3971 case $host_os in
3972 aix[[4-9]]*)
3973 # All AIX code is PIC.
3974 if test "$host_cpu" = ia64; then
3975 # AIX 5 now supports IA64 processor
3976 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3977 else
3978 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3979 fi
3980 ;;
3981 chorus*)
3982 case $cc_basename in
3983 cxch68*)
3984 # Green Hills C++ Compiler
3985 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3986 ;;
3987 esac
3988 ;;
3989 mingw* | cygwin* | os2* | pw32* | cegcc*)
3990 # This hack is so that the source file can tell whether it is being
3991 # built for inclusion in a dll (and should export symbols for example).
3992 m4_if([$1], [GCJ], [],
3993 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3994 ;;
3995 dgux*)
3996 case $cc_basename in
3997 ec++*)
3998 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3999 ;;
4000 ghcx*)
4001 # Green Hills C++ Compiler
4002 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4003 ;;
4004 *)
4005 ;;
4006 esac
4007 ;;
4008 freebsd* | dragonfly*)
4009 # FreeBSD uses GNU C++
4010 ;;
4011 hpux9* | hpux10* | hpux11*)
4012 case $cc_basename in
4013 CC*)
4014 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4015 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4016 if test "$host_cpu" != ia64; then
4017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4018 fi
4019 ;;
4020 aCC*)
4021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4022 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4023 case $host_cpu in
4024 hppa*64*|ia64*)
4025 # +Z the default
4026 ;;
4027 *)
4028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4029 ;;
4030 esac
4031 ;;
4032 *)
4033 ;;
4034 esac
4035 ;;
4036 interix*)
4037 # This is c89, which is MS Visual C++ (no shared libs)
4038 # Anyone wants to do a port?
4039 ;;
4040 irix5* | irix6* | nonstopux*)
4041 case $cc_basename in
4042 CC*)
4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4045 # CC pic flag -KPIC is the default.
4046 ;;
4047 *)
4048 ;;
4049 esac
4050 ;;
4051 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4052 case $cc_basename in
4053 KCC*)
4054 # KAI C++ Compiler
4055 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4057 ;;
4058 ecpc* )
4059 # old Intel C++ for x86_64 which still supported -KPIC.
4060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4061 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4062 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4063 ;;
4064 icpc* )
4065 # Intel C++, used to be incompatible with GCC.
4066 # ICC 10 doesn't accept -KPIC any more.
4067 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4068 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4070 ;;
4071 pgCC* | pgcpp*)
4072 # Portland Group C++ compiler
4073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4074 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4076 ;;
4077 cxx*)
4078 # Compaq C++
4079 # Make sure the PIC flag is empty. It appears that all Alpha
4080 # Linux and Compaq Tru64 Unix objects are PIC.
4081 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4083 ;;
4084 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4085 # IBM XL 8.0, 9.0 on PPC and BlueGene
4086 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4089 ;;
4090 *)
4091 case `$CC -V 2>&1 | sed 5q` in
4092 *Sun\ C*)
4093 # Sun C++ 5.9
4094 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4095 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4096 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4097 ;;
4098 esac
4099 ;;
4100 esac
4101 ;;
4102 lynxos*)
4103 ;;
4104 m88k*)
4105 ;;
4106 mvs*)
4107 case $cc_basename in
4108 cxx*)
4109 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4110 ;;
4111 *)
4112 ;;
4113 esac
4114 ;;
4115 netbsd* | netbsdelf*-gnu)
4116 ;;
4117 *qnx* | *nto*)
4118 # QNX uses GNU C++, but need to define -shared option too, otherwise
4119 # it will coredump.
4120 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4121 ;;
4122 osf3* | osf4* | osf5*)
4123 case $cc_basename in
4124 KCC*)
4125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4126 ;;
4127 RCC*)
4128 # Rational C++ 2.4.1
4129 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4130 ;;
4131 cxx*)
4132 # Digital/Compaq C++
4133 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4134 # Make sure the PIC flag is empty. It appears that all Alpha
4135 # Linux and Compaq Tru64 Unix objects are PIC.
4136 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4137 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4138 ;;
4139 *)
4140 ;;
4141 esac
4142 ;;
4143 psos*)
4144 ;;
4145 solaris*)
4146 case $cc_basename in
4147 CC* | sunCC*)
4148 # Sun C++ 4.2, 5.x and Centerline C++
4149 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4150 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4151 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4152 ;;
4153 gcx*)
4154 # Green Hills C++ Compiler
4155 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4156 ;;
4157 *)
4158 ;;
4159 esac
4160 ;;
4161 sunos4*)
4162 case $cc_basename in
4163 CC*)
4164 # Sun C++ 4.x
4165 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4166 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4167 ;;
4168 lcc*)
4169 # Lucid
4170 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4171 ;;
4172 *)
4173 ;;
4174 esac
4175 ;;
4176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4177 case $cc_basename in
4178 CC*)
4179 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4180 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4181 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4182 ;;
4183 esac
4184 ;;
4185 tandem*)
4186 case $cc_basename in
4187 NCC*)
4188 # NonStop-UX NCC 3.20
4189 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4190 ;;
4191 *)
4192 ;;
4193 esac
4194 ;;
4195 vxworks*)
4196 ;;
4197 *)
4198 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4199 ;;
4200 esac
4201 fi
4202 ],
4203 [
4204 if test "$GCC" = yes; then
4205 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4206 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4207
4208 case $host_os in
4209 aix*)
4210 # All AIX code is PIC.
4211 if test "$host_cpu" = ia64; then
4212 # AIX 5 now supports IA64 processor
4213 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4214 fi
4215 ;;
4216
4217 amigaos*)
4218 case $host_cpu in
4219 powerpc)
4220 # see comment about AmigaOS4 .so support
4221 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4222 ;;
4223 m68k)
4224 # FIXME: we need at least 68020 code to build shared libraries, but
4225 # adding the `-m68020' flag to GCC prevents building anything better,
4226 # like `-m68040'.
4227 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4228 ;;
4229 esac
4230 ;;
4231
4232 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4233 # PIC is the default for these OSes.
4234 ;;
4235
4236 mingw* | cygwin* | pw32* | os2* | cegcc*)
4237 # This hack is so that the source file can tell whether it is being
4238 # built for inclusion in a dll (and should export symbols for example).
4239 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4240 # (--disable-auto-import) libraries
4241 m4_if([$1], [GCJ], [],
4242 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4243 ;;
4244
4245 darwin* | rhapsody*)
4246 # PIC is the default on this platform
4247 # Common symbols not allowed in MH_DYLIB files
4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4249 ;;
4250
4251 haiku*)
4252 # PIC is the default for Haiku.
4253 # The "-static" flag exists, but is broken.
4254 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4255 ;;
4256
4257 hpux*)
4258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4260 # sets the default TLS model and affects inlining.
4261 case $host_cpu in
4262 hppa*64*)
4263 # +Z the default
4264 ;;
4265 *)
4266 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4267 ;;
4268 esac
4269 ;;
4270
4271 interix[[3-9]]*)
4272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4273 # Instead, we relocate shared libraries at runtime.
4274 ;;
4275
4276 msdosdjgpp*)
4277 # Just because we use GCC doesn't mean we suddenly get shared libraries
4278 # on systems that don't support them.
4279 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4280 enable_shared=no
4281 ;;
4282
4283 *nto* | *qnx*)
4284 # QNX uses GNU C++, but need to define -shared option too, otherwise
4285 # it will coredump.
4286 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4287 ;;
4288
4289 sysv4*MP*)
4290 if test -d /usr/nec; then
4291 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4292 fi
4293 ;;
4294
4295 *)
4296 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4297 ;;
4298 esac
4299
4300 case $cc_basename in
4301 nvcc*) # Cuda Compiler Driver 2.2
4302 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4303 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4304 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4305 fi
4306 ;;
4307 esac
4308 else
4309 # PORTME Check for flag to pass linker flags through the system compiler.
4310 case $host_os in
4311 aix*)
4312 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4313 if test "$host_cpu" = ia64; then
4314 # AIX 5 now supports IA64 processor
4315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4316 else
4317 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4318 fi
4319 ;;
4320
4321 mingw* | cygwin* | pw32* | os2* | cegcc*)
4322 # This hack is so that the source file can tell whether it is being
4323 # built for inclusion in a dll (and should export symbols for example).
4324 m4_if([$1], [GCJ], [],
4325 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4326 ;;
4327
4328 hpux9* | hpux10* | hpux11*)
4329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4331 # not for PA HP-UX.
4332 case $host_cpu in
4333 hppa*64*|ia64*)
4334 # +Z the default
4335 ;;
4336 *)
4337 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4338 ;;
4339 esac
4340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4341 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4342 ;;
4343
4344 irix5* | irix6* | nonstopux*)
4345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4346 # PIC (with -KPIC) is the default.
4347 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4348 ;;
4349
4350 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4351 case $cc_basename in
4352 # old Intel for x86_64 which still supported -KPIC.
4353 ecc*)
4354 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4355 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4356 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4357 ;;
4358 # icc used to be incompatible with GCC.
4359 # ICC 10 doesn't accept -KPIC any more.
4360 icc* | ifort*)
4361 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4362 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4363 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4364 ;;
4365 # Lahey Fortran 8.1.
4366 lf95*)
4367 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4369 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4370 ;;
4371 nagfor*)
4372 # NAG Fortran compiler
4373 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4375 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4376 ;;
4377 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4378 # Portland Group compilers (*not* the Pentium gcc compiler,
4379 # which looks to be a dead project)
4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4383 ;;
4384 ccc*)
4385 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4386 # All Alpha code is PIC.
4387 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4388 ;;
4389 xl* | bgxl* | bgf* | mpixl*)
4390 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4391 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4393 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4394 ;;
4395 *)
4396 case `$CC -V 2>&1 | sed 5q` in
4397 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4398 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4401 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4402 ;;
4403 *Sun\ F* | *Sun*Fortran*)
4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4406 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4407 ;;
4408 *Sun\ C*)
4409 # Sun C 5.9
4410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4411 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4412 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4413 ;;
4414 *Intel*\ [[CF]]*Compiler*)
4415 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4416 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4417 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4418 ;;
4419 *Portland\ Group*)
4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4421 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4422 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4423 ;;
4424 esac
4425 ;;
4426 esac
4427 ;;
4428
4429 newsos6)
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4432 ;;
4433
4434 *nto* | *qnx*)
4435 # QNX uses GNU C++, but need to define -shared option too, otherwise
4436 # it will coredump.
4437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4438 ;;
4439
4440 osf3* | osf4* | osf5*)
4441 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4442 # All OSF/1 code is PIC.
4443 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4444 ;;
4445
4446 rdos*)
4447 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4448 ;;
4449
4450 solaris*)
4451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4452 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4453 case $cc_basename in
4454 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4456 *)
4457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4458 esac
4459 ;;
4460
4461 sunos4*)
4462 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4463 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4464 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4465 ;;
4466
4467 sysv4 | sysv4.2uw2* | sysv4.3*)
4468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4469 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4470 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4471 ;;
4472
4473 sysv4*MP*)
4474 if test -d /usr/nec ;then
4475 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4476 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4477 fi
4478 ;;
4479
4480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4481 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4482 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4483 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4484 ;;
4485
4486 unicos*)
4487 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4488 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4489 ;;
4490
4491 uts4*)
4492 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4493 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4494 ;;
4495
4496 *)
4497 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4498 ;;
4499 esac
4500 fi
4501 ])
4502 case $host_os in
4503 # For platforms which do not support PIC, -DPIC is meaningless:
4504 *djgpp*)
4505 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4506 ;;
4507 *)
4508 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4509 ;;
4510 esac
4511
4512 AC_CACHE_CHECK([for $compiler option to produce PIC],
4513 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4514 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4515 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4516
4517 #
4518 # Check to make sure the PIC flag actually works.
4519 #
4520 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4521 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4522 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4523 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4524 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4525 "" | " "*) ;;
4526 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4527 esac],
4528 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4529 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4530 fi
4531 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4532 [Additional compiler flags for building library objects])
4533
4534 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4535 [How to pass a linker flag through the compiler])
4536 #
4537 # Check to make sure the static flag actually works.
4538 #
4539 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4540 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4541 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4542 $lt_tmp_static_flag,
4543 [],
4544 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4545 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4546 [Compiler flag to prevent dynamic linking])
4547 ])# _LT_COMPILER_PIC
4548
4549
4550 # _LT_LINKER_SHLIBS([TAGNAME])
4551 # ----------------------------
4552 # See if the linker supports building shared libraries.
4553 m4_defun([_LT_LINKER_SHLIBS],
4554 [AC_REQUIRE([LT_PATH_LD])dnl
4555 AC_REQUIRE([LT_PATH_NM])dnl
4556 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4557 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4558 m4_require([_LT_DECL_EGREP])dnl
4559 m4_require([_LT_DECL_SED])dnl
4560 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4561 m4_require([_LT_TAG_COMPILER])dnl
4562 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4563 m4_if([$1], [CXX], [
4564 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4565 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4566 case $host_os in
4567 aix[[4-9]]*)
4568 # If we're using GNU nm, then we don't want the "-C" option.
4569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4570 # Also, AIX nm treats weak defined symbols like other global defined
4571 # symbols, whereas GNU nm marks them as "W".
4572 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4573 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4574 else
4575 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4576 fi
4577 ;;
4578 pw32*)
4579 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4580 ;;
4581 cygwin* | mingw* | cegcc*)
4582 case $cc_basename in
4583 cl*)
4584 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4585 ;;
4586 *)
4587 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4588 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4589 ;;
4590 esac
4591 ;;
4592 linux* | k*bsd*-gnu | gnu*)
4593 _LT_TAGVAR(link_all_deplibs, $1)=no
4594 ;;
4595 *)
4596 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4597 ;;
4598 esac
4599 ], [
4600 runpath_var=
4601 _LT_TAGVAR(allow_undefined_flag, $1)=
4602 _LT_TAGVAR(always_export_symbols, $1)=no
4603 _LT_TAGVAR(archive_cmds, $1)=
4604 _LT_TAGVAR(archive_expsym_cmds, $1)=
4605 _LT_TAGVAR(compiler_needs_object, $1)=no
4606 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4607 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4608 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4609 _LT_TAGVAR(hardcode_automatic, $1)=no
4610 _LT_TAGVAR(hardcode_direct, $1)=no
4611 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4613 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4614 _LT_TAGVAR(hardcode_minus_L, $1)=no
4615 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4616 _LT_TAGVAR(inherit_rpath, $1)=no
4617 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4618 _LT_TAGVAR(module_cmds, $1)=
4619 _LT_TAGVAR(module_expsym_cmds, $1)=
4620 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4621 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4622 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4623 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4624 # include_expsyms should be a list of space-separated symbols to be *always*
4625 # included in the symbol list
4626 _LT_TAGVAR(include_expsyms, $1)=
4627 # exclude_expsyms can be an extended regexp of symbols to exclude
4628 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4629 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4630 # as well as any symbol that contains `d'.
4631 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4633 # platforms (ab)use it in PIC code, but their linkers get confused if
4634 # the symbol is explicitly referenced. Since portable code cannot
4635 # rely on this symbol name, it's probably fine to never include it in
4636 # preloaded symbol tables.
4637 # Exclude shared library initialization/finalization symbols.
4638 dnl Note also adjust exclude_expsyms for C++ above.
4639 extract_expsyms_cmds=
4640
4641 case $host_os in
4642 cygwin* | mingw* | pw32* | cegcc*)
4643 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4644 # When not using gcc, we currently assume that we are using
4645 # Microsoft Visual C++.
4646 if test "$GCC" != yes; then
4647 with_gnu_ld=no
4648 fi
4649 ;;
4650 interix*)
4651 # we just hope/assume this is gcc and not c89 (= MSVC++)
4652 with_gnu_ld=yes
4653 ;;
4654 openbsd*)
4655 with_gnu_ld=no
4656 ;;
4657 linux* | k*bsd*-gnu | gnu*)
4658 _LT_TAGVAR(link_all_deplibs, $1)=no
4659 ;;
4660 esac
4661
4662 _LT_TAGVAR(ld_shlibs, $1)=yes
4663
4664 # On some targets, GNU ld is compatible enough with the native linker
4665 # that we're better off using the native interface for both.
4666 lt_use_gnu_ld_interface=no
4667 if test "$with_gnu_ld" = yes; then
4668 case $host_os in
4669 aix*)
4670 # The AIX port of GNU ld has always aspired to compatibility
4671 # with the native linker. However, as the warning in the GNU ld
4672 # block says, versions before 2.19.5* couldn't really create working
4673 # shared libraries, regardless of the interface used.
4674 case `$LD -v 2>&1` in
4675 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4676 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4677 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4678 *)
4679 lt_use_gnu_ld_interface=yes
4680 ;;
4681 esac
4682 ;;
4683 *)
4684 lt_use_gnu_ld_interface=yes
4685 ;;
4686 esac
4687 fi
4688
4689 if test "$lt_use_gnu_ld_interface" = yes; then
4690 # If archive_cmds runs LD, not CC, wlarc should be empty
4691 wlarc='${wl}'
4692
4693 # Set some defaults for GNU ld with shared library support. These
4694 # are reset later if shared libraries are not supported. Putting them
4695 # here allows them to be overridden if necessary.
4696 runpath_var=LD_RUN_PATH
4697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4698 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4699 # ancient GNU ld didn't support --whole-archive et. al.
4700 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4701 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4702 else
4703 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4704 fi
4705 supports_anon_versioning=no
4706 case `$LD -v 2>&1` in
4707 *GNU\ gold*) supports_anon_versioning=yes ;;
4708 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4709 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4710 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4711 *\ 2.11.*) ;; # other 2.11 versions
4712 *) supports_anon_versioning=yes ;;
4713 esac
4714
4715 # See if GNU ld supports shared libraries.
4716 case $host_os in
4717 aix[[3-9]]*)
4718 # On AIX/PPC, the GNU linker is very broken
4719 if test "$host_cpu" != ia64; then
4720 _LT_TAGVAR(ld_shlibs, $1)=no
4721 cat <<_LT_EOF 1>&2
4722
4723 *** Warning: the GNU linker, at least up to release 2.19, is reported
4724 *** to be unable to reliably create shared libraries on AIX.
4725 *** Therefore, libtool is disabling shared libraries support. If you
4726 *** really care for shared libraries, you may want to install binutils
4727 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4728 *** You will then need to restart the configuration process.
4729
4730 _LT_EOF
4731 fi
4732 ;;
4733
4734 amigaos*)
4735 case $host_cpu in
4736 powerpc)
4737 # see comment about AmigaOS4 .so support
4738 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4739 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4740 ;;
4741 m68k)
4742 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4743 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4744 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4745 ;;
4746 esac
4747 ;;
4748
4749 beos*)
4750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4751 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4753 # support --undefined. This deserves some investigation. FIXME
4754 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4755 else
4756 _LT_TAGVAR(ld_shlibs, $1)=no
4757 fi
4758 ;;
4759
4760 cygwin* | mingw* | pw32* | cegcc*)
4761 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4762 # as there is no search path for DLLs.
4763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4764 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4765 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4766 _LT_TAGVAR(always_export_symbols, $1)=no
4767 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4768 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4769 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4770
4771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4773 # If the export-symbols file already is a .def file (1st line
4774 # is EXPORTS), use it as is; otherwise, prepend...
4775 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4776 cp $export_symbols $output_objdir/$soname.def;
4777 else
4778 echo EXPORTS > $output_objdir/$soname.def;
4779 cat $export_symbols >> $output_objdir/$soname.def;
4780 fi~
4781 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4782 else
4783 _LT_TAGVAR(ld_shlibs, $1)=no
4784 fi
4785 ;;
4786
4787 haiku*)
4788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4789 _LT_TAGVAR(link_all_deplibs, $1)=yes
4790 ;;
4791
4792 interix[[3-9]]*)
4793 _LT_TAGVAR(hardcode_direct, $1)=no
4794 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4796 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4797 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4798 # Instead, shared libraries are loaded at an image base (0x10000000 by
4799 # default) and relocated if they conflict, which is a slow very memory
4800 # consuming and fragmenting process. To avoid this, we pick a random,
4801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4802 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4804 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4805 ;;
4806
4807 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4808 tmp_diet=no
4809 if test "$host_os" = linux-dietlibc; then
4810 case $cc_basename in
4811 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4812 esac
4813 fi
4814 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4815 && test "$tmp_diet" = no
4816 then
4817 tmp_addflag=' $pic_flag'
4818 tmp_sharedflag='-shared'
4819 case $cc_basename,$host_cpu in
4820 pgcc*) # Portland Group C compiler
4821 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4822 tmp_addflag=' $pic_flag'
4823 ;;
4824 pgf77* | pgf90* | pgf95* | pgfortran*)
4825 # Portland Group f77 and f90 compilers
4826 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4827 tmp_addflag=' $pic_flag -Mnomain' ;;
4828 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4829 tmp_addflag=' -i_dynamic' ;;
4830 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4831 tmp_addflag=' -i_dynamic -nofor_main' ;;
4832 ifc* | ifort*) # Intel Fortran compiler
4833 tmp_addflag=' -nofor_main' ;;
4834 lf95*) # Lahey Fortran 8.1
4835 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4836 tmp_sharedflag='--shared' ;;
4837 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4838 tmp_sharedflag='-qmkshrobj'
4839 tmp_addflag= ;;
4840 nvcc*) # Cuda Compiler Driver 2.2
4841 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4842 _LT_TAGVAR(compiler_needs_object, $1)=yes
4843 ;;
4844 esac
4845 case `$CC -V 2>&1 | sed 5q` in
4846 *Sun\ C*) # Sun C 5.9
4847 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4848 _LT_TAGVAR(compiler_needs_object, $1)=yes
4849 tmp_sharedflag='-G' ;;
4850 *Sun\ F*) # Sun Fortran 8.3
4851 tmp_sharedflag='-G' ;;
4852 esac
4853 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4854
4855 if test "x$supports_anon_versioning" = xyes; then
4856 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4858 echo "local: *; };" >> $output_objdir/$libname.ver~
4859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4860 fi
4861
4862 case $cc_basename in
4863 xlf* | bgf* | bgxlf* | mpixlf*)
4864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4865 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4867 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4868 if test "x$supports_anon_versioning" = xyes; then
4869 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4871 echo "local: *; };" >> $output_objdir/$libname.ver~
4872 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4873 fi
4874 ;;
4875 esac
4876 else
4877 _LT_TAGVAR(ld_shlibs, $1)=no
4878 fi
4879 ;;
4880
4881 netbsd* | netbsdelf*-gnu)
4882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4883 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4884 wlarc=
4885 else
4886 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4887 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4888 fi
4889 ;;
4890
4891 solaris*)
4892 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4893 _LT_TAGVAR(ld_shlibs, $1)=no
4894 cat <<_LT_EOF 1>&2
4895
4896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4897 *** create shared libraries on Solaris systems. Therefore, libtool
4898 *** is disabling shared libraries support. We urge you to upgrade GNU
4899 *** binutils to release 2.9.1 or newer. Another option is to modify
4900 *** your PATH or compiler configuration so that the native linker is
4901 *** used, and then restart.
4902
4903 _LT_EOF
4904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4906 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4907 else
4908 _LT_TAGVAR(ld_shlibs, $1)=no
4909 fi
4910 ;;
4911
4912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4913 case `$LD -v 2>&1` in
4914 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4915 _LT_TAGVAR(ld_shlibs, $1)=no
4916 cat <<_LT_EOF 1>&2
4917
4918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4919 *** reliably create shared libraries on SCO systems. Therefore, libtool
4920 *** is disabling shared libraries support. We urge you to upgrade GNU
4921 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4922 *** your PATH or compiler configuration so that the native linker is
4923 *** used, and then restart.
4924
4925 _LT_EOF
4926 ;;
4927 *)
4928 # For security reasons, it is highly recommended that you always
4929 # use absolute paths for naming shared libraries, and exclude the
4930 # DT_RUNPATH tag from executables and libraries. But doing so
4931 # requires that you compile everything twice, which is a pain.
4932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4933 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4934 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4935 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4936 else
4937 _LT_TAGVAR(ld_shlibs, $1)=no
4938 fi
4939 ;;
4940 esac
4941 ;;
4942
4943 sunos4*)
4944 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4945 wlarc=
4946 _LT_TAGVAR(hardcode_direct, $1)=yes
4947 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4948 ;;
4949
4950 *)
4951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4952 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4953 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4954 else
4955 _LT_TAGVAR(ld_shlibs, $1)=no
4956 fi
4957 ;;
4958 esac
4959
4960 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4961 runpath_var=
4962 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4963 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4964 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4965 fi
4966 else
4967 # PORTME fill in a description of your system's linker (not GNU ld)
4968 case $host_os in
4969 aix3*)
4970 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4971 _LT_TAGVAR(always_export_symbols, $1)=yes
4972 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4973 # Note: this linker hardcodes the directories in LIBPATH if there
4974 # are no directories specified by -L.
4975 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4976 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4977 # Neither direct hardcoding nor static linking is supported with a
4978 # broken collect2.
4979 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4980 fi
4981 ;;
4982
4983 aix[[4-9]]*)
4984 if test "$host_cpu" = ia64; then
4985 # On IA64, the linker does run time linking by default, so we don't
4986 # have to do anything special.
4987 aix_use_runtimelinking=no
4988 exp_sym_flag='-Bexport'
4989 no_entry_flag=""
4990 else
4991 # If we're using GNU nm, then we don't want the "-C" option.
4992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4993 # Also, AIX nm treats weak defined symbols like other global
4994 # defined symbols, whereas GNU nm marks them as "W".
4995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4996 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4997 else
4998 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4999 fi
5000 aix_use_runtimelinking=no
5001
5002 # Test if we are trying to use run time linking or normal
5003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5004 # need to do runtime linking.
5005 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5006 for ld_flag in $LDFLAGS; do
5007 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5008 aix_use_runtimelinking=yes
5009 break
5010 fi
5011 done
5012 ;;
5013 esac
5014
5015 exp_sym_flag='-bexport'
5016 no_entry_flag='-bnoentry'
5017 fi
5018
5019 # When large executables or shared objects are built, AIX ld can
5020 # have problems creating the table of contents. If linking a library
5021 # or program results in "error TOC overflow" add -mminimal-toc to
5022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5024
5025 _LT_TAGVAR(archive_cmds, $1)=''
5026 _LT_TAGVAR(hardcode_direct, $1)=yes
5027 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5028 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5029 _LT_TAGVAR(link_all_deplibs, $1)=yes
5030 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5031
5032 if test "$GCC" = yes; then
5033 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5034 # We only want to do this on AIX 4.2 and lower, the check
5035 # below for broken collect2 doesn't work under 4.3+
5036 collect2name=`${CC} -print-prog-name=collect2`
5037 if test -f "$collect2name" &&
5038 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5039 then
5040 # We have reworked collect2
5041 :
5042 else
5043 # We have old collect2
5044 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5045 # It fails to find uninstalled libraries when the uninstalled
5046 # path is not listed in the libpath. Setting hardcode_minus_L
5047 # to unsupported forces relinking
5048 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5050 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5051 fi
5052 ;;
5053 esac
5054 shared_flag='-shared'
5055 if test "$aix_use_runtimelinking" = yes; then
5056 shared_flag="$shared_flag "'${wl}-G'
5057 fi
5058 _LT_TAGVAR(link_all_deplibs, $1)=no
5059 else
5060 # not using gcc
5061 if test "$host_cpu" = ia64; then
5062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5063 # chokes on -Wl,-G. The following line is correct:
5064 shared_flag='-G'
5065 else
5066 if test "$aix_use_runtimelinking" = yes; then
5067 shared_flag='${wl}-G'
5068 else
5069 shared_flag='${wl}-bM:SRE'
5070 fi
5071 fi
5072 fi
5073
5074 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5075 # It seems that -bexpall does not export symbols beginning with
5076 # underscore (_), so it is better to generate a list of symbols to export.
5077 _LT_TAGVAR(always_export_symbols, $1)=yes
5078 if test "$aix_use_runtimelinking" = yes; then
5079 # Warning - without using the other runtime loading flags (-brtl),
5080 # -berok will link without error, but may produce a broken library.
5081 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5082 # Determine the default libpath from the value encoded in an
5083 # empty executable.
5084 _LT_SYS_MODULE_PATH_AIX([$1])
5085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5086 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5087 else
5088 if test "$host_cpu" = ia64; then
5089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5090 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5091 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5092 else
5093 # Determine the default libpath from the value encoded in an
5094 # empty executable.
5095 _LT_SYS_MODULE_PATH_AIX([$1])
5096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5097 # Warning - without using the other run time loading flags,
5098 # -berok will link without error, but may produce a broken library.
5099 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5100 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5101 if test "$with_gnu_ld" = yes; then
5102 # We only use this code for GNU lds that support --whole-archive.
5103 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5104 else
5105 # Exported symbols can be pulled into shared objects from archives
5106 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5107 fi
5108 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5109 # This is similar to how AIX traditionally builds its shared libraries.
5110 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5111 fi
5112 fi
5113 ;;
5114
5115 amigaos*)
5116 case $host_cpu in
5117 powerpc)
5118 # see comment about AmigaOS4 .so support
5119 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5120 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5121 ;;
5122 m68k)
5123 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5125 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5126 ;;
5127 esac
5128 ;;
5129
5130 bsdi[[45]]*)
5131 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5132 ;;
5133
5134 cygwin* | mingw* | pw32* | cegcc*)
5135 # When not using gcc, we currently assume that we are using
5136 # Microsoft Visual C++.
5137 # hardcode_libdir_flag_spec is actually meaningless, as there is
5138 # no search path for DLLs.
5139 case $cc_basename in
5140 cl*)
5141 # Native MSVC
5142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5143 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5144 _LT_TAGVAR(always_export_symbols, $1)=yes
5145 _LT_TAGVAR(file_list_spec, $1)='@'
5146 # Tell ltmain to make .lib files, not .a files.
5147 libext=lib
5148 # Tell ltmain to make .dll files, not .so files.
5149 shrext_cmds=".dll"
5150 # FIXME: Setting linknames here is a bad hack.
5151 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5152 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5153 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5154 else
5155 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5156 fi~
5157 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5158 linknames='
5159 # The linker will not automatically build a static lib if we build a DLL.
5160 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5163 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5164 # Don't use ranlib
5165 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5166 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5167 lt_tool_outputfile="@TOOL_OUTPUT@"~
5168 case $lt_outputfile in
5169 *.exe|*.EXE) ;;
5170 *)
5171 lt_outputfile="$lt_outputfile.exe"
5172 lt_tool_outputfile="$lt_tool_outputfile.exe"
5173 ;;
5174 esac~
5175 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5176 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5177 $RM "$lt_outputfile.manifest";
5178 fi'
5179 ;;
5180 *)
5181 # Assume MSVC wrapper
5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5183 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5184 # Tell ltmain to make .lib files, not .a files.
5185 libext=lib
5186 # Tell ltmain to make .dll files, not .so files.
5187 shrext_cmds=".dll"
5188 # FIXME: Setting linknames here is a bad hack.
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5190 # The linker will automatically build a .lib file if we build a DLL.
5191 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5192 # FIXME: Should let the user specify the lib program.
5193 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5194 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5195 ;;
5196 esac
5197 ;;
5198
5199 darwin* | rhapsody*)
5200 _LT_DARWIN_LINKER_FEATURES($1)
5201 ;;
5202
5203 dgux*)
5204 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5206 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5207 ;;
5208
5209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5210 # support. Future versions do this automatically, but an explicit c++rt0.o
5211 # does not break anything, and helps significantly (at the cost of a little
5212 # extra space).
5213 freebsd2.2*)
5214 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5215 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5216 _LT_TAGVAR(hardcode_direct, $1)=yes
5217 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5218 ;;
5219
5220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5221 freebsd2.*)
5222 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5223 _LT_TAGVAR(hardcode_direct, $1)=yes
5224 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5225 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5226 ;;
5227
5228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5229 freebsd* | dragonfly*)
5230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5232 _LT_TAGVAR(hardcode_direct, $1)=yes
5233 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5234 ;;
5235
5236 hpux9*)
5237 if test "$GCC" = yes; then
5238 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5239 else
5240 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5241 fi
5242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5243 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5244 _LT_TAGVAR(hardcode_direct, $1)=yes
5245
5246 # hardcode_minus_L: Not really in the search PATH,
5247 # but as the default location of the library.
5248 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5249 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5250 ;;
5251
5252 hpux10*)
5253 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5255 else
5256 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5257 fi
5258 if test "$with_gnu_ld" = no; then
5259 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5260 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5261 _LT_TAGVAR(hardcode_direct, $1)=yes
5262 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5263 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5264 # hardcode_minus_L: Not really in the search PATH,
5265 # but as the default location of the library.
5266 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5267 fi
5268 ;;
5269
5270 hpux11*)
5271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5272 case $host_cpu in
5273 hppa*64*)
5274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5275 ;;
5276 ia64*)
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5278 ;;
5279 *)
5280 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5281 ;;
5282 esac
5283 else
5284 case $host_cpu in
5285 hppa*64*)
5286 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5287 ;;
5288 ia64*)
5289 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5290 ;;
5291 *)
5292 m4_if($1, [], [
5293 # Older versions of the 11.00 compiler do not understand -b yet
5294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5295 _LT_LINKER_OPTION([if $CC understands -b],
5296 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5297 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5298 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5299 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5300 ;;
5301 esac
5302 fi
5303 if test "$with_gnu_ld" = no; then
5304 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5305 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5306
5307 case $host_cpu in
5308 hppa*64*|ia64*)
5309 _LT_TAGVAR(hardcode_direct, $1)=no
5310 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5311 ;;
5312 *)
5313 _LT_TAGVAR(hardcode_direct, $1)=yes
5314 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5315 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5316
5317 # hardcode_minus_L: Not really in the search PATH,
5318 # but as the default location of the library.
5319 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5320 ;;
5321 esac
5322 fi
5323 ;;
5324
5325 irix5* | irix6* | nonstopux*)
5326 if test "$GCC" = yes; then
5327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5328 # Try to use the -exported_symbol ld option, if it does not
5329 # work, assume that -exports_file does not work either and
5330 # implicitly export all symbols.
5331 # This should be the same for all languages, so no per-tag cache variable.
5332 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5333 [lt_cv_irix_exported_symbol],
5334 [save_LDFLAGS="$LDFLAGS"
5335 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5336 AC_LINK_IFELSE(
5337 [AC_LANG_SOURCE(
5338 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5339 [C++], [[int foo (void) { return 0; }]],
5340 [Fortran 77], [[
5341 subroutine foo
5342 end]],
5343 [Fortran], [[
5344 subroutine foo
5345 end]])])],
5346 [lt_cv_irix_exported_symbol=yes],
5347 [lt_cv_irix_exported_symbol=no])
5348 LDFLAGS="$save_LDFLAGS"])
5349 if test "$lt_cv_irix_exported_symbol" = yes; then
5350 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5351 fi
5352 else
5353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5354 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5355 fi
5356 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5358 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5359 _LT_TAGVAR(inherit_rpath, $1)=yes
5360 _LT_TAGVAR(link_all_deplibs, $1)=yes
5361 ;;
5362
5363 netbsd* | netbsdelf*-gnu)
5364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5365 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5366 else
5367 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5368 fi
5369 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5370 _LT_TAGVAR(hardcode_direct, $1)=yes
5371 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5372 ;;
5373
5374 newsos6)
5375 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5376 _LT_TAGVAR(hardcode_direct, $1)=yes
5377 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5378 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5379 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5380 ;;
5381
5382 *nto* | *qnx*)
5383 ;;
5384
5385 openbsd*)
5386 if test -f /usr/libexec/ld.so; then
5387 _LT_TAGVAR(hardcode_direct, $1)=yes
5388 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5389 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5391 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5392 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5394 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5395 else
5396 case $host_os in
5397 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5398 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5400 ;;
5401 *)
5402 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5403 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5404 ;;
5405 esac
5406 fi
5407 else
5408 _LT_TAGVAR(ld_shlibs, $1)=no
5409 fi
5410 ;;
5411
5412 os2*)
5413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5414 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5415 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5416 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5417 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5418 ;;
5419
5420 osf3*)
5421 if test "$GCC" = yes; then
5422 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5423 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5424 else
5425 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5427 fi
5428 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5430 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5431 ;;
5432
5433 osf4* | osf5*) # as osf3* with the addition of -msym flag
5434 if test "$GCC" = yes; then
5435 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5438 else
5439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5441 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5442 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5443
5444 # Both c and cxx compiler support -rpath directly
5445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5446 fi
5447 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5448 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5449 ;;
5450
5451 solaris*)
5452 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5453 if test "$GCC" = yes; then
5454 wlarc='${wl}'
5455 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5456 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5457 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5458 else
5459 case `$CC -V 2>&1` in
5460 *"Compilers 5.0"*)
5461 wlarc=''
5462 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5463 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5464 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5465 ;;
5466 *)
5467 wlarc='${wl}'
5468 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5469 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5470 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5471 ;;
5472 esac
5473 fi
5474 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5475 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5476 case $host_os in
5477 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5478 *)
5479 # The compiler driver will combine and reorder linker options,
5480 # but understands `-z linker_flag'. GCC discards it without `$wl',
5481 # but is careful enough not to reorder.
5482 # Supported since Solaris 2.6 (maybe 2.5.1?)
5483 if test "$GCC" = yes; then
5484 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5485 else
5486 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5487 fi
5488 ;;
5489 esac
5490 _LT_TAGVAR(link_all_deplibs, $1)=yes
5491 ;;
5492
5493 sunos4*)
5494 if test "x$host_vendor" = xsequent; then
5495 # Use $CC to link under sequent, because it throws in some extra .o
5496 # files that make .init and .fini sections work.
5497 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5498 else
5499 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5500 fi
5501 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5502 _LT_TAGVAR(hardcode_direct, $1)=yes
5503 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5504 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5505 ;;
5506
5507 sysv4)
5508 case $host_vendor in
5509 sni)
5510 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5511 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5512 ;;
5513 siemens)
5514 ## LD is ld it makes a PLAMLIB
5515 ## CC just makes a GrossModule.
5516 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5517 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5518 _LT_TAGVAR(hardcode_direct, $1)=no
5519 ;;
5520 motorola)
5521 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5522 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5523 ;;
5524 esac
5525 runpath_var='LD_RUN_PATH'
5526 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5527 ;;
5528
5529 sysv4.3*)
5530 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5531 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5532 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5533 ;;
5534
5535 sysv4*MP*)
5536 if test -d /usr/nec; then
5537 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5539 runpath_var=LD_RUN_PATH
5540 hardcode_runpath_var=yes
5541 _LT_TAGVAR(ld_shlibs, $1)=yes
5542 fi
5543 ;;
5544
5545 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5546 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5547 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5548 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5549 runpath_var='LD_RUN_PATH'
5550
5551 if test "$GCC" = yes; then
5552 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5553 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5554 else
5555 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5556 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5557 fi
5558 ;;
5559
5560 sysv5* | sco3.2v5* | sco5v6*)
5561 # Note: We can NOT use -z defs as we might desire, because we do not
5562 # link with -lc, and that would cause any symbols used from libc to
5563 # always be unresolved, which means just about no library would
5564 # ever link correctly. If we're not using GNU ld we use -z text
5565 # though, which does catch some bad symbols but isn't as heavy-handed
5566 # as -z defs.
5567 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5568 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5569 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5570 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5572 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5573 _LT_TAGVAR(link_all_deplibs, $1)=yes
5574 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5575 runpath_var='LD_RUN_PATH'
5576
5577 if test "$GCC" = yes; then
5578 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5579 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5580 else
5581 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5582 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5583 fi
5584 ;;
5585
5586 uts4*)
5587 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5588 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5589 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5590 ;;
5591
5592 *)
5593 _LT_TAGVAR(ld_shlibs, $1)=no
5594 ;;
5595 esac
5596
5597 if test x$host_vendor = xsni; then
5598 case $host in
5599 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5600 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5601 ;;
5602 esac
5603 fi
5604 fi
5605 ])
5606 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5607 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5608
5609 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5610
5611 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5612 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5613 _LT_DECL([], [extract_expsyms_cmds], [2],
5614 [The commands to extract the exported symbol list from a shared archive])
5615
5616 #
5617 # Do we need to explicitly link libc?
5618 #
5619 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5620 x|xyes)
5621 # Assume -lc should be added
5622 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5623
5624 if test "$enable_shared" = yes && test "$GCC" = yes; then
5625 case $_LT_TAGVAR(archive_cmds, $1) in
5626 *'~'*)
5627 # FIXME: we may have to deal with multi-command sequences.
5628 ;;
5629 '$CC '*)
5630 # Test whether the compiler implicitly links with -lc since on some
5631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5632 # to ld, don't add -lc before -lgcc.
5633 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5634 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5635 [$RM conftest*
5636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5637
5638 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5639 soname=conftest
5640 lib=conftest
5641 libobjs=conftest.$ac_objext
5642 deplibs=
5643 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5644 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5645 compiler_flags=-v
5646 linker_flags=-v
5647 verstring=
5648 output_objdir=.
5649 libname=conftest
5650 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5651 _LT_TAGVAR(allow_undefined_flag, $1)=
5652 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5653 then
5654 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5655 else
5656 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5657 fi
5658 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5659 else
5660 cat conftest.err 1>&5
5661 fi
5662 $RM conftest*
5663 ])
5664 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5665 ;;
5666 esac
5667 fi
5668 ;;
5669 esac
5670
5671 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5672 [Whether or not to add -lc for building shared libraries])
5673 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5674 [enable_shared_with_static_runtimes], [0],
5675 [Whether or not to disallow shared libs when runtime libs are static])
5676 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5677 [Compiler flag to allow reflexive dlopens])
5678 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5679 [Compiler flag to generate shared objects directly from archives])
5680 _LT_TAGDECL([], [compiler_needs_object], [1],
5681 [Whether the compiler copes with passing no objects directly])
5682 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5683 [Create an old-style archive from a shared archive])
5684 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5685 [Create a temporary old-style archive to link instead of a shared archive])
5686 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5687 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5688 _LT_TAGDECL([], [module_cmds], [2],
5689 [Commands used to build a loadable module if different from building
5690 a shared archive.])
5691 _LT_TAGDECL([], [module_expsym_cmds], [2])
5692 _LT_TAGDECL([], [with_gnu_ld], [1],
5693 [Whether we are building with GNU ld or not])
5694 _LT_TAGDECL([], [allow_undefined_flag], [1],
5695 [Flag that allows shared libraries with undefined symbols to be built])
5696 _LT_TAGDECL([], [no_undefined_flag], [1],
5697 [Flag that enforces no undefined symbols])
5698 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5699 [Flag to hardcode $libdir into a binary during linking.
5700 This must work even if $libdir does not exist])
5701 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5702 [Whether we need a single "-rpath" flag with a separated argument])
5703 _LT_TAGDECL([], [hardcode_direct], [0],
5704 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5705 DIR into the resulting binary])
5706 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5707 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5708 DIR into the resulting binary and the resulting library dependency is
5709 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5710 library is relocated])
5711 _LT_TAGDECL([], [hardcode_minus_L], [0],
5712 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5713 into the resulting binary])
5714 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5715 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5716 into the resulting binary])
5717 _LT_TAGDECL([], [hardcode_automatic], [0],
5718 [Set to "yes" if building a shared library automatically hardcodes DIR
5719 into the library and all subsequent libraries and executables linked
5720 against it])
5721 _LT_TAGDECL([], [inherit_rpath], [0],
5722 [Set to yes if linker adds runtime paths of dependent libraries
5723 to runtime path list])
5724 _LT_TAGDECL([], [link_all_deplibs], [0],
5725 [Whether libtool must link a program against all its dependency libraries])
5726 _LT_TAGDECL([], [always_export_symbols], [0],
5727 [Set to "yes" if exported symbols are required])
5728 _LT_TAGDECL([], [export_symbols_cmds], [2],
5729 [The commands to list exported symbols])
5730 _LT_TAGDECL([], [exclude_expsyms], [1],
5731 [Symbols that should not be listed in the preloaded symbols])
5732 _LT_TAGDECL([], [include_expsyms], [1],
5733 [Symbols that must always be exported])
5734 _LT_TAGDECL([], [prelink_cmds], [2],
5735 [Commands necessary for linking programs (against libraries) with templates])
5736 _LT_TAGDECL([], [postlink_cmds], [2],
5737 [Commands necessary for finishing linking programs])
5738 _LT_TAGDECL([], [file_list_spec], [1],
5739 [Specify filename containing input files])
5740 dnl FIXME: Not yet implemented
5741 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5742 dnl [Compiler flag to generate thread safe objects])
5743 ])# _LT_LINKER_SHLIBS
5744
5745
5746 # _LT_LANG_C_CONFIG([TAG])
5747 # ------------------------
5748 # Ensure that the configuration variables for a C compiler are suitably
5749 # defined. These variables are subsequently used by _LT_CONFIG to write
5750 # the compiler configuration to `libtool'.
5751 m4_defun([_LT_LANG_C_CONFIG],
5752 [m4_require([_LT_DECL_EGREP])dnl
5753 lt_save_CC="$CC"
5754 AC_LANG_PUSH(C)
5755
5756 # Source file extension for C test sources.
5757 ac_ext=c
5758
5759 # Object file extension for compiled C test sources.
5760 objext=o
5761 _LT_TAGVAR(objext, $1)=$objext
5762
5763 # Code to be used in simple compile tests
5764 lt_simple_compile_test_code="int some_variable = 0;"
5765
5766 # Code to be used in simple link tests
5767 lt_simple_link_test_code='int main(){return(0);}'
5768
5769 _LT_TAG_COMPILER
5770 # Save the default compiler, since it gets overwritten when the other
5771 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5772 compiler_DEFAULT=$CC
5773
5774 # save warnings/boilerplate of simple test code
5775 _LT_COMPILER_BOILERPLATE
5776 _LT_LINKER_BOILERPLATE
5777
5778 ## CAVEAT EMPTOR:
5779 ## There is no encapsulation within the following macros, do not change
5780 ## the running order or otherwise move them around unless you know exactly
5781 ## what you are doing...
5782 if test -n "$compiler"; then
5783 _LT_COMPILER_NO_RTTI($1)
5784 _LT_COMPILER_PIC($1)
5785 _LT_COMPILER_C_O($1)
5786 _LT_COMPILER_FILE_LOCKS($1)
5787 _LT_LINKER_SHLIBS($1)
5788 _LT_SYS_DYNAMIC_LINKER($1)
5789 _LT_LINKER_HARDCODE_LIBPATH($1)
5790 LT_SYS_DLOPEN_SELF
5791 _LT_CMD_STRIPLIB
5792
5793 # Report which library types will actually be built
5794 AC_MSG_CHECKING([if libtool supports shared libraries])
5795 AC_MSG_RESULT([$can_build_shared])
5796
5797 AC_MSG_CHECKING([whether to build shared libraries])
5798 test "$can_build_shared" = "no" && enable_shared=no
5799
5800 # On AIX, shared libraries and static libraries use the same namespace, and
5801 # are all built from PIC.
5802 case $host_os in
5803 aix3*)
5804 test "$enable_shared" = yes && enable_static=no
5805 if test -n "$RANLIB"; then
5806 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5807 postinstall_cmds='$RANLIB $lib'
5808 fi
5809 ;;
5810
5811 aix[[4-9]]*)
5812 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5813 test "$enable_shared" = yes && enable_static=no
5814 fi
5815 ;;
5816 esac
5817 AC_MSG_RESULT([$enable_shared])
5818
5819 AC_MSG_CHECKING([whether to build static libraries])
5820 # Make sure either enable_shared or enable_static is yes.
5821 test "$enable_shared" = yes || enable_static=yes
5822 AC_MSG_RESULT([$enable_static])
5823
5824 _LT_CONFIG($1)
5825 fi
5826 AC_LANG_POP
5827 CC="$lt_save_CC"
5828 ])# _LT_LANG_C_CONFIG
5829
5830
5831 # _LT_LANG_CXX_CONFIG([TAG])
5832 # --------------------------
5833 # Ensure that the configuration variables for a C++ compiler are suitably
5834 # defined. These variables are subsequently used by _LT_CONFIG to write
5835 # the compiler configuration to `libtool'.
5836 m4_defun([_LT_LANG_CXX_CONFIG],
5837 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5838 m4_require([_LT_DECL_EGREP])dnl
5839 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5840 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5841 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5842 (test "X$CXX" != "Xg++"))) ; then
5843 AC_PROG_CXXCPP
5844 else
5845 _lt_caught_CXX_error=yes
5846 fi
5847
5848 AC_LANG_PUSH(C++)
5849 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5850 _LT_TAGVAR(allow_undefined_flag, $1)=
5851 _LT_TAGVAR(always_export_symbols, $1)=no
5852 _LT_TAGVAR(archive_expsym_cmds, $1)=
5853 _LT_TAGVAR(compiler_needs_object, $1)=no
5854 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5855 _LT_TAGVAR(hardcode_direct, $1)=no
5856 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5858 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5859 _LT_TAGVAR(hardcode_minus_L, $1)=no
5860 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5861 _LT_TAGVAR(hardcode_automatic, $1)=no
5862 _LT_TAGVAR(inherit_rpath, $1)=no
5863 _LT_TAGVAR(module_cmds, $1)=
5864 _LT_TAGVAR(module_expsym_cmds, $1)=
5865 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5866 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5867 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5868 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5869 _LT_TAGVAR(no_undefined_flag, $1)=
5870 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5871 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5872
5873 # Source file extension for C++ test sources.
5874 ac_ext=cpp
5875
5876 # Object file extension for compiled C++ test sources.
5877 objext=o
5878 _LT_TAGVAR(objext, $1)=$objext
5879
5880 # No sense in running all these tests if we already determined that
5881 # the CXX compiler isn't working. Some variables (like enable_shared)
5882 # are currently assumed to apply to all compilers on this platform,
5883 # and will be corrupted by setting them based on a non-working compiler.
5884 if test "$_lt_caught_CXX_error" != yes; then
5885 # Code to be used in simple compile tests
5886 lt_simple_compile_test_code="int some_variable = 0;"
5887
5888 # Code to be used in simple link tests
5889 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5890
5891 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5892 _LT_TAG_COMPILER
5893
5894 # save warnings/boilerplate of simple test code
5895 _LT_COMPILER_BOILERPLATE
5896 _LT_LINKER_BOILERPLATE
5897
5898 # Allow CC to be a program name with arguments.
5899 lt_save_CC=$CC
5900 lt_save_CFLAGS=$CFLAGS
5901 lt_save_LD=$LD
5902 lt_save_GCC=$GCC
5903 GCC=$GXX
5904 lt_save_with_gnu_ld=$with_gnu_ld
5905 lt_save_path_LD=$lt_cv_path_LD
5906 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5907 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5908 else
5909 $as_unset lt_cv_prog_gnu_ld
5910 fi
5911 if test -n "${lt_cv_path_LDCXX+set}"; then
5912 lt_cv_path_LD=$lt_cv_path_LDCXX
5913 else
5914 $as_unset lt_cv_path_LD
5915 fi
5916 test -z "${LDCXX+set}" || LD=$LDCXX
5917 CC=${CXX-"c++"}
5918 CFLAGS=$CXXFLAGS
5919 compiler=$CC
5920 _LT_TAGVAR(compiler, $1)=$CC
5921 _LT_CC_BASENAME([$compiler])
5922
5923 if test -n "$compiler"; then
5924 # We don't want -fno-exception when compiling C++ code, so set the
5925 # no_builtin_flag separately
5926 if test "$GXX" = yes; then
5927 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5928 else
5929 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5930 fi
5931
5932 if test "$GXX" = yes; then
5933 # Set up default GNU C++ configuration
5934
5935 LT_PATH_LD
5936
5937 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5938 # archiving commands below assume that GNU ld is being used.
5939 if test "$with_gnu_ld" = yes; then
5940 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5941 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5942
5943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5944 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5945
5946 # If archive_cmds runs LD, not CC, wlarc should be empty
5947 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5948 # investigate it a little bit more. (MM)
5949 wlarc='${wl}'
5950
5951 # ancient GNU ld didn't support --whole-archive et. al.
5952 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5953 $GREP 'no-whole-archive' > /dev/null; then
5954 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5955 else
5956 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5957 fi
5958 else
5959 with_gnu_ld=no
5960 wlarc=
5961
5962 # A generic and very simple default shared library creation
5963 # command for GNU C++ for the case where it uses the native
5964 # linker, instead of GNU ld. If possible, this setting should
5965 # overridden to take advantage of the native linker features on
5966 # the platform it is being used on.
5967 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5968 fi
5969
5970 # Commands to make compiler produce verbose output that lists
5971 # what "hidden" libraries, object files and flags are used when
5972 # linking a shared library.
5973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5974
5975 else
5976 GXX=no
5977 with_gnu_ld=no
5978 wlarc=
5979 fi
5980
5981 # PORTME: fill in a description of your system's C++ link characteristics
5982 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5983 _LT_TAGVAR(ld_shlibs, $1)=yes
5984 case $host_os in
5985 aix3*)
5986 # FIXME: insert proper C++ library support
5987 _LT_TAGVAR(ld_shlibs, $1)=no
5988 ;;
5989 aix[[4-9]]*)
5990 if test "$host_cpu" = ia64; then
5991 # On IA64, the linker does run time linking by default, so we don't
5992 # have to do anything special.
5993 aix_use_runtimelinking=no
5994 exp_sym_flag='-Bexport'
5995 no_entry_flag=""
5996 else
5997 aix_use_runtimelinking=no
5998
5999 # Test if we are trying to use run time linking or normal
6000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6001 # need to do runtime linking.
6002 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6003 for ld_flag in $LDFLAGS; do
6004 case $ld_flag in
6005 *-brtl*)
6006 aix_use_runtimelinking=yes
6007 break
6008 ;;
6009 esac
6010 done
6011 ;;
6012 esac
6013
6014 exp_sym_flag='-bexport'
6015 no_entry_flag='-bnoentry'
6016 fi
6017
6018 # When large executables or shared objects are built, AIX ld can
6019 # have problems creating the table of contents. If linking a library
6020 # or program results in "error TOC overflow" add -mminimal-toc to
6021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6023
6024 _LT_TAGVAR(archive_cmds, $1)=''
6025 _LT_TAGVAR(hardcode_direct, $1)=yes
6026 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6027 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6028 _LT_TAGVAR(link_all_deplibs, $1)=yes
6029 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6030
6031 if test "$GXX" = yes; then
6032 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6033 # We only want to do this on AIX 4.2 and lower, the check
6034 # below for broken collect2 doesn't work under 4.3+
6035 collect2name=`${CC} -print-prog-name=collect2`
6036 if test -f "$collect2name" &&
6037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6038 then
6039 # We have reworked collect2
6040 :
6041 else
6042 # We have old collect2
6043 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6044 # It fails to find uninstalled libraries when the uninstalled
6045 # path is not listed in the libpath. Setting hardcode_minus_L
6046 # to unsupported forces relinking
6047 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6049 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6050 fi
6051 esac
6052 shared_flag='-shared'
6053 if test "$aix_use_runtimelinking" = yes; then
6054 shared_flag="$shared_flag "'${wl}-G'
6055 fi
6056 else
6057 # not using gcc
6058 if test "$host_cpu" = ia64; then
6059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6060 # chokes on -Wl,-G. The following line is correct:
6061 shared_flag='-G'
6062 else
6063 if test "$aix_use_runtimelinking" = yes; then
6064 shared_flag='${wl}-G'
6065 else
6066 shared_flag='${wl}-bM:SRE'
6067 fi
6068 fi
6069 fi
6070
6071 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6072 # It seems that -bexpall does not export symbols beginning with
6073 # underscore (_), so it is better to generate a list of symbols to
6074 # export.
6075 _LT_TAGVAR(always_export_symbols, $1)=yes
6076 if test "$aix_use_runtimelinking" = yes; then
6077 # Warning - without using the other runtime loading flags (-brtl),
6078 # -berok will link without error, but may produce a broken library.
6079 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6080 # Determine the default libpath from the value encoded in an empty
6081 # executable.
6082 _LT_SYS_MODULE_PATH_AIX([$1])
6083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6084
6085 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6086 else
6087 if test "$host_cpu" = ia64; then
6088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6089 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6090 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6091 else
6092 # Determine the default libpath from the value encoded in an
6093 # empty executable.
6094 _LT_SYS_MODULE_PATH_AIX([$1])
6095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6096 # Warning - without using the other run time loading flags,
6097 # -berok will link without error, but may produce a broken library.
6098 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6099 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6100 if test "$with_gnu_ld" = yes; then
6101 # We only use this code for GNU lds that support --whole-archive.
6102 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6103 else
6104 # Exported symbols can be pulled into shared objects from archives
6105 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6106 fi
6107 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6108 # This is similar to how AIX traditionally builds its shared
6109 # libraries.
6110 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6111 fi
6112 fi
6113 ;;
6114
6115 beos*)
6116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6117 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6119 # support --undefined. This deserves some investigation. FIXME
6120 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6121 else
6122 _LT_TAGVAR(ld_shlibs, $1)=no
6123 fi
6124 ;;
6125
6126 chorus*)
6127 case $cc_basename in
6128 *)
6129 # FIXME: insert proper C++ library support
6130 _LT_TAGVAR(ld_shlibs, $1)=no
6131 ;;
6132 esac
6133 ;;
6134
6135 cygwin* | mingw* | pw32* | cegcc*)
6136 case $GXX,$cc_basename in
6137 ,cl* | no,cl*)
6138 # Native MSVC
6139 # hardcode_libdir_flag_spec is actually meaningless, as there is
6140 # no search path for DLLs.
6141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6142 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6143 _LT_TAGVAR(always_export_symbols, $1)=yes
6144 _LT_TAGVAR(file_list_spec, $1)='@'
6145 # Tell ltmain to make .lib files, not .a files.
6146 libext=lib
6147 # Tell ltmain to make .dll files, not .so files.
6148 shrext_cmds=".dll"
6149 # FIXME: Setting linknames here is a bad hack.
6150 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6151 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6152 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6153 else
6154 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6155 fi~
6156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6157 linknames='
6158 # The linker will not automatically build a static lib if we build a DLL.
6159 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6160 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6161 # Don't use ranlib
6162 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6163 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6164 lt_tool_outputfile="@TOOL_OUTPUT@"~
6165 case $lt_outputfile in
6166 *.exe|*.EXE) ;;
6167 *)
6168 lt_outputfile="$lt_outputfile.exe"
6169 lt_tool_outputfile="$lt_tool_outputfile.exe"
6170 ;;
6171 esac~
6172 func_to_tool_file "$lt_outputfile"~
6173 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6174 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6175 $RM "$lt_outputfile.manifest";
6176 fi'
6177 ;;
6178 *)
6179 # g++
6180 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6181 # as there is no search path for DLLs.
6182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6183 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6184 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6185 _LT_TAGVAR(always_export_symbols, $1)=no
6186 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6187
6188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6189 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6190 # If the export-symbols file already is a .def file (1st line
6191 # is EXPORTS), use it as is; otherwise, prepend...
6192 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6193 cp $export_symbols $output_objdir/$soname.def;
6194 else
6195 echo EXPORTS > $output_objdir/$soname.def;
6196 cat $export_symbols >> $output_objdir/$soname.def;
6197 fi~
6198 $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'
6199 else
6200 _LT_TAGVAR(ld_shlibs, $1)=no
6201 fi
6202 ;;
6203 esac
6204 ;;
6205 darwin* | rhapsody*)
6206 _LT_DARWIN_LINKER_FEATURES($1)
6207 ;;
6208
6209 dgux*)
6210 case $cc_basename in
6211 ec++*)
6212 # FIXME: insert proper C++ library support
6213 _LT_TAGVAR(ld_shlibs, $1)=no
6214 ;;
6215 ghcx*)
6216 # Green Hills C++ Compiler
6217 # FIXME: insert proper C++ library support
6218 _LT_TAGVAR(ld_shlibs, $1)=no
6219 ;;
6220 *)
6221 # FIXME: insert proper C++ library support
6222 _LT_TAGVAR(ld_shlibs, $1)=no
6223 ;;
6224 esac
6225 ;;
6226
6227 freebsd2.*)
6228 # C++ shared libraries reported to be fairly broken before
6229 # switch to ELF
6230 _LT_TAGVAR(ld_shlibs, $1)=no
6231 ;;
6232
6233 freebsd-elf*)
6234 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6235 ;;
6236
6237 freebsd* | dragonfly*)
6238 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6239 # conventions
6240 _LT_TAGVAR(ld_shlibs, $1)=yes
6241 ;;
6242
6243 gnu*)
6244 ;;
6245
6246 haiku*)
6247 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6248 _LT_TAGVAR(link_all_deplibs, $1)=yes
6249 ;;
6250
6251 hpux9*)
6252 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6253 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6254 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6255 _LT_TAGVAR(hardcode_direct, $1)=yes
6256 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6257 # but as the default
6258 # location of the library.
6259
6260 case $cc_basename in
6261 CC*)
6262 # FIXME: insert proper C++ library support
6263 _LT_TAGVAR(ld_shlibs, $1)=no
6264 ;;
6265 aCC*)
6266 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6267 # Commands to make compiler produce verbose output that lists
6268 # what "hidden" libraries, object files and flags are used when
6269 # linking a shared library.
6270 #
6271 # There doesn't appear to be a way to prevent this compiler from
6272 # explicitly linking system object files so we need to strip them
6273 # from the output so that they don't get included in the library
6274 # dependencies.
6275 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6276 ;;
6277 *)
6278 if test "$GXX" = yes; then
6279 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
6280 else
6281 # FIXME: insert proper C++ library support
6282 _LT_TAGVAR(ld_shlibs, $1)=no
6283 fi
6284 ;;
6285 esac
6286 ;;
6287
6288 hpux10*|hpux11*)
6289 if test $with_gnu_ld = no; then
6290 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6291 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6292
6293 case $host_cpu in
6294 hppa*64*|ia64*)
6295 ;;
6296 *)
6297 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6298 ;;
6299 esac
6300 fi
6301 case $host_cpu in
6302 hppa*64*|ia64*)
6303 _LT_TAGVAR(hardcode_direct, $1)=no
6304 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6305 ;;
6306 *)
6307 _LT_TAGVAR(hardcode_direct, $1)=yes
6308 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6309 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6310 # but as the default
6311 # location of the library.
6312 ;;
6313 esac
6314
6315 case $cc_basename in
6316 CC*)
6317 # FIXME: insert proper C++ library support
6318 _LT_TAGVAR(ld_shlibs, $1)=no
6319 ;;
6320 aCC*)
6321 case $host_cpu in
6322 hppa*64*)
6323 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6324 ;;
6325 ia64*)
6326 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6327 ;;
6328 *)
6329 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6330 ;;
6331 esac
6332 # Commands to make compiler produce verbose output that lists
6333 # what "hidden" libraries, object files and flags are used when
6334 # linking a shared library.
6335 #
6336 # There doesn't appear to be a way to prevent this compiler from
6337 # explicitly linking system object files so we need to strip them
6338 # from the output so that they don't get included in the library
6339 # dependencies.
6340 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6341 ;;
6342 *)
6343 if test "$GXX" = yes; then
6344 if test $with_gnu_ld = no; then
6345 case $host_cpu in
6346 hppa*64*)
6347 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6348 ;;
6349 ia64*)
6350 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6351 ;;
6352 *)
6353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6354 ;;
6355 esac
6356 fi
6357 else
6358 # FIXME: insert proper C++ library support
6359 _LT_TAGVAR(ld_shlibs, $1)=no
6360 fi
6361 ;;
6362 esac
6363 ;;
6364
6365 interix[[3-9]]*)
6366 _LT_TAGVAR(hardcode_direct, $1)=no
6367 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6369 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6371 # Instead, shared libraries are loaded at an image base (0x10000000 by
6372 # default) and relocated if they conflict, which is a slow very memory
6373 # consuming and fragmenting process. To avoid this, we pick a random,
6374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6376 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6377 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6378 ;;
6379 irix5* | irix6*)
6380 case $cc_basename in
6381 CC*)
6382 # SGI C++
6383 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6384
6385 # Archives containing C++ object files must be created using
6386 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6387 # necessary to make sure instantiated templates are included
6388 # in the archive.
6389 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6390 ;;
6391 *)
6392 if test "$GXX" = yes; then
6393 if test "$with_gnu_ld" = no; then
6394 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6395 else
6396 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6397 fi
6398 fi
6399 _LT_TAGVAR(link_all_deplibs, $1)=yes
6400 ;;
6401 esac
6402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6403 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6404 _LT_TAGVAR(inherit_rpath, $1)=yes
6405 ;;
6406
6407 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6408 case $cc_basename in
6409 KCC*)
6410 # Kuck and Associates, Inc. (KAI) C++ Compiler
6411
6412 # KCC will only create a shared library if the output file
6413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6414 # to its proper name (with version) after linking.
6415 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6416 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6417 # Commands to make compiler produce verbose output that lists
6418 # what "hidden" libraries, object files and flags are used when
6419 # linking a shared library.
6420 #
6421 # There doesn't appear to be a way to prevent this compiler from
6422 # explicitly linking system object files so we need to strip them
6423 # from the output so that they don't get included in the library
6424 # dependencies.
6425 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6426
6427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6428 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6429
6430 # Archives containing C++ object files must be created using
6431 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6432 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6433 ;;
6434 icpc* | ecpc* )
6435 # Intel C++
6436 with_gnu_ld=yes
6437 # version 8.0 and above of icpc choke on multiply defined symbols
6438 # if we add $predep_objects and $postdep_objects, however 7.1 and
6439 # earlier do not add the objects themselves.
6440 case `$CC -V 2>&1` in
6441 *"Version 7."*)
6442 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6443 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6444 ;;
6445 *) # Version 8.0 or newer
6446 tmp_idyn=
6447 case $host_cpu in
6448 ia64*) tmp_idyn=' -i_dynamic';;
6449 esac
6450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6451 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6452 ;;
6453 esac
6454 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6455 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6456 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6457 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6458 ;;
6459 pgCC* | pgcpp*)
6460 # Portland Group C++ compiler
6461 case `$CC -V` in
6462 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6463 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6466 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6467 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6468 rm -rf $tpldir~
6469 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6470 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6471 $RANLIB $oldlib'
6472 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6473 rm -rf $tpldir~
6474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6476 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6477 rm -rf $tpldir~
6478 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6479 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6480 ;;
6481 *) # Version 6 and above use weak symbols
6482 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6483 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6484 ;;
6485 esac
6486
6487 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6488 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6489 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6490 ;;
6491 cxx*)
6492 # Compaq C++
6493 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6494 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6495
6496 runpath_var=LD_RUN_PATH
6497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6498 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6499
6500 # Commands to make compiler produce verbose output that lists
6501 # what "hidden" libraries, object files and flags are used when
6502 # linking a shared library.
6503 #
6504 # There doesn't appear to be a way to prevent this compiler from
6505 # explicitly linking system object files so we need to strip them
6506 # from the output so that they don't get included in the library
6507 # dependencies.
6508 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6509 ;;
6510 xl* | mpixl* | bgxl*)
6511 # IBM XL 8.0 on PPC, with GNU ld
6512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6513 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6514 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6515 if test "x$supports_anon_versioning" = xyes; then
6516 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6517 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6518 echo "local: *; };" >> $output_objdir/$libname.ver~
6519 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6520 fi
6521 ;;
6522 *)
6523 case `$CC -V 2>&1 | sed 5q` in
6524 *Sun\ C*)
6525 # Sun C++ 5.9
6526 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6527 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6528 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6529 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6530 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6531 _LT_TAGVAR(compiler_needs_object, $1)=yes
6532
6533 # Not sure whether something based on
6534 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6535 # would be better.
6536 output_verbose_link_cmd='func_echo_all'
6537
6538 # Archives containing C++ object files must be created using
6539 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6540 # necessary to make sure instantiated templates are included
6541 # in the archive.
6542 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6543 ;;
6544 esac
6545 ;;
6546 esac
6547 ;;
6548
6549 lynxos*)
6550 # FIXME: insert proper C++ library support
6551 _LT_TAGVAR(ld_shlibs, $1)=no
6552 ;;
6553
6554 m88k*)
6555 # FIXME: insert proper C++ library support
6556 _LT_TAGVAR(ld_shlibs, $1)=no
6557 ;;
6558
6559 mvs*)
6560 case $cc_basename in
6561 cxx*)
6562 # FIXME: insert proper C++ library support
6563 _LT_TAGVAR(ld_shlibs, $1)=no
6564 ;;
6565 *)
6566 # FIXME: insert proper C++ library support
6567 _LT_TAGVAR(ld_shlibs, $1)=no
6568 ;;
6569 esac
6570 ;;
6571
6572 netbsd*)
6573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6574 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6575 wlarc=
6576 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6577 _LT_TAGVAR(hardcode_direct, $1)=yes
6578 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6579 fi
6580 # Workaround some broken pre-1.5 toolchains
6581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6582 ;;
6583
6584 *nto* | *qnx*)
6585 _LT_TAGVAR(ld_shlibs, $1)=yes
6586 ;;
6587
6588 openbsd2*)
6589 # C++ shared libraries are fairly broken
6590 _LT_TAGVAR(ld_shlibs, $1)=no
6591 ;;
6592
6593 openbsd*)
6594 if test -f /usr/libexec/ld.so; then
6595 _LT_TAGVAR(hardcode_direct, $1)=yes
6596 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6597 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6598 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6599 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6601 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6602 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6603 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6604 fi
6605 output_verbose_link_cmd=func_echo_all
6606 else
6607 _LT_TAGVAR(ld_shlibs, $1)=no
6608 fi
6609 ;;
6610
6611 osf3* | osf4* | osf5*)
6612 case $cc_basename in
6613 KCC*)
6614 # Kuck and Associates, Inc. (KAI) C++ Compiler
6615
6616 # KCC will only create a shared library if the output file
6617 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6618 # to its proper name (with version) after linking.
6619 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6620
6621 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6622 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6623
6624 # Archives containing C++ object files must be created using
6625 # the KAI C++ compiler.
6626 case $host in
6627 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6628 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6629 esac
6630 ;;
6631 RCC*)
6632 # Rational C++ 2.4.1
6633 # FIXME: insert proper C++ library support
6634 _LT_TAGVAR(ld_shlibs, $1)=no
6635 ;;
6636 cxx*)
6637 case $host in
6638 osf3*)
6639 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6640 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6642 ;;
6643 *)
6644 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6645 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6646 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6647 echo "-hidden">> $lib.exp~
6648 $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~
6649 $RM $lib.exp'
6650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6651 ;;
6652 esac
6653
6654 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6655
6656 # Commands to make compiler produce verbose output that lists
6657 # what "hidden" libraries, object files and flags are used when
6658 # linking a shared library.
6659 #
6660 # There doesn't appear to be a way to prevent this compiler from
6661 # explicitly linking system object files so we need to strip them
6662 # from the output so that they don't get included in the library
6663 # dependencies.
6664 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6665 ;;
6666 *)
6667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6668 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6669 case $host in
6670 osf3*)
6671 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6672 ;;
6673 *)
6674 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6675 ;;
6676 esac
6677
6678 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6679 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6680
6681 # Commands to make compiler produce verbose output that lists
6682 # what "hidden" libraries, object files and flags are used when
6683 # linking a shared library.
6684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6685
6686 else
6687 # FIXME: insert proper C++ library support
6688 _LT_TAGVAR(ld_shlibs, $1)=no
6689 fi
6690 ;;
6691 esac
6692 ;;
6693
6694 psos*)
6695 # FIXME: insert proper C++ library support
6696 _LT_TAGVAR(ld_shlibs, $1)=no
6697 ;;
6698
6699 sunos4*)
6700 case $cc_basename in
6701 CC*)
6702 # Sun C++ 4.x
6703 # FIXME: insert proper C++ library support
6704 _LT_TAGVAR(ld_shlibs, $1)=no
6705 ;;
6706 lcc*)
6707 # Lucid
6708 # FIXME: insert proper C++ library support
6709 _LT_TAGVAR(ld_shlibs, $1)=no
6710 ;;
6711 *)
6712 # FIXME: insert proper C++ library support
6713 _LT_TAGVAR(ld_shlibs, $1)=no
6714 ;;
6715 esac
6716 ;;
6717
6718 solaris*)
6719 case $cc_basename in
6720 CC* | sunCC*)
6721 # Sun C++ 4.2, 5.x and Centerline C++
6722 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6723 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6724 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6725 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6726 $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'
6727
6728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6729 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6730 case $host_os in
6731 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6732 *)
6733 # The compiler driver will combine and reorder linker options,
6734 # but understands `-z linker_flag'.
6735 # Supported since Solaris 2.6 (maybe 2.5.1?)
6736 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6737 ;;
6738 esac
6739 _LT_TAGVAR(link_all_deplibs, $1)=yes
6740
6741 output_verbose_link_cmd='func_echo_all'
6742
6743 # Archives containing C++ object files must be created using
6744 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6745 # necessary to make sure instantiated templates are included
6746 # in the archive.
6747 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6748 ;;
6749 gcx*)
6750 # Green Hills C++ Compiler
6751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6752
6753 # The C++ compiler must be used to create the archive.
6754 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6755 ;;
6756 *)
6757 # GNU C++ compiler with Solaris linker
6758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6759 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6760 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6761 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6762 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6763 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6764
6765 # Commands to make compiler produce verbose output that lists
6766 # what "hidden" libraries, object files and flags are used when
6767 # linking a shared library.
6768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6769 else
6770 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6771 # platform.
6772 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6773 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6774 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6775
6776 # Commands to make compiler produce verbose output that lists
6777 # what "hidden" libraries, object files and flags are used when
6778 # linking a shared library.
6779 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6780 fi
6781
6782 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6783 case $host_os in
6784 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6785 *)
6786 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6787 ;;
6788 esac
6789 fi
6790 ;;
6791 esac
6792 ;;
6793
6794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6795 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6796 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6797 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6798 runpath_var='LD_RUN_PATH'
6799
6800 case $cc_basename in
6801 CC*)
6802 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6803 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6804 ;;
6805 *)
6806 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6807 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6808 ;;
6809 esac
6810 ;;
6811
6812 sysv5* | sco3.2v5* | sco5v6*)
6813 # Note: We can NOT use -z defs as we might desire, because we do not
6814 # link with -lc, and that would cause any symbols used from libc to
6815 # always be unresolved, which means just about no library would
6816 # ever link correctly. If we're not using GNU ld we use -z text
6817 # though, which does catch some bad symbols but isn't as heavy-handed
6818 # as -z defs.
6819 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6820 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6821 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6822 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6824 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6825 _LT_TAGVAR(link_all_deplibs, $1)=yes
6826 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6827 runpath_var='LD_RUN_PATH'
6828
6829 case $cc_basename in
6830 CC*)
6831 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6832 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6833 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6834 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6835 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6836 '"$_LT_TAGVAR(reload_cmds, $1)"
6837 ;;
6838 *)
6839 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6840 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6841 ;;
6842 esac
6843 ;;
6844
6845 tandem*)
6846 case $cc_basename in
6847 NCC*)
6848 # NonStop-UX NCC 3.20
6849 # FIXME: insert proper C++ library support
6850 _LT_TAGVAR(ld_shlibs, $1)=no
6851 ;;
6852 *)
6853 # FIXME: insert proper C++ library support
6854 _LT_TAGVAR(ld_shlibs, $1)=no
6855 ;;
6856 esac
6857 ;;
6858
6859 vxworks*)
6860 # FIXME: insert proper C++ library support
6861 _LT_TAGVAR(ld_shlibs, $1)=no
6862 ;;
6863
6864 *)
6865 # FIXME: insert proper C++ library support
6866 _LT_TAGVAR(ld_shlibs, $1)=no
6867 ;;
6868 esac
6869
6870 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6871 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6872
6873 _LT_TAGVAR(GCC, $1)="$GXX"
6874 _LT_TAGVAR(LD, $1)="$LD"
6875
6876 ## CAVEAT EMPTOR:
6877 ## There is no encapsulation within the following macros, do not change
6878 ## the running order or otherwise move them around unless you know exactly
6879 ## what you are doing...
6880 _LT_SYS_HIDDEN_LIBDEPS($1)
6881 _LT_COMPILER_PIC($1)
6882 _LT_COMPILER_C_O($1)
6883 _LT_COMPILER_FILE_LOCKS($1)
6884 _LT_LINKER_SHLIBS($1)
6885 _LT_SYS_DYNAMIC_LINKER($1)
6886 _LT_LINKER_HARDCODE_LIBPATH($1)
6887
6888 _LT_CONFIG($1)
6889 fi # test -n "$compiler"
6890
6891 CC=$lt_save_CC
6892 CFLAGS=$lt_save_CFLAGS
6893 LDCXX=$LD
6894 LD=$lt_save_LD
6895 GCC=$lt_save_GCC
6896 with_gnu_ld=$lt_save_with_gnu_ld
6897 lt_cv_path_LDCXX=$lt_cv_path_LD
6898 lt_cv_path_LD=$lt_save_path_LD
6899 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6900 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6901 fi # test "$_lt_caught_CXX_error" != yes
6902
6903 AC_LANG_POP
6904 ])# _LT_LANG_CXX_CONFIG
6905
6906
6907 # _LT_FUNC_STRIPNAME_CNF
6908 # ----------------------
6909 # func_stripname_cnf prefix suffix name
6910 # strip PREFIX and SUFFIX off of NAME.
6911 # PREFIX and SUFFIX must not contain globbing or regex special
6912 # characters, hashes, percent signs, but SUFFIX may contain a leading
6913 # dot (in which case that matches only a dot).
6914 #
6915 # This function is identical to the (non-XSI) version of func_stripname,
6916 # except this one can be used by m4 code that may be executed by configure,
6917 # rather than the libtool script.
6918 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6919 AC_REQUIRE([_LT_DECL_SED])
6920 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6921 func_stripname_cnf ()
6922 {
6923 case ${2} in
6924 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6925 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6926 esac
6927 } # func_stripname_cnf
6928 ])# _LT_FUNC_STRIPNAME_CNF
6929
6930 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6931 # ---------------------------------
6932 # Figure out "hidden" library dependencies from verbose
6933 # compiler output when linking a shared library.
6934 # Parse the compiler output and extract the necessary
6935 # objects, libraries and library flags.
6936 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6937 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6938 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6939 # Dependencies to place before and after the object being linked:
6940 _LT_TAGVAR(predep_objects, $1)=
6941 _LT_TAGVAR(postdep_objects, $1)=
6942 _LT_TAGVAR(predeps, $1)=
6943 _LT_TAGVAR(postdeps, $1)=
6944 _LT_TAGVAR(compiler_lib_search_path, $1)=
6945
6946 dnl we can't use the lt_simple_compile_test_code here,
6947 dnl because it contains code intended for an executable,
6948 dnl not a library. It's possible we should let each
6949 dnl tag define a new lt_????_link_test_code variable,
6950 dnl but it's only used here...
6951 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6952 int a;
6953 void foo (void) { a = 0; }
6954 _LT_EOF
6955 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6956 class Foo
6957 {
6958 public:
6959 Foo (void) { a = 0; }
6960 private:
6961 int a;
6962 };
6963 _LT_EOF
6964 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6965 subroutine foo
6966 implicit none
6967 integer*4 a
6968 a=0
6969 return
6970 end
6971 _LT_EOF
6972 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6973 subroutine foo
6974 implicit none
6975 integer a
6976 a=0
6977 return
6978 end
6979 _LT_EOF
6980 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6981 public class foo {
6982 private int a;
6983 public void bar (void) {
6984 a = 0;
6985 }
6986 };
6987 _LT_EOF
6988 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6989 package foo
6990 func foo() {
6991 }
6992 _LT_EOF
6993 ])
6994
6995 _lt_libdeps_save_CFLAGS=$CFLAGS
6996 case "$CC $CFLAGS " in #(
6997 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6998 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6999 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7000 esac
7001
7002 dnl Parse the compiler output and extract the necessary
7003 dnl objects, libraries and library flags.
7004 if AC_TRY_EVAL(ac_compile); then
7005 # Parse the compiler output and extract the necessary
7006 # objects, libraries and library flags.
7007
7008 # Sentinel used to keep track of whether or not we are before
7009 # the conftest object file.
7010 pre_test_object_deps_done=no
7011
7012 for p in `eval "$output_verbose_link_cmd"`; do
7013 case ${prev}${p} in
7014
7015 -L* | -R* | -l*)
7016 # Some compilers place space between "-{L,R}" and the path.
7017 # Remove the space.
7018 if test $p = "-L" ||
7019 test $p = "-R"; then
7020 prev=$p
7021 continue
7022 fi
7023
7024 # Expand the sysroot to ease extracting the directories later.
7025 if test -z "$prev"; then
7026 case $p in
7027 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7028 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7029 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7030 esac
7031 fi
7032 case $p in
7033 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7034 esac
7035 if test "$pre_test_object_deps_done" = no; then
7036 case ${prev} in
7037 -L | -R)
7038 # Internal compiler library paths should come after those
7039 # provided the user. The postdeps already come after the
7040 # user supplied libs so there is no need to process them.
7041 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7042 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7043 else
7044 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7045 fi
7046 ;;
7047 # The "-l" case would never come before the object being
7048 # linked, so don't bother handling this case.
7049 esac
7050 else
7051 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7052 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7053 else
7054 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7055 fi
7056 fi
7057 prev=
7058 ;;
7059
7060 *.lto.$objext) ;; # Ignore GCC LTO objects
7061 *.$objext)
7062 # This assumes that the test object file only shows up
7063 # once in the compiler output.
7064 if test "$p" = "conftest.$objext"; then
7065 pre_test_object_deps_done=yes
7066 continue
7067 fi
7068
7069 if test "$pre_test_object_deps_done" = no; then
7070 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7071 _LT_TAGVAR(predep_objects, $1)="$p"
7072 else
7073 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7074 fi
7075 else
7076 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7077 _LT_TAGVAR(postdep_objects, $1)="$p"
7078 else
7079 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7080 fi
7081 fi
7082 ;;
7083
7084 *) ;; # Ignore the rest.
7085
7086 esac
7087 done
7088
7089 # Clean up.
7090 rm -f a.out a.exe
7091 else
7092 echo "libtool.m4: error: problem compiling $1 test program"
7093 fi
7094
7095 $RM -f confest.$objext
7096 CFLAGS=$_lt_libdeps_save_CFLAGS
7097
7098 # PORTME: override above test on systems where it is broken
7099 m4_if([$1], [CXX],
7100 [case $host_os in
7101 interix[[3-9]]*)
7102 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7103 # hack all around it, let's just trust "g++" to DTRT.
7104 _LT_TAGVAR(predep_objects,$1)=
7105 _LT_TAGVAR(postdep_objects,$1)=
7106 _LT_TAGVAR(postdeps,$1)=
7107 ;;
7108
7109 linux*)
7110 case `$CC -V 2>&1 | sed 5q` in
7111 *Sun\ C*)
7112 # Sun C++ 5.9
7113
7114 # The more standards-conforming stlport4 library is
7115 # incompatible with the Cstd library. Avoid specifying
7116 # it if it's in CXXFLAGS. Ignore libCrun as
7117 # -library=stlport4 depends on it.
7118 case " $CXX $CXXFLAGS " in
7119 *" -library=stlport4 "*)
7120 solaris_use_stlport4=yes
7121 ;;
7122 esac
7123
7124 if test "$solaris_use_stlport4" != yes; then
7125 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7126 fi
7127 ;;
7128 esac
7129 ;;
7130
7131 solaris*)
7132 case $cc_basename in
7133 CC* | sunCC*)
7134 # The more standards-conforming stlport4 library is
7135 # incompatible with the Cstd library. Avoid specifying
7136 # it if it's in CXXFLAGS. Ignore libCrun as
7137 # -library=stlport4 depends on it.
7138 case " $CXX $CXXFLAGS " in
7139 *" -library=stlport4 "*)
7140 solaris_use_stlport4=yes
7141 ;;
7142 esac
7143
7144 # Adding this requires a known-good setup of shared libraries for
7145 # Sun compiler versions before 5.6, else PIC objects from an old
7146 # archive will be linked into the output, leading to subtle bugs.
7147 if test "$solaris_use_stlport4" != yes; then
7148 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7149 fi
7150 ;;
7151 esac
7152 ;;
7153 esac
7154 ])
7155
7156 case " $_LT_TAGVAR(postdeps, $1) " in
7157 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7158 esac
7159 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7160 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7161 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7162 fi
7163 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7164 [The directories searched by this compiler when creating a shared library])
7165 _LT_TAGDECL([], [predep_objects], [1],
7166 [Dependencies to place before and after the objects being linked to
7167 create a shared library])
7168 _LT_TAGDECL([], [postdep_objects], [1])
7169 _LT_TAGDECL([], [predeps], [1])
7170 _LT_TAGDECL([], [postdeps], [1])
7171 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7172 [The library search path used internally by the compiler when linking
7173 a shared library])
7174 ])# _LT_SYS_HIDDEN_LIBDEPS
7175
7176
7177 # _LT_LANG_F77_CONFIG([TAG])
7178 # --------------------------
7179 # Ensure that the configuration variables for a Fortran 77 compiler are
7180 # suitably defined. These variables are subsequently used by _LT_CONFIG
7181 # to write the compiler configuration to `libtool'.
7182 m4_defun([_LT_LANG_F77_CONFIG],
7183 [AC_LANG_PUSH(Fortran 77)
7184 if test -z "$F77" || test "X$F77" = "Xno"; then
7185 _lt_disable_F77=yes
7186 fi
7187
7188 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7189 _LT_TAGVAR(allow_undefined_flag, $1)=
7190 _LT_TAGVAR(always_export_symbols, $1)=no
7191 _LT_TAGVAR(archive_expsym_cmds, $1)=
7192 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7193 _LT_TAGVAR(hardcode_direct, $1)=no
7194 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7196 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7197 _LT_TAGVAR(hardcode_minus_L, $1)=no
7198 _LT_TAGVAR(hardcode_automatic, $1)=no
7199 _LT_TAGVAR(inherit_rpath, $1)=no
7200 _LT_TAGVAR(module_cmds, $1)=
7201 _LT_TAGVAR(module_expsym_cmds, $1)=
7202 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7203 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7204 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7205 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7206 _LT_TAGVAR(no_undefined_flag, $1)=
7207 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7208 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7209
7210 # Source file extension for f77 test sources.
7211 ac_ext=f
7212
7213 # Object file extension for compiled f77 test sources.
7214 objext=o
7215 _LT_TAGVAR(objext, $1)=$objext
7216
7217 # No sense in running all these tests if we already determined that
7218 # the F77 compiler isn't working. Some variables (like enable_shared)
7219 # are currently assumed to apply to all compilers on this platform,
7220 # and will be corrupted by setting them based on a non-working compiler.
7221 if test "$_lt_disable_F77" != yes; then
7222 # Code to be used in simple compile tests
7223 lt_simple_compile_test_code="\
7224 subroutine t
7225 return
7226 end
7227 "
7228
7229 # Code to be used in simple link tests
7230 lt_simple_link_test_code="\
7231 program t
7232 end
7233 "
7234
7235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7236 _LT_TAG_COMPILER
7237
7238 # save warnings/boilerplate of simple test code
7239 _LT_COMPILER_BOILERPLATE
7240 _LT_LINKER_BOILERPLATE
7241
7242 # Allow CC to be a program name with arguments.
7243 lt_save_CC="$CC"
7244 lt_save_GCC=$GCC
7245 lt_save_CFLAGS=$CFLAGS
7246 CC=${F77-"f77"}
7247 CFLAGS=$FFLAGS
7248 compiler=$CC
7249 _LT_TAGVAR(compiler, $1)=$CC
7250 _LT_CC_BASENAME([$compiler])
7251 GCC=$G77
7252 if test -n "$compiler"; then
7253 AC_MSG_CHECKING([if libtool supports shared libraries])
7254 AC_MSG_RESULT([$can_build_shared])
7255
7256 AC_MSG_CHECKING([whether to build shared libraries])
7257 test "$can_build_shared" = "no" && enable_shared=no
7258
7259 # On AIX, shared libraries and static libraries use the same namespace, and
7260 # are all built from PIC.
7261 case $host_os in
7262 aix3*)
7263 test "$enable_shared" = yes && enable_static=no
7264 if test -n "$RANLIB"; then
7265 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7266 postinstall_cmds='$RANLIB $lib'
7267 fi
7268 ;;
7269 aix[[4-9]]*)
7270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7271 test "$enable_shared" = yes && enable_static=no
7272 fi
7273 ;;
7274 esac
7275 AC_MSG_RESULT([$enable_shared])
7276
7277 AC_MSG_CHECKING([whether to build static libraries])
7278 # Make sure either enable_shared or enable_static is yes.
7279 test "$enable_shared" = yes || enable_static=yes
7280 AC_MSG_RESULT([$enable_static])
7281
7282 _LT_TAGVAR(GCC, $1)="$G77"
7283 _LT_TAGVAR(LD, $1)="$LD"
7284
7285 ## CAVEAT EMPTOR:
7286 ## There is no encapsulation within the following macros, do not change
7287 ## the running order or otherwise move them around unless you know exactly
7288 ## what you are doing...
7289 _LT_COMPILER_PIC($1)
7290 _LT_COMPILER_C_O($1)
7291 _LT_COMPILER_FILE_LOCKS($1)
7292 _LT_LINKER_SHLIBS($1)
7293 _LT_SYS_DYNAMIC_LINKER($1)
7294 _LT_LINKER_HARDCODE_LIBPATH($1)
7295
7296 _LT_CONFIG($1)
7297 fi # test -n "$compiler"
7298
7299 GCC=$lt_save_GCC
7300 CC="$lt_save_CC"
7301 CFLAGS="$lt_save_CFLAGS"
7302 fi # test "$_lt_disable_F77" != yes
7303
7304 AC_LANG_POP
7305 ])# _LT_LANG_F77_CONFIG
7306
7307
7308 # _LT_LANG_FC_CONFIG([TAG])
7309 # -------------------------
7310 # Ensure that the configuration variables for a Fortran compiler are
7311 # suitably defined. These variables are subsequently used by _LT_CONFIG
7312 # to write the compiler configuration to `libtool'.
7313 m4_defun([_LT_LANG_FC_CONFIG],
7314 [AC_LANG_PUSH(Fortran)
7315
7316 if test -z "$FC" || test "X$FC" = "Xno"; then
7317 _lt_disable_FC=yes
7318 fi
7319
7320 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7321 _LT_TAGVAR(allow_undefined_flag, $1)=
7322 _LT_TAGVAR(always_export_symbols, $1)=no
7323 _LT_TAGVAR(archive_expsym_cmds, $1)=
7324 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7325 _LT_TAGVAR(hardcode_direct, $1)=no
7326 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7327 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7328 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7329 _LT_TAGVAR(hardcode_minus_L, $1)=no
7330 _LT_TAGVAR(hardcode_automatic, $1)=no
7331 _LT_TAGVAR(inherit_rpath, $1)=no
7332 _LT_TAGVAR(module_cmds, $1)=
7333 _LT_TAGVAR(module_expsym_cmds, $1)=
7334 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7335 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7336 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7337 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7338 _LT_TAGVAR(no_undefined_flag, $1)=
7339 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7340 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7341
7342 # Source file extension for fc test sources.
7343 ac_ext=${ac_fc_srcext-f}
7344
7345 # Object file extension for compiled fc test sources.
7346 objext=o
7347 _LT_TAGVAR(objext, $1)=$objext
7348
7349 # No sense in running all these tests if we already determined that
7350 # the FC compiler isn't working. Some variables (like enable_shared)
7351 # are currently assumed to apply to all compilers on this platform,
7352 # and will be corrupted by setting them based on a non-working compiler.
7353 if test "$_lt_disable_FC" != yes; then
7354 # Code to be used in simple compile tests
7355 lt_simple_compile_test_code="\
7356 subroutine t
7357 return
7358 end
7359 "
7360
7361 # Code to be used in simple link tests
7362 lt_simple_link_test_code="\
7363 program t
7364 end
7365 "
7366
7367 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7368 _LT_TAG_COMPILER
7369
7370 # save warnings/boilerplate of simple test code
7371 _LT_COMPILER_BOILERPLATE
7372 _LT_LINKER_BOILERPLATE
7373
7374 # Allow CC to be a program name with arguments.
7375 lt_save_CC="$CC"
7376 lt_save_GCC=$GCC
7377 lt_save_CFLAGS=$CFLAGS
7378 CC=${FC-"f95"}
7379 CFLAGS=$FCFLAGS
7380 compiler=$CC
7381 GCC=$ac_cv_fc_compiler_gnu
7382
7383 _LT_TAGVAR(compiler, $1)=$CC
7384 _LT_CC_BASENAME([$compiler])
7385
7386 if test -n "$compiler"; then
7387 AC_MSG_CHECKING([if libtool supports shared libraries])
7388 AC_MSG_RESULT([$can_build_shared])
7389
7390 AC_MSG_CHECKING([whether to build shared libraries])
7391 test "$can_build_shared" = "no" && enable_shared=no
7392
7393 # On AIX, shared libraries and static libraries use the same namespace, and
7394 # are all built from PIC.
7395 case $host_os in
7396 aix3*)
7397 test "$enable_shared" = yes && enable_static=no
7398 if test -n "$RANLIB"; then
7399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7400 postinstall_cmds='$RANLIB $lib'
7401 fi
7402 ;;
7403 aix[[4-9]]*)
7404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7405 test "$enable_shared" = yes && enable_static=no
7406 fi
7407 ;;
7408 esac
7409 AC_MSG_RESULT([$enable_shared])
7410
7411 AC_MSG_CHECKING([whether to build static libraries])
7412 # Make sure either enable_shared or enable_static is yes.
7413 test "$enable_shared" = yes || enable_static=yes
7414 AC_MSG_RESULT([$enable_static])
7415
7416 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7417 _LT_TAGVAR(LD, $1)="$LD"
7418
7419 ## CAVEAT EMPTOR:
7420 ## There is no encapsulation within the following macros, do not change
7421 ## the running order or otherwise move them around unless you know exactly
7422 ## what you are doing...
7423 _LT_SYS_HIDDEN_LIBDEPS($1)
7424 _LT_COMPILER_PIC($1)
7425 _LT_COMPILER_C_O($1)
7426 _LT_COMPILER_FILE_LOCKS($1)
7427 _LT_LINKER_SHLIBS($1)
7428 _LT_SYS_DYNAMIC_LINKER($1)
7429 _LT_LINKER_HARDCODE_LIBPATH($1)
7430
7431 _LT_CONFIG($1)
7432 fi # test -n "$compiler"
7433
7434 GCC=$lt_save_GCC
7435 CC=$lt_save_CC
7436 CFLAGS=$lt_save_CFLAGS
7437 fi # test "$_lt_disable_FC" != yes
7438
7439 AC_LANG_POP
7440 ])# _LT_LANG_FC_CONFIG
7441
7442
7443 # _LT_LANG_GCJ_CONFIG([TAG])
7444 # --------------------------
7445 # Ensure that the configuration variables for the GNU Java Compiler compiler
7446 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7447 # to write the compiler configuration to `libtool'.
7448 m4_defun([_LT_LANG_GCJ_CONFIG],
7449 [AC_REQUIRE([LT_PROG_GCJ])dnl
7450 AC_LANG_SAVE
7451
7452 # Source file extension for Java test sources.
7453 ac_ext=java
7454
7455 # Object file extension for compiled Java test sources.
7456 objext=o
7457 _LT_TAGVAR(objext, $1)=$objext
7458
7459 # Code to be used in simple compile tests
7460 lt_simple_compile_test_code="class foo {}"
7461
7462 # Code to be used in simple link tests
7463 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7464
7465 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7466 _LT_TAG_COMPILER
7467
7468 # save warnings/boilerplate of simple test code
7469 _LT_COMPILER_BOILERPLATE
7470 _LT_LINKER_BOILERPLATE
7471
7472 # Allow CC to be a program name with arguments.
7473 lt_save_CC=$CC
7474 lt_save_CFLAGS=$CFLAGS
7475 lt_save_GCC=$GCC
7476 GCC=yes
7477 CC=${GCJ-"gcj"}
7478 CFLAGS=$GCJFLAGS
7479 compiler=$CC
7480 _LT_TAGVAR(compiler, $1)=$CC
7481 _LT_TAGVAR(LD, $1)="$LD"
7482 _LT_CC_BASENAME([$compiler])
7483
7484 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7485 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7486
7487 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7488 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7489 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7490
7491 ## CAVEAT EMPTOR:
7492 ## There is no encapsulation within the following macros, do not change
7493 ## the running order or otherwise move them around unless you know exactly
7494 ## what you are doing...
7495 if test -n "$compiler"; then
7496 _LT_COMPILER_NO_RTTI($1)
7497 _LT_COMPILER_PIC($1)
7498 _LT_COMPILER_C_O($1)
7499 _LT_COMPILER_FILE_LOCKS($1)
7500 _LT_LINKER_SHLIBS($1)
7501 _LT_LINKER_HARDCODE_LIBPATH($1)
7502
7503 _LT_CONFIG($1)
7504 fi
7505
7506 AC_LANG_RESTORE
7507
7508 GCC=$lt_save_GCC
7509 CC=$lt_save_CC
7510 CFLAGS=$lt_save_CFLAGS
7511 ])# _LT_LANG_GCJ_CONFIG
7512
7513
7514 # _LT_LANG_GO_CONFIG([TAG])
7515 # --------------------------
7516 # Ensure that the configuration variables for the GNU Go compiler
7517 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7518 # to write the compiler configuration to `libtool'.
7519 m4_defun([_LT_LANG_GO_CONFIG],
7520 [AC_REQUIRE([LT_PROG_GO])dnl
7521 AC_LANG_SAVE
7522
7523 # Source file extension for Go test sources.
7524 ac_ext=go
7525
7526 # Object file extension for compiled Go test sources.
7527 objext=o
7528 _LT_TAGVAR(objext, $1)=$objext
7529
7530 # Code to be used in simple compile tests
7531 lt_simple_compile_test_code="package main; func main() { }"
7532
7533 # Code to be used in simple link tests
7534 lt_simple_link_test_code='package main; func main() { }'
7535
7536 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7537 _LT_TAG_COMPILER
7538
7539 # save warnings/boilerplate of simple test code
7540 _LT_COMPILER_BOILERPLATE
7541 _LT_LINKER_BOILERPLATE
7542
7543 # Allow CC to be a program name with arguments.
7544 lt_save_CC=$CC
7545 lt_save_CFLAGS=$CFLAGS
7546 lt_save_GCC=$GCC
7547 GCC=yes
7548 CC=${GOC-"gccgo"}
7549 CFLAGS=$GOFLAGS
7550 compiler=$CC
7551 _LT_TAGVAR(compiler, $1)=$CC
7552 _LT_TAGVAR(LD, $1)="$LD"
7553 _LT_CC_BASENAME([$compiler])
7554
7555 # Go did not exist at the time GCC didn't implicitly link libc in.
7556 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7557
7558 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7559 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7560 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7561
7562 ## CAVEAT EMPTOR:
7563 ## There is no encapsulation within the following macros, do not change
7564 ## the running order or otherwise move them around unless you know exactly
7565 ## what you are doing...
7566 if test -n "$compiler"; then
7567 _LT_COMPILER_NO_RTTI($1)
7568 _LT_COMPILER_PIC($1)
7569 _LT_COMPILER_C_O($1)
7570 _LT_COMPILER_FILE_LOCKS($1)
7571 _LT_LINKER_SHLIBS($1)
7572 _LT_LINKER_HARDCODE_LIBPATH($1)
7573
7574 _LT_CONFIG($1)
7575 fi
7576
7577 AC_LANG_RESTORE
7578
7579 GCC=$lt_save_GCC
7580 CC=$lt_save_CC
7581 CFLAGS=$lt_save_CFLAGS
7582 ])# _LT_LANG_GO_CONFIG
7583
7584
7585 # _LT_LANG_RC_CONFIG([TAG])
7586 # -------------------------
7587 # Ensure that the configuration variables for the Windows resource compiler
7588 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7589 # to write the compiler configuration to `libtool'.
7590 m4_defun([_LT_LANG_RC_CONFIG],
7591 [AC_REQUIRE([LT_PROG_RC])dnl
7592 AC_LANG_SAVE
7593
7594 # Source file extension for RC test sources.
7595 ac_ext=rc
7596
7597 # Object file extension for compiled RC test sources.
7598 objext=o
7599 _LT_TAGVAR(objext, $1)=$objext
7600
7601 # Code to be used in simple compile tests
7602 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7603
7604 # Code to be used in simple link tests
7605 lt_simple_link_test_code="$lt_simple_compile_test_code"
7606
7607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7608 _LT_TAG_COMPILER
7609
7610 # save warnings/boilerplate of simple test code
7611 _LT_COMPILER_BOILERPLATE
7612 _LT_LINKER_BOILERPLATE
7613
7614 # Allow CC to be a program name with arguments.
7615 lt_save_CC="$CC"
7616 lt_save_CFLAGS=$CFLAGS
7617 lt_save_GCC=$GCC
7618 GCC=
7619 CC=${RC-"windres"}
7620 CFLAGS=
7621 compiler=$CC
7622 _LT_TAGVAR(compiler, $1)=$CC
7623 _LT_CC_BASENAME([$compiler])
7624 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7625
7626 if test -n "$compiler"; then
7627 :
7628 _LT_CONFIG($1)
7629 fi
7630
7631 GCC=$lt_save_GCC
7632 AC_LANG_RESTORE
7633 CC=$lt_save_CC
7634 CFLAGS=$lt_save_CFLAGS
7635 ])# _LT_LANG_RC_CONFIG
7636
7637
7638 # LT_PROG_GCJ
7639 # -----------
7640 AC_DEFUN([LT_PROG_GCJ],
7641 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7642 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7643 [AC_CHECK_TOOL(GCJ, gcj,)
7644 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7645 AC_SUBST(GCJFLAGS)])])[]dnl
7646 ])
7647
7648 # Old name:
7649 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7650 dnl aclocal-1.4 backwards compatibility:
7651 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7652
7653
7654 # LT_PROG_GO
7655 # ----------
7656 AC_DEFUN([LT_PROG_GO],
7657 [AC_CHECK_TOOL(GOC, gccgo,)
7658 ])
7659
7660
7661 # LT_PROG_RC
7662 # ----------
7663 AC_DEFUN([LT_PROG_RC],
7664 [AC_CHECK_TOOL(RC, windres,)
7665 ])
7666
7667 # Old name:
7668 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7669 dnl aclocal-1.4 backwards compatibility:
7670 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7671
7672
7673 # _LT_DECL_EGREP
7674 # --------------
7675 # If we don't have a new enough Autoconf to choose the best grep
7676 # available, choose the one first in the user's PATH.
7677 m4_defun([_LT_DECL_EGREP],
7678 [AC_REQUIRE([AC_PROG_EGREP])dnl
7679 AC_REQUIRE([AC_PROG_FGREP])dnl
7680 test -z "$GREP" && GREP=grep
7681 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7682 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7683 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7684 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7685 AC_SUBST([GREP])
7686 ])
7687
7688
7689 # _LT_DECL_OBJDUMP
7690 # --------------
7691 # If we don't have a new enough Autoconf to choose the best objdump
7692 # available, choose the one first in the user's PATH.
7693 m4_defun([_LT_DECL_OBJDUMP],
7694 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7695 test -z "$OBJDUMP" && OBJDUMP=objdump
7696 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7697 AC_SUBST([OBJDUMP])
7698 ])
7699
7700 # _LT_DECL_DLLTOOL
7701 # ----------------
7702 # Ensure DLLTOOL variable is set.
7703 m4_defun([_LT_DECL_DLLTOOL],
7704 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7705 test -z "$DLLTOOL" && DLLTOOL=dlltool
7706 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7707 AC_SUBST([DLLTOOL])
7708 ])
7709
7710 # _LT_DECL_SED
7711 # ------------
7712 # Check for a fully-functional sed program, that truncates
7713 # as few characters as possible. Prefer GNU sed if found.
7714 m4_defun([_LT_DECL_SED],
7715 [AC_PROG_SED
7716 test -z "$SED" && SED=sed
7717 Xsed="$SED -e 1s/^X//"
7718 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7719 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7720 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7721 ])# _LT_DECL_SED
7722
7723 m4_ifndef([AC_PROG_SED], [
7724 ############################################################
7725 # NOTE: This macro has been submitted for inclusion into #
7726 # GNU Autoconf as AC_PROG_SED. When it is available in #
7727 # a released version of Autoconf we should remove this #
7728 # macro and use it instead. #
7729 ############################################################
7730
7731 m4_defun([AC_PROG_SED],
7732 [AC_MSG_CHECKING([for a sed that does not truncate output])
7733 AC_CACHE_VAL(lt_cv_path_SED,
7734 [# Loop through the user's path and test for sed and gsed.
7735 # Then use that list of sed's as ones to test for truncation.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for lt_ac_prog in sed gsed; do
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7744 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7745 fi
7746 done
7747 done
7748 done
7749 IFS=$as_save_IFS
7750 lt_ac_max=0
7751 lt_ac_count=0
7752 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7753 # along with /bin/sed that truncates output.
7754 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7755 test ! -f $lt_ac_sed && continue
7756 cat /dev/null > conftest.in
7757 lt_ac_count=0
7758 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7759 # Check for GNU sed and select it if it is found.
7760 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7761 lt_cv_path_SED=$lt_ac_sed
7762 break
7763 fi
7764 while true; do
7765 cat conftest.in conftest.in >conftest.tmp
7766 mv conftest.tmp conftest.in
7767 cp conftest.in conftest.nl
7768 echo >>conftest.nl
7769 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7770 cmp -s conftest.out conftest.nl || break
7771 # 10000 chars as input seems more than enough
7772 test $lt_ac_count -gt 10 && break
7773 lt_ac_count=`expr $lt_ac_count + 1`
7774 if test $lt_ac_count -gt $lt_ac_max; then
7775 lt_ac_max=$lt_ac_count
7776 lt_cv_path_SED=$lt_ac_sed
7777 fi
7778 done
7779 done
7780 ])
7781 SED=$lt_cv_path_SED
7782 AC_SUBST([SED])
7783 AC_MSG_RESULT([$SED])
7784 ])#AC_PROG_SED
7785 ])#m4_ifndef
7786
7787 # Old name:
7788 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7789 dnl aclocal-1.4 backwards compatibility:
7790 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7791
7792
7793 # _LT_CHECK_SHELL_FEATURES
7794 # ------------------------
7795 # Find out whether the shell is Bourne or XSI compatible,
7796 # or has some other useful features.
7797 m4_defun([_LT_CHECK_SHELL_FEATURES],
7798 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7799 # Try some XSI features
7800 xsi_shell=no
7801 ( _lt_dummy="a/b/c"
7802 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7803 = c,a/b,b/c, \
7804 && eval 'test $(( 1 + 1 )) -eq 2 \
7805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7806 && xsi_shell=yes
7807 AC_MSG_RESULT([$xsi_shell])
7808 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7809
7810 AC_MSG_CHECKING([whether the shell understands "+="])
7811 lt_shell_append=no
7812 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7813 >/dev/null 2>&1 \
7814 && lt_shell_append=yes
7815 AC_MSG_RESULT([$lt_shell_append])
7816 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7817
7818 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7819 lt_unset=unset
7820 else
7821 lt_unset=false
7822 fi
7823 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7824
7825 # test EBCDIC or ASCII
7826 case `echo X|tr X '\101'` in
7827 A) # ASCII based system
7828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7829 lt_SP2NL='tr \040 \012'
7830 lt_NL2SP='tr \015\012 \040\040'
7831 ;;
7832 *) # EBCDIC based system
7833 lt_SP2NL='tr \100 \n'
7834 lt_NL2SP='tr \r\n \100\100'
7835 ;;
7836 esac
7837 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7838 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7839 ])# _LT_CHECK_SHELL_FEATURES
7840
7841
7842 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7843 # ------------------------------------------------------
7844 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7845 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7846 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7847 [dnl {
7848 sed -e '/^$1 ()$/,/^} # $1 /c\
7849 $1 ()\
7850 {\
7851 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7852 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7853 && mv -f "$cfgfile.tmp" "$cfgfile" \
7854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7855 test 0 -eq $? || _lt_function_replace_fail=:
7856 ])
7857
7858
7859 # _LT_PROG_REPLACE_SHELLFNS
7860 # -------------------------
7861 # Replace existing portable implementations of several shell functions with
7862 # equivalent extended shell implementations where those features are available..
7863 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7864 [if test x"$xsi_shell" = xyes; then
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac])
7870
7871 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7872 func_basename_result="${1##*/}"])
7873
7874 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7875 case ${1} in
7876 */*) func_dirname_result="${1%/*}${2}" ;;
7877 * ) func_dirname_result="${3}" ;;
7878 esac
7879 func_basename_result="${1##*/}"])
7880
7881 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7882 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7883 # positional parameters, so assign one to ordinary parameter first.
7884 func_stripname_result=${3}
7885 func_stripname_result=${func_stripname_result#"${1}"}
7886 func_stripname_result=${func_stripname_result%"${2}"}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7889 func_split_long_opt_name=${1%%=*}
7890 func_split_long_opt_arg=${1#*=}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7893 func_split_short_opt_arg=${1#??}
7894 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7895
7896 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7897 case ${1} in
7898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7899 *) func_lo2o_result=${1} ;;
7900 esac])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7903
7904 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7905
7906 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7907 fi
7908
7909 if test x"$lt_shell_append" = xyes; then
7910 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7911
7912 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7913 func_quote_for_eval "${2}"
7914 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7915 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7916
7917 # Save a `func_append' function call where possible by direct use of '+='
7918 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7919 && mv -f "$cfgfile.tmp" "$cfgfile" \
7920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7921 test 0 -eq $? || _lt_function_replace_fail=:
7922 else
7923 # Save a `func_append' function call even when '+=' is not available
7924 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7925 && mv -f "$cfgfile.tmp" "$cfgfile" \
7926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7927 test 0 -eq $? || _lt_function_replace_fail=:
7928 fi
7929
7930 if test x"$_lt_function_replace_fail" = x":"; then
7931 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7932 fi
7933 ])
7934
7935 # _LT_PATH_CONVERSION_FUNCTIONS
7936 # -----------------------------
7937 # Determine which file name conversion functions should be used by
7938 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7939 # for certain cross-compile configurations and native mingw.
7940 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7941 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7942 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7943 AC_MSG_CHECKING([how to convert $build file names to $host format])
7944 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7945 [case $host in
7946 *-*-mingw* )
7947 case $build in
7948 *-*-mingw* ) # actually msys
7949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7950 ;;
7951 *-*-cygwin* )
7952 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7953 ;;
7954 * ) # otherwise, assume *nix
7955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7956 ;;
7957 esac
7958 ;;
7959 *-*-cygwin* )
7960 case $build in
7961 *-*-mingw* ) # actually msys
7962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7963 ;;
7964 *-*-cygwin* )
7965 lt_cv_to_host_file_cmd=func_convert_file_noop
7966 ;;
7967 * ) # otherwise, assume *nix
7968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7969 ;;
7970 esac
7971 ;;
7972 * ) # unhandled hosts (and "normal" native builds)
7973 lt_cv_to_host_file_cmd=func_convert_file_noop
7974 ;;
7975 esac
7976 ])
7977 to_host_file_cmd=$lt_cv_to_host_file_cmd
7978 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7979 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7980 [0], [convert $build file names to $host format])dnl
7981
7982 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7983 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7984 [#assume ordinary cross tools, or native build.
7985 lt_cv_to_tool_file_cmd=func_convert_file_noop
7986 case $host in
7987 *-*-mingw* )
7988 case $build in
7989 *-*-mingw* ) # actually msys
7990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7991 ;;
7992 esac
7993 ;;
7994 esac
7995 ])
7996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7997 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7998 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7999 [0], [convert $build files to toolchain format])dnl
8000 ])# _LT_PATH_CONVERSION_FUNCTIONS
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 7 ltoptions.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
14
15
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
18 m4_define([_LT_MANGLE_OPTION],
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
20
21
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
26 # saved as a flag.
27 m4_define([_LT_SET_OPTION],
28 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
29 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
30 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
32 ])
33
34
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38 m4_define([_LT_IF_OPTION],
39 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
40
41
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
45 # are set.
46 m4_define([_LT_UNLESS_OPTIONS],
47 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
48 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
49 [m4_define([$0_found])])])[]dnl
50 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
51 ])[]dnl
52 ])
53
54
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
59 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
60 # the unknown option and exit.
61 m4_defun([_LT_SET_OPTIONS],
62 [# Set options
63 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
64 [_LT_SET_OPTION([$1], _LT_Option)])
65
66 m4_if([$1],[LT_INIT],[
67 dnl
68 dnl Simply set some default values (i.e off) if boolean options were not
69 dnl specified:
70 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
71 ])
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
73 ])
74 dnl
75 dnl If no reference was made to various pairs of opposing options, then
76 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
78 dnl archives by default:
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
84 ])
85 ])# _LT_SET_OPTIONS
86
87
88 ## --------------------------------- ##
89 ## Macros to handle LT_INIT options. ##
90 ## --------------------------------- ##
91
92 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
93 # -----------------------------------------
94 m4_define([_LT_MANGLE_DEFUN],
95 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
96
97
98 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
99 # -----------------------------------------------
100 m4_define([LT_OPTION_DEFINE],
101 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
102 ])# LT_OPTION_DEFINE
103
104
105 # dlopen
106 # ------
107 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
108 ])
109
110 AU_DEFUN([AC_LIBTOOL_DLOPEN],
111 [_LT_SET_OPTION([LT_INIT], [dlopen])
112 AC_DIAGNOSE([obsolete],
113 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
115 ])
116
117 dnl aclocal-1.4 backwards compatibility:
118 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
119
120
121 # win32-dll
122 # ---------
123 # Declare package support for building win32 dll's.
124 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
125 [enable_win32_dll=yes
126
127 case $host in
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
129 AC_CHECK_TOOL(AS, as, false)
130 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131 AC_CHECK_TOOL(OBJDUMP, objdump, false)
132 ;;
133 esac
134
135 test -z "$AS" && AS=as
136 _LT_DECL([], [AS], [1], [Assembler program])dnl
137
138 test -z "$DLLTOOL" && DLLTOOL=dlltool
139 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
140
141 test -z "$OBJDUMP" && OBJDUMP=objdump
142 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
143 ])# win32-dll
144
145 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
146 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
147 _LT_SET_OPTION([LT_INIT], [win32-dll])
148 AC_DIAGNOSE([obsolete],
149 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
151 ])
152
153 dnl aclocal-1.4 backwards compatibility:
154 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
155
156
157 # _LT_ENABLE_SHARED([DEFAULT])
158 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
162 m4_define([_LT_ENABLE_SHARED],
163 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164 AC_ARG_ENABLE([shared],
165 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
166 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
167 [p=${PACKAGE-default}
168 case $enableval in
169 yes) enable_shared=yes ;;
170 no) enable_shared=no ;;
171 *)
172 enable_shared=no
173 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
175 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
177 if test "X$pkg" = "X$p"; then
178 enable_shared=yes
179 fi
180 done
181 IFS="$lt_save_ifs"
182 ;;
183 esac],
184 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
185
186 _LT_DECL([build_libtool_libs], [enable_shared], [0],
187 [Whether or not to build shared libraries])
188 ])# _LT_ENABLE_SHARED
189
190 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
191 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
192
193 # Old names:
194 AC_DEFUN([AC_ENABLE_SHARED],
195 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
196 ])
197
198 AC_DEFUN([AC_DISABLE_SHARED],
199 [_LT_SET_OPTION([LT_INIT], [disable-shared])
200 ])
201
202 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
203 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
204
205 dnl aclocal-1.4 backwards compatibility:
206 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
207 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
208
209
210
211 # _LT_ENABLE_STATIC([DEFAULT])
212 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
216 m4_define([_LT_ENABLE_STATIC],
217 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218 AC_ARG_ENABLE([static],
219 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
220 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
221 [p=${PACKAGE-default}
222 case $enableval in
223 yes) enable_static=yes ;;
224 no) enable_static=no ;;
225 *)
226 enable_static=no
227 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
229 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
231 if test "X$pkg" = "X$p"; then
232 enable_static=yes
233 fi
234 done
235 IFS="$lt_save_ifs"
236 ;;
237 esac],
238 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
239
240 _LT_DECL([build_old_libs], [enable_static], [0],
241 [Whether or not to build static libraries])
242 ])# _LT_ENABLE_STATIC
243
244 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
245 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
246
247 # Old names:
248 AC_DEFUN([AC_ENABLE_STATIC],
249 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
250 ])
251
252 AC_DEFUN([AC_DISABLE_STATIC],
253 [_LT_SET_OPTION([LT_INIT], [disable-static])
254 ])
255
256 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
257 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
258
259 dnl aclocal-1.4 backwards compatibility:
260 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
261 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
262
263
264
265 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
270 m4_define([_LT_ENABLE_FAST_INSTALL],
271 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272 AC_ARG_ENABLE([fast-install],
273 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
274 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
275 [p=${PACKAGE-default}
276 case $enableval in
277 yes) enable_fast_install=yes ;;
278 no) enable_fast_install=no ;;
279 *)
280 enable_fast_install=no
281 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
283 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
285 if test "X$pkg" = "X$p"; then
286 enable_fast_install=yes
287 fi
288 done
289 IFS="$lt_save_ifs"
290 ;;
291 esac],
292 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
293
294 _LT_DECL([fast_install], [enable_fast_install], [0],
295 [Whether or not to optimize for fast installation])dnl
296 ])# _LT_ENABLE_FAST_INSTALL
297
298 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
299 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
300
301 # Old names:
302 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
303 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304 AC_DIAGNOSE([obsolete],
305 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
307 ])
308
309 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311 AC_DIAGNOSE([obsolete],
312 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
314 ])
315
316 dnl aclocal-1.4 backwards compatibility:
317 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
318 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319
320
321 # _LT_WITH_PIC([MODE])
322 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
324 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
326 m4_define([_LT_WITH_PIC],
327 [AC_ARG_WITH([pic],
328 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
330 [lt_p=${PACKAGE-default}
331 case $withval in
332 yes|no) pic_mode=$withval ;;
333 *)
334 pic_mode=default
335 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
339 if test "X$lt_pkg" = "X$lt_p"; then
340 pic_mode=yes
341 fi
342 done
343 IFS="$lt_save_ifs"
344 ;;
345 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
349
350 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351 ])# _LT_WITH_PIC
352
353 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
354 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
355
356 # Old name:
357 AU_DEFUN([AC_LIBTOOL_PICMODE],
358 [_LT_SET_OPTION([LT_INIT], [pic-only])
359 AC_DIAGNOSE([obsolete],
360 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
362 ])
363
364 dnl aclocal-1.4 backwards compatibility:
365 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
366
367 ## ----------------- ##
368 ## LTDL_INIT Options ##
369 ## ----------------- ##
370
371 m4_define([_LTDL_MODE], [])
372 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
373 [m4_define([_LTDL_MODE], [nonrecursive])])
374 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
375 [m4_define([_LTDL_MODE], [recursive])])
376 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
377 [m4_define([_LTDL_MODE], [subproject])])
378
379 m4_define([_LTDL_TYPE], [])
380 LT_OPTION_DEFINE([LTDL_INIT], [installable],
381 [m4_define([_LTDL_TYPE], [installable])])
382 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
383 [m4_define([_LTDL_TYPE], [convenience])])
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # @configure_input@
10
11 # serial 3337 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 5 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
80 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
81 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
82 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
83 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
84 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
85 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
86 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
87 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
88 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
89 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
90 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
91 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
92 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
93 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
94 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
95 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
96 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
97 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
0 # nls.m4 serial 5 (gettext-0.18)
1 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
2 dnl Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6 dnl
7 dnl This file can can be used in projects which are not available under
8 dnl the GNU General Public License or the GNU Library General Public
9 dnl License but which still want to provide support for the GNU gettext
10 dnl functionality.
11 dnl Please note that the actual code of the GNU gettext library is covered
12 dnl by the GNU Library General Public License, and the rest of the GNU
13 dnl gettext package package is covered by the GNU General Public License.
14 dnl They are *not* in the public domain.
15
16 dnl Authors:
17 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
18 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
19
20 AC_PREREQ([2.50])
21
22 AC_DEFUN([AM_NLS],
23 [
24 AC_MSG_CHECKING([whether NLS is requested])
25 dnl Default is enabled NLS
26 AC_ARG_ENABLE([nls],
27 [ --disable-nls do not use Native Language Support],
28 USE_NLS=$enableval, USE_NLS=yes)
29 AC_MSG_RESULT([$USE_NLS])
30 AC_SUBST([USE_NLS])
31 ])
0 # po.m4 serial 17 (gettext-0.18)
1 dnl Copyright (C) 1995-2010 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.18])
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 6 (gettext-0.18)
1 dnl Copyright (C) 1996-2003, 2005, 2008-2010 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=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
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, see <http://www.gnu.org/licenses/>.
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 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
29 exit 1
30 fi
31
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
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 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
91
92 Send bug reports to <bug-automake@gnu.org>."
93 exit $?
94 ;;
95
96 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
97 echo "missing $scriptversion (GNU Automake)"
98 exit $?
99 ;;
100
101 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
104 exit 1
105 ;;
106
107 esac
108
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
368
369 # Local variables:
370 # eval: (add-hook 'write-file-hooks 'time-stamp)
371 # time-stamp-start: "scriptversion="
372 # time-stamp-format: "%:y-%02m-%02d.%02H"
373 # time-stamp-time-zone: "UTC"
374 # time-stamp-end: "; # UTC"
375 # End:
0 2012-01-08 gettextize <bug-gnu-gettext@gnu.org>
1
2 * Makefile.in.in: Upgrade to gettext-0.18.1.
3 * Rules-quot: Upgrade to gettext-0.18.1.
4
5 2011-12-27 gettextize <bug-gnu-gettext@gnu.org>
6
7 * Makefile.in.in: Upgrade to gettext-0.18.1.
8 * Rules-quot: Upgrade to gettext-0.18.1.
9
0 # Makefile for PO directory in any package using GNU gettext.
1 # Copyright (C) 1995-1997, 2000-2007, 2009-2010 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.18
11 GETTEXT_MACRO_VERSION = 0.18
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 --verbose -o $${lang}.gmo $${lang}.po"; \
91 cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -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) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
196 cd $(srcdir) \
197 && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
198 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
199 $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
200 *) \
201 $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
202 esac; \
203 }; \
204 else \
205 $(MAKE) $${lang}.po-create; \
206 fi
207
208
209 install: install-exec install-data
210 install-exec:
211 install-data: install-data-@USE_NLS@
212 if test "$(PACKAGE)" = "gettext-tools"; then \
213 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
214 for file in $(DISTFILES.common) Makevars.template; do \
215 $(INSTALL_DATA) $(srcdir)/$$file \
216 $(DESTDIR)$(gettextsrcdir)/$$file; \
217 done; \
218 for file in Makevars; do \
219 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
220 done; \
221 else \
222 : ; \
223 fi
224 install-data-no: all
225 install-data-yes: all
226 @catalogs='$(CATALOGS)'; \
227 for cat in $$catalogs; do \
228 cat=`basename $$cat`; \
229 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
230 dir=$(localedir)/$$lang/LC_MESSAGES; \
231 $(mkdir_p) $(DESTDIR)$$dir; \
232 if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
233 $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
234 echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
235 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
236 if test -n "$$lc"; then \
237 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
238 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
239 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
240 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
241 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
242 for file in *; do \
243 if test -f $$file; then \
244 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
245 fi; \
246 done); \
247 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
248 else \
249 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
250 :; \
251 else \
252 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
253 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
254 fi; \
255 fi; \
256 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
257 ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
258 ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
259 cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
260 echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
261 fi; \
262 done; \
263 done
264
265 install-strip: install
266
267 installdirs: installdirs-exec installdirs-data
268 installdirs-exec:
269 installdirs-data: installdirs-data-@USE_NLS@
270 if test "$(PACKAGE)" = "gettext-tools"; then \
271 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
272 else \
273 : ; \
274 fi
275 installdirs-data-no:
276 installdirs-data-yes:
277 @catalogs='$(CATALOGS)'; \
278 for cat in $$catalogs; do \
279 cat=`basename $$cat`; \
280 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
281 dir=$(localedir)/$$lang/LC_MESSAGES; \
282 $(mkdir_p) $(DESTDIR)$$dir; \
283 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
284 if test -n "$$lc"; then \
285 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
286 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
287 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
288 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
289 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
290 for file in *; do \
291 if test -f $$file; then \
292 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
293 fi; \
294 done); \
295 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
296 else \
297 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
298 :; \
299 else \
300 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
301 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
302 fi; \
303 fi; \
304 fi; \
305 done; \
306 done
307
308 # Define this as empty until I found a useful application.
309 installcheck:
310
311 uninstall: uninstall-exec uninstall-data
312 uninstall-exec:
313 uninstall-data: uninstall-data-@USE_NLS@
314 if test "$(PACKAGE)" = "gettext-tools"; then \
315 for file in $(DISTFILES.common) Makevars.template; do \
316 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
317 done; \
318 else \
319 : ; \
320 fi
321 uninstall-data-no:
322 uninstall-data-yes:
323 catalogs='$(CATALOGS)'; \
324 for cat in $$catalogs; do \
325 cat=`basename $$cat`; \
326 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
327 for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
328 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
329 done; \
330 done
331
332 check: all
333
334 info dvi ps pdf html tags TAGS ctags CTAGS ID:
335
336 mostlyclean:
337 rm -f remove-potcdate.sed
338 rm -f stamp-poT
339 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
340 rm -fr *.o
341
342 clean: mostlyclean
343
344 distclean: clean
345 rm -f Makefile Makefile.in POTFILES *.mo
346
347 maintainer-clean: distclean
348 @echo "This command is intended for maintainers to use;"
349 @echo "it deletes files that may require special tools to rebuild."
350 rm -f stamp-po $(GMOFILES)
351
352 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
353 dist distdir:
354 $(MAKE) update-po
355 @$(MAKE) dist2
356 # This is a separate target because 'update-po' must be executed before.
357 dist2: stamp-po $(DISTFILES)
358 dists="$(DISTFILES)"; \
359 if test "$(PACKAGE)" = "gettext-tools"; then \
360 dists="$$dists Makevars.template"; \
361 fi; \
362 if test -f $(srcdir)/$(DOMAIN).pot; then \
363 dists="$$dists $(DOMAIN).pot stamp-po"; \
364 fi; \
365 if test -f $(srcdir)/ChangeLog; then \
366 dists="$$dists ChangeLog"; \
367 fi; \
368 for i in 0 1 2 3 4 5 6 7 8 9; do \
369 if test -f $(srcdir)/ChangeLog.$$i; then \
370 dists="$$dists ChangeLog.$$i"; \
371 fi; \
372 done; \
373 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
374 for file in $$dists; do \
375 if test -f $$file; then \
376 cp -p $$file $(distdir) || exit 1; \
377 else \
378 cp -p $(srcdir)/$$file $(distdir) || exit 1; \
379 fi; \
380 done
381
382 update-po: Makefile
383 $(MAKE) $(DOMAIN).pot-update
384 test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
385 $(MAKE) update-gmo
386
387 # General rule for creating PO files.
388
389 .nop.po-create:
390 @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
391 echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
392 exit 1
393
394 # General rule for updating PO files.
395
396 .nop.po-update:
397 @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
398 if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
399 tmpdir=`pwd`; \
400 echo "$$lang:"; \
401 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
402 echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
403 cd $(srcdir); \
404 if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
405 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
406 $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
407 *) \
408 $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
409 esac; \
410 }; then \
411 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
412 rm -f $$tmpdir/$$lang.new.po; \
413 else \
414 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
415 :; \
416 else \
417 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
418 exit 1; \
419 fi; \
420 fi; \
421 else \
422 echo "msgmerge for $$lang.po failed!" 1>&2; \
423 rm -f $$tmpdir/$$lang.new.po; \
424 fi
425
426 $(DUMMYPOFILES):
427
428 update-gmo: Makefile $(GMOFILES)
429 @:
430
431 # Recreate Makefile by invoking config.status. Explicitly invoke the shell,
432 # because execution permission bits may not work on the current file system.
433 # Use @SHELL@, which is the shell determined by autoconf for the use by its
434 # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
435 Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
436 cd $(top_builddir) \
437 && @SHELL@ ./config.status $(subdir)/$@.in po-directories
438
439 force:
440
441 # Tell versions [3.59,3.63) of GNU make not to export all variables.
442 # Otherwise a system limit (for SysV at least) may be exceeded.
443 .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
8 examples/hcal/hcal.c
9 examples/hcal/hdate.c
10 examples/hcal/local_functions.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 $$lang -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: 2012-01-08 19:48-0500\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 "Language: es_MX\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:186 src/hdate_strings.c:190
19 msgid "translator"
20 msgstr "Esther Peled <esti@actcom.co.il>"
21
22 #: src/hdate_strings.c:248
23 msgid "Sunday"
24 msgstr "Domingo"
25
26 #: src/hdate_strings.c:248
27 msgid "Monday"
28 msgstr "Lunes"
29
30 #: src/hdate_strings.c:248
31 msgid "Tuesday"
32 msgstr "Martes"
33
34 #: src/hdate_strings.c:248
35 msgid "Wednesday"
36 msgstr "Miercoles"
37
38 #: src/hdate_strings.c:249
39 msgid "Thursday"
40 msgstr "Jueves"
41
42 #: src/hdate_strings.c:249
43 msgid "Friday"
44 msgstr "Viernes"
45
46 #: src/hdate_strings.c:249
47 msgid "Saturday"
48 msgstr "Sabado"
49
50 #: src/hdate_strings.c:251
51 msgid "Sun"
52 msgstr "Dom"
53
54 #: src/hdate_strings.c:251
55 msgid "Mon"
56 msgstr "Lun"
57
58 #: src/hdate_strings.c:251
59 msgid "Tue"
60 msgstr "Mar"
61
62 #: src/hdate_strings.c:251
63 msgid "Wed"
64 msgstr "Mier"
65
66 #: src/hdate_strings.c:251
67 msgid "Thu"
68 msgstr "Jue"
69
70 #: src/hdate_strings.c:252
71 msgid "Fri"
72 msgstr "Vier"
73
74 #: src/hdate_strings.c:252
75 msgid "Sat"
76 msgstr "Sab"
77
78 #: src/hdate_strings.c:265 src/hdate_strings.c:288
79 msgid "none"
80 msgstr "ninguno"
81
82 #: src/hdate_strings.c:265 src/hdate_strings.c:288
83 msgid "Bereshit"
84 msgstr "Bereshit"
85
86 #: src/hdate_strings.c:265 src/hdate_strings.c:288
87 msgid "Noach"
88 msgstr "Noaj"
89
90 #: src/hdate_strings.c:266 src/hdate_strings.c:289
91 msgid "Lech-Lecha"
92 msgstr "Lej-Lejá"
93
94 #: src/hdate_strings.c:266 src/hdate_strings.c:289
95 msgid "Vayera"
96 msgstr "Vaira"
97
98 #: src/hdate_strings.c:266 src/hdate_strings.c:289
99 msgid "Chayei Sara"
100 msgstr "Jayei Sará"
101
102 #: src/hdate_strings.c:267 src/hdate_strings.c:290
103 #, fuzzy
104 msgid "Toldot"
105 msgstr "Toldot"
106
107 #: src/hdate_strings.c:267 src/hdate_strings.c:290
108 #, fuzzy
109 msgid "Vayetzei"
110 msgstr "Vayetzei"
111
112 #: src/hdate_strings.c:267 src/hdate_strings.c:290
113 #, fuzzy
114 msgid "Vayishlach"
115 msgstr "Vayishalaj"
116
117 #: src/hdate_strings.c:268 src/hdate_strings.c:291
118 #, fuzzy
119 msgid "Vayeshev"
120 msgstr "Vayeshev"
121
122 #: src/hdate_strings.c:268 src/hdate_strings.c:291
123 #, fuzzy
124 msgid "Miketz"
125 msgstr "Miketz"
126
127 #: src/hdate_strings.c:268 src/hdate_strings.c:291
128 #, fuzzy
129 msgid "Vayigash"
130 msgstr "Vayigash"
131
132 #: src/hdate_strings.c:269 src/hdate_strings.c:292
133 #, fuzzy
134 msgid "Vayechi"
135 msgstr "Vayejí"
136
137 #: src/hdate_strings.c:269 src/hdate_strings.c:292
138 msgid "Shemot"
139 msgstr "Shemot"
140
141 #: src/hdate_strings.c:269 src/hdate_strings.c:292
142 msgid "Vaera"
143 msgstr "Vaerá"
144
145 #: src/hdate_strings.c:270 src/hdate_strings.c:293
146 msgid "Bo"
147 msgstr "Bo"
148
149 #: src/hdate_strings.c:270 src/hdate_strings.c:293
150 msgid "Beshalach"
151 msgstr "Beshalaj"
152
153 #: src/hdate_strings.c:270 src/hdate_strings.c:293
154 msgid "Yitro"
155 msgstr "Yitro"
156
157 #: src/hdate_strings.c:271 src/hdate_strings.c:294
158 msgid "Mishpatim"
159 msgstr "Mishpatim"
160
161 #: src/hdate_strings.c:271 src/hdate_strings.c:294
162 msgid "Terumah"
163 msgstr "Terumá"
164
165 #: src/hdate_strings.c:271 src/hdate_strings.c:294
166 msgid "Tetzaveh"
167 msgstr "Tetzavé"
168
169 #: src/hdate_strings.c:272 src/hdate_strings.c:295
170 msgid "Ki Tisa"
171 msgstr "Ki Tisá"
172
173 #: src/hdate_strings.c:272 src/hdate_strings.c:295
174 msgid "Vayakhel"
175 msgstr "Vayajel"
176
177 #: src/hdate_strings.c:272 src/hdate_strings.c:295
178 msgid "Pekudei"
179 msgstr "Pekudei"
180
181 #: src/hdate_strings.c:273 src/hdate_strings.c:296
182 msgid "Vayikra"
183 msgstr "Vayikrá"
184
185 #: src/hdate_strings.c:273 src/hdate_strings.c:296
186 msgid "Tzav"
187 msgstr "Tzav"
188
189 #: src/hdate_strings.c:273 src/hdate_strings.c:296
190 msgid "Shmini"
191 msgstr "Shemini"
192
193 #: src/hdate_strings.c:274 src/hdate_strings.c:297
194 msgid "Tazria"
195 msgstr "Tazría"
196
197 #: src/hdate_strings.c:274 src/hdate_strings.c:297
198 msgid "Metzora"
199 msgstr "Metzorá"
200
201 #: src/hdate_strings.c:274 src/hdate_strings.c:297
202 msgid "Achrei Mot"
203 msgstr "Ajrei Mot"
204
205 #: src/hdate_strings.c:275 src/hdate_strings.c:298
206 msgid "Kedoshim"
207 msgstr "Kedoshim"
208
209 #: src/hdate_strings.c:275 src/hdate_strings.c:298
210 msgid "Emor"
211 msgstr "Emor"
212
213 #: src/hdate_strings.c:275 src/hdate_strings.c:298
214 msgid "Behar"
215 msgstr "Bejar"
216
217 #: src/hdate_strings.c:276 src/hdate_strings.c:299
218 msgid "Bechukotai"
219 msgstr "Bejukotai"
220
221 #: src/hdate_strings.c:276 src/hdate_strings.c:299
222 msgid "Bamidbar"
223 msgstr "Bamidbar"
224
225 #: src/hdate_strings.c:276 src/hdate_strings.c:299
226 #, fuzzy
227 msgid "Nasso"
228 msgstr "Nasso"
229
230 #: src/hdate_strings.c:277 src/hdate_strings.c:300
231 msgid "Beha'alotcha"
232 msgstr "Beha'alotja"
233
234 #: src/hdate_strings.c:277 src/hdate_strings.c:300
235 msgid "Sh'lach"
236 msgstr "Shalaj"
237
238 #: src/hdate_strings.c:277 src/hdate_strings.c:300
239 msgid "Korach"
240 msgstr "Koraj"
241
242 #: src/hdate_strings.c:278 src/hdate_strings.c:301
243 msgid "Chukat"
244 msgstr "Jukat"
245
246 #: src/hdate_strings.c:278 src/hdate_strings.c:301
247 msgid "Balak"
248 msgstr "Balak"
249
250 #: src/hdate_strings.c:278 src/hdate_strings.c:301
251 msgid "Pinchas"
252 msgstr "Pinjas"
253
254 #: src/hdate_strings.c:279 src/hdate_strings.c:302
255 msgid "Matot"
256 msgstr "Matot"
257
258 #: src/hdate_strings.c:279 src/hdate_strings.c:302
259 msgid "Masei"
260 msgstr "Masei"
261
262 #: src/hdate_strings.c:279 src/hdate_strings.c:302
263 msgid "Devarim"
264 msgstr "Devarim"
265
266 #: src/hdate_strings.c:280 src/hdate_strings.c:303
267 msgid "Vaetchanan"
268 msgstr "Vaetjanan"
269
270 #: src/hdate_strings.c:280 src/hdate_strings.c:303
271 msgid "Eikev"
272 msgstr "Eikev"
273
274 #: src/hdate_strings.c:280 src/hdate_strings.c:303
275 msgid "Re'eh"
276 msgstr "Re'é"
277
278 #: src/hdate_strings.c:281 src/hdate_strings.c:304
279 msgid "Shoftim"
280 msgstr "Shoftim"
281
282 #: src/hdate_strings.c:281 src/hdate_strings.c:304
283 msgid "Ki Teitzei"
284 msgstr "Ki Teitzei"
285
286 #: src/hdate_strings.c:281 src/hdate_strings.c:304
287 msgid "Ki Tavo"
288 msgstr "Ki Tavó"
289
290 #: src/hdate_strings.c:282 src/hdate_strings.c:305
291 msgid "Nitzavim"
292 msgstr "Nitzavim"
293
294 #: src/hdate_strings.c:282 src/hdate_strings.c:305
295 msgid "Vayeilech"
296 msgstr "Vayeilej"
297
298 #: src/hdate_strings.c:282 src/hdate_strings.c:305
299 msgid "Ha'Azinu"
300 msgstr "Ha'Azinu"
301
302 #: src/hdate_strings.c:283 src/hdate_strings.c:306
303 msgid "Vezot Habracha"
304 msgstr "Vezot Haberaja"
305
306 #: src/hdate_strings.c:284 src/hdate_strings.c:307
307 #, fuzzy
308 msgid "Vayakhel-Pekudei"
309 msgstr "Vayakhel-Pekudei"
310
311 #: src/hdate_strings.c:284 src/hdate_strings.c:307
312 msgid "Tazria-Metzora"
313 msgstr "Tazría-Metzora"
314
315 #: src/hdate_strings.c:284 src/hdate_strings.c:307
316 msgid "Achrei Mot-Kedoshim"
317 msgstr "Ajrei Mot-Kedoshim"
318
319 #: src/hdate_strings.c:285 src/hdate_strings.c:308
320 msgid "Behar-Bechukotai"
321 msgstr "Bejar-Bejukotai"
322
323 #: src/hdate_strings.c:285 src/hdate_strings.c:308
324 msgid "Chukat-Balak"
325 msgstr "Jukat-Balak"
326
327 #: src/hdate_strings.c:285 src/hdate_strings.c:308
328 msgid "Matot-Masei"
329 msgstr "Matot-Masei"
330
331 #: src/hdate_strings.c:286 src/hdate_strings.c:309
332 #, fuzzy
333 msgid "Nitzavim-Vayeilech"
334 msgstr "Nitzavim-Vayeilej"
335
336 #: src/hdate_strings.c:364 src/hdate_strings.c:369
337 msgid "Tishrei"
338 msgstr "Tishrei"
339
340 #: src/hdate_strings.c:364 src/hdate_strings.c:369
341 msgid "Cheshvan"
342 msgstr "Jeshván"
343
344 #: src/hdate_strings.c:364 src/hdate_strings.c:369
345 msgid "Kislev"
346 msgstr "Kislev"
347
348 #: src/hdate_strings.c:364 src/hdate_strings.c:369
349 msgid "Tevet"
350 msgstr "Tevet"
351
352 #: src/hdate_strings.c:365 src/hdate_strings.c:370
353 #, fuzzy
354 msgid "Sh'vat"
355 msgstr "Sh'vat"
356
357 #: src/hdate_strings.c:365 src/hdate_strings.c:370
358 msgid "Adar"
359 msgstr "Adar"
360
361 #: src/hdate_strings.c:365 src/hdate_strings.c:370
362 msgid "Nisan"
363 msgstr "Nisan"
364
365 #: src/hdate_strings.c:365 src/hdate_strings.c:370
366 #, fuzzy
367 msgid "Iyyar"
368 msgstr "Iyyar"
369
370 #: src/hdate_strings.c:366 src/hdate_strings.c:371
371 msgid "Sivan"
372 msgstr "Siván"
373
374 #: src/hdate_strings.c:366 src/hdate_strings.c:371
375 #, fuzzy
376 msgid "Tammuz"
377 msgstr "Ayuno de Tammuz"
378
379 #: src/hdate_strings.c:366 src/hdate_strings.c:371
380 msgid "Av"
381 msgstr "Av"
382
383 #: src/hdate_strings.c:366 src/hdate_strings.c:371
384 msgid "Elul"
385 msgstr "Elul"
386
387 #: src/hdate_strings.c:366 src/hdate_strings.c:371
388 msgid "Adar I"
389 msgstr "Adar I"
390
391 #: src/hdate_strings.c:367 src/hdate_strings.c:372
392 msgid "Adar II"
393 msgstr "Adar II"
394
395 #: src/hdate_strings.c:384
396 msgid "January"
397 msgstr "Enero"
398
399 #: src/hdate_strings.c:384
400 msgid "February"
401 msgstr "Febrero"
402
403 #: src/hdate_strings.c:384
404 msgid "March"
405 msgstr "Marzo"
406
407 #: src/hdate_strings.c:385
408 msgid "April"
409 msgstr "Abril"
410
411 #: src/hdate_strings.c:385 src/hdate_strings.c:388
412 msgid "May"
413 msgstr "May"
414
415 #: src/hdate_strings.c:385
416 msgid "June"
417 msgstr "Junio"
418
419 #: src/hdate_strings.c:386
420 msgid "July"
421 msgstr "Julio"
422
423 #: src/hdate_strings.c:386
424 msgid "August"
425 msgstr "Agosto"
426
427 #: src/hdate_strings.c:386
428 msgid "September"
429 msgstr "Septiembre"
430
431 #: src/hdate_strings.c:387
432 msgid "October"
433 msgstr "Octubre"
434
435 #: src/hdate_strings.c:387
436 msgid "November"
437 msgstr "Noviembre"
438
439 #: src/hdate_strings.c:387
440 msgid "December"
441 msgstr "Diciembre"
442
443 #: src/hdate_strings.c:388
444 msgid "Jan"
445 msgstr "Ene"
446
447 #: src/hdate_strings.c:388
448 msgid "Feb"
449 msgstr "Feb"
450
451 #: src/hdate_strings.c:388
452 msgid "Mar"
453 msgstr "Mar"
454
455 #: src/hdate_strings.c:388
456 msgid "Apr"
457 msgstr "Abr"
458
459 #: src/hdate_strings.c:389
460 msgid "Jun"
461 msgstr "Jun"
462
463 #: src/hdate_strings.c:389
464 msgid "Jul"
465 msgstr "Jul"
466
467 #: src/hdate_strings.c:389
468 msgid "Aug"
469 msgstr "Ago"
470
471 #: src/hdate_strings.c:389
472 msgid "Sep"
473 msgstr "Sep"
474
475 #: src/hdate_strings.c:389
476 msgid "Oct"
477 msgstr "Oct"
478
479 #: src/hdate_strings.c:390
480 msgid "Nov"
481 msgstr "Nov"
482
483 #: src/hdate_strings.c:390
484 msgid "Dec"
485 msgstr "Dic"
486
487 #: src/hdate_strings.c:396 src/hdate_strings.c:416
488 msgid "Rosh Hashana I"
489 msgstr "Rosh Hashana I"
490
491 #: src/hdate_strings.c:396 src/hdate_strings.c:416
492 msgid "Rosh Hashana II"
493 msgstr "Rosh Hashana II"
494
495 #: src/hdate_strings.c:397 src/hdate_strings.c:417
496 msgid "Tzom Gedaliah"
497 msgstr "Ayuno de Gedaliah"
498
499 #: src/hdate_strings.c:397 src/hdate_strings.c:417
500 msgid "Yom Kippur"
501 msgstr "Yom Kippur"
502
503 #: src/hdate_strings.c:398 src/hdate_strings.c:418
504 msgid "Sukkot"
505 msgstr "Sukkot"
506
507 #: src/hdate_strings.c:398 src/hdate_strings.c:418
508 msgid "Hol hamoed Sukkot"
509 msgstr "Hol hamoed Sukkot"
510
511 #: src/hdate_strings.c:399 src/hdate_strings.c:419
512 msgid "Hoshana raba"
513 msgstr "Hoshana raba"
514
515 #: src/hdate_strings.c:399 src/hdate_strings.c:419
516 msgid "Simchat Torah"
517 msgstr "Simjat Torah"
518
519 #: src/hdate_strings.c:400 src/hdate_strings.c:420
520 msgid "Chanukah"
521 msgstr "Januka"
522
523 #: src/hdate_strings.c:400 src/hdate_strings.c:420
524 #, fuzzy
525 msgid "Asara B'Tevet"
526 msgstr "Asara B'Tevet"
527
528 #: src/hdate_strings.c:401 src/hdate_strings.c:421
529 msgid "Tu B'Shvat"
530 msgstr "Tu B'Shvat"
531
532 #: src/hdate_strings.c:401 src/hdate_strings.c:421
533 #, fuzzy
534 msgid "Ta'anit Esther"
535 msgstr "Ta'anit Esther"
536
537 #: src/hdate_strings.c:402 src/hdate_strings.c:422
538 msgid "Purim"
539 msgstr "Purim"
540
541 #: src/hdate_strings.c:402 src/hdate_strings.c:422
542 msgid "Shushan Purim"
543 msgstr "Shushan Purim"
544
545 #: src/hdate_strings.c:403 src/hdate_strings.c:423
546 msgid "Pesach"
547 msgstr "Pesaj"
548
549 #: src/hdate_strings.c:403 src/hdate_strings.c:423
550 msgid "Hol hamoed Pesach"
551 msgstr "Jol hamoed Pesaj"
552
553 #: src/hdate_strings.c:404 src/hdate_strings.c:424
554 msgid "Yom HaAtzma'ut"
555 msgstr "Yom HaAtzma'ut"
556
557 #: src/hdate_strings.c:404 src/hdate_strings.c:424
558 msgid "Lag B'Omer"
559 msgstr "Lag B'Omer"
560
561 #: src/hdate_strings.c:405 src/hdate_strings.c:425
562 msgid "Erev Shavuot"
563 msgstr "Víspera de Shavuot"
564
565 #: src/hdate_strings.c:405 src/hdate_strings.c:425
566 msgid "Shavuot"
567 msgstr "Shavuot"
568
569 #: src/hdate_strings.c:406 src/hdate_strings.c:426
570 msgid "Tzom Tammuz"
571 msgstr "Ayuno de Tammuz"
572
573 #: src/hdate_strings.c:406 src/hdate_strings.c:426
574 msgid "Tish'a B'Av"
575 msgstr "Tish'a B'Av"
576
577 #: src/hdate_strings.c:407 src/hdate_strings.c:427
578 msgid "Tu B'Av"
579 msgstr "Tu B'Av"
580
581 #: src/hdate_strings.c:407 src/hdate_strings.c:427
582 msgid "Yom HaShoah"
583 msgstr "Día del Holocausto"
584
585 #: src/hdate_strings.c:408 src/hdate_strings.c:428
586 msgid "Yom HaZikaron"
587 msgstr "Día del Recuerdo"
588
589 #: src/hdate_strings.c:408 src/hdate_strings.c:428
590 #, fuzzy
591 msgid "Yom Yerushalayim"
592 msgstr "Yom Yerushalayim"
593
594 #: src/hdate_strings.c:409 src/hdate_strings.c:429
595 msgid "Shmini Atzeret"
596 msgstr "Shemini Atzeret"
597
598 #: src/hdate_strings.c:409 src/hdate_strings.c:429
599 msgid "Pesach VII"
600 msgstr "Pesaj VII"
601
602 #: src/hdate_strings.c:410 src/hdate_strings.c:430
603 msgid "Pesach VIII"
604 msgstr "Pesaj VIII"
605
606 #: src/hdate_strings.c:410 src/hdate_strings.c:430
607 msgid "Shavuot II"
608 msgstr "Shavuot II"
609
610 #: src/hdate_strings.c:411 src/hdate_strings.c:431
611 #, fuzzy
612 msgid "Sukkot II"
613 msgstr "Sukkot II"
614
615 #: src/hdate_strings.c:411 src/hdate_strings.c:431
616 #, fuzzy
617 msgid "Pesach II"
618 msgstr "Pesaj II"
619
620 #: src/hdate_strings.c:412 src/hdate_strings.c:432
621 msgid "Family Day"
622 msgstr ""
623
624 #: src/hdate_strings.c:412 src/hdate_strings.c:432
625 msgid "Memorial day for fallen whose place of burial is unknown"
626 msgstr ""
627
628 #: src/hdate_strings.c:413
629 msgid "Yitzhak Rabin memorial day"
630 msgstr ""
631
632 #: src/hdate_strings.c:413
633 msgid "Zeev Zhabotinsky day"
634 msgstr ""
635
636 #: src/hdate_strings.c:414 src/hdate_strings.c:434
637 #, fuzzy
638 msgid "Erev Yom Kippur"
639 msgstr "Víspera de Yom Kippur"
640
641 #: src/hdate_strings.c:433
642 msgid "Rabin memorial day"
643 msgstr ""
644
645 #: src/hdate_strings.c:433
646 msgid "Zhabotinsky day"
647 msgstr ""
648
649 #: src/hdate_strings.c:514
650 msgid "in the Omer"
651 msgstr ""
652
653 #: examples/hcal/hcal.c:142
654 msgid ""
655 "# configuration file for hcal - Hebrew calendar program\n"
656 "# part of package libhdate\n"
657 "#\n"
658 "# Should you mangle this file and wish to restore its default content,\n"
659 "# rename or delete this file and run hcal; hcal will automatically\n"
660 "# regenerate the default content.\n"
661 "#\n"
662 "# Your system administrator can set system-wide defaults for hcal by\n"
663 "# modifying file <not yet implemented>.\n"
664 "# You may override all defaults by changing the contents of this file.\n"
665 "#\n"
666 "# Version information\n"
667 "# This may be used by updates to hcal to determine how to parse the file\n"
668 "# and whether additional information and options should be appended to\n"
669 "# the end of this file.\n"
670 "VERSION=2.00\n"
671 "# Location awareness\n"
672 "# hcal wants to accurately highlight the current Hebrew day, including\n"
673 "# during the hours between sunset and secular midnight. If you don't\n"
674 "# provide it with latitude, longitude, and time zone information, hcal\n"
675 "# will try to guess the information, based upon your system timezone,\n"
676 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
677 "# in that timezone. When hcal is forced to guess, it alerts the user\n"
678 "# with a message that includes the guessed location.\n"
679 "# hcal's guesses will also affect its default behaviour for ouput of\n"
680 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays\n"
681 "#SUNSET_AWARE=TRUE\n"
682 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
683 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
684 "# delimiters. Use negative values to indicate South and West, or\n"
685 "# use the abbreviated compass directions N, S, E, W.\n"
686 "#LATITUDE=\n"
687 "#LONGITUDE=\n"
688 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
689 "# with the characters :'\" as possible delimiters.\n"
690 "#TIMEZONE=\n"
691 "\n"
692 "# Israel and the diaspora\n"
693 "# If hcal guesses that you're not in Israel, the DIASPORA option will be\n"
694 "# set true. This will affect holiday and parasha output. FORCE_ISRAEL\n"
695 "# forces hcal to display calendar information for Israel, using hcal's\n"
696 "# default coordinates foe Israel, or coordinates that you provide that\n"
697 "# seem legitmately within Israel.\n"
698 "# Thus, if you are living in Sao Paolo, and will be visiting Israel for\n"
699 "# Sukkot, set BOTH flags true in order to see holiday information for\n"
700 "# a non-resident vistor to Israel. The command line options for these\n"
701 "# features are --israel, -I, --diaspora, -d.\n"
702 "#FORCE_DIASPORA=FALSE;\n"
703 "#FORCE_ISRAEL=FALSE;\n"
704 "\n"
705 "# Shabbat related\n"
706 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
707 "# The command line options for these features are -p (--parasha), and\n"
708 "# -s (--shabbat). The CANDLE_LIGHTING field can accept a value of 18 - 90 "
709 "(minutes\n"
710 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
711 "# (minutes after sunset).\n"
712 "#PARASHA_NAMES=FALSE\n"
713 "#SHABBAT_INFO=FALSE\n"
714 "#CANDLE_LIGHTING=FALSE\n"
715 "#HAVDALAH=FALSE\n"
716 "\n"
717 "# Holiday identification\n"
718 "# hcal flags holidays by replacing the gregorian/Hebrew date separator\n"
719 "# with assorted unhelpful cryptic symbols. Setting FOOTNOTES to true\n"
720 "# will have hcal output after the month's calendar, a list of the month's\n"
721 "# holidays along with the days on which they occur.\n"
722 "#FOOTNOTE=FALSE\n"
723 "\n"
724 "# Output in hebrew characters\n"
725 "# hcal defaults to output all information in your default language, so\n"
726 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
727 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
728 "# still outputting gregorian information in your default language. To\n"
729 "# output ALL information in Hebrew, run something like this:\n"
730 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hcal; LC_ALL=$LC_TEMP\n"
731 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
732 "# output, you need to install a terminal font that includes the Hebrew\n"
733 "# character set (hint: unicode).\n"
734 "# The command line option for FORCE_HEBREW is either --hebrew or -H\n"
735 "#FORCE_HEBREW=FALSE\n"
736 "\n"
737 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
738 "# Unfortunately, the world can not be depended upon to be either. Most\n"
739 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
740 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
741 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
742 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
743 "# This will reverse the order of the Hebrew characters, so they will\n"
744 "# display 'visual'ly correct; however, such output will not be suitable\n"
745 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
746 "# automatically forces hebrew.\n"
747 "# The command line option for OUTPUT_BIDI is either --bidi, --visual, or -b\n"
748 "#OUTPUT_BIDI=FALSE\n"
749 "\n"
750 "# Display enhancements\n"
751 "# hcal defaults to display the current day in reverse video\n"
752 "# The command line option for this feature is --no-reverse\n"
753 "#SUPPRESS_REVERSE_VIDEO=FALSE;\n"
754 "# hcal can display its output \"calming, muted tones\". Note that piping\n"
755 "# colorized output may yield unexpected results.\n"
756 "#COLORIZE=FALSE\n"
757 "\n"
758 "# HTML OUTPUT\n"
759 "#OUTPUT_HTML=FALSE\n"
760 "#USE_EXTERNAL_CSS_FILE=\"pathto/foo/bar\"\n"
761 "\n"
762 "# Suppress alerts and warnings\n"
763 "# hcal alerts the user via STDERR when it guesses the user's location.\n"
764 "#QUIET_ALERTS=FALSE\n"
765 "\n"
766 "# Three month display\n"
767 "# hcal can display a previous, current and next month side-by-side. hcal\n"
768 "# can also display a calendar for an entire year in four rows of three\n"
769 "# months each. Note that this will display properly only if your console\n"
770 "# is set for at least 127 columns. Note also that setting this option to\n"
771 "# will cause options FOOTNOTES, SHABBAT, and PARASHA_NAMES to false.\n"
772 "#THREE_MONTH=FALSE\n"
773 "\n"
774 "# User-defined menus\n"
775 "# You may specify here command-line strings to optionally be parsed\n"
776 "# by hcal at execution time. To do so, use the command line option -m\n"
777 "# (--menu). hcal will process first the settings of this config file,\n"
778 "# then the other settings of your command line, and then will prompt\n"
779 "# you for which menu item you would like to select. hcal will process\n"
780 "# your menu selection as if it were a new command line, further modifying\n"
781 "# all the prior settings.\n"
782 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
783 "# truncated at one hundred characters\n"
784 "#MENU= -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
785 "#MENU= -l 32 -L 34 -z 2 # son in bnei brak\n"
786 "#MENU= -fbc -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
787 "#MENU= -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
788 msgstr ""
789
790 #: examples/hcal/hcal.c:271
791 msgid ""
792 "hcal - Hebrew calendar\n"
793 "version 1.6"
794 msgstr ""
795
796 #: examples/hcal/hcal.c:281
797 msgid ""
798 "Usage: hcal [options] [coordinates timezone] ] [[month] year]\n"
799 " coordinates: -l [NS]yy[.xxx] -L [EW]xx[.xxx]\n"
800 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
801 " timezone: -z nn[( .nn | :mm )]\n"
802 "Try 'hcal --help' for more information"
803 msgstr ""
804
805 #: examples/hcal/hcal.c:295
806 msgid ""
807 "Hebrew calendar\n"
808 "OPTIONS:\n"
809 " -1 --one-month over-ride config file setting if you had set\n"
810 " option --three-month as a default there\n"
811 " -3 --three-month displays previous/next months\n"
812 " side by side. requires 127 columns\n"
813 " -b --bidi prints hebrew in reverse (visual)\n"
814 " --visual\n"
815 " --no-bidi over-ride config file setting if you had set\n"
816 " --no-visual option -bidi as a default there\n"
817 " -c --colorize displays in calming, muted tones\n"
818 " --no-color over-ride a --colorize setting in your config file\n"
819 " -d --diaspora use diaspora reading and holidays.\n"
820 " -f --footnote print descriptive notes of holidays\n"
821 " --no-footnote over-ride a footnote setting in your config file\n"
822 " -h --html output in html format to stdout\n"
823 " -H --hebrew print hebrew information in Hebrew\n"
824 " -i use external css file \"./hcal.css\".\n"
825 " -I --israel override a diaspora default\n"
826 " --no-reverse do not highlight today's date\n"
827 " -m --menu prompt user-defined menu from config file\n"
828 " -p --parasha print week's parasha on each calendar row\n"
829 " -q --quiet-alerts suppress warning messages\n"
830 " -s --shabbat print Shabbat times and parshiot\n"
831 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
832 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
833 " -z --timezone nn timezone, +/-UTC\n"
834 " -l --latitude yy latitude yy degrees. Negative values are South\n"
835 " -L --longitude xx longitude xx degrees. Negative values are West\n"
836 "\n"
837 "All options can be made default in the config file, or menu-ized for\n"
838 "easy selection."
839 msgstr ""
840
841 #: examples/hcal/hcal.c:1868
842 msgid ""
843 "ALERT: options --parasha, --shabbat, --footnote are not supported in 'three-"
844 "month' mode"
845 msgstr ""
846
847 #: examples/hcal/hcal.c:1940 examples/hcal/local_functions.c:92
848 #: examples/hcal/local_functions.c:99 examples/hcal/local_functions.c:112
849 #: examples/hcal/local_functions.c:486 examples/hcal/local_functions.c:491
850 msgid "error"
851 msgstr ""
852
853 #: examples/hcal/hcal.c:1940
854 msgid "too many parameters received. expected [[mm] [yyyy]"
855 msgstr ""
856
857 #: examples/hcal/hcal.c:1949 examples/hcal/hdate.c:1929
858 #: examples/hcal/hdate.c:2003 examples/hcal/hdate.c:2100
859 msgid "year"
860 msgstr ""
861
862 #: examples/hcal/hcal.c:1957 examples/hcal/hdate.c:2013
863 #: examples/hcal/hdate.c:2016 examples/hcal/hdate.c:2070
864 #: examples/hcal/hdate.c:2110 examples/hcal/hdate.c:2113
865 #: examples/hcal/hdate.c:2132
866 msgid "month"
867 msgstr ""
868
869 #: examples/hcal/hdate.c:42
870 msgid "sunrise"
871 msgstr ""
872
873 #: examples/hcal/hdate.c:43
874 msgid "sunset"
875 msgstr ""
876
877 #: examples/hcal/hdate.c:44
878 msgid "first_light"
879 msgstr ""
880
881 #: examples/hcal/hdate.c:45
882 msgid "talit"
883 msgstr ""
884
885 #: examples/hcal/hdate.c:46
886 msgid "midday"
887 msgstr ""
888
889 #: examples/hcal/hdate.c:47
890 msgid "first_stars"
891 msgstr ""
892
893 #: examples/hcal/hdate.c:48
894 msgid "three_stars"
895 msgstr ""
896
897 #: examples/hcal/hdate.c:49 examples/hcal/hdate.c:635
898 msgid "sun_hour"
899 msgstr ""
900
901 #: examples/hcal/hdate.c:50
902 msgid "candle-lighting"
903 msgstr ""
904
905 #: examples/hcal/hdate.c:51
906 msgid "havdalah"
907 msgstr ""
908
909 #: examples/hcal/hdate.c:81
910 msgid ""
911 "# configuration file for hdate - Hebrew date information program\n"
912 "# part of package libhdate\n"
913 "#\n"
914 "# Should you mangle this file and wish to restore its default content,\n"
915 "# rename or delete this file and run hdate; hdate will automatically\n"
916 "# regenerate the default content.\n"
917 "#\n"
918 "# Your system administrator can set system-wide defaults for hcal by\n"
919 "# modifying file <not yet implemented>.\n"
920 "# You may override all defaults by changing the contents of this file.\n"
921 "#\n"
922 "# Version information\n"
923 "# This may be used by updates to hcal to determine how to parse the file\n"
924 "# and whether additional information and options should be appended to\n"
925 "# the end of this file.\n"
926 "VERSION=2.00\n"
927 "#\n"
928 "# Location awareness\n"
929 "# hdate wants to accurately highlight the current Hebrew day, including\n"
930 "# during the hours between sunset and secular midnight. If you don't\n"
931 "# provide it with latitude, longitude, and time zone information, hdate\n"
932 "# will try to guess the information, based upon your system timezone,\n"
933 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
934 "# in that timezone. When hdate is forced to guess, it alerts the user\n"
935 "# with a message that includes the guessed location.\n"
936 "# hdate's guesses will also affect its default behaviour for ouput of\n"
937 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays.\n"
938 "#SUNSET_AWARE=TRUE\n"
939 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
940 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
941 "# delimiters. Use negative values to indicate South and West, or\n"
942 "# use the abbreviated compass directions N, S, E, W.\n"
943 "#LATITUDE=\n"
944 "#LONGITUDE=\n"
945 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
946 "# with the characters :'\" as possible delimiters.\n"
947 "#TIMEZONE=\n"
948 "\n"
949 "# Output in hebrew characters\n"
950 "# hdate defaults to output all information in your default language, so\n"
951 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
952 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
953 "# still outputting gregorian information in your default language. To\n"
954 "# output ALL information in Hebrew, run something like this:\n"
955 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hdate; LC_ALL=$LC_TEMP\n"
956 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
957 "# output, you need to install a terminal font that includes the Hebrew\n"
958 "# character set (hint: unicode).\n"
959 "#FORCE_HEBREW=FALSE\n"
960 "\n"
961 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
962 "# Unfortunately, the world can not be depended upon to be either. Most\n"
963 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
964 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
965 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
966 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
967 "# This will reverse the order of the Hebrew characters, so they will\n"
968 "# display 'visual'ly correct; however, such output will not be suitable\n"
969 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
970 "# automatically forces hebrew.\n"
971 "#OUTPUT_BIDI=FALSE\n"
972 "\n"
973 "# The Hebrew language output of Hebrew information can also be 'styled'\n"
974 "# in the following ways:\n"
975 "# option YOM ~> yom shishi, aleph tishrei ...\n"
976 "# option LESHABBAT ~> yom sheni leshabbat miketz, kof kislev ...\n"
977 "# option LESEDER ~> yom sheni leseder miketz, kof kislev ...\n"
978 "#YOM=FALSE\n"
979 "#LESHABBAT=FALSE\n"
980 "#LESEDER=FALSE\n"
981 "\n"
982 "#SUN_RISE_SET=FALSE\n"
983 "#TIMES_OF_DAY=FALSE\n"
984 "#SHORT_FORMAT=FALSE\n"
985 "#SEFIRAT_HAOMER=FALSE\n"
986 "#DIASPORA=FALSE\n"
987 "\n"
988 "\n"
989 "# Shabbat related\n"
990 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
991 "# The command line options for these features are -r (--parasha), and\n"
992 "# -c. The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n"
993 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
994 "# (minutes after sunset).\n"
995 "#PARASHA_NAMES=FALSE\n"
996 "#ONLY_IF_PARASHA_IS_READ=FALSE\n"
997 "#SHABBAT_INFO=FALSE\n"
998 "\n"
999 "#CANDLE_LIGHTING=FALSE\n"
1000 "#HAVDALAH=FALSE\n"
1001 "\n"
1002 "# Holiday related\n"
1003 "#HOLIDAYS=FALSE\n"
1004 "#ONLY_IF_HOLIDAY=FALSE\n"
1005 "\n"
1006 "# Tabular output\n"
1007 "# This option has hdate output the information you request in a single\n"
1008 "# comma-delimited line per day, suitable for piping or import to\n"
1009 "# spreadsheet formatting applications, etc. To belabor the obvious,\n"
1010 "# try running - ./hdate 12 2011 -Rt --table |column -s, -t \n"
1011 "# The command line option for this feature is, um, --table\n"
1012 "#TABULAR=FALSE\n"
1013 "\n"
1014 "# iCal format\n"
1015 "# hdate can output its information in iCal-compatable format\n"
1016 "# ICAL=FALSE\n"
1017 "# Suppress alerts and warnings\n"
1018 "# hdate alerts the user via STDERR when it guesses the user's location.\n"
1019 "#QUIET_ALERTS=FALSE\n"
1020 "\n"
1021 "# Julian day number\n"
1022 "# The Julian day number is a .... See ... for more details.\n"
1023 "# setting the option JULIAN_DAY will have hdate output that number in\n"
1024 "# the format JDN-nnnnnnn at the beginning of its first line of output.\n"
1025 "#JULIAN_DAY=FALSE\n"
1026 "\n"
1027 "# User-defined menus\n"
1028 "# You may specify here command-line strings to optionally be parsed\n"
1029 "# by hcal at execution time. To do so, use the command line option -m\n"
1030 "# (--menu). hcal will process first the settings of this config file,\n"
1031 "# then the other settings of your command line, and then will prompt\n"
1032 "# you for which menu item you would like to select. hcal will process\n"
1033 "# your menu selection as if it were a new command line, further modifying\n"
1034 "# all the prior settings.\n"
1035 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
1036 "# truncated at one hundred characters\n"
1037 "#MENU= -bd -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
1038 "#MENU= -b -l 32 -L 34 -z 2 # son in bnei brak\n"
1039 "#MENU= -bd -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
1040 "#MENU= -bd -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
1041 msgstr ""
1042
1043 #: examples/hcal/hdate.c:209
1044 msgid ""
1045 "hdate - display Hebrew date information\n"
1046 "version 1.6"
1047 msgstr ""
1048
1049 #: examples/hcal/hdate.c:219
1050 msgid ""
1051 "Usage: hdate [options] [coordinates timezone] [[[day] month] year]\n"
1052 " hdate [options] [coordinates timezone] [julian_day]\n"
1053 "\n"
1054 " coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]\n"
1055 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
1056 " timezone: -z nn[( .nn | :mm )]\n"
1057 "Try 'hdate --help' for more information"
1058 msgstr ""
1059
1060 #: examples/hcal/hdate.c:235
1061 msgid ""
1062 "hdate - display Hebrew date information\n"
1063 "OPTIONS:\n"
1064 " -b --bidi prints hebrew in reverse (visual)\n"
1065 " --visual\n"
1066 " -c print Shabbat start/end times.\n"
1067 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
1068 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
1069 " -d --diaspora use diaspora reading and holidays.\n"
1070 " -h --holidays print holidays.\n"
1071 " -H print only it is a holiday.\n"
1072 " -i --ical use iCal formated output.\n"
1073 " -j --julian print Julian day number.\n"
1074 " -m --menu prompt user-defined menu from config file\n"
1075 " -o --omer print Sefirat Haomer.\n"
1076 " -q --quiet-alerts suppress warning messages\n"
1077 " -r --parasha print weekly reading on saturday.\n"
1078 " -R print only if there is a weekly reading on Shabbat.\n"
1079 " -s --sun print sunrise/sunset times.\n"
1080 " -S --short-format print using short format.\n"
1081 " -t print day times: first light, talit, sunrise,\n"
1082 " midday, sunset, first stars, three stars.\n"
1083 " -T --table tabular output, suitable for spreadsheets\n"
1084 "\n"
1085 " -z --timezone nn timezone, +/-UTC\n"
1086 " -l --latitude yy latitude yy degrees. Negative values are South\n"
1087 " -L --longitude xx longitude xx degrees. Negative values are West\n"
1088 "\n"
1089 " --hebrew forces Hebrew to print in Hebrew characters\n"
1090 " --yom force Hebrew prefix to Hebrew day of week\n"
1091 " --leshabbat insert parasha between day of week and day\n"
1092 " --leseder insert parasha between day of week and day\n"
1093 " --not-sunset-aware don't display next day if after sunset\n"
1094 "\n"
1095 "All options can be made default in the config file, or menu-ized for\n"
1096 "easy selection."
1097 msgstr ""
1098
1099 #: examples/hcal/hdate.c:274
1100 msgid ""
1101 "ALERT: The information displayed is for today's Hebrew date.\n"
1102 " Because it is now after sunset, that means the data is\n"
1103 " for the Gregorian day beginning at midnight."
1104 msgstr ""
1105
1106 #: examples/hcal/hdate.c:405
1107 msgid "eve of "
1108 msgstr ""
1109
1110 #: examples/hcal/hdate.c:669
1111 msgid "today is day"
1112 msgstr ""
1113
1114 #: examples/hcal/hdate.c:743
1115 msgid "Gregorian date"
1116 msgstr ""
1117
1118 #: examples/hcal/hdate.c:743
1119 msgid "Hebrew Date"
1120 msgstr ""
1121
1122 #: examples/hcal/hdate.c:748
1123 #, fuzzy
1124 msgid "holiday"
1125 msgstr "Viernes"
1126
1127 #: examples/hcal/hdate.c:749
1128 msgid "omer count"
1129 msgstr ""
1130
1131 #: examples/hcal/hdate.c:750
1132 msgid "parashat"
1133 msgstr ""
1134
1135 #: examples/hcal/hdate.c:1016
1136 msgid "Parashat"
1137 msgstr ""
1138
1139 #: examples/hcal/hdate.c:2120 examples/hcal/hdate.c:2139
1140 #, fuzzy
1141 msgid "day"
1142 msgstr "May"
1143
1144 #: examples/hcal/hdate.c:2168
1145 msgid "too many arguments; after options max is dd mm yyyy"
1146 msgstr ""
1147
1148 #: examples/hcal/local_functions.c:93
1149 msgid "parameter"
1150 msgstr ""
1151
1152 #: examples/hcal/local_functions.c:94
1153 msgid "is non-numeric or out of bounds"
1154 msgstr ""
1155
1156 #: examples/hcal/local_functions.c:100 examples/hcal/local_functions.c:113
1157 msgid "option"
1158 msgstr ""
1159
1160 #: examples/hcal/local_functions.c:100
1161 msgid "missing parameter"
1162 msgstr ""
1163
1164 #: examples/hcal/local_functions.c:106
1165 msgid "ALERT: time zone not entered, using system local time zone"
1166 msgstr ""
1167
1168 #: examples/hcal/local_functions.c:113
1169 msgid "is not a valid option"
1170 msgstr ""
1171
1172 #: examples/hcal/local_functions.c:130
1173 msgid "ALERT: guessing... will use co-ordinates for"
1174 msgstr ""
1175
1176 #: examples/hcal/local_functions.c:138
1177 msgid "Los Angeles"
1178 msgstr ""
1179
1180 #: examples/hcal/local_functions.c:139
1181 msgid "Mexico City"
1182 msgstr ""
1183
1184 #: examples/hcal/local_functions.c:140
1185 msgid "New York City"
1186 msgstr ""
1187
1188 #: examples/hcal/local_functions.c:143
1189 msgid "Buenos Aires"
1190 msgstr ""
1191
1192 #: examples/hcal/local_functions.c:144
1193 msgid "London"
1194 msgstr ""
1195
1196 #: examples/hcal/local_functions.c:145
1197 msgid "Paris"
1198 msgstr ""
1199
1200 #: examples/hcal/local_functions.c:146
1201 msgid "Tel-Aviv"
1202 msgstr ""
1203
1204 #: examples/hcal/local_functions.c:147
1205 msgid "Moscow"
1206 msgstr ""
1207
1208 #: examples/hcal/local_functions.c:148
1209 msgid "Tashkent"
1210 msgstr ""
1211
1212 #: examples/hcal/local_functions.c:149
1213 msgid "Beijing"
1214 msgstr ""
1215
1216 #: examples/hcal/local_functions.c:151
1217 msgid "Honolulu"
1218 msgstr ""
1219
1220 #: examples/hcal/local_functions.c:152
1221 msgid "Hmmm, ... hate to do this, really ..."
1222 msgstr ""
1223
1224 #: examples/hcal/local_functions.c:152
1225 msgid "using co-ordinates for the equator, at the center of time zone"
1226 msgstr ""
1227
1228 #: examples/hcal/local_functions.c:318 examples/hcal/local_functions.c:332
1229 #: examples/hcal/local_functions.c:333
1230 msgid "l (latitude)"
1231 msgstr ""
1232
1233 #: examples/hcal/local_functions.c:319
1234 msgid "L (Longitue)"
1235 msgstr ""
1236
1237 #: examples/hcal/local_functions.c:365 examples/hcal/local_functions.c:379
1238 #: examples/hcal/local_functions.c:380 examples/hcal/local_functions.c:411
1239 msgid "L (Longitude)"
1240 msgstr ""
1241
1242 #: examples/hcal/local_functions.c:442
1243 msgid "z (time zone)"
1244 msgstr ""
1245
1246 #: examples/hcal/local_functions.c:462
1247 msgid "z (timezone)"
1248 msgstr ""
1249
1250 #: examples/hcal/local_functions.c:486
1251 msgid "valid longitude parameter missing for given latitude"
1252 msgstr ""
1253
1254 #: examples/hcal/local_functions.c:491
1255 msgid "valid latitude parameter missing for given longitude"
1256 msgstr ""
1257
1258 #: examples/hcal/local_functions.c:529
1259 msgid "time zone value of"
1260 msgstr ""
1261
1262 #: examples/hcal/local_functions.c:530
1263 msgid "is incompatible with a longitude of"
1264 msgstr ""
1265
1266 #: examples/hcal/local_functions.c:530
1267 msgid "degrees"
1268 msgstr ""
1269
1270 #: examples/hcal/local_functions.c:638
1271 msgid ""
1272 "This seems to be to be your first time using this version.\n"
1273 "Please read the new documentation in the man page and config\n"
1274 "file. Attempting to create a config file ..."
1275 msgstr ""
1276
1277 #: examples/hcal/local_functions.c:677
1278 msgid "failure attempting to create config file"
1279 msgstr ""
1280
1281 #: examples/hcal/local_functions.c:681
1282 msgid "config file created"
1283 msgstr ""
1284
1285 #: examples/hcal/local_functions.c:682
1286 msgid "failure closing"
1287 msgstr ""
1288
1289 #: examples/hcal/local_functions.c:702
1290 msgid "memory allocation failure"
1291 msgstr ""
1292
1293 #: examples/hcal/local_functions.c:916
1294 msgid "your custom menu options (from your config file)"
1295 msgstr ""
1296
1297 #: examples/hcal/local_functions.c:922
1298 msgid "ALERT: -m (--menu) option specified, but no menu items in config file"
1299 msgstr ""
1300
1301 #: examples/hcal/local_functions.c:925
1302 msgid "enter your selection, or <return> to continue"
1303 msgstr ""
1304
1305 #: examples/hcal/local_functions.c:929
1306 msgid "menu selection received was out of bounds"
1307 msgstr ""
1308
1309 #~ msgid "Tamuz"
1310 #~ msgstr "Tamuz"
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: 2012-01-08 19:48-0500\n"
10 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
11 "Last-Translator: Yaacov Zamir\n"
12 "Language-Team: Franch\n"
13 "Language: fr\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:186 src/hdate_strings.c:190
19 msgid "translator"
20 msgstr "Yaacov Zamir"
21
22 #: src/hdate_strings.c:248
23 msgid "Sunday"
24 msgstr "Dimanche"
25
26 #: src/hdate_strings.c:248
27 msgid "Monday"
28 msgstr "Lundi"
29
30 #: src/hdate_strings.c:248
31 msgid "Tuesday"
32 msgstr "Mardi"
33
34 #: src/hdate_strings.c:248
35 msgid "Wednesday"
36 msgstr "Mercredi"
37
38 #: src/hdate_strings.c:249
39 msgid "Thursday"
40 msgstr "Jeudi"
41
42 #: src/hdate_strings.c:249
43 msgid "Friday"
44 msgstr "Vendredi"
45
46 #: src/hdate_strings.c:249
47 msgid "Saturday"
48 msgstr "Samedi"
49
50 #: src/hdate_strings.c:251
51 msgid "Sun"
52 msgstr "Dim"
53
54 #: src/hdate_strings.c:251
55 msgid "Mon"
56 msgstr "Lun"
57
58 #: src/hdate_strings.c:251
59 msgid "Tue"
60 msgstr "Mar"
61
62 #: src/hdate_strings.c:251
63 msgid "Wed"
64 msgstr "Mer"
65
66 #: src/hdate_strings.c:251
67 msgid "Thu"
68 msgstr "Jeu"
69
70 #: src/hdate_strings.c:252
71 msgid "Fri"
72 msgstr "Ven"
73
74 #: src/hdate_strings.c:252
75 msgid "Sat"
76 msgstr "Sam"
77
78 #: src/hdate_strings.c:265 src/hdate_strings.c:288
79 msgid "none"
80 msgstr "nulle"
81
82 #: src/hdate_strings.c:265 src/hdate_strings.c:288
83 msgid "Bereshit"
84 msgstr "Bereshit"
85
86 #: src/hdate_strings.c:265 src/hdate_strings.c:288
87 msgid "Noach"
88 msgstr "Noach"
89
90 #: src/hdate_strings.c:266 src/hdate_strings.c:289
91 msgid "Lech-Lecha"
92 msgstr "Lech-Lecha"
93
94 #: src/hdate_strings.c:266 src/hdate_strings.c:289
95 msgid "Vayera"
96 msgstr "Vaira"
97
98 #: src/hdate_strings.c:266 src/hdate_strings.c:289
99 msgid "Chayei Sara"
100 msgstr "Chayei Sará"
101
102 #: src/hdate_strings.c:267 src/hdate_strings.c:290
103 msgid "Toldot"
104 msgstr "Toldot"
105
106 #: src/hdate_strings.c:267 src/hdate_strings.c:290
107 msgid "Vayetzei"
108 msgstr "Vayetzei"
109
110 #: src/hdate_strings.c:267 src/hdate_strings.c:290
111 msgid "Vayishlach"
112 msgstr "Vayishlach"
113
114 #: src/hdate_strings.c:268 src/hdate_strings.c:291
115 msgid "Vayeshev"
116 msgstr "Vayeshev"
117
118 #: src/hdate_strings.c:268 src/hdate_strings.c:291
119 msgid "Miketz"
120 msgstr "Miketz"
121
122 #: src/hdate_strings.c:268 src/hdate_strings.c:291
123 msgid "Vayigash"
124 msgstr "Vayigash"
125
126 #: src/hdate_strings.c:269 src/hdate_strings.c:292
127 msgid "Vayechi"
128 msgstr "Vayechí"
129
130 #: src/hdate_strings.c:269 src/hdate_strings.c:292
131 msgid "Shemot"
132 msgstr "Shemot"
133
134 #: src/hdate_strings.c:269 src/hdate_strings.c:292
135 msgid "Vaera"
136 msgstr "Vaerá"
137
138 #: src/hdate_strings.c:270 src/hdate_strings.c:293
139 msgid "Bo"
140 msgstr "Bo"
141
142 #: src/hdate_strings.c:270 src/hdate_strings.c:293
143 msgid "Beshalach"
144 msgstr "Beshalach"
145
146 #: src/hdate_strings.c:270 src/hdate_strings.c:293
147 msgid "Yitro"
148 msgstr "Yitro"
149
150 #: src/hdate_strings.c:271 src/hdate_strings.c:294
151 msgid "Mishpatim"
152 msgstr "Mishpatim"
153
154 #: src/hdate_strings.c:271 src/hdate_strings.c:294
155 msgid "Terumah"
156 msgstr "Terumá"
157
158 #: src/hdate_strings.c:271 src/hdate_strings.c:294
159 msgid "Tetzaveh"
160 msgstr "Tetzavé"
161
162 #: src/hdate_strings.c:272 src/hdate_strings.c:295
163 msgid "Ki Tisa"
164 msgstr "Ki Tisá"
165
166 #: src/hdate_strings.c:272 src/hdate_strings.c:295
167 msgid "Vayakhel"
168 msgstr "Vayakhel"
169
170 #: src/hdate_strings.c:272 src/hdate_strings.c:295
171 msgid "Pekudei"
172 msgstr "Pekudei"
173
174 #: src/hdate_strings.c:273 src/hdate_strings.c:296
175 msgid "Vayikra"
176 msgstr "Vayikrá"
177
178 #: src/hdate_strings.c:273 src/hdate_strings.c:296
179 msgid "Tzav"
180 msgstr "Tzav"
181
182 #: src/hdate_strings.c:273 src/hdate_strings.c:296
183 msgid "Shmini"
184 msgstr "Shemini"
185
186 #: src/hdate_strings.c:274 src/hdate_strings.c:297
187 msgid "Tazria"
188 msgstr "Tazría"
189
190 #: src/hdate_strings.c:274 src/hdate_strings.c:297
191 msgid "Metzora"
192 msgstr "Metzorá"
193
194 #: src/hdate_strings.c:274 src/hdate_strings.c:297
195 msgid "Achrei Mot"
196 msgstr "Achrei Mot"
197
198 #: src/hdate_strings.c:275 src/hdate_strings.c:298
199 msgid "Kedoshim"
200 msgstr "Kedoshim"
201
202 #: src/hdate_strings.c:275 src/hdate_strings.c:298
203 msgid "Emor"
204 msgstr "Emor"
205
206 #: src/hdate_strings.c:275 src/hdate_strings.c:298
207 msgid "Behar"
208 msgstr "Bechar"
209
210 #: src/hdate_strings.c:276 src/hdate_strings.c:299
211 msgid "Bechukotai"
212 msgstr "Bechukotai"
213
214 #: src/hdate_strings.c:276 src/hdate_strings.c:299
215 msgid "Bamidbar"
216 msgstr "Bamidbar"
217
218 #: src/hdate_strings.c:276 src/hdate_strings.c:299
219 msgid "Nasso"
220 msgstr "Nasso"
221
222 #: src/hdate_strings.c:277 src/hdate_strings.c:300
223 msgid "Beha'alotcha"
224 msgstr "Beha'alotcha"
225
226 #: src/hdate_strings.c:277 src/hdate_strings.c:300
227 msgid "Sh'lach"
228 msgstr "Shalach"
229
230 #: src/hdate_strings.c:277 src/hdate_strings.c:300
231 msgid "Korach"
232 msgstr "Korach"
233
234 #: src/hdate_strings.c:278 src/hdate_strings.c:301
235 msgid "Chukat"
236 msgstr "Chukat"
237
238 #: src/hdate_strings.c:278 src/hdate_strings.c:301
239 msgid "Balak"
240 msgstr "Balak"
241
242 #: src/hdate_strings.c:278 src/hdate_strings.c:301
243 msgid "Pinchas"
244 msgstr "Pinchas"
245
246 #: src/hdate_strings.c:279 src/hdate_strings.c:302
247 msgid "Matot"
248 msgstr "Matot"
249
250 #: src/hdate_strings.c:279 src/hdate_strings.c:302
251 msgid "Masei"
252 msgstr "Masei"
253
254 #: src/hdate_strings.c:279 src/hdate_strings.c:302
255 msgid "Devarim"
256 msgstr "Devarim"
257
258 #: src/hdate_strings.c:280 src/hdate_strings.c:303
259 msgid "Vaetchanan"
260 msgstr "Vaetchanan"
261
262 #: src/hdate_strings.c:280 src/hdate_strings.c:303
263 msgid "Eikev"
264 msgstr "Eikev"
265
266 #: src/hdate_strings.c:280 src/hdate_strings.c:303
267 msgid "Re'eh"
268 msgstr "Re'é"
269
270 #: src/hdate_strings.c:281 src/hdate_strings.c:304
271 msgid "Shoftim"
272 msgstr "Shoftim"
273
274 #: src/hdate_strings.c:281 src/hdate_strings.c:304
275 msgid "Ki Teitzei"
276 msgstr "Ki Teitzei"
277
278 #: src/hdate_strings.c:281 src/hdate_strings.c:304
279 msgid "Ki Tavo"
280 msgstr "Ki Tavó"
281
282 #: src/hdate_strings.c:282 src/hdate_strings.c:305
283 msgid "Nitzavim"
284 msgstr "Nitzavim"
285
286 #: src/hdate_strings.c:282 src/hdate_strings.c:305
287 msgid "Vayeilech"
288 msgstr "Vayeilech"
289
290 #: src/hdate_strings.c:282 src/hdate_strings.c:305
291 msgid "Ha'Azinu"
292 msgstr "Ha'Azinu"
293
294 #: src/hdate_strings.c:283 src/hdate_strings.c:306
295 msgid "Vezot Habracha"
296 msgstr "Vezot Haberacha"
297
298 #: src/hdate_strings.c:284 src/hdate_strings.c:307
299 msgid "Vayakhel-Pekudei"
300 msgstr "Vayakhel-Pekudei"
301
302 #: src/hdate_strings.c:284 src/hdate_strings.c:307
303 msgid "Tazria-Metzora"
304 msgstr "Tazría-Metzora"
305
306 #: src/hdate_strings.c:284 src/hdate_strings.c:307
307 msgid "Achrei Mot-Kedoshim"
308 msgstr "Achrei Mot-Kedoshim"
309
310 #: src/hdate_strings.c:285 src/hdate_strings.c:308
311 msgid "Behar-Bechukotai"
312 msgstr "Bechar-Bechukotai"
313
314 #: src/hdate_strings.c:285 src/hdate_strings.c:308
315 msgid "Chukat-Balak"
316 msgstr "Chukat-Balak"
317
318 #: src/hdate_strings.c:285 src/hdate_strings.c:308
319 msgid "Matot-Masei"
320 msgstr "Matot-Masei"
321
322 #: src/hdate_strings.c:286 src/hdate_strings.c:309
323 msgid "Nitzavim-Vayeilech"
324 msgstr "Nitzavim-Vayeilech"
325
326 #: src/hdate_strings.c:364 src/hdate_strings.c:369
327 msgid "Tishrei"
328 msgstr "Tishrei"
329
330 #: src/hdate_strings.c:364 src/hdate_strings.c:369
331 msgid "Cheshvan"
332 msgstr "Cheshván"
333
334 #: src/hdate_strings.c:364 src/hdate_strings.c:369
335 msgid "Kislev"
336 msgstr "Kislev"
337
338 #: src/hdate_strings.c:364 src/hdate_strings.c:369
339 msgid "Tevet"
340 msgstr "Tevet"
341
342 #: src/hdate_strings.c:365 src/hdate_strings.c:370
343 msgid "Sh'vat"
344 msgstr "Sh'vat"
345
346 #: src/hdate_strings.c:365 src/hdate_strings.c:370
347 msgid "Adar"
348 msgstr "Adar"
349
350 #: src/hdate_strings.c:365 src/hdate_strings.c:370
351 msgid "Nisan"
352 msgstr "Nisan"
353
354 #: src/hdate_strings.c:365 src/hdate_strings.c:370
355 msgid "Iyyar"
356 msgstr "Iyyar"
357
358 #: src/hdate_strings.c:366 src/hdate_strings.c:371
359 msgid "Sivan"
360 msgstr "Siván"
361
362 #: src/hdate_strings.c:366 src/hdate_strings.c:371
363 #, fuzzy
364 msgid "Tammuz"
365 msgstr "Tzom Tammuz"
366
367 #: src/hdate_strings.c:366 src/hdate_strings.c:371
368 msgid "Av"
369 msgstr "Av"
370
371 #: src/hdate_strings.c:366 src/hdate_strings.c:371
372 msgid "Elul"
373 msgstr "Elul"
374
375 #: src/hdate_strings.c:366 src/hdate_strings.c:371
376 msgid "Adar I"
377 msgstr "Adar I"
378
379 #: src/hdate_strings.c:367 src/hdate_strings.c:372
380 msgid "Adar II"
381 msgstr "Adar II"
382
383 #: src/hdate_strings.c:384
384 msgid "January"
385 msgstr "Janvier"
386
387 #: src/hdate_strings.c:384
388 msgid "February"
389 msgstr "Février"
390
391 #: src/hdate_strings.c:384
392 msgid "March"
393 msgstr "Mars"
394
395 #: src/hdate_strings.c:385
396 msgid "April"
397 msgstr "Avril"
398
399 #: src/hdate_strings.c:385 src/hdate_strings.c:388
400 msgid "May"
401 msgstr "mai"
402
403 #: src/hdate_strings.c:385
404 msgid "June"
405 msgstr "Juin"
406
407 #: src/hdate_strings.c:386
408 msgid "July"
409 msgstr "Juillet"
410
411 #: src/hdate_strings.c:386
412 msgid "August"
413 msgstr "Août"
414
415 #: src/hdate_strings.c:386
416 msgid "September"
417 msgstr "Septembre"
418
419 #: src/hdate_strings.c:387
420 msgid "October"
421 msgstr "Octobre"
422
423 #: src/hdate_strings.c:387
424 msgid "November"
425 msgstr "Novembre"
426
427 #: src/hdate_strings.c:387
428 msgid "December"
429 msgstr "Décembre"
430
431 #: src/hdate_strings.c:388
432 msgid "Jan"
433 msgstr "Jan"
434
435 #: src/hdate_strings.c:388
436 msgid "Feb"
437 msgstr "Fév"
438
439 #: src/hdate_strings.c:388
440 msgid "Mar"
441 msgstr "Mar"
442
443 #: src/hdate_strings.c:388
444 msgid "Apr"
445 msgstr "Avr"
446
447 #: src/hdate_strings.c:389
448 msgid "Jun"
449 msgstr "Juin"
450
451 #: src/hdate_strings.c:389
452 msgid "Jul"
453 msgstr "Juil"
454
455 #: src/hdate_strings.c:389
456 msgid "Aug"
457 msgstr "Août"
458
459 #: src/hdate_strings.c:389
460 msgid "Sep"
461 msgstr "Sep"
462
463 #: src/hdate_strings.c:389
464 msgid "Oct"
465 msgstr "Oct"
466
467 #: src/hdate_strings.c:390
468 msgid "Nov"
469 msgstr "Nov"
470
471 #: src/hdate_strings.c:390
472 msgid "Dec"
473 msgstr "Déc"
474
475 #: src/hdate_strings.c:396 src/hdate_strings.c:416
476 msgid "Rosh Hashana I"
477 msgstr "Rosh Hashana I"
478
479 #: src/hdate_strings.c:396 src/hdate_strings.c:416
480 msgid "Rosh Hashana II"
481 msgstr "Rosh Hashana II"
482
483 #: src/hdate_strings.c:397 src/hdate_strings.c:417
484 msgid "Tzom Gedaliah"
485 msgstr "Tzom Gedaliah"
486
487 #: src/hdate_strings.c:397 src/hdate_strings.c:417
488 msgid "Yom Kippur"
489 msgstr "Yom Kippur"
490
491 #: src/hdate_strings.c:398 src/hdate_strings.c:418
492 msgid "Sukkot"
493 msgstr "Sukkot"
494
495 #: src/hdate_strings.c:398 src/hdate_strings.c:418
496 msgid "Hol hamoed Sukkot"
497 msgstr "Hol hamoed Sukkot"
498
499 #: src/hdate_strings.c:399 src/hdate_strings.c:419
500 msgid "Hoshana raba"
501 msgstr "Hoshana raba"
502
503 #: src/hdate_strings.c:399 src/hdate_strings.c:419
504 msgid "Simchat Torah"
505 msgstr "Simchat Torah"
506
507 #: src/hdate_strings.c:400 src/hdate_strings.c:420
508 msgid "Chanukah"
509 msgstr "Chanuka"
510
511 #: src/hdate_strings.c:400 src/hdate_strings.c:420
512 msgid "Asara B'Tevet"
513 msgstr "Asara B'Tevet"
514
515 #: src/hdate_strings.c:401 src/hdate_strings.c:421
516 msgid "Tu B'Shvat"
517 msgstr "Tu B'Shvat"
518
519 #: src/hdate_strings.c:401 src/hdate_strings.c:421
520 msgid "Ta'anit Esther"
521 msgstr "Ta'anit Esther"
522
523 #: src/hdate_strings.c:402 src/hdate_strings.c:422
524 msgid "Purim"
525 msgstr "Purim"
526
527 #: src/hdate_strings.c:402 src/hdate_strings.c:422
528 msgid "Shushan Purim"
529 msgstr "Shushan Purim"
530
531 #: src/hdate_strings.c:403 src/hdate_strings.c:423
532 msgid "Pesach"
533 msgstr "Pesach"
534
535 #: src/hdate_strings.c:403 src/hdate_strings.c:423
536 msgid "Hol hamoed Pesach"
537 msgstr "Chol hamoed Pesach"
538
539 #: src/hdate_strings.c:404 src/hdate_strings.c:424
540 msgid "Yom HaAtzma'ut"
541 msgstr "Yom HaAtzma'ut"
542
543 #: src/hdate_strings.c:404 src/hdate_strings.c:424
544 msgid "Lag B'Omer"
545 msgstr "Lag B'Omer"
546
547 #: src/hdate_strings.c:405 src/hdate_strings.c:425
548 msgid "Erev Shavuot"
549 msgstr "veille de Shavuot"
550
551 #: src/hdate_strings.c:405 src/hdate_strings.c:425
552 msgid "Shavuot"
553 msgstr "Shavuot"
554
555 #: src/hdate_strings.c:406 src/hdate_strings.c:426
556 msgid "Tzom Tammuz"
557 msgstr "Tzom Tammuz"
558
559 #: src/hdate_strings.c:406 src/hdate_strings.c:426
560 msgid "Tish'a B'Av"
561 msgstr "Tish'a B'Av"
562
563 #: src/hdate_strings.c:407 src/hdate_strings.c:427
564 msgid "Tu B'Av"
565 msgstr "Tu B'Av"
566
567 #: src/hdate_strings.c:407 src/hdate_strings.c:427
568 msgid "Yom HaShoah"
569 msgstr "Jour des Holocausto"
570
571 #: src/hdate_strings.c:408 src/hdate_strings.c:428
572 msgid "Yom HaZikaron"
573 msgstr "Jour des Recuerdo"
574
575 #: src/hdate_strings.c:408 src/hdate_strings.c:428
576 #, fuzzy
577 msgid "Yom Yerushalayim"
578 msgstr "Jour des Yerushalayim"
579
580 #: src/hdate_strings.c:409 src/hdate_strings.c:429
581 msgid "Shmini Atzeret"
582 msgstr "Shemini Atzeret"
583
584 #: src/hdate_strings.c:409 src/hdate_strings.c:429
585 msgid "Pesach VII"
586 msgstr "Pesach VII"
587
588 #: src/hdate_strings.c:410 src/hdate_strings.c:430
589 msgid "Pesach VIII"
590 msgstr "Pesach VIII"
591
592 #: src/hdate_strings.c:410 src/hdate_strings.c:430
593 msgid "Shavuot II"
594 msgstr "Shavuot II"
595
596 #: src/hdate_strings.c:411 src/hdate_strings.c:431
597 msgid "Sukkot II"
598 msgstr "Sukkot II"
599
600 #: src/hdate_strings.c:411 src/hdate_strings.c:431
601 msgid "Pesach II"
602 msgstr "Pesach II"
603
604 #: src/hdate_strings.c:412 src/hdate_strings.c:432
605 msgid "Family Day"
606 msgstr "Jour de famille"
607
608 #: src/hdate_strings.c:412 src/hdate_strings.c:432
609 msgid "Memorial day for fallen whose place of burial is unknown"
610 msgstr ""
611
612 #: src/hdate_strings.c:413
613 msgid "Yitzhak Rabin memorial day"
614 msgstr "Jour commémoratif de Yitzhak Rabin"
615
616 #: src/hdate_strings.c:413
617 msgid "Zeev Zhabotinsky day"
618 msgstr "Jour commémoratif de Zeev Zhabotinsky"
619
620 #: src/hdate_strings.c:414 src/hdate_strings.c:434
621 #, fuzzy
622 msgid "Erev Yom Kippur"
623 msgstr "veille de Yom Kippur"
624
625 #: src/hdate_strings.c:433
626 msgid "Rabin memorial day"
627 msgstr "Jour commémoratif de Rabin"
628
629 #: src/hdate_strings.c:433
630 msgid "Zhabotinsky day"
631 msgstr "Jour commémoratif de Zhabotinsky"
632
633 #: src/hdate_strings.c:514
634 msgid "in the Omer"
635 msgstr ""
636
637 #: examples/hcal/hcal.c:142
638 msgid ""
639 "# configuration file for hcal - Hebrew calendar program\n"
640 "# part of package libhdate\n"
641 "#\n"
642 "# Should you mangle this file and wish to restore its default content,\n"
643 "# rename or delete this file and run hcal; hcal will automatically\n"
644 "# regenerate the default content.\n"
645 "#\n"
646 "# Your system administrator can set system-wide defaults for hcal by\n"
647 "# modifying file <not yet implemented>.\n"
648 "# You may override all defaults by changing the contents of this file.\n"
649 "#\n"
650 "# Version information\n"
651 "# This may be used by updates to hcal to determine how to parse the file\n"
652 "# and whether additional information and options should be appended to\n"
653 "# the end of this file.\n"
654 "VERSION=2.00\n"
655 "# Location awareness\n"
656 "# hcal wants to accurately highlight the current Hebrew day, including\n"
657 "# during the hours between sunset and secular midnight. If you don't\n"
658 "# provide it with latitude, longitude, and time zone information, hcal\n"
659 "# will try to guess the information, based upon your system timezone,\n"
660 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
661 "# in that timezone. When hcal is forced to guess, it alerts the user\n"
662 "# with a message that includes the guessed location.\n"
663 "# hcal's guesses will also affect its default behaviour for ouput of\n"
664 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays\n"
665 "#SUNSET_AWARE=TRUE\n"
666 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
667 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
668 "# delimiters. Use negative values to indicate South and West, or\n"
669 "# use the abbreviated compass directions N, S, E, W.\n"
670 "#LATITUDE=\n"
671 "#LONGITUDE=\n"
672 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
673 "# with the characters :'\" as possible delimiters.\n"
674 "#TIMEZONE=\n"
675 "\n"
676 "# Israel and the diaspora\n"
677 "# If hcal guesses that you're not in Israel, the DIASPORA option will be\n"
678 "# set true. This will affect holiday and parasha output. FORCE_ISRAEL\n"
679 "# forces hcal to display calendar information for Israel, using hcal's\n"
680 "# default coordinates foe Israel, or coordinates that you provide that\n"
681 "# seem legitmately within Israel.\n"
682 "# Thus, if you are living in Sao Paolo, and will be visiting Israel for\n"
683 "# Sukkot, set BOTH flags true in order to see holiday information for\n"
684 "# a non-resident vistor to Israel. The command line options for these\n"
685 "# features are --israel, -I, --diaspora, -d.\n"
686 "#FORCE_DIASPORA=FALSE;\n"
687 "#FORCE_ISRAEL=FALSE;\n"
688 "\n"
689 "# Shabbat related\n"
690 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
691 "# The command line options for these features are -p (--parasha), and\n"
692 "# -s (--shabbat). The CANDLE_LIGHTING field can accept a value of 18 - 90 "
693 "(minutes\n"
694 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
695 "# (minutes after sunset).\n"
696 "#PARASHA_NAMES=FALSE\n"
697 "#SHABBAT_INFO=FALSE\n"
698 "#CANDLE_LIGHTING=FALSE\n"
699 "#HAVDALAH=FALSE\n"
700 "\n"
701 "# Holiday identification\n"
702 "# hcal flags holidays by replacing the gregorian/Hebrew date separator\n"
703 "# with assorted unhelpful cryptic symbols. Setting FOOTNOTES to true\n"
704 "# will have hcal output after the month's calendar, a list of the month's\n"
705 "# holidays along with the days on which they occur.\n"
706 "#FOOTNOTE=FALSE\n"
707 "\n"
708 "# Output in hebrew characters\n"
709 "# hcal defaults to output all information in your default language, so\n"
710 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
711 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
712 "# still outputting gregorian information in your default language. To\n"
713 "# output ALL information in Hebrew, run something like this:\n"
714 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hcal; LC_ALL=$LC_TEMP\n"
715 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
716 "# output, you need to install a terminal font that includes the Hebrew\n"
717 "# character set (hint: unicode).\n"
718 "# The command line option for FORCE_HEBREW is either --hebrew or -H\n"
719 "#FORCE_HEBREW=FALSE\n"
720 "\n"
721 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
722 "# Unfortunately, the world can not be depended upon to be either. Most\n"
723 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
724 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
725 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
726 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
727 "# This will reverse the order of the Hebrew characters, so they will\n"
728 "# display 'visual'ly correct; however, such output will not be suitable\n"
729 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
730 "# automatically forces hebrew.\n"
731 "# The command line option for OUTPUT_BIDI is either --bidi, --visual, or -b\n"
732 "#OUTPUT_BIDI=FALSE\n"
733 "\n"
734 "# Display enhancements\n"
735 "# hcal defaults to display the current day in reverse video\n"
736 "# The command line option for this feature is --no-reverse\n"
737 "#SUPPRESS_REVERSE_VIDEO=FALSE;\n"
738 "# hcal can display its output \"calming, muted tones\". Note that piping\n"
739 "# colorized output may yield unexpected results.\n"
740 "#COLORIZE=FALSE\n"
741 "\n"
742 "# HTML OUTPUT\n"
743 "#OUTPUT_HTML=FALSE\n"
744 "#USE_EXTERNAL_CSS_FILE=\"pathto/foo/bar\"\n"
745 "\n"
746 "# Suppress alerts and warnings\n"
747 "# hcal alerts the user via STDERR when it guesses the user's location.\n"
748 "#QUIET_ALERTS=FALSE\n"
749 "\n"
750 "# Three month display\n"
751 "# hcal can display a previous, current and next month side-by-side. hcal\n"
752 "# can also display a calendar for an entire year in four rows of three\n"
753 "# months each. Note that this will display properly only if your console\n"
754 "# is set for at least 127 columns. Note also that setting this option to\n"
755 "# will cause options FOOTNOTES, SHABBAT, and PARASHA_NAMES to false.\n"
756 "#THREE_MONTH=FALSE\n"
757 "\n"
758 "# User-defined menus\n"
759 "# You may specify here command-line strings to optionally be parsed\n"
760 "# by hcal at execution time. To do so, use the command line option -m\n"
761 "# (--menu). hcal will process first the settings of this config file,\n"
762 "# then the other settings of your command line, and then will prompt\n"
763 "# you for which menu item you would like to select. hcal will process\n"
764 "# your menu selection as if it were a new command line, further modifying\n"
765 "# all the prior settings.\n"
766 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
767 "# truncated at one hundred characters\n"
768 "#MENU= -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
769 "#MENU= -l 32 -L 34 -z 2 # son in bnei brak\n"
770 "#MENU= -fbc -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
771 "#MENU= -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
772 msgstr ""
773
774 #: examples/hcal/hcal.c:271
775 msgid ""
776 "hcal - Hebrew calendar\n"
777 "version 1.6"
778 msgstr ""
779
780 #: examples/hcal/hcal.c:281
781 msgid ""
782 "Usage: hcal [options] [coordinates timezone] ] [[month] year]\n"
783 " coordinates: -l [NS]yy[.xxx] -L [EW]xx[.xxx]\n"
784 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
785 " timezone: -z nn[( .nn | :mm )]\n"
786 "Try 'hcal --help' for more information"
787 msgstr ""
788
789 #: examples/hcal/hcal.c:295
790 msgid ""
791 "Hebrew calendar\n"
792 "OPTIONS:\n"
793 " -1 --one-month over-ride config file setting if you had set\n"
794 " option --three-month as a default there\n"
795 " -3 --three-month displays previous/next months\n"
796 " side by side. requires 127 columns\n"
797 " -b --bidi prints hebrew in reverse (visual)\n"
798 " --visual\n"
799 " --no-bidi over-ride config file setting if you had set\n"
800 " --no-visual option -bidi as a default there\n"
801 " -c --colorize displays in calming, muted tones\n"
802 " --no-color over-ride a --colorize setting in your config file\n"
803 " -d --diaspora use diaspora reading and holidays.\n"
804 " -f --footnote print descriptive notes of holidays\n"
805 " --no-footnote over-ride a footnote setting in your config file\n"
806 " -h --html output in html format to stdout\n"
807 " -H --hebrew print hebrew information in Hebrew\n"
808 " -i use external css file \"./hcal.css\".\n"
809 " -I --israel override a diaspora default\n"
810 " --no-reverse do not highlight today's date\n"
811 " -m --menu prompt user-defined menu from config file\n"
812 " -p --parasha print week's parasha on each calendar row\n"
813 " -q --quiet-alerts suppress warning messages\n"
814 " -s --shabbat print Shabbat times and parshiot\n"
815 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
816 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
817 " -z --timezone nn timezone, +/-UTC\n"
818 " -l --latitude yy latitude yy degrees. Negative values are South\n"
819 " -L --longitude xx longitude xx degrees. Negative values are West\n"
820 "\n"
821 "All options can be made default in the config file, or menu-ized for\n"
822 "easy selection."
823 msgstr ""
824
825 #: examples/hcal/hcal.c:1868
826 msgid ""
827 "ALERT: options --parasha, --shabbat, --footnote are not supported in 'three-"
828 "month' mode"
829 msgstr ""
830
831 #: examples/hcal/hcal.c:1940 examples/hcal/local_functions.c:92
832 #: examples/hcal/local_functions.c:99 examples/hcal/local_functions.c:112
833 #: examples/hcal/local_functions.c:486 examples/hcal/local_functions.c:491
834 msgid "error"
835 msgstr ""
836
837 #: examples/hcal/hcal.c:1940
838 msgid "too many parameters received. expected [[mm] [yyyy]"
839 msgstr ""
840
841 #: examples/hcal/hcal.c:1949 examples/hcal/hdate.c:1929
842 #: examples/hcal/hdate.c:2003 examples/hcal/hdate.c:2100
843 msgid "year"
844 msgstr ""
845
846 #: examples/hcal/hcal.c:1957 examples/hcal/hdate.c:2013
847 #: examples/hcal/hdate.c:2016 examples/hcal/hdate.c:2070
848 #: examples/hcal/hdate.c:2110 examples/hcal/hdate.c:2113
849 #: examples/hcal/hdate.c:2132
850 msgid "month"
851 msgstr ""
852
853 #: examples/hcal/hdate.c:42
854 msgid "sunrise"
855 msgstr ""
856
857 #: examples/hcal/hdate.c:43
858 msgid "sunset"
859 msgstr ""
860
861 #: examples/hcal/hdate.c:44
862 msgid "first_light"
863 msgstr ""
864
865 #: examples/hcal/hdate.c:45
866 msgid "talit"
867 msgstr ""
868
869 #: examples/hcal/hdate.c:46
870 msgid "midday"
871 msgstr ""
872
873 #: examples/hcal/hdate.c:47
874 msgid "first_stars"
875 msgstr ""
876
877 #: examples/hcal/hdate.c:48
878 msgid "three_stars"
879 msgstr ""
880
881 #: examples/hcal/hdate.c:49 examples/hcal/hdate.c:635
882 msgid "sun_hour"
883 msgstr ""
884
885 #: examples/hcal/hdate.c:50
886 msgid "candle-lighting"
887 msgstr ""
888
889 #: examples/hcal/hdate.c:51
890 msgid "havdalah"
891 msgstr ""
892
893 #: examples/hcal/hdate.c:81
894 msgid ""
895 "# configuration file for hdate - Hebrew date information program\n"
896 "# part of package libhdate\n"
897 "#\n"
898 "# Should you mangle this file and wish to restore its default content,\n"
899 "# rename or delete this file and run hdate; hdate will automatically\n"
900 "# regenerate the default content.\n"
901 "#\n"
902 "# Your system administrator can set system-wide defaults for hcal by\n"
903 "# modifying file <not yet implemented>.\n"
904 "# You may override all defaults by changing the contents of this file.\n"
905 "#\n"
906 "# Version information\n"
907 "# This may be used by updates to hcal to determine how to parse the file\n"
908 "# and whether additional information and options should be appended to\n"
909 "# the end of this file.\n"
910 "VERSION=2.00\n"
911 "#\n"
912 "# Location awareness\n"
913 "# hdate wants to accurately highlight the current Hebrew day, including\n"
914 "# during the hours between sunset and secular midnight. If you don't\n"
915 "# provide it with latitude, longitude, and time zone information, hdate\n"
916 "# will try to guess the information, based upon your system timezone,\n"
917 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
918 "# in that timezone. When hdate is forced to guess, it alerts the user\n"
919 "# with a message that includes the guessed location.\n"
920 "# hdate's guesses will also affect its default behaviour for ouput of\n"
921 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays.\n"
922 "#SUNSET_AWARE=TRUE\n"
923 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
924 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
925 "# delimiters. Use negative values to indicate South and West, or\n"
926 "# use the abbreviated compass directions N, S, E, W.\n"
927 "#LATITUDE=\n"
928 "#LONGITUDE=\n"
929 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
930 "# with the characters :'\" as possible delimiters.\n"
931 "#TIMEZONE=\n"
932 "\n"
933 "# Output in hebrew characters\n"
934 "# hdate defaults to output all information in your default language, so\n"
935 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
936 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
937 "# still outputting gregorian information in your default language. To\n"
938 "# output ALL information in Hebrew, run something like this:\n"
939 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hdate; LC_ALL=$LC_TEMP\n"
940 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
941 "# output, you need to install a terminal font that includes the Hebrew\n"
942 "# character set (hint: unicode).\n"
943 "#FORCE_HEBREW=FALSE\n"
944 "\n"
945 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
946 "# Unfortunately, the world can not be depended upon to be either. Most\n"
947 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
948 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
949 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
950 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
951 "# This will reverse the order of the Hebrew characters, so they will\n"
952 "# display 'visual'ly correct; however, such output will not be suitable\n"
953 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
954 "# automatically forces hebrew.\n"
955 "#OUTPUT_BIDI=FALSE\n"
956 "\n"
957 "# The Hebrew language output of Hebrew information can also be 'styled'\n"
958 "# in the following ways:\n"
959 "# option YOM ~> yom shishi, aleph tishrei ...\n"
960 "# option LESHABBAT ~> yom sheni leshabbat miketz, kof kislev ...\n"
961 "# option LESEDER ~> yom sheni leseder miketz, kof kislev ...\n"
962 "#YOM=FALSE\n"
963 "#LESHABBAT=FALSE\n"
964 "#LESEDER=FALSE\n"
965 "\n"
966 "#SUN_RISE_SET=FALSE\n"
967 "#TIMES_OF_DAY=FALSE\n"
968 "#SHORT_FORMAT=FALSE\n"
969 "#SEFIRAT_HAOMER=FALSE\n"
970 "#DIASPORA=FALSE\n"
971 "\n"
972 "\n"
973 "# Shabbat related\n"
974 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
975 "# The command line options for these features are -r (--parasha), and\n"
976 "# -c. The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n"
977 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
978 "# (minutes after sunset).\n"
979 "#PARASHA_NAMES=FALSE\n"
980 "#ONLY_IF_PARASHA_IS_READ=FALSE\n"
981 "#SHABBAT_INFO=FALSE\n"
982 "\n"
983 "#CANDLE_LIGHTING=FALSE\n"
984 "#HAVDALAH=FALSE\n"
985 "\n"
986 "# Holiday related\n"
987 "#HOLIDAYS=FALSE\n"
988 "#ONLY_IF_HOLIDAY=FALSE\n"
989 "\n"
990 "# Tabular output\n"
991 "# This option has hdate output the information you request in a single\n"
992 "# comma-delimited line per day, suitable for piping or import to\n"
993 "# spreadsheet formatting applications, etc. To belabor the obvious,\n"
994 "# try running - ./hdate 12 2011 -Rt --table |column -s, -t \n"
995 "# The command line option for this feature is, um, --table\n"
996 "#TABULAR=FALSE\n"
997 "\n"
998 "# iCal format\n"
999 "# hdate can output its information in iCal-compatable format\n"
1000 "# ICAL=FALSE\n"
1001 "# Suppress alerts and warnings\n"
1002 "# hdate alerts the user via STDERR when it guesses the user's location.\n"
1003 "#QUIET_ALERTS=FALSE\n"
1004 "\n"
1005 "# Julian day number\n"
1006 "# The Julian day number is a .... See ... for more details.\n"
1007 "# setting the option JULIAN_DAY will have hdate output that number in\n"
1008 "# the format JDN-nnnnnnn at the beginning of its first line of output.\n"
1009 "#JULIAN_DAY=FALSE\n"
1010 "\n"
1011 "# User-defined menus\n"
1012 "# You may specify here command-line strings to optionally be parsed\n"
1013 "# by hcal at execution time. To do so, use the command line option -m\n"
1014 "# (--menu). hcal will process first the settings of this config file,\n"
1015 "# then the other settings of your command line, and then will prompt\n"
1016 "# you for which menu item you would like to select. hcal will process\n"
1017 "# your menu selection as if it were a new command line, further modifying\n"
1018 "# all the prior settings.\n"
1019 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
1020 "# truncated at one hundred characters\n"
1021 "#MENU= -bd -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
1022 "#MENU= -b -l 32 -L 34 -z 2 # son in bnei brak\n"
1023 "#MENU= -bd -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
1024 "#MENU= -bd -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
1025 msgstr ""
1026
1027 #: examples/hcal/hdate.c:209
1028 msgid ""
1029 "hdate - display Hebrew date information\n"
1030 "version 1.6"
1031 msgstr ""
1032
1033 #: examples/hcal/hdate.c:219
1034 msgid ""
1035 "Usage: hdate [options] [coordinates timezone] [[[day] month] year]\n"
1036 " hdate [options] [coordinates timezone] [julian_day]\n"
1037 "\n"
1038 " coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]\n"
1039 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
1040 " timezone: -z nn[( .nn | :mm )]\n"
1041 "Try 'hdate --help' for more information"
1042 msgstr ""
1043
1044 #: examples/hcal/hdate.c:235
1045 msgid ""
1046 "hdate - display Hebrew date information\n"
1047 "OPTIONS:\n"
1048 " -b --bidi prints hebrew in reverse (visual)\n"
1049 " --visual\n"
1050 " -c print Shabbat start/end times.\n"
1051 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
1052 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
1053 " -d --diaspora use diaspora reading and holidays.\n"
1054 " -h --holidays print holidays.\n"
1055 " -H print only it is a holiday.\n"
1056 " -i --ical use iCal formated output.\n"
1057 " -j --julian print Julian day number.\n"
1058 " -m --menu prompt user-defined menu from config file\n"
1059 " -o --omer print Sefirat Haomer.\n"
1060 " -q --quiet-alerts suppress warning messages\n"
1061 " -r --parasha print weekly reading on saturday.\n"
1062 " -R print only if there is a weekly reading on Shabbat.\n"
1063 " -s --sun print sunrise/sunset times.\n"
1064 " -S --short-format print using short format.\n"
1065 " -t print day times: first light, talit, sunrise,\n"
1066 " midday, sunset, first stars, three stars.\n"
1067 " -T --table tabular output, suitable for spreadsheets\n"
1068 "\n"
1069 " -z --timezone nn timezone, +/-UTC\n"
1070 " -l --latitude yy latitude yy degrees. Negative values are South\n"
1071 " -L --longitude xx longitude xx degrees. Negative values are West\n"
1072 "\n"
1073 " --hebrew forces Hebrew to print in Hebrew characters\n"
1074 " --yom force Hebrew prefix to Hebrew day of week\n"
1075 " --leshabbat insert parasha between day of week and day\n"
1076 " --leseder insert parasha between day of week and day\n"
1077 " --not-sunset-aware don't display next day if after sunset\n"
1078 "\n"
1079 "All options can be made default in the config file, or menu-ized for\n"
1080 "easy selection."
1081 msgstr ""
1082
1083 #: examples/hcal/hdate.c:274
1084 msgid ""
1085 "ALERT: The information displayed is for today's Hebrew date.\n"
1086 " Because it is now after sunset, that means the data is\n"
1087 " for the Gregorian day beginning at midnight."
1088 msgstr ""
1089
1090 #: examples/hcal/hdate.c:405
1091 msgid "eve of "
1092 msgstr ""
1093
1094 #: examples/hcal/hdate.c:669
1095 msgid "today is day"
1096 msgstr ""
1097
1098 #: examples/hcal/hdate.c:743
1099 msgid "Gregorian date"
1100 msgstr ""
1101
1102 #: examples/hcal/hdate.c:743
1103 msgid "Hebrew Date"
1104 msgstr ""
1105
1106 #: examples/hcal/hdate.c:748
1107 #, fuzzy
1108 msgid "holiday"
1109 msgstr "Vendredi"
1110
1111 #: examples/hcal/hdate.c:749
1112 msgid "omer count"
1113 msgstr ""
1114
1115 #: examples/hcal/hdate.c:750
1116 msgid "parashat"
1117 msgstr ""
1118
1119 #: examples/hcal/hdate.c:1016
1120 msgid "Parashat"
1121 msgstr ""
1122
1123 #: examples/hcal/hdate.c:2120 examples/hcal/hdate.c:2139
1124 #, fuzzy
1125 msgid "day"
1126 msgstr "mai"
1127
1128 #: examples/hcal/hdate.c:2168
1129 msgid "too many arguments; after options max is dd mm yyyy"
1130 msgstr ""
1131
1132 #: examples/hcal/local_functions.c:93
1133 msgid "parameter"
1134 msgstr ""
1135
1136 #: examples/hcal/local_functions.c:94
1137 msgid "is non-numeric or out of bounds"
1138 msgstr ""
1139
1140 #: examples/hcal/local_functions.c:100 examples/hcal/local_functions.c:113
1141 msgid "option"
1142 msgstr ""
1143
1144 #: examples/hcal/local_functions.c:100
1145 msgid "missing parameter"
1146 msgstr ""
1147
1148 #: examples/hcal/local_functions.c:106
1149 msgid "ALERT: time zone not entered, using system local time zone"
1150 msgstr ""
1151
1152 #: examples/hcal/local_functions.c:113
1153 msgid "is not a valid option"
1154 msgstr ""
1155
1156 #: examples/hcal/local_functions.c:130
1157 msgid "ALERT: guessing... will use co-ordinates for"
1158 msgstr ""
1159
1160 #: examples/hcal/local_functions.c:138
1161 msgid "Los Angeles"
1162 msgstr ""
1163
1164 #: examples/hcal/local_functions.c:139
1165 msgid "Mexico City"
1166 msgstr ""
1167
1168 #: examples/hcal/local_functions.c:140
1169 msgid "New York City"
1170 msgstr ""
1171
1172 #: examples/hcal/local_functions.c:143
1173 msgid "Buenos Aires"
1174 msgstr ""
1175
1176 #: examples/hcal/local_functions.c:144
1177 msgid "London"
1178 msgstr ""
1179
1180 #: examples/hcal/local_functions.c:145
1181 msgid "Paris"
1182 msgstr ""
1183
1184 #: examples/hcal/local_functions.c:146
1185 msgid "Tel-Aviv"
1186 msgstr ""
1187
1188 #: examples/hcal/local_functions.c:147
1189 msgid "Moscow"
1190 msgstr ""
1191
1192 #: examples/hcal/local_functions.c:148
1193 msgid "Tashkent"
1194 msgstr ""
1195
1196 #: examples/hcal/local_functions.c:149
1197 msgid "Beijing"
1198 msgstr ""
1199
1200 #: examples/hcal/local_functions.c:151
1201 msgid "Honolulu"
1202 msgstr ""
1203
1204 #: examples/hcal/local_functions.c:152
1205 msgid "Hmmm, ... hate to do this, really ..."
1206 msgstr ""
1207
1208 #: examples/hcal/local_functions.c:152
1209 msgid "using co-ordinates for the equator, at the center of time zone"
1210 msgstr ""
1211
1212 #: examples/hcal/local_functions.c:318 examples/hcal/local_functions.c:332
1213 #: examples/hcal/local_functions.c:333
1214 msgid "l (latitude)"
1215 msgstr ""
1216
1217 #: examples/hcal/local_functions.c:319
1218 msgid "L (Longitue)"
1219 msgstr ""
1220
1221 #: examples/hcal/local_functions.c:365 examples/hcal/local_functions.c:379
1222 #: examples/hcal/local_functions.c:380 examples/hcal/local_functions.c:411
1223 msgid "L (Longitude)"
1224 msgstr ""
1225
1226 #: examples/hcal/local_functions.c:442
1227 msgid "z (time zone)"
1228 msgstr ""
1229
1230 #: examples/hcal/local_functions.c:462
1231 msgid "z (timezone)"
1232 msgstr ""
1233
1234 #: examples/hcal/local_functions.c:486
1235 msgid "valid longitude parameter missing for given latitude"
1236 msgstr ""
1237
1238 #: examples/hcal/local_functions.c:491
1239 msgid "valid latitude parameter missing for given longitude"
1240 msgstr ""
1241
1242 #: examples/hcal/local_functions.c:529
1243 msgid "time zone value of"
1244 msgstr ""
1245
1246 #: examples/hcal/local_functions.c:530
1247 msgid "is incompatible with a longitude of"
1248 msgstr ""
1249
1250 #: examples/hcal/local_functions.c:530
1251 msgid "degrees"
1252 msgstr ""
1253
1254 #: examples/hcal/local_functions.c:638
1255 msgid ""
1256 "This seems to be to be your first time using this version.\n"
1257 "Please read the new documentation in the man page and config\n"
1258 "file. Attempting to create a config file ..."
1259 msgstr ""
1260
1261 #: examples/hcal/local_functions.c:677
1262 msgid "failure attempting to create config file"
1263 msgstr ""
1264
1265 #: examples/hcal/local_functions.c:681
1266 msgid "config file created"
1267 msgstr ""
1268
1269 #: examples/hcal/local_functions.c:682
1270 msgid "failure closing"
1271 msgstr ""
1272
1273 #: examples/hcal/local_functions.c:702
1274 msgid "memory allocation failure"
1275 msgstr ""
1276
1277 #: examples/hcal/local_functions.c:916
1278 msgid "your custom menu options (from your config file)"
1279 msgstr ""
1280
1281 #: examples/hcal/local_functions.c:922
1282 msgid "ALERT: -m (--menu) option specified, but no menu items in config file"
1283 msgstr ""
1284
1285 #: examples/hcal/local_functions.c:925
1286 msgid "enter your selection, or <return> to continue"
1287 msgstr ""
1288
1289 #: examples/hcal/local_functions.c:929
1290 msgid "menu selection received was out of bounds"
1291 msgstr ""
1292
1293 #~ msgid "Tamuz"
1294 #~ msgstr "Tamuz"
Binary diff not shown
0 # Hebrew translations for libhdate strings
1 # Copyright (C) 2011 Boruch baum
2 # This file is distributed under the same license as the PACKAGE package.
3 # Koby Zamir <EMAIL@ADDRESS>, 1994.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: PACKAGE VERSION\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2012-01-08 19:48-0500\n"
10 "PO-Revision-Date: 2010-10-26 16:11+0200\n"
11 "Last-Translator: Boruch Baum\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language: he\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:186 src/hdate_strings.c:190
19 msgid "translator"
20 msgstr "יעקב זמיר"
21
22 #: src/hdate_strings.c:248
23 msgid "Sunday"
24 msgstr "ראשון"
25
26 #: src/hdate_strings.c:248
27 msgid "Monday"
28 msgstr "שני"
29
30 #: src/hdate_strings.c:248
31 msgid "Tuesday"
32 msgstr "שלישי"
33
34 #: src/hdate_strings.c:248
35 msgid "Wednesday"
36 msgstr "רביעי"
37
38 #: src/hdate_strings.c:249
39 msgid "Thursday"
40 msgstr "חמישי"
41
42 #: src/hdate_strings.c:249
43 msgid "Friday"
44 msgstr "שישי"
45
46 #: src/hdate_strings.c:249
47 msgid "Saturday"
48 msgstr "שבת"
49
50 #: src/hdate_strings.c:251
51 msgid "Sun"
52 msgstr "א"
53
54 #: src/hdate_strings.c:251
55 msgid "Mon"
56 msgstr "ב"
57
58 #: src/hdate_strings.c:251
59 msgid "Tue"
60 msgstr "ג"
61
62 #: src/hdate_strings.c:251
63 msgid "Wed"
64 msgstr "ד"
65
66 #: src/hdate_strings.c:251
67 msgid "Thu"
68 msgstr "ה"
69
70 #: src/hdate_strings.c:252
71 msgid "Fri"
72 msgstr "ו"
73
74 #: src/hdate_strings.c:252
75 msgid "Sat"
76 msgstr "ש"
77
78 #: src/hdate_strings.c:265 src/hdate_strings.c:288
79 msgid "none"
80 msgstr "חסר"
81
82 #: src/hdate_strings.c:265 src/hdate_strings.c:288
83 msgid "Bereshit"
84 msgstr "בראשית"
85
86 #: src/hdate_strings.c:265 src/hdate_strings.c:288
87 msgid "Noach"
88 msgstr "נח"
89
90 #: src/hdate_strings.c:266 src/hdate_strings.c:289
91 msgid "Lech-Lecha"
92 msgstr "לך לך"
93
94 #: src/hdate_strings.c:266 src/hdate_strings.c:289
95 msgid "Vayera"
96 msgstr "וירא"
97
98 #: src/hdate_strings.c:266 src/hdate_strings.c:289
99 msgid "Chayei Sara"
100 msgstr "חיי שרה"
101
102 #: src/hdate_strings.c:267 src/hdate_strings.c:290
103 msgid "Toldot"
104 msgstr "תולדות"
105
106 #: src/hdate_strings.c:267 src/hdate_strings.c:290
107 msgid "Vayetzei"
108 msgstr "ויצא"
109
110 #: src/hdate_strings.c:267 src/hdate_strings.c:290
111 msgid "Vayishlach"
112 msgstr "וישלח"
113
114 #: src/hdate_strings.c:268 src/hdate_strings.c:291
115 msgid "Vayeshev"
116 msgstr "וישב"
117
118 #: src/hdate_strings.c:268 src/hdate_strings.c:291
119 msgid "Miketz"
120 msgstr "מקץ"
121
122 #: src/hdate_strings.c:268 src/hdate_strings.c:291
123 msgid "Vayigash"
124 msgstr "ויגש"
125
126 #: src/hdate_strings.c:269 src/hdate_strings.c:292
127 msgid "Vayechi"
128 msgstr "ויחי"
129
130 #: src/hdate_strings.c:269 src/hdate_strings.c:292
131 msgid "Shemot"
132 msgstr "שמות"
133
134 #: src/hdate_strings.c:269 src/hdate_strings.c:292
135 msgid "Vaera"
136 msgstr "וארא"
137
138 #: src/hdate_strings.c:270 src/hdate_strings.c:293
139 msgid "Bo"
140 msgstr "בא"
141
142 #: src/hdate_strings.c:270 src/hdate_strings.c:293
143 msgid "Beshalach"
144 msgstr "בשלח"
145
146 #: src/hdate_strings.c:270 src/hdate_strings.c:293
147 msgid "Yitro"
148 msgstr "יתרו"
149
150 #: src/hdate_strings.c:271 src/hdate_strings.c:294
151 msgid "Mishpatim"
152 msgstr "משפטים"
153
154 #: src/hdate_strings.c:271 src/hdate_strings.c:294
155 msgid "Terumah"
156 msgstr "תרומה"
157
158 #: src/hdate_strings.c:271 src/hdate_strings.c:294
159 msgid "Tetzaveh"
160 msgstr "תצווה"
161
162 #: src/hdate_strings.c:272 src/hdate_strings.c:295
163 msgid "Ki Tisa"
164 msgstr "כי תשא"
165
166 #: src/hdate_strings.c:272 src/hdate_strings.c:295
167 msgid "Vayakhel"
168 msgstr "ויקהל"
169
170 #: src/hdate_strings.c:272 src/hdate_strings.c:295
171 msgid "Pekudei"
172 msgstr "פקודי"
173
174 #: src/hdate_strings.c:273 src/hdate_strings.c:296
175 msgid "Vayikra"
176 msgstr "ויקרא"
177
178 #: src/hdate_strings.c:273 src/hdate_strings.c:296
179 msgid "Tzav"
180 msgstr "צו"
181
182 #: src/hdate_strings.c:273 src/hdate_strings.c:296
183 msgid "Shmini"
184 msgstr "שמיני"
185
186 #: src/hdate_strings.c:274 src/hdate_strings.c:297
187 msgid "Tazria"
188 msgstr "תזריע"
189
190 #: src/hdate_strings.c:274 src/hdate_strings.c:297
191 msgid "Metzora"
192 msgstr "מצורע"
193
194 #: src/hdate_strings.c:274 src/hdate_strings.c:297
195 msgid "Achrei Mot"
196 msgstr "אחרי מות"
197
198 #: src/hdate_strings.c:275 src/hdate_strings.c:298
199 msgid "Kedoshim"
200 msgstr "קדושים"
201
202 #: src/hdate_strings.c:275 src/hdate_strings.c:298
203 msgid "Emor"
204 msgstr "אמור"
205
206 #: src/hdate_strings.c:275 src/hdate_strings.c:298
207 msgid "Behar"
208 msgstr "בהר"
209
210 #: src/hdate_strings.c:276 src/hdate_strings.c:299
211 msgid "Bechukotai"
212 msgstr "בחוקותי"
213
214 #: src/hdate_strings.c:276 src/hdate_strings.c:299
215 msgid "Bamidbar"
216 msgstr "במדבר"
217
218 #: src/hdate_strings.c:276 src/hdate_strings.c:299
219 msgid "Nasso"
220 msgstr "נשא"
221
222 #: src/hdate_strings.c:277 src/hdate_strings.c:300
223 msgid "Beha'alotcha"
224 msgstr "בהעלותך"
225
226 #: src/hdate_strings.c:277 src/hdate_strings.c:300
227 msgid "Sh'lach"
228 msgstr "שלח"
229
230 #: src/hdate_strings.c:277 src/hdate_strings.c:300
231 msgid "Korach"
232 msgstr "קרח"
233
234 #: src/hdate_strings.c:278 src/hdate_strings.c:301
235 msgid "Chukat"
236 msgstr "חוקת"
237
238 #: src/hdate_strings.c:278 src/hdate_strings.c:301
239 msgid "Balak"
240 msgstr "בלק"
241
242 #: src/hdate_strings.c:278 src/hdate_strings.c:301
243 msgid "Pinchas"
244 msgstr "פינחס"
245
246 #: src/hdate_strings.c:279 src/hdate_strings.c:302
247 msgid "Matot"
248 msgstr "מטות"
249
250 #: src/hdate_strings.c:279 src/hdate_strings.c:302
251 msgid "Masei"
252 msgstr "מסעי"
253
254 #: src/hdate_strings.c:279 src/hdate_strings.c:302
255 msgid "Devarim"
256 msgstr "דברים"
257
258 #: src/hdate_strings.c:280 src/hdate_strings.c:303
259 msgid "Vaetchanan"
260 msgstr "ואתחנן"
261
262 #: src/hdate_strings.c:280 src/hdate_strings.c:303
263 msgid "Eikev"
264 msgstr "עקב"
265
266 #: src/hdate_strings.c:280 src/hdate_strings.c:303
267 msgid "Re'eh"
268 msgstr "ראה"
269
270 #: src/hdate_strings.c:281 src/hdate_strings.c:304
271 msgid "Shoftim"
272 msgstr "שופטים"
273
274 #: src/hdate_strings.c:281 src/hdate_strings.c:304
275 msgid "Ki Teitzei"
276 msgstr "כי תצא"
277
278 #: src/hdate_strings.c:281 src/hdate_strings.c:304
279 msgid "Ki Tavo"
280 msgstr "כי תבוא"
281
282 #: src/hdate_strings.c:282 src/hdate_strings.c:305
283 msgid "Nitzavim"
284 msgstr "נצבים"
285
286 #: src/hdate_strings.c:282 src/hdate_strings.c:305
287 msgid "Vayeilech"
288 msgstr "וילך"
289
290 #: src/hdate_strings.c:282 src/hdate_strings.c:305
291 msgid "Ha'Azinu"
292 msgstr "האזינו"
293
294 #: src/hdate_strings.c:283 src/hdate_strings.c:306
295 msgid "Vezot Habracha"
296 msgstr "וזאת הברכה"
297
298 #: src/hdate_strings.c:284 src/hdate_strings.c:307
299 msgid "Vayakhel-Pekudei"
300 msgstr "ויקהל פקודי"
301
302 #: src/hdate_strings.c:284 src/hdate_strings.c:307
303 msgid "Tazria-Metzora"
304 msgstr "תזריע מצורע"
305
306 #: src/hdate_strings.c:284 src/hdate_strings.c:307
307 msgid "Achrei Mot-Kedoshim"
308 msgstr "אחרי מות קדושים"
309
310 #: src/hdate_strings.c:285 src/hdate_strings.c:308
311 msgid "Behar-Bechukotai"
312 msgstr "בהר בחוקותי"
313
314 #: src/hdate_strings.c:285 src/hdate_strings.c:308
315 msgid "Chukat-Balak"
316 msgstr "חוקת בלק"
317
318 #: src/hdate_strings.c:285 src/hdate_strings.c:308
319 msgid "Matot-Masei"
320 msgstr "מטות מסעי"
321
322 #: src/hdate_strings.c:286 src/hdate_strings.c:309
323 msgid "Nitzavim-Vayeilech"
324 msgstr "נצבים וילך"
325
326 #: src/hdate_strings.c:364 src/hdate_strings.c:369
327 msgid "Tishrei"
328 msgstr "תשרי"
329
330 #: src/hdate_strings.c:364 src/hdate_strings.c:369
331 msgid "Cheshvan"
332 msgstr "חשון"
333
334 #: src/hdate_strings.c:364 src/hdate_strings.c:369
335 msgid "Kislev"
336 msgstr "כסלו"
337
338 #: src/hdate_strings.c:364 src/hdate_strings.c:369
339 msgid "Tevet"
340 msgstr "טבת"
341
342 #: src/hdate_strings.c:365 src/hdate_strings.c:370
343 msgid "Sh'vat"
344 msgstr "שבט"
345
346 #: src/hdate_strings.c:365 src/hdate_strings.c:370
347 msgid "Adar"
348 msgstr "אדר"
349
350 #: src/hdate_strings.c:365 src/hdate_strings.c:370
351 msgid "Nisan"
352 msgstr "ניסן"
353
354 #: src/hdate_strings.c:365 src/hdate_strings.c:370
355 msgid "Iyyar"
356 msgstr "אייר"
357
358 #: src/hdate_strings.c:366 src/hdate_strings.c:371
359 msgid "Sivan"
360 msgstr "סיון"
361
362 #: src/hdate_strings.c:366 src/hdate_strings.c:371
363 msgid "Tammuz"
364 msgstr "תמוז"
365
366 #: src/hdate_strings.c:366 src/hdate_strings.c:371
367 msgid "Av"
368 msgstr "אב"
369
370 #: src/hdate_strings.c:366 src/hdate_strings.c:371
371 msgid "Elul"
372 msgstr "אלול"
373
374 #: src/hdate_strings.c:366 src/hdate_strings.c:371
375 msgid "Adar I"
376 msgstr "אדר א"
377
378 #: src/hdate_strings.c:367 src/hdate_strings.c:372
379 msgid "Adar II"
380 msgstr "אדר ב"
381
382 #: src/hdate_strings.c:384
383 msgid "January"
384 msgstr "ינואר"
385
386 #: src/hdate_strings.c:384
387 msgid "February"
388 msgstr "פברואר"
389
390 #: src/hdate_strings.c:384
391 msgid "March"
392 msgstr "מרץ"
393
394 #: src/hdate_strings.c:385
395 msgid "April"
396 msgstr "אפריל"
397
398 #: src/hdate_strings.c:385 src/hdate_strings.c:388
399 msgid "May"
400 msgstr "מאי"
401
402 #: src/hdate_strings.c:385
403 msgid "June"
404 msgstr "יוני"
405
406 #: src/hdate_strings.c:386
407 msgid "July"
408 msgstr "יולי"
409
410 #: src/hdate_strings.c:386
411 msgid "August"
412 msgstr "אוגוסט"
413
414 #: src/hdate_strings.c:386
415 msgid "September"
416 msgstr "ספטמבר"
417
418 #: src/hdate_strings.c:387
419 msgid "October"
420 msgstr "אוקטובר"
421
422 #: src/hdate_strings.c:387
423 msgid "November"
424 msgstr "נובמבר"
425
426 #: src/hdate_strings.c:387
427 msgid "December"
428 msgstr "דצמבר"
429
430 #: src/hdate_strings.c:388
431 msgid "Jan"
432 msgstr "ינו"
433
434 #: src/hdate_strings.c:388
435 msgid "Feb"
436 msgstr "פבר"
437
438 #: src/hdate_strings.c:388
439 msgid "Mar"
440 msgstr "מרץ"
441
442 #: src/hdate_strings.c:388
443 msgid "Apr"
444 msgstr "אפר"
445
446 #: src/hdate_strings.c:389
447 msgid "Jun"
448 msgstr "יוני"
449
450 #: src/hdate_strings.c:389
451 msgid "Jul"
452 msgstr "יולי"
453
454 #: src/hdate_strings.c:389
455 msgid "Aug"
456 msgstr "אוג"
457
458 #: src/hdate_strings.c:389
459 msgid "Sep"
460 msgstr "ספט"
461
462 #: src/hdate_strings.c:389
463 msgid "Oct"
464 msgstr "אוקט"
465
466 #: src/hdate_strings.c:390
467 msgid "Nov"
468 msgstr "נוב"
469
470 #: src/hdate_strings.c:390
471 msgid "Dec"
472 msgstr "דצמ"
473
474 #: src/hdate_strings.c:396 src/hdate_strings.c:416
475 msgid "Rosh Hashana I"
476 msgstr "א ראש השנה"
477
478 #: src/hdate_strings.c:396 src/hdate_strings.c:416
479 msgid "Rosh Hashana II"
480 msgstr "ב ראש השנה"
481
482 #: src/hdate_strings.c:397 src/hdate_strings.c:417
483 msgid "Tzom Gedaliah"
484 msgstr "צום גדליה"
485
486 #: src/hdate_strings.c:397 src/hdate_strings.c:417
487 msgid "Yom Kippur"
488 msgstr "יום כיפור"
489
490 #: src/hdate_strings.c:398 src/hdate_strings.c:418
491 msgid "Sukkot"
492 msgstr "סוכות"
493
494 #: src/hdate_strings.c:398 src/hdate_strings.c:418
495 msgid "Hol hamoed Sukkot"
496 msgstr "חול המועד סוכות"
497
498 #: src/hdate_strings.c:399 src/hdate_strings.c:419
499 msgid "Hoshana raba"
500 msgstr "הושענא רבה"
501
502 #: src/hdate_strings.c:399 src/hdate_strings.c:419
503 msgid "Simchat Torah"
504 msgstr "שמחת תורה"
505
506 #: src/hdate_strings.c:400 src/hdate_strings.c:420
507 msgid "Chanukah"
508 msgstr "חנוכה"
509
510 #: src/hdate_strings.c:400 src/hdate_strings.c:420
511 msgid "Asara B'Tevet"
512 msgstr "עשרה בטבת"
513
514 #: src/hdate_strings.c:401 src/hdate_strings.c:421
515 msgid "Tu B'Shvat"
516 msgstr "ט\"ו בשבט"
517
518 #: src/hdate_strings.c:401 src/hdate_strings.c:421
519 msgid "Ta'anit Esther"
520 msgstr "תענית אסתר"
521
522 #: src/hdate_strings.c:402 src/hdate_strings.c:422
523 msgid "Purim"
524 msgstr "פורים"
525
526 #: src/hdate_strings.c:402 src/hdate_strings.c:422
527 msgid "Shushan Purim"
528 msgstr "שושן פורים"
529
530 #: src/hdate_strings.c:403 src/hdate_strings.c:423
531 msgid "Pesach"
532 msgstr "פסח"
533
534 #: src/hdate_strings.c:403 src/hdate_strings.c:423
535 msgid "Hol hamoed Pesach"
536 msgstr "חול המועד פסח"
537
538 #: src/hdate_strings.c:404 src/hdate_strings.c:424
539 msgid "Yom HaAtzma'ut"
540 msgstr "יום העצמאות"
541
542 #: src/hdate_strings.c:404 src/hdate_strings.c:424
543 msgid "Lag B'Omer"
544 msgstr "ל\"ג בעומר"
545
546 #: src/hdate_strings.c:405 src/hdate_strings.c:425
547 msgid "Erev Shavuot"
548 msgstr "ערב שבועות"
549
550 #: src/hdate_strings.c:405 src/hdate_strings.c:425
551 msgid "Shavuot"
552 msgstr "שבועות"
553
554 #: src/hdate_strings.c:406 src/hdate_strings.c:426
555 msgid "Tzom Tammuz"
556 msgstr "י\"ז תמוז"
557
558 #: src/hdate_strings.c:406 src/hdate_strings.c:426
559 msgid "Tish'a B'Av"
560 msgstr "תשעה באב"
561
562 #: src/hdate_strings.c:407 src/hdate_strings.c:427
563 msgid "Tu B'Av"
564 msgstr "ט\"ו באב"
565
566 #: src/hdate_strings.c:407 src/hdate_strings.c:427
567 msgid "Yom HaShoah"
568 msgstr "יום השואה"
569
570 #: src/hdate_strings.c:408 src/hdate_strings.c:428
571 msgid "Yom HaZikaron"
572 msgstr "יום הזכרון"
573
574 #: src/hdate_strings.c:408 src/hdate_strings.c:428
575 msgid "Yom Yerushalayim"
576 msgstr "יום ירושלים"
577
578 #: src/hdate_strings.c:409 src/hdate_strings.c:429
579 msgid "Shmini Atzeret"
580 msgstr "שמיני עצרת"
581
582 #: src/hdate_strings.c:409 src/hdate_strings.c:429
583 msgid "Pesach VII"
584 msgstr "שביעי של פסח"
585
586 #: src/hdate_strings.c:410 src/hdate_strings.c:430
587 msgid "Pesach VIII"
588 msgstr "אחרון של פסח"
589
590 #: src/hdate_strings.c:410 src/hdate_strings.c:430
591 msgid "Shavuot II"
592 msgstr "שני של שבועות"
593
594 #: src/hdate_strings.c:411 src/hdate_strings.c:431
595 msgid "Sukkot II"
596 msgstr "סוכות שני"
597
598 #: src/hdate_strings.c:411 src/hdate_strings.c:431
599 msgid "Pesach II"
600 msgstr "שני של פסח"
601
602 #: src/hdate_strings.c:412 src/hdate_strings.c:432
603 msgid "Family Day"
604 msgstr "יום המשפחה"
605
606 #: src/hdate_strings.c:412 src/hdate_strings.c:432
607 msgid "Memorial day for fallen whose place of burial is unknown"
608 msgstr "יום הזכרון לחללי מלחמות ישראל שמקום קבורתם לא נודע"
609
610 #: src/hdate_strings.c:413
611 msgid "Yitzhak Rabin memorial day"
612 msgstr "יום הזכרון ליצחק רבין"
613
614 #: src/hdate_strings.c:413
615 msgid "Zeev Zhabotinsky day"
616 msgstr "יום זאב זבוטינסקי"
617
618 #: src/hdate_strings.c:414 src/hdate_strings.c:434
619 msgid "Erev Yom Kippur"
620 msgstr "ערב יום כיפור"
621
622 #: src/hdate_strings.c:433
623 msgid "Rabin memorial day"
624 msgstr "יום הזכרון ליצחק רבין"
625
626 #: src/hdate_strings.c:433
627 msgid "Zhabotinsky day"
628 msgstr "יום זבוטינסקי"
629
630 #: src/hdate_strings.c:514
631 msgid "in the Omer"
632 msgstr "לספירת העומר"
633
634 #: examples/hcal/hcal.c:142
635 msgid ""
636 "# configuration file for hcal - Hebrew calendar program\n"
637 "# part of package libhdate\n"
638 "#\n"
639 "# Should you mangle this file and wish to restore its default content,\n"
640 "# rename or delete this file and run hcal; hcal will automatically\n"
641 "# regenerate the default content.\n"
642 "#\n"
643 "# Your system administrator can set system-wide defaults for hcal by\n"
644 "# modifying file <not yet implemented>.\n"
645 "# You may override all defaults by changing the contents of this file.\n"
646 "#\n"
647 "# Version information\n"
648 "# This may be used by updates to hcal to determine how to parse the file\n"
649 "# and whether additional information and options should be appended to\n"
650 "# the end of this file.\n"
651 "VERSION=2.00\n"
652 "# Location awareness\n"
653 "# hcal wants to accurately highlight the current Hebrew day, including\n"
654 "# during the hours between sunset and secular midnight. If you don't\n"
655 "# provide it with latitude, longitude, and time zone information, hcal\n"
656 "# will try to guess the information, based upon your system timezone,\n"
657 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
658 "# in that timezone. When hcal is forced to guess, it alerts the user\n"
659 "# with a message that includes the guessed location.\n"
660 "# hcal's guesses will also affect its default behaviour for ouput of\n"
661 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays\n"
662 "#SUNSET_AWARE=TRUE\n"
663 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
664 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
665 "# delimiters. Use negative values to indicate South and West, or\n"
666 "# use the abbreviated compass directions N, S, E, W.\n"
667 "#LATITUDE=\n"
668 "#LONGITUDE=\n"
669 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
670 "# with the characters :'\" as possible delimiters.\n"
671 "#TIMEZONE=\n"
672 "\n"
673 "# Israel and the diaspora\n"
674 "# If hcal guesses that you're not in Israel, the DIASPORA option will be\n"
675 "# set true. This will affect holiday and parasha output. FORCE_ISRAEL\n"
676 "# forces hcal to display calendar information for Israel, using hcal's\n"
677 "# default coordinates foe Israel, or coordinates that you provide that\n"
678 "# seem legitmately within Israel.\n"
679 "# Thus, if you are living in Sao Paolo, and will be visiting Israel for\n"
680 "# Sukkot, set BOTH flags true in order to see holiday information for\n"
681 "# a non-resident vistor to Israel. The command line options for these\n"
682 "# features are --israel, -I, --diaspora, -d.\n"
683 "#FORCE_DIASPORA=FALSE;\n"
684 "#FORCE_ISRAEL=FALSE;\n"
685 "\n"
686 "# Shabbat related\n"
687 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
688 "# The command line options for these features are -p (--parasha), and\n"
689 "# -s (--shabbat). The CANDLE_LIGHTING field can accept a value of 18 - 90 "
690 "(minutes\n"
691 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
692 "# (minutes after sunset).\n"
693 "#PARASHA_NAMES=FALSE\n"
694 "#SHABBAT_INFO=FALSE\n"
695 "#CANDLE_LIGHTING=FALSE\n"
696 "#HAVDALAH=FALSE\n"
697 "\n"
698 "# Holiday identification\n"
699 "# hcal flags holidays by replacing the gregorian/Hebrew date separator\n"
700 "# with assorted unhelpful cryptic symbols. Setting FOOTNOTES to true\n"
701 "# will have hcal output after the month's calendar, a list of the month's\n"
702 "# holidays along with the days on which they occur.\n"
703 "#FOOTNOTE=FALSE\n"
704 "\n"
705 "# Output in hebrew characters\n"
706 "# hcal defaults to output all information in your default language, so\n"
707 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
708 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
709 "# still outputting gregorian information in your default language. To\n"
710 "# output ALL information in Hebrew, run something like this:\n"
711 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hcal; LC_ALL=$LC_TEMP\n"
712 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
713 "# output, you need to install a terminal font that includes the Hebrew\n"
714 "# character set (hint: unicode).\n"
715 "# The command line option for FORCE_HEBREW is either --hebrew or -H\n"
716 "#FORCE_HEBREW=FALSE\n"
717 "\n"
718 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
719 "# Unfortunately, the world can not be depended upon to be either. Most\n"
720 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
721 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
722 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
723 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
724 "# This will reverse the order of the Hebrew characters, so they will\n"
725 "# display 'visual'ly correct; however, such output will not be suitable\n"
726 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
727 "# automatically forces hebrew.\n"
728 "# The command line option for OUTPUT_BIDI is either --bidi, --visual, or -b\n"
729 "#OUTPUT_BIDI=FALSE\n"
730 "\n"
731 "# Display enhancements\n"
732 "# hcal defaults to display the current day in reverse video\n"
733 "# The command line option for this feature is --no-reverse\n"
734 "#SUPPRESS_REVERSE_VIDEO=FALSE;\n"
735 "# hcal can display its output \"calming, muted tones\". Note that piping\n"
736 "# colorized output may yield unexpected results.\n"
737 "#COLORIZE=FALSE\n"
738 "\n"
739 "# HTML OUTPUT\n"
740 "#OUTPUT_HTML=FALSE\n"
741 "#USE_EXTERNAL_CSS_FILE=\"pathto/foo/bar\"\n"
742 "\n"
743 "# Suppress alerts and warnings\n"
744 "# hcal alerts the user via STDERR when it guesses the user's location.\n"
745 "#QUIET_ALERTS=FALSE\n"
746 "\n"
747 "# Three month display\n"
748 "# hcal can display a previous, current and next month side-by-side. hcal\n"
749 "# can also display a calendar for an entire year in four rows of three\n"
750 "# months each. Note that this will display properly only if your console\n"
751 "# is set for at least 127 columns. Note also that setting this option to\n"
752 "# will cause options FOOTNOTES, SHABBAT, and PARASHA_NAMES to false.\n"
753 "#THREE_MONTH=FALSE\n"
754 "\n"
755 "# User-defined menus\n"
756 "# You may specify here command-line strings to optionally be parsed\n"
757 "# by hcal at execution time. To do so, use the command line option -m\n"
758 "# (--menu). hcal will process first the settings of this config file,\n"
759 "# then the other settings of your command line, and then will prompt\n"
760 "# you for which menu item you would like to select. hcal will process\n"
761 "# your menu selection as if it were a new command line, further modifying\n"
762 "# all the prior settings.\n"
763 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
764 "# truncated at one hundred characters\n"
765 "#MENU= -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
766 "#MENU= -l 32 -L 34 -z 2 # son in bnei brak\n"
767 "#MENU= -fbc -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
768 "#MENU= -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
769 msgstr ""
770
771 #: examples/hcal/hcal.c:271
772 msgid ""
773 "hcal - Hebrew calendar\n"
774 "version 1.6"
775 msgstr ""
776
777 #: examples/hcal/hcal.c:281
778 msgid ""
779 "Usage: hcal [options] [coordinates timezone] ] [[month] year]\n"
780 " coordinates: -l [NS]yy[.xxx] -L [EW]xx[.xxx]\n"
781 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
782 " timezone: -z nn[( .nn | :mm )]\n"
783 "Try 'hcal --help' for more information"
784 msgstr ""
785
786 #: examples/hcal/hcal.c:295
787 msgid ""
788 "Hebrew calendar\n"
789 "OPTIONS:\n"
790 " -1 --one-month over-ride config file setting if you had set\n"
791 " option --three-month as a default there\n"
792 " -3 --three-month displays previous/next months\n"
793 " side by side. requires 127 columns\n"
794 " -b --bidi prints hebrew in reverse (visual)\n"
795 " --visual\n"
796 " --no-bidi over-ride config file setting if you had set\n"
797 " --no-visual option -bidi as a default there\n"
798 " -c --colorize displays in calming, muted tones\n"
799 " --no-color over-ride a --colorize setting in your config file\n"
800 " -d --diaspora use diaspora reading and holidays.\n"
801 " -f --footnote print descriptive notes of holidays\n"
802 " --no-footnote over-ride a footnote setting in your config file\n"
803 " -h --html output in html format to stdout\n"
804 " -H --hebrew print hebrew information in Hebrew\n"
805 " -i use external css file \"./hcal.css\".\n"
806 " -I --israel override a diaspora default\n"
807 " --no-reverse do not highlight today's date\n"
808 " -m --menu prompt user-defined menu from config file\n"
809 " -p --parasha print week's parasha on each calendar row\n"
810 " -q --quiet-alerts suppress warning messages\n"
811 " -s --shabbat print Shabbat times and parshiot\n"
812 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
813 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
814 " -z --timezone nn timezone, +/-UTC\n"
815 " -l --latitude yy latitude yy degrees. Negative values are South\n"
816 " -L --longitude xx longitude xx degrees. Negative values are West\n"
817 "\n"
818 "All options can be made default in the config file, or menu-ized for\n"
819 "easy selection."
820 msgstr ""
821
822 #: examples/hcal/hcal.c:1868
823 msgid ""
824 "ALERT: options --parasha, --shabbat, --footnote are not supported in 'three-"
825 "month' mode"
826 msgstr ""
827
828 #: examples/hcal/hcal.c:1940 examples/hcal/local_functions.c:92
829 #: examples/hcal/local_functions.c:99 examples/hcal/local_functions.c:112
830 #: examples/hcal/local_functions.c:486 examples/hcal/local_functions.c:491
831 msgid "error"
832 msgstr ""
833
834 #: examples/hcal/hcal.c:1940
835 msgid "too many parameters received. expected [[mm] [yyyy]"
836 msgstr ""
837
838 #: examples/hcal/hcal.c:1949 examples/hcal/hdate.c:1929
839 #: examples/hcal/hdate.c:2003 examples/hcal/hdate.c:2100
840 msgid "year"
841 msgstr ""
842
843 #: examples/hcal/hcal.c:1957 examples/hcal/hdate.c:2013
844 #: examples/hcal/hdate.c:2016 examples/hcal/hdate.c:2070
845 #: examples/hcal/hdate.c:2110 examples/hcal/hdate.c:2113
846 #: examples/hcal/hdate.c:2132
847 msgid "month"
848 msgstr ""
849
850 #: examples/hcal/hdate.c:42
851 msgid "sunrise"
852 msgstr ""
853
854 #: examples/hcal/hdate.c:43
855 msgid "sunset"
856 msgstr ""
857
858 #: examples/hcal/hdate.c:44
859 msgid "first_light"
860 msgstr ""
861
862 #: examples/hcal/hdate.c:45
863 msgid "talit"
864 msgstr ""
865
866 #: examples/hcal/hdate.c:46
867 msgid "midday"
868 msgstr ""
869
870 #: examples/hcal/hdate.c:47
871 msgid "first_stars"
872 msgstr ""
873
874 #: examples/hcal/hdate.c:48
875 msgid "three_stars"
876 msgstr ""
877
878 #: examples/hcal/hdate.c:49 examples/hcal/hdate.c:635
879 msgid "sun_hour"
880 msgstr ""
881
882 #: examples/hcal/hdate.c:50
883 msgid "candle-lighting"
884 msgstr ""
885
886 #: examples/hcal/hdate.c:51
887 msgid "havdalah"
888 msgstr ""
889
890 #: examples/hcal/hdate.c:81
891 msgid ""
892 "# configuration file for hdate - Hebrew date information program\n"
893 "# part of package libhdate\n"
894 "#\n"
895 "# Should you mangle this file and wish to restore its default content,\n"
896 "# rename or delete this file and run hdate; hdate will automatically\n"
897 "# regenerate the default content.\n"
898 "#\n"
899 "# Your system administrator can set system-wide defaults for hcal by\n"
900 "# modifying file <not yet implemented>.\n"
901 "# You may override all defaults by changing the contents of this file.\n"
902 "#\n"
903 "# Version information\n"
904 "# This may be used by updates to hcal to determine how to parse the file\n"
905 "# and whether additional information and options should be appended to\n"
906 "# the end of this file.\n"
907 "VERSION=2.00\n"
908 "#\n"
909 "# Location awareness\n"
910 "# hdate wants to accurately highlight the current Hebrew day, including\n"
911 "# during the hours between sunset and secular midnight. If you don't\n"
912 "# provide it with latitude, longitude, and time zone information, hdate\n"
913 "# will try to guess the information, based upon your system timezone,\n"
914 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
915 "# in that timezone. When hdate is forced to guess, it alerts the user\n"
916 "# with a message that includes the guessed location.\n"
917 "# hdate's guesses will also affect its default behaviour for ouput of\n"
918 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays.\n"
919 "#SUNSET_AWARE=TRUE\n"
920 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
921 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
922 "# delimiters. Use negative values to indicate South and West, or\n"
923 "# use the abbreviated compass directions N, S, E, W.\n"
924 "#LATITUDE=\n"
925 "#LONGITUDE=\n"
926 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
927 "# with the characters :'\" as possible delimiters.\n"
928 "#TIMEZONE=\n"
929 "\n"
930 "# Output in hebrew characters\n"
931 "# hdate defaults to output all information in your default language, so\n"
932 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
933 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
934 "# still outputting gregorian information in your default language. To\n"
935 "# output ALL information in Hebrew, run something like this:\n"
936 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hdate; LC_ALL=$LC_TEMP\n"
937 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
938 "# output, you need to install a terminal font that includes the Hebrew\n"
939 "# character set (hint: unicode).\n"
940 "#FORCE_HEBREW=FALSE\n"
941 "\n"
942 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
943 "# Unfortunately, the world can not be depended upon to be either. Most\n"
944 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
945 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
946 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
947 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
948 "# This will reverse the order of the Hebrew characters, so they will\n"
949 "# display 'visual'ly correct; however, such output will not be suitable\n"
950 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
951 "# automatically forces hebrew.\n"
952 "#OUTPUT_BIDI=FALSE\n"
953 "\n"
954 "# The Hebrew language output of Hebrew information can also be 'styled'\n"
955 "# in the following ways:\n"
956 "# option YOM ~> yom shishi, aleph tishrei ...\n"
957 "# option LESHABBAT ~> yom sheni leshabbat miketz, kof kislev ...\n"
958 "# option LESEDER ~> yom sheni leseder miketz, kof kislev ...\n"
959 "#YOM=FALSE\n"
960 "#LESHABBAT=FALSE\n"
961 "#LESEDER=FALSE\n"
962 "\n"
963 "#SUN_RISE_SET=FALSE\n"
964 "#TIMES_OF_DAY=FALSE\n"
965 "#SHORT_FORMAT=FALSE\n"
966 "#SEFIRAT_HAOMER=FALSE\n"
967 "#DIASPORA=FALSE\n"
968 "\n"
969 "\n"
970 "# Shabbat related\n"
971 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
972 "# The command line options for these features are -r (--parasha), and\n"
973 "# -c. The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n"
974 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
975 "# (minutes after sunset).\n"
976 "#PARASHA_NAMES=FALSE\n"
977 "#ONLY_IF_PARASHA_IS_READ=FALSE\n"
978 "#SHABBAT_INFO=FALSE\n"
979 "\n"
980 "#CANDLE_LIGHTING=FALSE\n"
981 "#HAVDALAH=FALSE\n"
982 "\n"
983 "# Holiday related\n"
984 "#HOLIDAYS=FALSE\n"
985 "#ONLY_IF_HOLIDAY=FALSE\n"
986 "\n"
987 "# Tabular output\n"
988 "# This option has hdate output the information you request in a single\n"
989 "# comma-delimited line per day, suitable for piping or import to\n"
990 "# spreadsheet formatting applications, etc. To belabor the obvious,\n"
991 "# try running - ./hdate 12 2011 -Rt --table |column -s, -t \n"
992 "# The command line option for this feature is, um, --table\n"
993 "#TABULAR=FALSE\n"
994 "\n"
995 "# iCal format\n"
996 "# hdate can output its information in iCal-compatable format\n"
997 "# ICAL=FALSE\n"
998 "# Suppress alerts and warnings\n"
999 "# hdate alerts the user via STDERR when it guesses the user's location.\n"
1000 "#QUIET_ALERTS=FALSE\n"
1001 "\n"
1002 "# Julian day number\n"
1003 "# The Julian day number is a .... See ... for more details.\n"
1004 "# setting the option JULIAN_DAY will have hdate output that number in\n"
1005 "# the format JDN-nnnnnnn at the beginning of its first line of output.\n"
1006 "#JULIAN_DAY=FALSE\n"
1007 "\n"
1008 "# User-defined menus\n"
1009 "# You may specify here command-line strings to optionally be parsed\n"
1010 "# by hcal at execution time. To do so, use the command line option -m\n"
1011 "# (--menu). hcal will process first the settings of this config file,\n"
1012 "# then the other settings of your command line, and then will prompt\n"
1013 "# you for which menu item you would like to select. hcal will process\n"
1014 "# your menu selection as if it were a new command line, further modifying\n"
1015 "# all the prior settings.\n"
1016 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
1017 "# truncated at one hundred characters\n"
1018 "#MENU= -bd -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
1019 "#MENU= -b -l 32 -L 34 -z 2 # son in bnei brak\n"
1020 "#MENU= -bd -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
1021 "#MENU= -bd -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
1022 msgstr ""
1023
1024 #: examples/hcal/hdate.c:209
1025 msgid ""
1026 "hdate - display Hebrew date information\n"
1027 "version 1.6"
1028 msgstr ""
1029
1030 #: examples/hcal/hdate.c:219
1031 msgid ""
1032 "Usage: hdate [options] [coordinates timezone] [[[day] month] year]\n"
1033 " hdate [options] [coordinates timezone] [julian_day]\n"
1034 "\n"
1035 " coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]\n"
1036 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
1037 " timezone: -z nn[( .nn | :mm )]\n"
1038 "Try 'hdate --help' for more information"
1039 msgstr ""
1040
1041 #: examples/hcal/hdate.c:235
1042 msgid ""
1043 "hdate - display Hebrew date information\n"
1044 "OPTIONS:\n"
1045 " -b --bidi prints hebrew in reverse (visual)\n"
1046 " --visual\n"
1047 " -c print Shabbat start/end times.\n"
1048 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
1049 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
1050 " -d --diaspora use diaspora reading and holidays.\n"
1051 " -h --holidays print holidays.\n"
1052 " -H print only it is a holiday.\n"
1053 " -i --ical use iCal formated output.\n"
1054 " -j --julian print Julian day number.\n"
1055 " -m --menu prompt user-defined menu from config file\n"
1056 " -o --omer print Sefirat Haomer.\n"
1057 " -q --quiet-alerts suppress warning messages\n"
1058 " -r --parasha print weekly reading on saturday.\n"
1059 " -R print only if there is a weekly reading on Shabbat.\n"
1060 " -s --sun print sunrise/sunset times.\n"
1061 " -S --short-format print using short format.\n"
1062 " -t print day times: first light, talit, sunrise,\n"
1063 " midday, sunset, first stars, three stars.\n"
1064 " -T --table tabular output, suitable for spreadsheets\n"
1065 "\n"
1066 " -z --timezone nn timezone, +/-UTC\n"
1067 " -l --latitude yy latitude yy degrees. Negative values are South\n"
1068 " -L --longitude xx longitude xx degrees. Negative values are West\n"
1069 "\n"
1070 " --hebrew forces Hebrew to print in Hebrew characters\n"
1071 " --yom force Hebrew prefix to Hebrew day of week\n"
1072 " --leshabbat insert parasha between day of week and day\n"
1073 " --leseder insert parasha between day of week and day\n"
1074 " --not-sunset-aware don't display next day if after sunset\n"
1075 "\n"
1076 "All options can be made default in the config file, or menu-ized for\n"
1077 "easy selection."
1078 msgstr ""
1079
1080 #: examples/hcal/hdate.c:274
1081 msgid ""
1082 "ALERT: The information displayed is for today's Hebrew date.\n"
1083 " Because it is now after sunset, that means the data is\n"
1084 " for the Gregorian day beginning at midnight."
1085 msgstr ""
1086
1087 #: examples/hcal/hdate.c:405
1088 msgid "eve of "
1089 msgstr ""
1090
1091 #: examples/hcal/hdate.c:669
1092 msgid "today is day"
1093 msgstr ""
1094
1095 #: examples/hcal/hdate.c:743
1096 msgid "Gregorian date"
1097 msgstr ""
1098
1099 #: examples/hcal/hdate.c:743
1100 msgid "Hebrew Date"
1101 msgstr ""
1102
1103 #: examples/hcal/hdate.c:748
1104 #, fuzzy
1105 msgid "holiday"
1106 msgstr "שישי"
1107
1108 #: examples/hcal/hdate.c:749
1109 msgid "omer count"
1110 msgstr ""
1111
1112 #: examples/hcal/hdate.c:750
1113 msgid "parashat"
1114 msgstr ""
1115
1116 #: examples/hcal/hdate.c:1016
1117 msgid "Parashat"
1118 msgstr ""
1119
1120 #: examples/hcal/hdate.c:2120 examples/hcal/hdate.c:2139
1121 #, fuzzy
1122 msgid "day"
1123 msgstr "מאי"
1124
1125 #: examples/hcal/hdate.c:2168
1126 msgid "too many arguments; after options max is dd mm yyyy"
1127 msgstr ""
1128
1129 #: examples/hcal/local_functions.c:93
1130 msgid "parameter"
1131 msgstr ""
1132
1133 #: examples/hcal/local_functions.c:94
1134 msgid "is non-numeric or out of bounds"
1135 msgstr ""
1136
1137 #: examples/hcal/local_functions.c:100 examples/hcal/local_functions.c:113
1138 msgid "option"
1139 msgstr ""
1140
1141 #: examples/hcal/local_functions.c:100
1142 msgid "missing parameter"
1143 msgstr ""
1144
1145 #: examples/hcal/local_functions.c:106
1146 msgid "ALERT: time zone not entered, using system local time zone"
1147 msgstr ""
1148
1149 #: examples/hcal/local_functions.c:113
1150 msgid "is not a valid option"
1151 msgstr ""
1152
1153 #: examples/hcal/local_functions.c:130
1154 msgid "ALERT: guessing... will use co-ordinates for"
1155 msgstr ""
1156
1157 #: examples/hcal/local_functions.c:138
1158 msgid "Los Angeles"
1159 msgstr ""
1160
1161 #: examples/hcal/local_functions.c:139
1162 msgid "Mexico City"
1163 msgstr ""
1164
1165 #: examples/hcal/local_functions.c:140
1166 msgid "New York City"
1167 msgstr ""
1168
1169 #: examples/hcal/local_functions.c:143
1170 msgid "Buenos Aires"
1171 msgstr ""
1172
1173 #: examples/hcal/local_functions.c:144
1174 msgid "London"
1175 msgstr ""
1176
1177 #: examples/hcal/local_functions.c:145
1178 msgid "Paris"
1179 msgstr ""
1180
1181 #: examples/hcal/local_functions.c:146
1182 msgid "Tel-Aviv"
1183 msgstr ""
1184
1185 #: examples/hcal/local_functions.c:147
1186 msgid "Moscow"
1187 msgstr ""
1188
1189 #: examples/hcal/local_functions.c:148
1190 msgid "Tashkent"
1191 msgstr ""
1192
1193 #: examples/hcal/local_functions.c:149
1194 msgid "Beijing"
1195 msgstr ""
1196
1197 #: examples/hcal/local_functions.c:151
1198 msgid "Honolulu"
1199 msgstr ""
1200
1201 #: examples/hcal/local_functions.c:152
1202 msgid "Hmmm, ... hate to do this, really ..."
1203 msgstr ""
1204
1205 #: examples/hcal/local_functions.c:152
1206 msgid "using co-ordinates for the equator, at the center of time zone"
1207 msgstr ""
1208
1209 #: examples/hcal/local_functions.c:318 examples/hcal/local_functions.c:332
1210 #: examples/hcal/local_functions.c:333
1211 msgid "l (latitude)"
1212 msgstr ""
1213
1214 #: examples/hcal/local_functions.c:319
1215 msgid "L (Longitue)"
1216 msgstr ""
1217
1218 #: examples/hcal/local_functions.c:365 examples/hcal/local_functions.c:379
1219 #: examples/hcal/local_functions.c:380 examples/hcal/local_functions.c:411
1220 msgid "L (Longitude)"
1221 msgstr ""
1222
1223 #: examples/hcal/local_functions.c:442
1224 msgid "z (time zone)"
1225 msgstr ""
1226
1227 #: examples/hcal/local_functions.c:462
1228 msgid "z (timezone)"
1229 msgstr ""
1230
1231 #: examples/hcal/local_functions.c:486
1232 msgid "valid longitude parameter missing for given latitude"
1233 msgstr ""
1234
1235 #: examples/hcal/local_functions.c:491
1236 msgid "valid latitude parameter missing for given longitude"
1237 msgstr ""
1238
1239 #: examples/hcal/local_functions.c:529
1240 msgid "time zone value of"
1241 msgstr ""
1242
1243 #: examples/hcal/local_functions.c:530
1244 msgid "is incompatible with a longitude of"
1245 msgstr ""
1246
1247 #: examples/hcal/local_functions.c:530
1248 msgid "degrees"
1249 msgstr ""
1250
1251 #: examples/hcal/local_functions.c:638
1252 msgid ""
1253 "This seems to be to be your first time using this version.\n"
1254 "Please read the new documentation in the man page and config\n"
1255 "file. Attempting to create a config file ..."
1256 msgstr ""
1257
1258 #: examples/hcal/local_functions.c:677
1259 msgid "failure attempting to create config file"
1260 msgstr ""
1261
1262 #: examples/hcal/local_functions.c:681
1263 msgid "config file created"
1264 msgstr ""
1265
1266 #: examples/hcal/local_functions.c:682
1267 msgid "failure closing"
1268 msgstr ""
1269
1270 #: examples/hcal/local_functions.c:702
1271 msgid "memory allocation failure"
1272 msgstr ""
1273
1274 #: examples/hcal/local_functions.c:916
1275 msgid "your custom menu options (from your config file)"
1276 msgstr ""
1277
1278 #: examples/hcal/local_functions.c:922
1279 msgid "ALERT: -m (--menu) option specified, but no menu items in config file"
1280 msgstr ""
1281
1282 #: examples/hcal/local_functions.c:925
1283 msgid "enter your selection, or <return> to continue"
1284 msgstr ""
1285
1286 #: examples/hcal/local_functions.c:929
1287 msgid "menu selection received was out of bounds"
1288 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.6.0\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2012-01-08 19:48-0500\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 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #: src/hdate_strings.c:186 src/hdate_strings.c:190
20 msgid "translator"
21 msgstr ""
22
23 #: src/hdate_strings.c:248
24 msgid "Sunday"
25 msgstr ""
26
27 #: src/hdate_strings.c:248
28 msgid "Monday"
29 msgstr ""
30
31 #: src/hdate_strings.c:248
32 msgid "Tuesday"
33 msgstr ""
34
35 #: src/hdate_strings.c:248
36 msgid "Wednesday"
37 msgstr ""
38
39 #: src/hdate_strings.c:249
40 msgid "Thursday"
41 msgstr ""
42
43 #: src/hdate_strings.c:249
44 msgid "Friday"
45 msgstr ""
46
47 #: src/hdate_strings.c:249
48 msgid "Saturday"
49 msgstr ""
50
51 #: src/hdate_strings.c:251
52 msgid "Sun"
53 msgstr ""
54
55 #: src/hdate_strings.c:251
56 msgid "Mon"
57 msgstr ""
58
59 #: src/hdate_strings.c:251
60 msgid "Tue"
61 msgstr ""
62
63 #: src/hdate_strings.c:251
64 msgid "Wed"
65 msgstr ""
66
67 #: src/hdate_strings.c:251
68 msgid "Thu"
69 msgstr ""
70
71 #: src/hdate_strings.c:252
72 msgid "Fri"
73 msgstr ""
74
75 #: src/hdate_strings.c:252
76 msgid "Sat"
77 msgstr ""
78
79 #: src/hdate_strings.c:265 src/hdate_strings.c:288
80 msgid "none"
81 msgstr ""
82
83 #: src/hdate_strings.c:265 src/hdate_strings.c:288
84 msgid "Bereshit"
85 msgstr ""
86
87 #: src/hdate_strings.c:265 src/hdate_strings.c:288
88 msgid "Noach"
89 msgstr ""
90
91 #: src/hdate_strings.c:266 src/hdate_strings.c:289
92 msgid "Lech-Lecha"
93 msgstr ""
94
95 #: src/hdate_strings.c:266 src/hdate_strings.c:289
96 msgid "Vayera"
97 msgstr ""
98
99 #: src/hdate_strings.c:266 src/hdate_strings.c:289
100 msgid "Chayei Sara"
101 msgstr ""
102
103 #: src/hdate_strings.c:267 src/hdate_strings.c:290
104 msgid "Toldot"
105 msgstr ""
106
107 #: src/hdate_strings.c:267 src/hdate_strings.c:290
108 msgid "Vayetzei"
109 msgstr ""
110
111 #: src/hdate_strings.c:267 src/hdate_strings.c:290
112 msgid "Vayishlach"
113 msgstr ""
114
115 #: src/hdate_strings.c:268 src/hdate_strings.c:291
116 msgid "Vayeshev"
117 msgstr ""
118
119 #: src/hdate_strings.c:268 src/hdate_strings.c:291
120 msgid "Miketz"
121 msgstr ""
122
123 #: src/hdate_strings.c:268 src/hdate_strings.c:291
124 msgid "Vayigash"
125 msgstr ""
126
127 #: src/hdate_strings.c:269 src/hdate_strings.c:292
128 msgid "Vayechi"
129 msgstr ""
130
131 #: src/hdate_strings.c:269 src/hdate_strings.c:292
132 msgid "Shemot"
133 msgstr ""
134
135 #: src/hdate_strings.c:269 src/hdate_strings.c:292
136 msgid "Vaera"
137 msgstr ""
138
139 #: src/hdate_strings.c:270 src/hdate_strings.c:293
140 msgid "Bo"
141 msgstr ""
142
143 #: src/hdate_strings.c:270 src/hdate_strings.c:293
144 msgid "Beshalach"
145 msgstr ""
146
147 #: src/hdate_strings.c:270 src/hdate_strings.c:293
148 msgid "Yitro"
149 msgstr ""
150
151 #: src/hdate_strings.c:271 src/hdate_strings.c:294
152 msgid "Mishpatim"
153 msgstr ""
154
155 #: src/hdate_strings.c:271 src/hdate_strings.c:294
156 msgid "Terumah"
157 msgstr ""
158
159 #: src/hdate_strings.c:271 src/hdate_strings.c:294
160 msgid "Tetzaveh"
161 msgstr ""
162
163 #: src/hdate_strings.c:272 src/hdate_strings.c:295
164 msgid "Ki Tisa"
165 msgstr ""
166
167 #: src/hdate_strings.c:272 src/hdate_strings.c:295
168 msgid "Vayakhel"
169 msgstr ""
170
171 #: src/hdate_strings.c:272 src/hdate_strings.c:295
172 msgid "Pekudei"
173 msgstr ""
174
175 #: src/hdate_strings.c:273 src/hdate_strings.c:296
176 msgid "Vayikra"
177 msgstr ""
178
179 #: src/hdate_strings.c:273 src/hdate_strings.c:296
180 msgid "Tzav"
181 msgstr ""
182
183 #: src/hdate_strings.c:273 src/hdate_strings.c:296
184 msgid "Shmini"
185 msgstr ""
186
187 #: src/hdate_strings.c:274 src/hdate_strings.c:297
188 msgid "Tazria"
189 msgstr ""
190
191 #: src/hdate_strings.c:274 src/hdate_strings.c:297
192 msgid "Metzora"
193 msgstr ""
194
195 #: src/hdate_strings.c:274 src/hdate_strings.c:297
196 msgid "Achrei Mot"
197 msgstr ""
198
199 #: src/hdate_strings.c:275 src/hdate_strings.c:298
200 msgid "Kedoshim"
201 msgstr ""
202
203 #: src/hdate_strings.c:275 src/hdate_strings.c:298
204 msgid "Emor"
205 msgstr ""
206
207 #: src/hdate_strings.c:275 src/hdate_strings.c:298
208 msgid "Behar"
209 msgstr ""
210
211 #: src/hdate_strings.c:276 src/hdate_strings.c:299
212 msgid "Bechukotai"
213 msgstr ""
214
215 #: src/hdate_strings.c:276 src/hdate_strings.c:299
216 msgid "Bamidbar"
217 msgstr ""
218
219 #: src/hdate_strings.c:276 src/hdate_strings.c:299
220 msgid "Nasso"
221 msgstr ""
222
223 #: src/hdate_strings.c:277 src/hdate_strings.c:300
224 msgid "Beha'alotcha"
225 msgstr ""
226
227 #: src/hdate_strings.c:277 src/hdate_strings.c:300
228 msgid "Sh'lach"
229 msgstr ""
230
231 #: src/hdate_strings.c:277 src/hdate_strings.c:300
232 msgid "Korach"
233 msgstr ""
234
235 #: src/hdate_strings.c:278 src/hdate_strings.c:301
236 msgid "Chukat"
237 msgstr ""
238
239 #: src/hdate_strings.c:278 src/hdate_strings.c:301
240 msgid "Balak"
241 msgstr ""
242
243 #: src/hdate_strings.c:278 src/hdate_strings.c:301
244 msgid "Pinchas"
245 msgstr ""
246
247 #: src/hdate_strings.c:279 src/hdate_strings.c:302
248 msgid "Matot"
249 msgstr ""
250
251 #: src/hdate_strings.c:279 src/hdate_strings.c:302
252 msgid "Masei"
253 msgstr ""
254
255 #: src/hdate_strings.c:279 src/hdate_strings.c:302
256 msgid "Devarim"
257 msgstr ""
258
259 #: src/hdate_strings.c:280 src/hdate_strings.c:303
260 msgid "Vaetchanan"
261 msgstr ""
262
263 #: src/hdate_strings.c:280 src/hdate_strings.c:303
264 msgid "Eikev"
265 msgstr ""
266
267 #: src/hdate_strings.c:280 src/hdate_strings.c:303
268 msgid "Re'eh"
269 msgstr ""
270
271 #: src/hdate_strings.c:281 src/hdate_strings.c:304
272 msgid "Shoftim"
273 msgstr ""
274
275 #: src/hdate_strings.c:281 src/hdate_strings.c:304
276 msgid "Ki Teitzei"
277 msgstr ""
278
279 #: src/hdate_strings.c:281 src/hdate_strings.c:304
280 msgid "Ki Tavo"
281 msgstr ""
282
283 #: src/hdate_strings.c:282 src/hdate_strings.c:305
284 msgid "Nitzavim"
285 msgstr ""
286
287 #: src/hdate_strings.c:282 src/hdate_strings.c:305
288 msgid "Vayeilech"
289 msgstr ""
290
291 #: src/hdate_strings.c:282 src/hdate_strings.c:305
292 msgid "Ha'Azinu"
293 msgstr ""
294
295 #: src/hdate_strings.c:283 src/hdate_strings.c:306
296 msgid "Vezot Habracha"
297 msgstr ""
298
299 #: src/hdate_strings.c:284 src/hdate_strings.c:307
300 msgid "Vayakhel-Pekudei"
301 msgstr ""
302
303 #: src/hdate_strings.c:284 src/hdate_strings.c:307
304 msgid "Tazria-Metzora"
305 msgstr ""
306
307 #: src/hdate_strings.c:284 src/hdate_strings.c:307
308 msgid "Achrei Mot-Kedoshim"
309 msgstr ""
310
311 #: src/hdate_strings.c:285 src/hdate_strings.c:308
312 msgid "Behar-Bechukotai"
313 msgstr ""
314
315 #: src/hdate_strings.c:285 src/hdate_strings.c:308
316 msgid "Chukat-Balak"
317 msgstr ""
318
319 #: src/hdate_strings.c:285 src/hdate_strings.c:308
320 msgid "Matot-Masei"
321 msgstr ""
322
323 #: src/hdate_strings.c:286 src/hdate_strings.c:309
324 msgid "Nitzavim-Vayeilech"
325 msgstr ""
326
327 #: src/hdate_strings.c:364 src/hdate_strings.c:369
328 msgid "Tishrei"
329 msgstr ""
330
331 #: src/hdate_strings.c:364 src/hdate_strings.c:369
332 msgid "Cheshvan"
333 msgstr ""
334
335 #: src/hdate_strings.c:364 src/hdate_strings.c:369
336 msgid "Kislev"
337 msgstr ""
338
339 #: src/hdate_strings.c:364 src/hdate_strings.c:369
340 msgid "Tevet"
341 msgstr ""
342
343 #: src/hdate_strings.c:365 src/hdate_strings.c:370
344 msgid "Sh'vat"
345 msgstr ""
346
347 #: src/hdate_strings.c:365 src/hdate_strings.c:370
348 msgid "Adar"
349 msgstr ""
350
351 #: src/hdate_strings.c:365 src/hdate_strings.c:370
352 msgid "Nisan"
353 msgstr ""
354
355 #: src/hdate_strings.c:365 src/hdate_strings.c:370
356 msgid "Iyyar"
357 msgstr ""
358
359 #: src/hdate_strings.c:366 src/hdate_strings.c:371
360 msgid "Sivan"
361 msgstr ""
362
363 #: src/hdate_strings.c:366 src/hdate_strings.c:371
364 msgid "Tammuz"
365 msgstr ""
366
367 #: src/hdate_strings.c:366 src/hdate_strings.c:371
368 msgid "Av"
369 msgstr ""
370
371 #: src/hdate_strings.c:366 src/hdate_strings.c:371
372 msgid "Elul"
373 msgstr ""
374
375 #: src/hdate_strings.c:366 src/hdate_strings.c:371
376 msgid "Adar I"
377 msgstr ""
378
379 #: src/hdate_strings.c:367 src/hdate_strings.c:372
380 msgid "Adar II"
381 msgstr ""
382
383 #: src/hdate_strings.c:384
384 msgid "January"
385 msgstr ""
386
387 #: src/hdate_strings.c:384
388 msgid "February"
389 msgstr ""
390
391 #: src/hdate_strings.c:384
392 msgid "March"
393 msgstr ""
394
395 #: src/hdate_strings.c:385
396 msgid "April"
397 msgstr ""
398
399 #: src/hdate_strings.c:385 src/hdate_strings.c:388
400 msgid "May"
401 msgstr ""
402
403 #: src/hdate_strings.c:385
404 msgid "June"
405 msgstr ""
406
407 #: src/hdate_strings.c:386
408 msgid "July"
409 msgstr ""
410
411 #: src/hdate_strings.c:386
412 msgid "August"
413 msgstr ""
414
415 #: src/hdate_strings.c:386
416 msgid "September"
417 msgstr ""
418
419 #: src/hdate_strings.c:387
420 msgid "October"
421 msgstr ""
422
423 #: src/hdate_strings.c:387
424 msgid "November"
425 msgstr ""
426
427 #: src/hdate_strings.c:387
428 msgid "December"
429 msgstr ""
430
431 #: src/hdate_strings.c:388
432 msgid "Jan"
433 msgstr ""
434
435 #: src/hdate_strings.c:388
436 msgid "Feb"
437 msgstr ""
438
439 #: src/hdate_strings.c:388
440 msgid "Mar"
441 msgstr ""
442
443 #: src/hdate_strings.c:388
444 msgid "Apr"
445 msgstr ""
446
447 #: src/hdate_strings.c:389
448 msgid "Jun"
449 msgstr ""
450
451 #: src/hdate_strings.c:389
452 msgid "Jul"
453 msgstr ""
454
455 #: src/hdate_strings.c:389
456 msgid "Aug"
457 msgstr ""
458
459 #: src/hdate_strings.c:389
460 msgid "Sep"
461 msgstr ""
462
463 #: src/hdate_strings.c:389
464 msgid "Oct"
465 msgstr ""
466
467 #: src/hdate_strings.c:390
468 msgid "Nov"
469 msgstr ""
470
471 #: src/hdate_strings.c:390
472 msgid "Dec"
473 msgstr ""
474
475 #: src/hdate_strings.c:396 src/hdate_strings.c:416
476 msgid "Rosh Hashana I"
477 msgstr ""
478
479 #: src/hdate_strings.c:396 src/hdate_strings.c:416
480 msgid "Rosh Hashana II"
481 msgstr ""
482
483 #: src/hdate_strings.c:397 src/hdate_strings.c:417
484 msgid "Tzom Gedaliah"
485 msgstr ""
486
487 #: src/hdate_strings.c:397 src/hdate_strings.c:417
488 msgid "Yom Kippur"
489 msgstr ""
490
491 #: src/hdate_strings.c:398 src/hdate_strings.c:418
492 msgid "Sukkot"
493 msgstr ""
494
495 #: src/hdate_strings.c:398 src/hdate_strings.c:418
496 msgid "Hol hamoed Sukkot"
497 msgstr ""
498
499 #: src/hdate_strings.c:399 src/hdate_strings.c:419
500 msgid "Hoshana raba"
501 msgstr ""
502
503 #: src/hdate_strings.c:399 src/hdate_strings.c:419
504 msgid "Simchat Torah"
505 msgstr ""
506
507 #: src/hdate_strings.c:400 src/hdate_strings.c:420
508 msgid "Chanukah"
509 msgstr ""
510
511 #: src/hdate_strings.c:400 src/hdate_strings.c:420
512 msgid "Asara B'Tevet"
513 msgstr ""
514
515 #: src/hdate_strings.c:401 src/hdate_strings.c:421
516 msgid "Tu B'Shvat"
517 msgstr ""
518
519 #: src/hdate_strings.c:401 src/hdate_strings.c:421
520 msgid "Ta'anit Esther"
521 msgstr ""
522
523 #: src/hdate_strings.c:402 src/hdate_strings.c:422
524 msgid "Purim"
525 msgstr ""
526
527 #: src/hdate_strings.c:402 src/hdate_strings.c:422
528 msgid "Shushan Purim"
529 msgstr ""
530
531 #: src/hdate_strings.c:403 src/hdate_strings.c:423
532 msgid "Pesach"
533 msgstr ""
534
535 #: src/hdate_strings.c:403 src/hdate_strings.c:423
536 msgid "Hol hamoed Pesach"
537 msgstr ""
538
539 #: src/hdate_strings.c:404 src/hdate_strings.c:424
540 msgid "Yom HaAtzma'ut"
541 msgstr ""
542
543 #: src/hdate_strings.c:404 src/hdate_strings.c:424
544 msgid "Lag B'Omer"
545 msgstr ""
546
547 #: src/hdate_strings.c:405 src/hdate_strings.c:425
548 msgid "Erev Shavuot"
549 msgstr ""
550
551 #: src/hdate_strings.c:405 src/hdate_strings.c:425
552 msgid "Shavuot"
553 msgstr ""
554
555 #: src/hdate_strings.c:406 src/hdate_strings.c:426
556 msgid "Tzom Tammuz"
557 msgstr ""
558
559 #: src/hdate_strings.c:406 src/hdate_strings.c:426
560 msgid "Tish'a B'Av"
561 msgstr ""
562
563 #: src/hdate_strings.c:407 src/hdate_strings.c:427
564 msgid "Tu B'Av"
565 msgstr ""
566
567 #: src/hdate_strings.c:407 src/hdate_strings.c:427
568 msgid "Yom HaShoah"
569 msgstr ""
570
571 #: src/hdate_strings.c:408 src/hdate_strings.c:428
572 msgid "Yom HaZikaron"
573 msgstr ""
574
575 #: src/hdate_strings.c:408 src/hdate_strings.c:428
576 msgid "Yom Yerushalayim"
577 msgstr ""
578
579 #: src/hdate_strings.c:409 src/hdate_strings.c:429
580 msgid "Shmini Atzeret"
581 msgstr ""
582
583 #: src/hdate_strings.c:409 src/hdate_strings.c:429
584 msgid "Pesach VII"
585 msgstr ""
586
587 #: src/hdate_strings.c:410 src/hdate_strings.c:430
588 msgid "Pesach VIII"
589 msgstr ""
590
591 #: src/hdate_strings.c:410 src/hdate_strings.c:430
592 msgid "Shavuot II"
593 msgstr ""
594
595 #: src/hdate_strings.c:411 src/hdate_strings.c:431
596 msgid "Sukkot II"
597 msgstr ""
598
599 #: src/hdate_strings.c:411 src/hdate_strings.c:431
600 msgid "Pesach II"
601 msgstr ""
602
603 #: src/hdate_strings.c:412 src/hdate_strings.c:432
604 msgid "Family Day"
605 msgstr ""
606
607 #: src/hdate_strings.c:412 src/hdate_strings.c:432
608 msgid "Memorial day for fallen whose place of burial is unknown"
609 msgstr ""
610
611 #: src/hdate_strings.c:413
612 msgid "Yitzhak Rabin memorial day"
613 msgstr ""
614
615 #: src/hdate_strings.c:413
616 msgid "Zeev Zhabotinsky day"
617 msgstr ""
618
619 #: src/hdate_strings.c:414 src/hdate_strings.c:434
620 msgid "Erev Yom Kippur"
621 msgstr ""
622
623 #: src/hdate_strings.c:433
624 msgid "Rabin memorial day"
625 msgstr ""
626
627 #: src/hdate_strings.c:433
628 msgid "Zhabotinsky day"
629 msgstr ""
630
631 #: src/hdate_strings.c:514
632 msgid "in the Omer"
633 msgstr ""
634
635 #: examples/hcal/hcal.c:142
636 msgid ""
637 "# configuration file for hcal - Hebrew calendar program\n"
638 "# part of package libhdate\n"
639 "#\n"
640 "# Should you mangle this file and wish to restore its default content,\n"
641 "# rename or delete this file and run hcal; hcal will automatically\n"
642 "# regenerate the default content.\n"
643 "#\n"
644 "# Your system administrator can set system-wide defaults for hcal by\n"
645 "# modifying file <not yet implemented>.\n"
646 "# You may override all defaults by changing the contents of this file.\n"
647 "#\n"
648 "# Version information\n"
649 "# This may be used by updates to hcal to determine how to parse the file\n"
650 "# and whether additional information and options should be appended to\n"
651 "# the end of this file.\n"
652 "VERSION=2.00\n"
653 "# Location awareness\n"
654 "# hcal wants to accurately highlight the current Hebrew day, including\n"
655 "# during the hours between sunset and secular midnight. If you don't\n"
656 "# provide it with latitude, longitude, and time zone information, hcal\n"
657 "# will try to guess the information, based upon your system timezone,\n"
658 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
659 "# in that timezone. When hcal is forced to guess, it alerts the user\n"
660 "# with a message that includes the guessed location.\n"
661 "# hcal's guesses will also affect its default behaviour for ouput of\n"
662 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays\n"
663 "#SUNSET_AWARE=TRUE\n"
664 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
665 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
666 "# delimiters. Use negative values to indicate South and West, or\n"
667 "# use the abbreviated compass directions N, S, E, W.\n"
668 "#LATITUDE=\n"
669 "#LONGITUDE=\n"
670 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
671 "# with the characters :'\" as possible delimiters.\n"
672 "#TIMEZONE=\n"
673 "\n"
674 "# Israel and the diaspora\n"
675 "# If hcal guesses that you're not in Israel, the DIASPORA option will be\n"
676 "# set true. This will affect holiday and parasha output. FORCE_ISRAEL\n"
677 "# forces hcal to display calendar information for Israel, using hcal's\n"
678 "# default coordinates foe Israel, or coordinates that you provide that\n"
679 "# seem legitmately within Israel.\n"
680 "# Thus, if you are living in Sao Paolo, and will be visiting Israel for\n"
681 "# Sukkot, set BOTH flags true in order to see holiday information for\n"
682 "# a non-resident vistor to Israel. The command line options for these\n"
683 "# features are --israel, -I, --diaspora, -d.\n"
684 "#FORCE_DIASPORA=FALSE;\n"
685 "#FORCE_ISRAEL=FALSE;\n"
686 "\n"
687 "# Shabbat related\n"
688 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
689 "# The command line options for these features are -p (--parasha), and\n"
690 "# -s (--shabbat). The CANDLE_LIGHTING field can accept a value of 18 - 90 "
691 "(minutes\n"
692 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
693 "# (minutes after sunset).\n"
694 "#PARASHA_NAMES=FALSE\n"
695 "#SHABBAT_INFO=FALSE\n"
696 "#CANDLE_LIGHTING=FALSE\n"
697 "#HAVDALAH=FALSE\n"
698 "\n"
699 "# Holiday identification\n"
700 "# hcal flags holidays by replacing the gregorian/Hebrew date separator\n"
701 "# with assorted unhelpful cryptic symbols. Setting FOOTNOTES to true\n"
702 "# will have hcal output after the month's calendar, a list of the month's\n"
703 "# holidays along with the days on which they occur.\n"
704 "#FOOTNOTE=FALSE\n"
705 "\n"
706 "# Output in hebrew characters\n"
707 "# hcal defaults to output all information in your default language, so\n"
708 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
709 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
710 "# still outputting gregorian information in your default language. To\n"
711 "# output ALL information in Hebrew, run something like this:\n"
712 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hcal; LC_ALL=$LC_TEMP\n"
713 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
714 "# output, you need to install a terminal font that includes the Hebrew\n"
715 "# character set (hint: unicode).\n"
716 "# The command line option for FORCE_HEBREW is either --hebrew or -H\n"
717 "#FORCE_HEBREW=FALSE\n"
718 "\n"
719 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
720 "# Unfortunately, the world can not be depended upon to be either. Most\n"
721 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
722 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
723 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
724 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
725 "# This will reverse the order of the Hebrew characters, so they will\n"
726 "# display 'visual'ly correct; however, such output will not be suitable\n"
727 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
728 "# automatically forces hebrew.\n"
729 "# The command line option for OUTPUT_BIDI is either --bidi, --visual, or -b\n"
730 "#OUTPUT_BIDI=FALSE\n"
731 "\n"
732 "# Display enhancements\n"
733 "# hcal defaults to display the current day in reverse video\n"
734 "# The command line option for this feature is --no-reverse\n"
735 "#SUPPRESS_REVERSE_VIDEO=FALSE;\n"
736 "# hcal can display its output \"calming, muted tones\". Note that piping\n"
737 "# colorized output may yield unexpected results.\n"
738 "#COLORIZE=FALSE\n"
739 "\n"
740 "# HTML OUTPUT\n"
741 "#OUTPUT_HTML=FALSE\n"
742 "#USE_EXTERNAL_CSS_FILE=\"pathto/foo/bar\"\n"
743 "\n"
744 "# Suppress alerts and warnings\n"
745 "# hcal alerts the user via STDERR when it guesses the user's location.\n"
746 "#QUIET_ALERTS=FALSE\n"
747 "\n"
748 "# Three month display\n"
749 "# hcal can display a previous, current and next month side-by-side. hcal\n"
750 "# can also display a calendar for an entire year in four rows of three\n"
751 "# months each. Note that this will display properly only if your console\n"
752 "# is set for at least 127 columns. Note also that setting this option to\n"
753 "# will cause options FOOTNOTES, SHABBAT, and PARASHA_NAMES to false.\n"
754 "#THREE_MONTH=FALSE\n"
755 "\n"
756 "# User-defined menus\n"
757 "# You may specify here command-line strings to optionally be parsed\n"
758 "# by hcal at execution time. To do so, use the command line option -m\n"
759 "# (--menu). hcal will process first the settings of this config file,\n"
760 "# then the other settings of your command line, and then will prompt\n"
761 "# you for which menu item you would like to select. hcal will process\n"
762 "# your menu selection as if it were a new command line, further modifying\n"
763 "# all the prior settings.\n"
764 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
765 "# truncated at one hundred characters\n"
766 "#MENU= -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
767 "#MENU= -l 32 -L 34 -z 2 # son in bnei brak\n"
768 "#MENU= -fbc -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
769 "#MENU= -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
770 msgstr ""
771
772 #: examples/hcal/hcal.c:271
773 msgid ""
774 "hcal - Hebrew calendar\n"
775 "version 1.6"
776 msgstr ""
777
778 #: examples/hcal/hcal.c:281
779 msgid ""
780 "Usage: hcal [options] [coordinates timezone] ] [[month] year]\n"
781 " coordinates: -l [NS]yy[.xxx] -L [EW]xx[.xxx]\n"
782 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
783 " timezone: -z nn[( .nn | :mm )]\n"
784 "Try 'hcal --help' for more information"
785 msgstr ""
786
787 #: examples/hcal/hcal.c:295
788 msgid ""
789 "Hebrew calendar\n"
790 "OPTIONS:\n"
791 " -1 --one-month over-ride config file setting if you had set\n"
792 " option --three-month as a default there\n"
793 " -3 --three-month displays previous/next months\n"
794 " side by side. requires 127 columns\n"
795 " -b --bidi prints hebrew in reverse (visual)\n"
796 " --visual\n"
797 " --no-bidi over-ride config file setting if you had set\n"
798 " --no-visual option -bidi as a default there\n"
799 " -c --colorize displays in calming, muted tones\n"
800 " --no-color over-ride a --colorize setting in your config file\n"
801 " -d --diaspora use diaspora reading and holidays.\n"
802 " -f --footnote print descriptive notes of holidays\n"
803 " --no-footnote over-ride a footnote setting in your config file\n"
804 " -h --html output in html format to stdout\n"
805 " -H --hebrew print hebrew information in Hebrew\n"
806 " -i use external css file \"./hcal.css\".\n"
807 " -I --israel override a diaspora default\n"
808 " --no-reverse do not highlight today's date\n"
809 " -m --menu prompt user-defined menu from config file\n"
810 " -p --parasha print week's parasha on each calendar row\n"
811 " -q --quiet-alerts suppress warning messages\n"
812 " -s --shabbat print Shabbat times and parshiot\n"
813 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
814 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
815 " -z --timezone nn timezone, +/-UTC\n"
816 " -l --latitude yy latitude yy degrees. Negative values are South\n"
817 " -L --longitude xx longitude xx degrees. Negative values are West\n"
818 "\n"
819 "All options can be made default in the config file, or menu-ized for\n"
820 "easy selection."
821 msgstr ""
822
823 #: examples/hcal/hcal.c:1868
824 msgid ""
825 "ALERT: options --parasha, --shabbat, --footnote are not supported in 'three-"
826 "month' mode"
827 msgstr ""
828
829 #: examples/hcal/hcal.c:1940 examples/hcal/local_functions.c:92
830 #: examples/hcal/local_functions.c:99 examples/hcal/local_functions.c:112
831 #: examples/hcal/local_functions.c:486 examples/hcal/local_functions.c:491
832 msgid "error"
833 msgstr ""
834
835 #: examples/hcal/hcal.c:1940
836 msgid "too many parameters received. expected [[mm] [yyyy]"
837 msgstr ""
838
839 #: examples/hcal/hcal.c:1949 examples/hcal/hdate.c:1929
840 #: examples/hcal/hdate.c:2003 examples/hcal/hdate.c:2100
841 msgid "year"
842 msgstr ""
843
844 #: examples/hcal/hcal.c:1957 examples/hcal/hdate.c:2013
845 #: examples/hcal/hdate.c:2016 examples/hcal/hdate.c:2070
846 #: examples/hcal/hdate.c:2110 examples/hcal/hdate.c:2113
847 #: examples/hcal/hdate.c:2132
848 msgid "month"
849 msgstr ""
850
851 #: examples/hcal/hdate.c:42
852 msgid "sunrise"
853 msgstr ""
854
855 #: examples/hcal/hdate.c:43
856 msgid "sunset"
857 msgstr ""
858
859 #: examples/hcal/hdate.c:44
860 msgid "first_light"
861 msgstr ""
862
863 #: examples/hcal/hdate.c:45
864 msgid "talit"
865 msgstr ""
866
867 #: examples/hcal/hdate.c:46
868 msgid "midday"
869 msgstr ""
870
871 #: examples/hcal/hdate.c:47
872 msgid "first_stars"
873 msgstr ""
874
875 #: examples/hcal/hdate.c:48
876 msgid "three_stars"
877 msgstr ""
878
879 #: examples/hcal/hdate.c:49 examples/hcal/hdate.c:635
880 msgid "sun_hour"
881 msgstr ""
882
883 #: examples/hcal/hdate.c:50
884 msgid "candle-lighting"
885 msgstr ""
886
887 #: examples/hcal/hdate.c:51
888 msgid "havdalah"
889 msgstr ""
890
891 #: examples/hcal/hdate.c:81
892 msgid ""
893 "# configuration file for hdate - Hebrew date information program\n"
894 "# part of package libhdate\n"
895 "#\n"
896 "# Should you mangle this file and wish to restore its default content,\n"
897 "# rename or delete this file and run hdate; hdate will automatically\n"
898 "# regenerate the default content.\n"
899 "#\n"
900 "# Your system administrator can set system-wide defaults for hcal by\n"
901 "# modifying file <not yet implemented>.\n"
902 "# You may override all defaults by changing the contents of this file.\n"
903 "#\n"
904 "# Version information\n"
905 "# This may be used by updates to hcal to determine how to parse the file\n"
906 "# and whether additional information and options should be appended to\n"
907 "# the end of this file.\n"
908 "VERSION=2.00\n"
909 "#\n"
910 "# Location awareness\n"
911 "# hdate wants to accurately highlight the current Hebrew day, including\n"
912 "# during the hours between sunset and secular midnight. If you don't\n"
913 "# provide it with latitude, longitude, and time zone information, hdate\n"
914 "# will try to guess the information, based upon your system timezone,\n"
915 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
916 "# in that timezone. When hdate is forced to guess, it alerts the user\n"
917 "# with a message that includes the guessed location.\n"
918 "# hdate's guesses will also affect its default behaviour for ouput of\n"
919 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays.\n"
920 "#SUNSET_AWARE=TRUE\n"
921 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
922 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
923 "# delimiters. Use negative values to indicate South and West, or\n"
924 "# use the abbreviated compass directions N, S, E, W.\n"
925 "#LATITUDE=\n"
926 "#LONGITUDE=\n"
927 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
928 "# with the characters :'\" as possible delimiters.\n"
929 "#TIMEZONE=\n"
930 "\n"
931 "# Output in hebrew characters\n"
932 "# hdate defaults to output all information in your default language, so\n"
933 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
934 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
935 "# still outputting gregorian information in your default language. To\n"
936 "# output ALL information in Hebrew, run something like this:\n"
937 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hdate; LC_ALL=$LC_TEMP\n"
938 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
939 "# output, you need to install a terminal font that includes the Hebrew\n"
940 "# character set (hint: unicode).\n"
941 "#FORCE_HEBREW=FALSE\n"
942 "\n"
943 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
944 "# Unfortunately, the world can not be depended upon to be either. Most\n"
945 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
946 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
947 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
948 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
949 "# This will reverse the order of the Hebrew characters, so they will\n"
950 "# display 'visual'ly correct; however, such output will not be suitable\n"
951 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
952 "# automatically forces hebrew.\n"
953 "#OUTPUT_BIDI=FALSE\n"
954 "\n"
955 "# The Hebrew language output of Hebrew information can also be 'styled'\n"
956 "# in the following ways:\n"
957 "# option YOM ~> yom shishi, aleph tishrei ...\n"
958 "# option LESHABBAT ~> yom sheni leshabbat miketz, kof kislev ...\n"
959 "# option LESEDER ~> yom sheni leseder miketz, kof kislev ...\n"
960 "#YOM=FALSE\n"
961 "#LESHABBAT=FALSE\n"
962 "#LESEDER=FALSE\n"
963 "\n"
964 "#SUN_RISE_SET=FALSE\n"
965 "#TIMES_OF_DAY=FALSE\n"
966 "#SHORT_FORMAT=FALSE\n"
967 "#SEFIRAT_HAOMER=FALSE\n"
968 "#DIASPORA=FALSE\n"
969 "\n"
970 "\n"
971 "# Shabbat related\n"
972 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
973 "# The command line options for these features are -r (--parasha), and\n"
974 "# -c. The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n"
975 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
976 "# (minutes after sunset).\n"
977 "#PARASHA_NAMES=FALSE\n"
978 "#ONLY_IF_PARASHA_IS_READ=FALSE\n"
979 "#SHABBAT_INFO=FALSE\n"
980 "\n"
981 "#CANDLE_LIGHTING=FALSE\n"
982 "#HAVDALAH=FALSE\n"
983 "\n"
984 "# Holiday related\n"
985 "#HOLIDAYS=FALSE\n"
986 "#ONLY_IF_HOLIDAY=FALSE\n"
987 "\n"
988 "# Tabular output\n"
989 "# This option has hdate output the information you request in a single\n"
990 "# comma-delimited line per day, suitable for piping or import to\n"
991 "# spreadsheet formatting applications, etc. To belabor the obvious,\n"
992 "# try running - ./hdate 12 2011 -Rt --table |column -s, -t \n"
993 "# The command line option for this feature is, um, --table\n"
994 "#TABULAR=FALSE\n"
995 "\n"
996 "# iCal format\n"
997 "# hdate can output its information in iCal-compatable format\n"
998 "# ICAL=FALSE\n"
999 "# Suppress alerts and warnings\n"
1000 "# hdate alerts the user via STDERR when it guesses the user's location.\n"
1001 "#QUIET_ALERTS=FALSE\n"
1002 "\n"
1003 "# Julian day number\n"
1004 "# The Julian day number is a .... See ... for more details.\n"
1005 "# setting the option JULIAN_DAY will have hdate output that number in\n"
1006 "# the format JDN-nnnnnnn at the beginning of its first line of output.\n"
1007 "#JULIAN_DAY=FALSE\n"
1008 "\n"
1009 "# User-defined menus\n"
1010 "# You may specify here command-line strings to optionally be parsed\n"
1011 "# by hcal at execution time. To do so, use the command line option -m\n"
1012 "# (--menu). hcal will process first the settings of this config file,\n"
1013 "# then the other settings of your command line, and then will prompt\n"
1014 "# you for which menu item you would like to select. hcal will process\n"
1015 "# your menu selection as if it were a new command line, further modifying\n"
1016 "# all the prior settings.\n"
1017 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
1018 "# truncated at one hundred characters\n"
1019 "#MENU= -bd -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
1020 "#MENU= -b -l 32 -L 34 -z 2 # son in bnei brak\n"
1021 "#MENU= -bd -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
1022 "#MENU= -bd -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
1023 msgstr ""
1024
1025 #: examples/hcal/hdate.c:209
1026 msgid ""
1027 "hdate - display Hebrew date information\n"
1028 "version 1.6"
1029 msgstr ""
1030
1031 #: examples/hcal/hdate.c:219
1032 msgid ""
1033 "Usage: hdate [options] [coordinates timezone] [[[day] month] year]\n"
1034 " hdate [options] [coordinates timezone] [julian_day]\n"
1035 "\n"
1036 " coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]\n"
1037 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
1038 " timezone: -z nn[( .nn | :mm )]\n"
1039 "Try 'hdate --help' for more information"
1040 msgstr ""
1041
1042 #: examples/hcal/hdate.c:235
1043 msgid ""
1044 "hdate - display Hebrew date information\n"
1045 "OPTIONS:\n"
1046 " -b --bidi prints hebrew in reverse (visual)\n"
1047 " --visual\n"
1048 " -c print Shabbat start/end times.\n"
1049 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
1050 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
1051 " -d --diaspora use diaspora reading and holidays.\n"
1052 " -h --holidays print holidays.\n"
1053 " -H print only it is a holiday.\n"
1054 " -i --ical use iCal formated output.\n"
1055 " -j --julian print Julian day number.\n"
1056 " -m --menu prompt user-defined menu from config file\n"
1057 " -o --omer print Sefirat Haomer.\n"
1058 " -q --quiet-alerts suppress warning messages\n"
1059 " -r --parasha print weekly reading on saturday.\n"
1060 " -R print only if there is a weekly reading on Shabbat.\n"
1061 " -s --sun print sunrise/sunset times.\n"
1062 " -S --short-format print using short format.\n"
1063 " -t print day times: first light, talit, sunrise,\n"
1064 " midday, sunset, first stars, three stars.\n"
1065 " -T --table tabular output, suitable for spreadsheets\n"
1066 "\n"
1067 " -z --timezone nn timezone, +/-UTC\n"
1068 " -l --latitude yy latitude yy degrees. Negative values are South\n"
1069 " -L --longitude xx longitude xx degrees. Negative values are West\n"
1070 "\n"
1071 " --hebrew forces Hebrew to print in Hebrew characters\n"
1072 " --yom force Hebrew prefix to Hebrew day of week\n"
1073 " --leshabbat insert parasha between day of week and day\n"
1074 " --leseder insert parasha between day of week and day\n"
1075 " --not-sunset-aware don't display next day if after sunset\n"
1076 "\n"
1077 "All options can be made default in the config file, or menu-ized for\n"
1078 "easy selection."
1079 msgstr ""
1080
1081 #: examples/hcal/hdate.c:274
1082 msgid ""
1083 "ALERT: The information displayed is for today's Hebrew date.\n"
1084 " Because it is now after sunset, that means the data is\n"
1085 " for the Gregorian day beginning at midnight."
1086 msgstr ""
1087
1088 #: examples/hcal/hdate.c:405
1089 msgid "eve of "
1090 msgstr ""
1091
1092 #: examples/hcal/hdate.c:669
1093 msgid "today is day"
1094 msgstr ""
1095
1096 #: examples/hcal/hdate.c:743
1097 msgid "Gregorian date"
1098 msgstr ""
1099
1100 #: examples/hcal/hdate.c:743
1101 msgid "Hebrew Date"
1102 msgstr ""
1103
1104 #: examples/hcal/hdate.c:748
1105 msgid "holiday"
1106 msgstr ""
1107
1108 #: examples/hcal/hdate.c:749
1109 msgid "omer count"
1110 msgstr ""
1111
1112 #: examples/hcal/hdate.c:750
1113 msgid "parashat"
1114 msgstr ""
1115
1116 #: examples/hcal/hdate.c:1016
1117 msgid "Parashat"
1118 msgstr ""
1119
1120 #: examples/hcal/hdate.c:2120 examples/hcal/hdate.c:2139
1121 msgid "day"
1122 msgstr ""
1123
1124 #: examples/hcal/hdate.c:2168
1125 msgid "too many arguments; after options max is dd mm yyyy"
1126 msgstr ""
1127
1128 #: examples/hcal/local_functions.c:93
1129 msgid "parameter"
1130 msgstr ""
1131
1132 #: examples/hcal/local_functions.c:94
1133 msgid "is non-numeric or out of bounds"
1134 msgstr ""
1135
1136 #: examples/hcal/local_functions.c:100 examples/hcal/local_functions.c:113
1137 msgid "option"
1138 msgstr ""
1139
1140 #: examples/hcal/local_functions.c:100
1141 msgid "missing parameter"
1142 msgstr ""
1143
1144 #: examples/hcal/local_functions.c:106
1145 msgid "ALERT: time zone not entered, using system local time zone"
1146 msgstr ""
1147
1148 #: examples/hcal/local_functions.c:113
1149 msgid "is not a valid option"
1150 msgstr ""
1151
1152 #: examples/hcal/local_functions.c:130
1153 msgid "ALERT: guessing... will use co-ordinates for"
1154 msgstr ""
1155
1156 #: examples/hcal/local_functions.c:138
1157 msgid "Los Angeles"
1158 msgstr ""
1159
1160 #: examples/hcal/local_functions.c:139
1161 msgid "Mexico City"
1162 msgstr ""
1163
1164 #: examples/hcal/local_functions.c:140
1165 msgid "New York City"
1166 msgstr ""
1167
1168 #: examples/hcal/local_functions.c:143
1169 msgid "Buenos Aires"
1170 msgstr ""
1171
1172 #: examples/hcal/local_functions.c:144
1173 msgid "London"
1174 msgstr ""
1175
1176 #: examples/hcal/local_functions.c:145
1177 msgid "Paris"
1178 msgstr ""
1179
1180 #: examples/hcal/local_functions.c:146
1181 msgid "Tel-Aviv"
1182 msgstr ""
1183
1184 #: examples/hcal/local_functions.c:147
1185 msgid "Moscow"
1186 msgstr ""
1187
1188 #: examples/hcal/local_functions.c:148
1189 msgid "Tashkent"
1190 msgstr ""
1191
1192 #: examples/hcal/local_functions.c:149
1193 msgid "Beijing"
1194 msgstr ""
1195
1196 #: examples/hcal/local_functions.c:151
1197 msgid "Honolulu"
1198 msgstr ""
1199
1200 #: examples/hcal/local_functions.c:152
1201 msgid "Hmmm, ... hate to do this, really ..."
1202 msgstr ""
1203
1204 #: examples/hcal/local_functions.c:152
1205 msgid "using co-ordinates for the equator, at the center of time zone"
1206 msgstr ""
1207
1208 #: examples/hcal/local_functions.c:318 examples/hcal/local_functions.c:332
1209 #: examples/hcal/local_functions.c:333
1210 msgid "l (latitude)"
1211 msgstr ""
1212
1213 #: examples/hcal/local_functions.c:319
1214 msgid "L (Longitue)"
1215 msgstr ""
1216
1217 #: examples/hcal/local_functions.c:365 examples/hcal/local_functions.c:379
1218 #: examples/hcal/local_functions.c:380 examples/hcal/local_functions.c:411
1219 msgid "L (Longitude)"
1220 msgstr ""
1221
1222 #: examples/hcal/local_functions.c:442
1223 msgid "z (time zone)"
1224 msgstr ""
1225
1226 #: examples/hcal/local_functions.c:462
1227 msgid "z (timezone)"
1228 msgstr ""
1229
1230 #: examples/hcal/local_functions.c:486
1231 msgid "valid longitude parameter missing for given latitude"
1232 msgstr ""
1233
1234 #: examples/hcal/local_functions.c:491
1235 msgid "valid latitude parameter missing for given longitude"
1236 msgstr ""
1237
1238 #: examples/hcal/local_functions.c:529
1239 msgid "time zone value of"
1240 msgstr ""
1241
1242 #: examples/hcal/local_functions.c:530
1243 msgid "is incompatible with a longitude of"
1244 msgstr ""
1245
1246 #: examples/hcal/local_functions.c:530
1247 msgid "degrees"
1248 msgstr ""
1249
1250 #: examples/hcal/local_functions.c:638
1251 msgid ""
1252 "This seems to be to be your first time using this version.\n"
1253 "Please read the new documentation in the man page and config\n"
1254 "file. Attempting to create a config file ..."
1255 msgstr ""
1256
1257 #: examples/hcal/local_functions.c:677
1258 msgid "failure attempting to create config file"
1259 msgstr ""
1260
1261 #: examples/hcal/local_functions.c:681
1262 msgid "config file created"
1263 msgstr ""
1264
1265 #: examples/hcal/local_functions.c:682
1266 msgid "failure closing"
1267 msgstr ""
1268
1269 #: examples/hcal/local_functions.c:702
1270 msgid "memory allocation failure"
1271 msgstr ""
1272
1273 #: examples/hcal/local_functions.c:916
1274 msgid "your custom menu options (from your config file)"
1275 msgstr ""
1276
1277 #: examples/hcal/local_functions.c:922
1278 msgid "ALERT: -m (--menu) option specified, but no menu items in config file"
1279 msgstr ""
1280
1281 #: examples/hcal/local_functions.c:925
1282 msgid "enter your selection, or <return> to continue"
1283 msgstr ""
1284
1285 #: examples/hcal/local_functions.c:929
1286 msgid "menu selection received was out of bounds"
1287 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: 2012-01-08 19:48-0500\n"
11 "PO-Revision-Date: 2005-03-08 22:44-0200\n"
12 "Last-Translator: Boeis Peterberg\n"
13 "Language-Team: Russian\n"
14 "Language: ru\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #: src/hdate_strings.c:186 src/hdate_strings.c:190
20 msgid "translator"
21 msgstr "Борис Петербарг"
22
23 #: src/hdate_strings.c:248
24 msgid "Sunday"
25 msgstr "Воскресенье"
26
27 #: src/hdate_strings.c:248
28 msgid "Monday"
29 msgstr "Понедельник"
30
31 #: src/hdate_strings.c:248
32 msgid "Tuesday"
33 msgstr "Вторник"
34
35 #: src/hdate_strings.c:248
36 msgid "Wednesday"
37 msgstr "Среда"
38
39 #: src/hdate_strings.c:249
40 msgid "Thursday"
41 msgstr "Четверг"
42
43 #: src/hdate_strings.c:249
44 msgid "Friday"
45 msgstr "Пятница"
46
47 #: src/hdate_strings.c:249
48 msgid "Saturday"
49 msgstr "Суботта"
50
51 #: src/hdate_strings.c:251
52 msgid "Sun"
53 msgstr "Вс."
54
55 #: src/hdate_strings.c:251
56 msgid "Mon"
57 msgstr "Пн."
58
59 #: src/hdate_strings.c:251
60 msgid "Tue"
61 msgstr "Вт."
62
63 #: src/hdate_strings.c:251
64 msgid "Wed"
65 msgstr "Ср."
66
67 #: src/hdate_strings.c:251
68 msgid "Thu"
69 msgstr "Чт."
70
71 #: src/hdate_strings.c:252
72 msgid "Fri"
73 msgstr "Пт."
74
75 #: src/hdate_strings.c:252
76 msgid "Sat"
77 msgstr "Сб."
78
79 #: src/hdate_strings.c:265 src/hdate_strings.c:288
80 msgid "none"
81 msgstr "Нет"
82
83 #: src/hdate_strings.c:265 src/hdate_strings.c:288
84 msgid "Bereshit"
85 msgstr ""
86
87 #: src/hdate_strings.c:265 src/hdate_strings.c:288
88 msgid "Noach"
89 msgstr "Ноах"
90
91 #: src/hdate_strings.c:266 src/hdate_strings.c:289
92 msgid "Lech-Lecha"
93 msgstr ""
94
95 #: src/hdate_strings.c:266 src/hdate_strings.c:289
96 msgid "Vayera"
97 msgstr ""
98
99 #: src/hdate_strings.c:266 src/hdate_strings.c:289
100 msgid "Chayei Sara"
101 msgstr "Жизнь Сары"
102
103 #: src/hdate_strings.c:267 src/hdate_strings.c:290
104 msgid "Toldot"
105 msgstr ""
106
107 #: src/hdate_strings.c:267 src/hdate_strings.c:290
108 msgid "Vayetzei"
109 msgstr ""
110
111 #: src/hdate_strings.c:267 src/hdate_strings.c:290
112 msgid "Vayishlach"
113 msgstr ""
114
115 #: src/hdate_strings.c:268 src/hdate_strings.c:291
116 msgid "Vayeshev"
117 msgstr ""
118
119 #: src/hdate_strings.c:268 src/hdate_strings.c:291
120 msgid "Miketz"
121 msgstr ""
122
123 #: src/hdate_strings.c:268 src/hdate_strings.c:291
124 msgid "Vayigash"
125 msgstr ""
126
127 #: src/hdate_strings.c:269 src/hdate_strings.c:292
128 msgid "Vayechi"
129 msgstr ""
130
131 #: src/hdate_strings.c:269 src/hdate_strings.c:292
132 msgid "Shemot"
133 msgstr ""
134
135 #: src/hdate_strings.c:269 src/hdate_strings.c:292
136 msgid "Vaera"
137 msgstr ""
138
139 #: src/hdate_strings.c:270 src/hdate_strings.c:293
140 msgid "Bo"
141 msgstr ""
142
143 #: src/hdate_strings.c:270 src/hdate_strings.c:293
144 msgid "Beshalach"
145 msgstr ""
146
147 #: src/hdate_strings.c:270 src/hdate_strings.c:293
148 msgid "Yitro"
149 msgstr ""
150
151 #: src/hdate_strings.c:271 src/hdate_strings.c:294
152 msgid "Mishpatim"
153 msgstr ""
154
155 #: src/hdate_strings.c:271 src/hdate_strings.c:294
156 msgid "Terumah"
157 msgstr ""
158
159 #: src/hdate_strings.c:271 src/hdate_strings.c:294
160 msgid "Tetzaveh"
161 msgstr ""
162
163 #: src/hdate_strings.c:272 src/hdate_strings.c:295
164 msgid "Ki Tisa"
165 msgstr ""
166
167 #: src/hdate_strings.c:272 src/hdate_strings.c:295
168 msgid "Vayakhel"
169 msgstr ""
170
171 #: src/hdate_strings.c:272 src/hdate_strings.c:295
172 msgid "Pekudei"
173 msgstr ""
174
175 #: src/hdate_strings.c:273 src/hdate_strings.c:296
176 msgid "Vayikra"
177 msgstr ""
178
179 #: src/hdate_strings.c:273 src/hdate_strings.c:296
180 msgid "Tzav"
181 msgstr ""
182
183 #: src/hdate_strings.c:273 src/hdate_strings.c:296
184 msgid "Shmini"
185 msgstr ""
186
187 #: src/hdate_strings.c:274 src/hdate_strings.c:297
188 msgid "Tazria"
189 msgstr ""
190
191 #: src/hdate_strings.c:274 src/hdate_strings.c:297
192 msgid "Metzora"
193 msgstr ""
194
195 #: src/hdate_strings.c:274 src/hdate_strings.c:297
196 msgid "Achrei Mot"
197 msgstr ""
198
199 #: src/hdate_strings.c:275 src/hdate_strings.c:298
200 msgid "Kedoshim"
201 msgstr ""
202
203 #: src/hdate_strings.c:275 src/hdate_strings.c:298
204 msgid "Emor"
205 msgstr ""
206
207 #: src/hdate_strings.c:275 src/hdate_strings.c:298
208 msgid "Behar"
209 msgstr ""
210
211 #: src/hdate_strings.c:276 src/hdate_strings.c:299
212 msgid "Bechukotai"
213 msgstr ""
214
215 #: src/hdate_strings.c:276 src/hdate_strings.c:299
216 msgid "Bamidbar"
217 msgstr ""
218
219 #: src/hdate_strings.c:276 src/hdate_strings.c:299
220 msgid "Nasso"
221 msgstr ""
222
223 #: src/hdate_strings.c:277 src/hdate_strings.c:300
224 msgid "Beha'alotcha"
225 msgstr ""
226
227 #: src/hdate_strings.c:277 src/hdate_strings.c:300
228 msgid "Sh'lach"
229 msgstr ""
230
231 #: src/hdate_strings.c:277 src/hdate_strings.c:300
232 msgid "Korach"
233 msgstr ""
234
235 #: src/hdate_strings.c:278 src/hdate_strings.c:301
236 msgid "Chukat"
237 msgstr ""
238
239 #: src/hdate_strings.c:278 src/hdate_strings.c:301
240 msgid "Balak"
241 msgstr ""
242
243 #: src/hdate_strings.c:278 src/hdate_strings.c:301
244 msgid "Pinchas"
245 msgstr ""
246
247 #: src/hdate_strings.c:279 src/hdate_strings.c:302
248 msgid "Matot"
249 msgstr ""
250
251 #: src/hdate_strings.c:279 src/hdate_strings.c:302
252 msgid "Masei"
253 msgstr ""
254
255 #: src/hdate_strings.c:279 src/hdate_strings.c:302
256 msgid "Devarim"
257 msgstr ""
258
259 #: src/hdate_strings.c:280 src/hdate_strings.c:303
260 msgid "Vaetchanan"
261 msgstr ""
262
263 #: src/hdate_strings.c:280 src/hdate_strings.c:303
264 msgid "Eikev"
265 msgstr ""
266
267 #: src/hdate_strings.c:280 src/hdate_strings.c:303
268 msgid "Re'eh"
269 msgstr ""
270
271 #: src/hdate_strings.c:281 src/hdate_strings.c:304
272 msgid "Shoftim"
273 msgstr ""
274
275 #: src/hdate_strings.c:281 src/hdate_strings.c:304
276 msgid "Ki Teitzei"
277 msgstr ""
278
279 #: src/hdate_strings.c:281 src/hdate_strings.c:304
280 msgid "Ki Tavo"
281 msgstr ""
282
283 #: src/hdate_strings.c:282 src/hdate_strings.c:305
284 msgid "Nitzavim"
285 msgstr ""
286
287 #: src/hdate_strings.c:282 src/hdate_strings.c:305
288 msgid "Vayeilech"
289 msgstr ""
290
291 #: src/hdate_strings.c:282 src/hdate_strings.c:305
292 msgid "Ha'Azinu"
293 msgstr ""
294
295 #: src/hdate_strings.c:283 src/hdate_strings.c:306
296 msgid "Vezot Habracha"
297 msgstr ""
298
299 #: src/hdate_strings.c:284 src/hdate_strings.c:307
300 msgid "Vayakhel-Pekudei"
301 msgstr ""
302
303 #: src/hdate_strings.c:284 src/hdate_strings.c:307
304 msgid "Tazria-Metzora"
305 msgstr ""
306
307 #: src/hdate_strings.c:284 src/hdate_strings.c:307
308 msgid "Achrei Mot-Kedoshim"
309 msgstr ""
310
311 #: src/hdate_strings.c:285 src/hdate_strings.c:308
312 msgid "Behar-Bechukotai"
313 msgstr ""
314
315 #: src/hdate_strings.c:285 src/hdate_strings.c:308
316 msgid "Chukat-Balak"
317 msgstr ""
318
319 #: src/hdate_strings.c:285 src/hdate_strings.c:308
320 msgid "Matot-Masei"
321 msgstr ""
322
323 #: src/hdate_strings.c:286 src/hdate_strings.c:309
324 msgid "Nitzavim-Vayeilech"
325 msgstr ""
326
327 #: src/hdate_strings.c:364 src/hdate_strings.c:369
328 msgid "Tishrei"
329 msgstr "Тишрэй"
330
331 #: src/hdate_strings.c:364 src/hdate_strings.c:369
332 msgid "Cheshvan"
333 msgstr "Хешван"
334
335 #: src/hdate_strings.c:364 src/hdate_strings.c:369
336 msgid "Kislev"
337 msgstr "Кислэв"
338
339 #: src/hdate_strings.c:364 src/hdate_strings.c:369
340 msgid "Tevet"
341 msgstr "Тэвэт"
342
343 #: src/hdate_strings.c:365 src/hdate_strings.c:370
344 msgid "Sh'vat"
345 msgstr "Шват"
346
347 #: src/hdate_strings.c:365 src/hdate_strings.c:370
348 msgid "Adar"
349 msgstr "Адар"
350
351 #: src/hdate_strings.c:365 src/hdate_strings.c:370
352 msgid "Nisan"
353 msgstr "Нисан"
354
355 #: src/hdate_strings.c:365 src/hdate_strings.c:370
356 msgid "Iyyar"
357 msgstr "Ийар"
358
359 #: src/hdate_strings.c:366 src/hdate_strings.c:371
360 msgid "Sivan"
361 msgstr "Сиван"
362
363 #: src/hdate_strings.c:366 src/hdate_strings.c:371
364 #, fuzzy
365 msgid "Tammuz"
366 msgstr "17 Тамуза"
367
368 #: src/hdate_strings.c:366 src/hdate_strings.c:371
369 msgid "Av"
370 msgstr "Ав"
371
372 #: src/hdate_strings.c:366 src/hdate_strings.c:371
373 msgid "Elul"
374 msgstr "Элул"
375
376 #: src/hdate_strings.c:366 src/hdate_strings.c:371
377 msgid "Adar I"
378 msgstr "Адар 1"
379
380 #: src/hdate_strings.c:367 src/hdate_strings.c:372
381 msgid "Adar II"
382 msgstr "Адар 2"
383
384 #: src/hdate_strings.c:384
385 msgid "January"
386 msgstr "Январь"
387
388 #: src/hdate_strings.c:384
389 msgid "February"
390 msgstr "Февраль"
391
392 #: src/hdate_strings.c:384
393 msgid "March"
394 msgstr "Март"
395
396 #: src/hdate_strings.c:385
397 msgid "April"
398 msgstr "Апрель"
399
400 #: src/hdate_strings.c:385 src/hdate_strings.c:388
401 msgid "May"
402 msgstr "Май"
403
404 #: src/hdate_strings.c:385
405 msgid "June"
406 msgstr "Июнь"
407
408 #: src/hdate_strings.c:386
409 msgid "July"
410 msgstr "Июль"
411
412 #: src/hdate_strings.c:386
413 msgid "August"
414 msgstr "Август"
415
416 #: src/hdate_strings.c:386
417 msgid "September"
418 msgstr "Сентябрь"
419
420 #: src/hdate_strings.c:387
421 msgid "October"
422 msgstr "Октябрь"
423
424 #: src/hdate_strings.c:387
425 msgid "November"
426 msgstr "Ноябрь"
427
428 #: src/hdate_strings.c:387
429 msgid "December"
430 msgstr "Декабрь"
431
432 #: src/hdate_strings.c:388
433 msgid "Jan"
434 msgstr "Янв"
435
436 #: src/hdate_strings.c:388
437 msgid "Feb"
438 msgstr "Фев"
439
440 #: src/hdate_strings.c:388
441 msgid "Mar"
442 msgstr "Мар"
443
444 #: src/hdate_strings.c:388
445 msgid "Apr"
446 msgstr "Апр"
447
448 #: src/hdate_strings.c:389
449 msgid "Jun"
450 msgstr "Июнь"
451
452 #: src/hdate_strings.c:389
453 msgid "Jul"
454 msgstr "Июль"
455
456 #: src/hdate_strings.c:389
457 msgid "Aug"
458 msgstr "Авг"
459
460 #: src/hdate_strings.c:389
461 msgid "Sep"
462 msgstr "Сен"
463
464 #: src/hdate_strings.c:389
465 msgid "Oct"
466 msgstr "Окт"
467
468 #: src/hdate_strings.c:390
469 msgid "Nov"
470 msgstr "Но"
471
472 #: src/hdate_strings.c:390
473 msgid "Dec"
474 msgstr "Дек"
475
476 #: src/hdate_strings.c:396 src/hdate_strings.c:416
477 msgid "Rosh Hashana I"
478 msgstr "Рош-а-Шана I"
479
480 #: src/hdate_strings.c:396 src/hdate_strings.c:416
481 msgid "Rosh Hashana II"
482 msgstr "Рош-а-Шана II"
483
484 #: src/hdate_strings.c:397 src/hdate_strings.c:417
485 msgid "Tzom Gedaliah"
486 msgstr "Цом гдаляа"
487
488 #: src/hdate_strings.c:397 src/hdate_strings.c:417
489 msgid "Yom Kippur"
490 msgstr "Йом Кипур"
491
492 #: src/hdate_strings.c:398 src/hdate_strings.c:418
493 msgid "Sukkot"
494 msgstr "Суккот I"
495
496 #: src/hdate_strings.c:398 src/hdate_strings.c:418
497 msgid "Hol hamoed Sukkot"
498 msgstr "Суккот"
499
500 #: src/hdate_strings.c:399 src/hdate_strings.c:419
501 msgid "Hoshana raba"
502 msgstr "hoшана Раба"
503
504 #: src/hdate_strings.c:399 src/hdate_strings.c:419
505 msgid "Simchat Torah"
506 msgstr "Симхат-Тора"
507
508 #: src/hdate_strings.c:400 src/hdate_strings.c:420
509 msgid "Chanukah"
510 msgstr "Ханука"
511
512 #: src/hdate_strings.c:400 src/hdate_strings.c:420
513 msgid "Asara B'Tevet"
514 msgstr "Десятое Тевета"
515
516 #: src/hdate_strings.c:401 src/hdate_strings.c:421
517 msgid "Tu B'Shvat"
518 msgstr "Ту би-Шват"
519
520 #: src/hdate_strings.c:401 src/hdate_strings.c:421
521 msgid "Ta'anit Esther"
522 msgstr "Танйт зстер"
523
524 #: src/hdate_strings.c:402 src/hdate_strings.c:422
525 msgid "Purim"
526 msgstr "Пурим"
527
528 #: src/hdate_strings.c:402 src/hdate_strings.c:422
529 msgid "Shushan Purim"
530 msgstr "Ш. Пурим"
531
532 #: src/hdate_strings.c:403 src/hdate_strings.c:423
533 msgid "Pesach"
534 msgstr "Пэсах I"
535
536 #: src/hdate_strings.c:403 src/hdate_strings.c:423
537 msgid "Hol hamoed Pesach"
538 msgstr "Песах"
539
540 #: src/hdate_strings.c:404 src/hdate_strings.c:424
541 msgid "Yom HaAtzma'ut"
542 msgstr "День Независимости"
543
544 #: src/hdate_strings.c:404 src/hdate_strings.c:424
545 msgid "Lag B'Omer"
546 msgstr "Лаг ба-Омер"
547
548 #: src/hdate_strings.c:405 src/hdate_strings.c:425
549 msgid "Erev Shavuot"
550 msgstr ""
551
552 #: src/hdate_strings.c:405 src/hdate_strings.c:425
553 msgid "Shavuot"
554 msgstr "Шавуот"
555
556 #: src/hdate_strings.c:406 src/hdate_strings.c:426
557 msgid "Tzom Tammuz"
558 msgstr "17 Тамуза"
559
560 #: src/hdate_strings.c:406 src/hdate_strings.c:426
561 msgid "Tish'a B'Av"
562 msgstr "9 Ава"
563
564 #: src/hdate_strings.c:407 src/hdate_strings.c:427
565 msgid "Tu B'Av"
566 msgstr "15-ое Ава"
567
568 #: src/hdate_strings.c:407 src/hdate_strings.c:427
569 msgid "Yom HaShoah"
570 msgstr "День Холокоста"
571
572 #: src/hdate_strings.c:408 src/hdate_strings.c:428
573 msgid "Yom HaZikaron"
574 msgstr "День Памяти"
575
576 #: src/hdate_strings.c:408 src/hdate_strings.c:428
577 msgid "Yom Yerushalayim"
578 msgstr "День Йерусалима"
579
580 #: src/hdate_strings.c:409 src/hdate_strings.c:429
581 msgid "Shmini Atzeret"
582 msgstr "Шмини-Ацерет"
583
584 #: src/hdate_strings.c:409 src/hdate_strings.c:429
585 msgid "Pesach VII"
586 msgstr "Песах VII"
587
588 #: src/hdate_strings.c:410 src/hdate_strings.c:430
589 msgid "Pesach VIII"
590 msgstr "Песах VIII"
591
592 #: src/hdate_strings.c:410 src/hdate_strings.c:430
593 msgid "Shavuot II"
594 msgstr "Шавуот II"
595
596 #: src/hdate_strings.c:411 src/hdate_strings.c:431
597 #, fuzzy
598 msgid "Sukkot II"
599 msgstr "Суккот II"
600
601 #: src/hdate_strings.c:411 src/hdate_strings.c:431
602 #, fuzzy
603 msgid "Pesach II"
604 msgstr "Песах II"
605
606 #: src/hdate_strings.c:412 src/hdate_strings.c:432
607 msgid "Family Day"
608 msgstr ""
609
610 #: src/hdate_strings.c:412 src/hdate_strings.c:432
611 msgid "Memorial day for fallen whose place of burial is unknown"
612 msgstr ""
613
614 #: src/hdate_strings.c:413
615 msgid "Yitzhak Rabin memorial day"
616 msgstr ""
617
618 #: src/hdate_strings.c:413
619 msgid "Zeev Zhabotinsky day"
620 msgstr ""
621
622 #: src/hdate_strings.c:414 src/hdate_strings.c:434
623 msgid "Erev Yom Kippur"
624 msgstr ""
625
626 #: src/hdate_strings.c:433
627 msgid "Rabin memorial day"
628 msgstr ""
629
630 #: src/hdate_strings.c:433
631 msgid "Zhabotinsky day"
632 msgstr ""
633
634 #: src/hdate_strings.c:514
635 msgid "in the Omer"
636 msgstr ""
637
638 #: examples/hcal/hcal.c:142
639 msgid ""
640 "# configuration file for hcal - Hebrew calendar program\n"
641 "# part of package libhdate\n"
642 "#\n"
643 "# Should you mangle this file and wish to restore its default content,\n"
644 "# rename or delete this file and run hcal; hcal will automatically\n"
645 "# regenerate the default content.\n"
646 "#\n"
647 "# Your system administrator can set system-wide defaults for hcal by\n"
648 "# modifying file <not yet implemented>.\n"
649 "# You may override all defaults by changing the contents of this file.\n"
650 "#\n"
651 "# Version information\n"
652 "# This may be used by updates to hcal to determine how to parse the file\n"
653 "# and whether additional information and options should be appended to\n"
654 "# the end of this file.\n"
655 "VERSION=2.00\n"
656 "# Location awareness\n"
657 "# hcal wants to accurately highlight the current Hebrew day, including\n"
658 "# during the hours between sunset and secular midnight. If you don't\n"
659 "# provide it with latitude, longitude, and time zone information, hcal\n"
660 "# will try to guess the information, based upon your system timezone,\n"
661 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
662 "# in that timezone. When hcal is forced to guess, it alerts the user\n"
663 "# with a message that includes the guessed location.\n"
664 "# hcal's guesses will also affect its default behaviour for ouput of\n"
665 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays\n"
666 "#SUNSET_AWARE=TRUE\n"
667 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
668 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
669 "# delimiters. Use negative values to indicate South and West, or\n"
670 "# use the abbreviated compass directions N, S, E, W.\n"
671 "#LATITUDE=\n"
672 "#LONGITUDE=\n"
673 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
674 "# with the characters :'\" as possible delimiters.\n"
675 "#TIMEZONE=\n"
676 "\n"
677 "# Israel and the diaspora\n"
678 "# If hcal guesses that you're not in Israel, the DIASPORA option will be\n"
679 "# set true. This will affect holiday and parasha output. FORCE_ISRAEL\n"
680 "# forces hcal to display calendar information for Israel, using hcal's\n"
681 "# default coordinates foe Israel, or coordinates that you provide that\n"
682 "# seem legitmately within Israel.\n"
683 "# Thus, if you are living in Sao Paolo, and will be visiting Israel for\n"
684 "# Sukkot, set BOTH flags true in order to see holiday information for\n"
685 "# a non-resident vistor to Israel. The command line options for these\n"
686 "# features are --israel, -I, --diaspora, -d.\n"
687 "#FORCE_DIASPORA=FALSE;\n"
688 "#FORCE_ISRAEL=FALSE;\n"
689 "\n"
690 "# Shabbat related\n"
691 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
692 "# The command line options for these features are -p (--parasha), and\n"
693 "# -s (--shabbat). The CANDLE_LIGHTING field can accept a value of 18 - 90 "
694 "(minutes\n"
695 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
696 "# (minutes after sunset).\n"
697 "#PARASHA_NAMES=FALSE\n"
698 "#SHABBAT_INFO=FALSE\n"
699 "#CANDLE_LIGHTING=FALSE\n"
700 "#HAVDALAH=FALSE\n"
701 "\n"
702 "# Holiday identification\n"
703 "# hcal flags holidays by replacing the gregorian/Hebrew date separator\n"
704 "# with assorted unhelpful cryptic symbols. Setting FOOTNOTES to true\n"
705 "# will have hcal output after the month's calendar, a list of the month's\n"
706 "# holidays along with the days on which they occur.\n"
707 "#FOOTNOTE=FALSE\n"
708 "\n"
709 "# Output in hebrew characters\n"
710 "# hcal defaults to output all information in your default language, so\n"
711 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
712 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
713 "# still outputting gregorian information in your default language. To\n"
714 "# output ALL information in Hebrew, run something like this:\n"
715 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hcal; LC_ALL=$LC_TEMP\n"
716 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
717 "# output, you need to install a terminal font that includes the Hebrew\n"
718 "# character set (hint: unicode).\n"
719 "# The command line option for FORCE_HEBREW is either --hebrew or -H\n"
720 "#FORCE_HEBREW=FALSE\n"
721 "\n"
722 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
723 "# Unfortunately, the world can not be depended upon to be either. Most\n"
724 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
725 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
726 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
727 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
728 "# This will reverse the order of the Hebrew characters, so they will\n"
729 "# display 'visual'ly correct; however, such output will not be suitable\n"
730 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
731 "# automatically forces hebrew.\n"
732 "# The command line option for OUTPUT_BIDI is either --bidi, --visual, or -b\n"
733 "#OUTPUT_BIDI=FALSE\n"
734 "\n"
735 "# Display enhancements\n"
736 "# hcal defaults to display the current day in reverse video\n"
737 "# The command line option for this feature is --no-reverse\n"
738 "#SUPPRESS_REVERSE_VIDEO=FALSE;\n"
739 "# hcal can display its output \"calming, muted tones\". Note that piping\n"
740 "# colorized output may yield unexpected results.\n"
741 "#COLORIZE=FALSE\n"
742 "\n"
743 "# HTML OUTPUT\n"
744 "#OUTPUT_HTML=FALSE\n"
745 "#USE_EXTERNAL_CSS_FILE=\"pathto/foo/bar\"\n"
746 "\n"
747 "# Suppress alerts and warnings\n"
748 "# hcal alerts the user via STDERR when it guesses the user's location.\n"
749 "#QUIET_ALERTS=FALSE\n"
750 "\n"
751 "# Three month display\n"
752 "# hcal can display a previous, current and next month side-by-side. hcal\n"
753 "# can also display a calendar for an entire year in four rows of three\n"
754 "# months each. Note that this will display properly only if your console\n"
755 "# is set for at least 127 columns. Note also that setting this option to\n"
756 "# will cause options FOOTNOTES, SHABBAT, and PARASHA_NAMES to false.\n"
757 "#THREE_MONTH=FALSE\n"
758 "\n"
759 "# User-defined menus\n"
760 "# You may specify here command-line strings to optionally be parsed\n"
761 "# by hcal at execution time. To do so, use the command line option -m\n"
762 "# (--menu). hcal will process first the settings of this config file,\n"
763 "# then the other settings of your command line, and then will prompt\n"
764 "# you for which menu item you would like to select. hcal will process\n"
765 "# your menu selection as if it were a new command line, further modifying\n"
766 "# all the prior settings.\n"
767 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
768 "# truncated at one hundred characters\n"
769 "#MENU= -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
770 "#MENU= -l 32 -L 34 -z 2 # son in bnei brak\n"
771 "#MENU= -fbc -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
772 "#MENU= -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
773 msgstr ""
774
775 #: examples/hcal/hcal.c:271
776 msgid ""
777 "hcal - Hebrew calendar\n"
778 "version 1.6"
779 msgstr ""
780
781 #: examples/hcal/hcal.c:281
782 msgid ""
783 "Usage: hcal [options] [coordinates timezone] ] [[month] year]\n"
784 " coordinates: -l [NS]yy[.xxx] -L [EW]xx[.xxx]\n"
785 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
786 " timezone: -z nn[( .nn | :mm )]\n"
787 "Try 'hcal --help' for more information"
788 msgstr ""
789
790 #: examples/hcal/hcal.c:295
791 msgid ""
792 "Hebrew calendar\n"
793 "OPTIONS:\n"
794 " -1 --one-month over-ride config file setting if you had set\n"
795 " option --three-month as a default there\n"
796 " -3 --three-month displays previous/next months\n"
797 " side by side. requires 127 columns\n"
798 " -b --bidi prints hebrew in reverse (visual)\n"
799 " --visual\n"
800 " --no-bidi over-ride config file setting if you had set\n"
801 " --no-visual option -bidi as a default there\n"
802 " -c --colorize displays in calming, muted tones\n"
803 " --no-color over-ride a --colorize setting in your config file\n"
804 " -d --diaspora use diaspora reading and holidays.\n"
805 " -f --footnote print descriptive notes of holidays\n"
806 " --no-footnote over-ride a footnote setting in your config file\n"
807 " -h --html output in html format to stdout\n"
808 " -H --hebrew print hebrew information in Hebrew\n"
809 " -i use external css file \"./hcal.css\".\n"
810 " -I --israel override a diaspora default\n"
811 " --no-reverse do not highlight today's date\n"
812 " -m --menu prompt user-defined menu from config file\n"
813 " -p --parasha print week's parasha on each calendar row\n"
814 " -q --quiet-alerts suppress warning messages\n"
815 " -s --shabbat print Shabbat times and parshiot\n"
816 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
817 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
818 " -z --timezone nn timezone, +/-UTC\n"
819 " -l --latitude yy latitude yy degrees. Negative values are South\n"
820 " -L --longitude xx longitude xx degrees. Negative values are West\n"
821 "\n"
822 "All options can be made default in the config file, or menu-ized for\n"
823 "easy selection."
824 msgstr ""
825
826 #: examples/hcal/hcal.c:1868
827 msgid ""
828 "ALERT: options --parasha, --shabbat, --footnote are not supported in 'three-"
829 "month' mode"
830 msgstr ""
831
832 #: examples/hcal/hcal.c:1940 examples/hcal/local_functions.c:92
833 #: examples/hcal/local_functions.c:99 examples/hcal/local_functions.c:112
834 #: examples/hcal/local_functions.c:486 examples/hcal/local_functions.c:491
835 msgid "error"
836 msgstr ""
837
838 #: examples/hcal/hcal.c:1940
839 msgid "too many parameters received. expected [[mm] [yyyy]"
840 msgstr ""
841
842 #: examples/hcal/hcal.c:1949 examples/hcal/hdate.c:1929
843 #: examples/hcal/hdate.c:2003 examples/hcal/hdate.c:2100
844 msgid "year"
845 msgstr ""
846
847 #: examples/hcal/hcal.c:1957 examples/hcal/hdate.c:2013
848 #: examples/hcal/hdate.c:2016 examples/hcal/hdate.c:2070
849 #: examples/hcal/hdate.c:2110 examples/hcal/hdate.c:2113
850 #: examples/hcal/hdate.c:2132
851 msgid "month"
852 msgstr ""
853
854 #: examples/hcal/hdate.c:42
855 msgid "sunrise"
856 msgstr ""
857
858 #: examples/hcal/hdate.c:43
859 msgid "sunset"
860 msgstr ""
861
862 #: examples/hcal/hdate.c:44
863 msgid "first_light"
864 msgstr ""
865
866 #: examples/hcal/hdate.c:45
867 msgid "talit"
868 msgstr ""
869
870 #: examples/hcal/hdate.c:46
871 msgid "midday"
872 msgstr ""
873
874 #: examples/hcal/hdate.c:47
875 msgid "first_stars"
876 msgstr ""
877
878 #: examples/hcal/hdate.c:48
879 msgid "three_stars"
880 msgstr ""
881
882 #: examples/hcal/hdate.c:49 examples/hcal/hdate.c:635
883 msgid "sun_hour"
884 msgstr ""
885
886 #: examples/hcal/hdate.c:50
887 msgid "candle-lighting"
888 msgstr ""
889
890 #: examples/hcal/hdate.c:51
891 msgid "havdalah"
892 msgstr ""
893
894 #: examples/hcal/hdate.c:81
895 msgid ""
896 "# configuration file for hdate - Hebrew date information program\n"
897 "# part of package libhdate\n"
898 "#\n"
899 "# Should you mangle this file and wish to restore its default content,\n"
900 "# rename or delete this file and run hdate; hdate will automatically\n"
901 "# regenerate the default content.\n"
902 "#\n"
903 "# Your system administrator can set system-wide defaults for hcal by\n"
904 "# modifying file <not yet implemented>.\n"
905 "# You may override all defaults by changing the contents of this file.\n"
906 "#\n"
907 "# Version information\n"
908 "# This may be used by updates to hcal to determine how to parse the file\n"
909 "# and whether additional information and options should be appended to\n"
910 "# the end of this file.\n"
911 "VERSION=2.00\n"
912 "#\n"
913 "# Location awareness\n"
914 "# hdate wants to accurately highlight the current Hebrew day, including\n"
915 "# during the hours between sunset and secular midnight. If you don't\n"
916 "# provide it with latitude, longitude, and time zone information, hdate\n"
917 "# will try to guess the information, based upon your system timezone,\n"
918 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
919 "# in that timezone. When hdate is forced to guess, it alerts the user\n"
920 "# with a message that includes the guessed location.\n"
921 "# hdate's guesses will also affect its default behaviour for ouput of\n"
922 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays.\n"
923 "#SUNSET_AWARE=TRUE\n"
924 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
925 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
926 "# delimiters. Use negative values to indicate South and West, or\n"
927 "# use the abbreviated compass directions N, S, E, W.\n"
928 "#LATITUDE=\n"
929 "#LONGITUDE=\n"
930 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
931 "# with the characters :'\" as possible delimiters.\n"
932 "#TIMEZONE=\n"
933 "\n"
934 "# Output in hebrew characters\n"
935 "# hdate defaults to output all information in your default language, so\n"
936 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
937 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
938 "# still outputting gregorian information in your default language. To\n"
939 "# output ALL information in Hebrew, run something like this:\n"
940 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hdate; LC_ALL=$LC_TEMP\n"
941 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
942 "# output, you need to install a terminal font that includes the Hebrew\n"
943 "# character set (hint: unicode).\n"
944 "#FORCE_HEBREW=FALSE\n"
945 "\n"
946 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
947 "# Unfortunately, the world can not be depended upon to be either. Most\n"
948 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
949 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
950 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
951 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
952 "# This will reverse the order of the Hebrew characters, so they will\n"
953 "# display 'visual'ly correct; however, such output will not be suitable\n"
954 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
955 "# automatically forces hebrew.\n"
956 "#OUTPUT_BIDI=FALSE\n"
957 "\n"
958 "# The Hebrew language output of Hebrew information can also be 'styled'\n"
959 "# in the following ways:\n"
960 "# option YOM ~> yom shishi, aleph tishrei ...\n"
961 "# option LESHABBAT ~> yom sheni leshabbat miketz, kof kislev ...\n"
962 "# option LESEDER ~> yom sheni leseder miketz, kof kislev ...\n"
963 "#YOM=FALSE\n"
964 "#LESHABBAT=FALSE\n"
965 "#LESEDER=FALSE\n"
966 "\n"
967 "#SUN_RISE_SET=FALSE\n"
968 "#TIMES_OF_DAY=FALSE\n"
969 "#SHORT_FORMAT=FALSE\n"
970 "#SEFIRAT_HAOMER=FALSE\n"
971 "#DIASPORA=FALSE\n"
972 "\n"
973 "\n"
974 "# Shabbat related\n"
975 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
976 "# The command line options for these features are -r (--parasha), and\n"
977 "# -c. The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n"
978 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
979 "# (minutes after sunset).\n"
980 "#PARASHA_NAMES=FALSE\n"
981 "#ONLY_IF_PARASHA_IS_READ=FALSE\n"
982 "#SHABBAT_INFO=FALSE\n"
983 "\n"
984 "#CANDLE_LIGHTING=FALSE\n"
985 "#HAVDALAH=FALSE\n"
986 "\n"
987 "# Holiday related\n"
988 "#HOLIDAYS=FALSE\n"
989 "#ONLY_IF_HOLIDAY=FALSE\n"
990 "\n"
991 "# Tabular output\n"
992 "# This option has hdate output the information you request in a single\n"
993 "# comma-delimited line per day, suitable for piping or import to\n"
994 "# spreadsheet formatting applications, etc. To belabor the obvious,\n"
995 "# try running - ./hdate 12 2011 -Rt --table |column -s, -t \n"
996 "# The command line option for this feature is, um, --table\n"
997 "#TABULAR=FALSE\n"
998 "\n"
999 "# iCal format\n"
1000 "# hdate can output its information in iCal-compatable format\n"
1001 "# ICAL=FALSE\n"
1002 "# Suppress alerts and warnings\n"
1003 "# hdate alerts the user via STDERR when it guesses the user's location.\n"
1004 "#QUIET_ALERTS=FALSE\n"
1005 "\n"
1006 "# Julian day number\n"
1007 "# The Julian day number is a .... See ... for more details.\n"
1008 "# setting the option JULIAN_DAY will have hdate output that number in\n"
1009 "# the format JDN-nnnnnnn at the beginning of its first line of output.\n"
1010 "#JULIAN_DAY=FALSE\n"
1011 "\n"
1012 "# User-defined menus\n"
1013 "# You may specify here command-line strings to optionally be parsed\n"
1014 "# by hcal at execution time. To do so, use the command line option -m\n"
1015 "# (--menu). hcal will process first the settings of this config file,\n"
1016 "# then the other settings of your command line, and then will prompt\n"
1017 "# you for which menu item you would like to select. hcal will process\n"
1018 "# your menu selection as if it were a new command line, further modifying\n"
1019 "# all the prior settings.\n"
1020 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
1021 "# truncated at one hundred characters\n"
1022 "#MENU= -bd -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
1023 "#MENU= -b -l 32 -L 34 -z 2 # son in bnei brak\n"
1024 "#MENU= -bd -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
1025 "#MENU= -bd -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
1026 msgstr ""
1027
1028 #: examples/hcal/hdate.c:209
1029 msgid ""
1030 "hdate - display Hebrew date information\n"
1031 "version 1.6"
1032 msgstr ""
1033
1034 #: examples/hcal/hdate.c:219
1035 msgid ""
1036 "Usage: hdate [options] [coordinates timezone] [[[day] month] year]\n"
1037 " hdate [options] [coordinates timezone] [julian_day]\n"
1038 "\n"
1039 " coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]\n"
1040 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
1041 " timezone: -z nn[( .nn | :mm )]\n"
1042 "Try 'hdate --help' for more information"
1043 msgstr ""
1044
1045 #: examples/hcal/hdate.c:235
1046 msgid ""
1047 "hdate - display Hebrew date information\n"
1048 "OPTIONS:\n"
1049 " -b --bidi prints hebrew in reverse (visual)\n"
1050 " --visual\n"
1051 " -c print Shabbat start/end times.\n"
1052 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
1053 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
1054 " -d --diaspora use diaspora reading and holidays.\n"
1055 " -h --holidays print holidays.\n"
1056 " -H print only it is a holiday.\n"
1057 " -i --ical use iCal formated output.\n"
1058 " -j --julian print Julian day number.\n"
1059 " -m --menu prompt user-defined menu from config file\n"
1060 " -o --omer print Sefirat Haomer.\n"
1061 " -q --quiet-alerts suppress warning messages\n"
1062 " -r --parasha print weekly reading on saturday.\n"
1063 " -R print only if there is a weekly reading on Shabbat.\n"
1064 " -s --sun print sunrise/sunset times.\n"
1065 " -S --short-format print using short format.\n"
1066 " -t print day times: first light, talit, sunrise,\n"
1067 " midday, sunset, first stars, three stars.\n"
1068 " -T --table tabular output, suitable for spreadsheets\n"
1069 "\n"
1070 " -z --timezone nn timezone, +/-UTC\n"
1071 " -l --latitude yy latitude yy degrees. Negative values are South\n"
1072 " -L --longitude xx longitude xx degrees. Negative values are West\n"
1073 "\n"
1074 " --hebrew forces Hebrew to print in Hebrew characters\n"
1075 " --yom force Hebrew prefix to Hebrew day of week\n"
1076 " --leshabbat insert parasha between day of week and day\n"
1077 " --leseder insert parasha between day of week and day\n"
1078 " --not-sunset-aware don't display next day if after sunset\n"
1079 "\n"
1080 "All options can be made default in the config file, or menu-ized for\n"
1081 "easy selection."
1082 msgstr ""
1083
1084 #: examples/hcal/hdate.c:274
1085 msgid ""
1086 "ALERT: The information displayed is for today's Hebrew date.\n"
1087 " Because it is now after sunset, that means the data is\n"
1088 " for the Gregorian day beginning at midnight."
1089 msgstr ""
1090
1091 #: examples/hcal/hdate.c:405
1092 msgid "eve of "
1093 msgstr ""
1094
1095 #: examples/hcal/hdate.c:669
1096 msgid "today is day"
1097 msgstr ""
1098
1099 #: examples/hcal/hdate.c:743
1100 msgid "Gregorian date"
1101 msgstr ""
1102
1103 #: examples/hcal/hdate.c:743
1104 msgid "Hebrew Date"
1105 msgstr ""
1106
1107 #: examples/hcal/hdate.c:748
1108 #, fuzzy
1109 msgid "holiday"
1110 msgstr "Пятница"
1111
1112 #: examples/hcal/hdate.c:749
1113 msgid "omer count"
1114 msgstr ""
1115
1116 #: examples/hcal/hdate.c:750
1117 msgid "parashat"
1118 msgstr ""
1119
1120 #: examples/hcal/hdate.c:1016
1121 msgid "Parashat"
1122 msgstr ""
1123
1124 #: examples/hcal/hdate.c:2120 examples/hcal/hdate.c:2139
1125 #, fuzzy
1126 msgid "day"
1127 msgstr "Май"
1128
1129 #: examples/hcal/hdate.c:2168
1130 msgid "too many arguments; after options max is dd mm yyyy"
1131 msgstr ""
1132
1133 #: examples/hcal/local_functions.c:93
1134 msgid "parameter"
1135 msgstr ""
1136
1137 #: examples/hcal/local_functions.c:94
1138 msgid "is non-numeric or out of bounds"
1139 msgstr ""
1140
1141 #: examples/hcal/local_functions.c:100 examples/hcal/local_functions.c:113
1142 msgid "option"
1143 msgstr ""
1144
1145 #: examples/hcal/local_functions.c:100
1146 msgid "missing parameter"
1147 msgstr ""
1148
1149 #: examples/hcal/local_functions.c:106
1150 msgid "ALERT: time zone not entered, using system local time zone"
1151 msgstr ""
1152
1153 #: examples/hcal/local_functions.c:113
1154 msgid "is not a valid option"
1155 msgstr ""
1156
1157 #: examples/hcal/local_functions.c:130
1158 msgid "ALERT: guessing... will use co-ordinates for"
1159 msgstr ""
1160
1161 #: examples/hcal/local_functions.c:138
1162 msgid "Los Angeles"
1163 msgstr ""
1164
1165 #: examples/hcal/local_functions.c:139
1166 msgid "Mexico City"
1167 msgstr ""
1168
1169 #: examples/hcal/local_functions.c:140
1170 msgid "New York City"
1171 msgstr ""
1172
1173 #: examples/hcal/local_functions.c:143
1174 msgid "Buenos Aires"
1175 msgstr ""
1176
1177 #: examples/hcal/local_functions.c:144
1178 msgid "London"
1179 msgstr ""
1180
1181 #: examples/hcal/local_functions.c:145
1182 msgid "Paris"
1183 msgstr ""
1184
1185 #: examples/hcal/local_functions.c:146
1186 msgid "Tel-Aviv"
1187 msgstr ""
1188
1189 #: examples/hcal/local_functions.c:147
1190 msgid "Moscow"
1191 msgstr ""
1192
1193 #: examples/hcal/local_functions.c:148
1194 msgid "Tashkent"
1195 msgstr ""
1196
1197 #: examples/hcal/local_functions.c:149
1198 msgid "Beijing"
1199 msgstr ""
1200
1201 #: examples/hcal/local_functions.c:151
1202 msgid "Honolulu"
1203 msgstr ""
1204
1205 #: examples/hcal/local_functions.c:152
1206 msgid "Hmmm, ... hate to do this, really ..."
1207 msgstr ""
1208
1209 #: examples/hcal/local_functions.c:152
1210 msgid "using co-ordinates for the equator, at the center of time zone"
1211 msgstr ""
1212
1213 #: examples/hcal/local_functions.c:318 examples/hcal/local_functions.c:332
1214 #: examples/hcal/local_functions.c:333
1215 msgid "l (latitude)"
1216 msgstr ""
1217
1218 #: examples/hcal/local_functions.c:319
1219 msgid "L (Longitue)"
1220 msgstr ""
1221
1222 #: examples/hcal/local_functions.c:365 examples/hcal/local_functions.c:379
1223 #: examples/hcal/local_functions.c:380 examples/hcal/local_functions.c:411
1224 msgid "L (Longitude)"
1225 msgstr ""
1226
1227 #: examples/hcal/local_functions.c:442
1228 msgid "z (time zone)"
1229 msgstr ""
1230
1231 #: examples/hcal/local_functions.c:462
1232 msgid "z (timezone)"
1233 msgstr ""
1234
1235 #: examples/hcal/local_functions.c:486
1236 msgid "valid longitude parameter missing for given latitude"
1237 msgstr ""
1238
1239 #: examples/hcal/local_functions.c:491
1240 msgid "valid latitude parameter missing for given longitude"
1241 msgstr ""
1242
1243 #: examples/hcal/local_functions.c:529
1244 msgid "time zone value of"
1245 msgstr ""
1246
1247 #: examples/hcal/local_functions.c:530
1248 msgid "is incompatible with a longitude of"
1249 msgstr ""
1250
1251 #: examples/hcal/local_functions.c:530
1252 msgid "degrees"
1253 msgstr ""
1254
1255 #: examples/hcal/local_functions.c:638
1256 msgid ""
1257 "This seems to be to be your first time using this version.\n"
1258 "Please read the new documentation in the man page and config\n"
1259 "file. Attempting to create a config file ..."
1260 msgstr ""
1261
1262 #: examples/hcal/local_functions.c:677
1263 msgid "failure attempting to create config file"
1264 msgstr ""
1265
1266 #: examples/hcal/local_functions.c:681
1267 msgid "config file created"
1268 msgstr ""
1269
1270 #: examples/hcal/local_functions.c:682
1271 msgid "failure closing"
1272 msgstr ""
1273
1274 #: examples/hcal/local_functions.c:702
1275 msgid "memory allocation failure"
1276 msgstr ""
1277
1278 #: examples/hcal/local_functions.c:916
1279 msgid "your custom menu options (from your config file)"
1280 msgstr ""
1281
1282 #: examples/hcal/local_functions.c:922
1283 msgid "ALERT: -m (--menu) option specified, but no menu items in config file"
1284 msgstr ""
1285
1286 #: examples/hcal/local_functions.c:925
1287 msgid "enter your selection, or <return> to continue"
1288 msgstr ""
1289
1290 #: examples/hcal/local_functions.c:929
1291 msgid "menu selection received was out of bounds"
1292 msgstr ""
1293
1294 #~ msgid "Tamuz"
1295 #~ msgstr "Тамуз"
0 timestamp
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: 2012-01-08 19:48-0500\n"
10 "PO-Revision-Date: 2008-01-10 10:26+0100\n"
11 "Last-Translator: Patrik Nilsson <blambi@chebab.com>, Daniel Nylander "
12 "<po@danielnylander.se>\n"
13 "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
14 "Language: sv\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #: src/hdate_strings.c:186 src/hdate_strings.c:190
20 msgid "translator"
21 msgstr "Daniel Nylander, Patrik Nilsson"
22
23 #: src/hdate_strings.c:248
24 msgid "Sunday"
25 msgstr "Söndag"
26
27 #: src/hdate_strings.c:248
28 msgid "Monday"
29 msgstr "Måndag"
30
31 #: src/hdate_strings.c:248
32 msgid "Tuesday"
33 msgstr "Tisdag"
34
35 #: src/hdate_strings.c:248
36 msgid "Wednesday"
37 msgstr "Onsdag"
38
39 #: src/hdate_strings.c:249
40 msgid "Thursday"
41 msgstr "Torsdag"
42
43 #: src/hdate_strings.c:249
44 msgid "Friday"
45 msgstr "Fredag"
46
47 #: src/hdate_strings.c:249
48 msgid "Saturday"
49 msgstr "Lördag"
50
51 #: src/hdate_strings.c:251
52 msgid "Sun"
53 msgstr "Sön"
54
55 #: src/hdate_strings.c:251
56 msgid "Mon"
57 msgstr "Mån"
58
59 #: src/hdate_strings.c:251
60 msgid "Tue"
61 msgstr "Tis"
62
63 #: src/hdate_strings.c:251
64 msgid "Wed"
65 msgstr "Ons"
66
67 #: src/hdate_strings.c:251
68 msgid "Thu"
69 msgstr "Tor"
70
71 #: src/hdate_strings.c:252
72 msgid "Fri"
73 msgstr "Fre"
74
75 #: src/hdate_strings.c:252
76 msgid "Sat"
77 msgstr "Lör"
78
79 #: src/hdate_strings.c:265 src/hdate_strings.c:288
80 msgid "none"
81 msgstr "ingen"
82
83 #: src/hdate_strings.c:265 src/hdate_strings.c:288
84 msgid "Bereshit"
85 msgstr "Bereshit"
86
87 #: src/hdate_strings.c:265 src/hdate_strings.c:288
88 msgid "Noach"
89 msgstr "Noach"
90
91 #: src/hdate_strings.c:266 src/hdate_strings.c:289
92 msgid "Lech-Lecha"
93 msgstr "Lech-Lecha"
94
95 #: src/hdate_strings.c:266 src/hdate_strings.c:289
96 msgid "Vayera"
97 msgstr "Vayera"
98
99 #: src/hdate_strings.c:266 src/hdate_strings.c:289
100 msgid "Chayei Sara"
101 msgstr "Chayei Sara"
102
103 #: src/hdate_strings.c:267 src/hdate_strings.c:290
104 msgid "Toldot"
105 msgstr "Toldot"
106
107 #: src/hdate_strings.c:267 src/hdate_strings.c:290
108 msgid "Vayetzei"
109 msgstr "Vayetzei"
110
111 #: src/hdate_strings.c:267 src/hdate_strings.c:290
112 msgid "Vayishlach"
113 msgstr "Vayishlach"
114
115 #: src/hdate_strings.c:268 src/hdate_strings.c:291
116 msgid "Vayeshev"
117 msgstr "Vayeshev"
118
119 #: src/hdate_strings.c:268 src/hdate_strings.c:291
120 msgid "Miketz"
121 msgstr "Miketz"
122
123 #: src/hdate_strings.c:268 src/hdate_strings.c:291
124 msgid "Vayigash"
125 msgstr "Vayigash"
126
127 #: src/hdate_strings.c:269 src/hdate_strings.c:292
128 msgid "Vayechi"
129 msgstr "Vayechi"
130
131 #: src/hdate_strings.c:269 src/hdate_strings.c:292
132 msgid "Shemot"
133 msgstr "Shemot"
134
135 #: src/hdate_strings.c:269 src/hdate_strings.c:292
136 msgid "Vaera"
137 msgstr "Vaera"
138
139 #: src/hdate_strings.c:270 src/hdate_strings.c:293
140 msgid "Bo"
141 msgstr "Bo"
142
143 #: src/hdate_strings.c:270 src/hdate_strings.c:293
144 msgid "Beshalach"
145 msgstr "Beshalach"
146
147 #: src/hdate_strings.c:270 src/hdate_strings.c:293
148 msgid "Yitro"
149 msgstr "Yitro"
150
151 #: src/hdate_strings.c:271 src/hdate_strings.c:294
152 msgid "Mishpatim"
153 msgstr "Mishpatim"
154
155 #: src/hdate_strings.c:271 src/hdate_strings.c:294
156 msgid "Terumah"
157 msgstr "Terumah"
158
159 #: src/hdate_strings.c:271 src/hdate_strings.c:294
160 msgid "Tetzaveh"
161 msgstr "Tetzaveh"
162
163 #: src/hdate_strings.c:272 src/hdate_strings.c:295
164 msgid "Ki Tisa"
165 msgstr "Ki Tisa"
166
167 #: src/hdate_strings.c:272 src/hdate_strings.c:295
168 msgid "Vayakhel"
169 msgstr "Vayakhel"
170
171 #: src/hdate_strings.c:272 src/hdate_strings.c:295
172 msgid "Pekudei"
173 msgstr "Pekudei"
174
175 #: src/hdate_strings.c:273 src/hdate_strings.c:296
176 msgid "Vayikra"
177 msgstr "Vayikra"
178
179 #: src/hdate_strings.c:273 src/hdate_strings.c:296
180 msgid "Tzav"
181 msgstr "Tzav"
182
183 #: src/hdate_strings.c:273 src/hdate_strings.c:296
184 msgid "Shmini"
185 msgstr "Shmini"
186
187 #: src/hdate_strings.c:274 src/hdate_strings.c:297
188 msgid "Tazria"
189 msgstr "Tazria"
190
191 #: src/hdate_strings.c:274 src/hdate_strings.c:297
192 msgid "Metzora"
193 msgstr "Metzora"
194
195 #: src/hdate_strings.c:274 src/hdate_strings.c:297
196 msgid "Achrei Mot"
197 msgstr "Achrei Mot"
198
199 #: src/hdate_strings.c:275 src/hdate_strings.c:298
200 msgid "Kedoshim"
201 msgstr "Kedoshim"
202
203 #: src/hdate_strings.c:275 src/hdate_strings.c:298
204 msgid "Emor"
205 msgstr "Emor"
206
207 #: src/hdate_strings.c:275 src/hdate_strings.c:298
208 msgid "Behar"
209 msgstr "Behar"
210
211 #: src/hdate_strings.c:276 src/hdate_strings.c:299
212 msgid "Bechukotai"
213 msgstr "Bechukotai"
214
215 #: src/hdate_strings.c:276 src/hdate_strings.c:299
216 msgid "Bamidbar"
217 msgstr "Bamidbar"
218
219 #: src/hdate_strings.c:276 src/hdate_strings.c:299
220 msgid "Nasso"
221 msgstr "Nasso"
222
223 #: src/hdate_strings.c:277 src/hdate_strings.c:300
224 msgid "Beha'alotcha"
225 msgstr "Beha'alotcha"
226
227 #: src/hdate_strings.c:277 src/hdate_strings.c:300
228 msgid "Sh'lach"
229 msgstr "Sh'lach"
230
231 #: src/hdate_strings.c:277 src/hdate_strings.c:300
232 msgid "Korach"
233 msgstr "Korach"
234
235 #: src/hdate_strings.c:278 src/hdate_strings.c:301
236 msgid "Chukat"
237 msgstr "Chukat"
238
239 #: src/hdate_strings.c:278 src/hdate_strings.c:301
240 msgid "Balak"
241 msgstr "Balak"
242
243 #: src/hdate_strings.c:278 src/hdate_strings.c:301
244 msgid "Pinchas"
245 msgstr "Pinchas"
246
247 #: src/hdate_strings.c:279 src/hdate_strings.c:302
248 msgid "Matot"
249 msgstr "Matot"
250
251 #: src/hdate_strings.c:279 src/hdate_strings.c:302
252 msgid "Masei"
253 msgstr "Masei"
254
255 #: src/hdate_strings.c:279 src/hdate_strings.c:302
256 msgid "Devarim"
257 msgstr "Devarim"
258
259 #: src/hdate_strings.c:280 src/hdate_strings.c:303
260 msgid "Vaetchanan"
261 msgstr "Vaetchanan"
262
263 #: src/hdate_strings.c:280 src/hdate_strings.c:303
264 msgid "Eikev"
265 msgstr "Eikev"
266
267 #: src/hdate_strings.c:280 src/hdate_strings.c:303
268 msgid "Re'eh"
269 msgstr "Re'eh"
270
271 #: src/hdate_strings.c:281 src/hdate_strings.c:304
272 msgid "Shoftim"
273 msgstr "Shoftim"
274
275 #: src/hdate_strings.c:281 src/hdate_strings.c:304
276 msgid "Ki Teitzei"
277 msgstr "Ki Teitzei"
278
279 #: src/hdate_strings.c:281 src/hdate_strings.c:304
280 msgid "Ki Tavo"
281 msgstr "Ki Tavo"
282
283 #: src/hdate_strings.c:282 src/hdate_strings.c:305
284 msgid "Nitzavim"
285 msgstr "Nitzavim"
286
287 #: src/hdate_strings.c:282 src/hdate_strings.c:305
288 msgid "Vayeilech"
289 msgstr "Vayeilech"
290
291 #: src/hdate_strings.c:282 src/hdate_strings.c:305
292 msgid "Ha'Azinu"
293 msgstr "Ha'Azinu"
294
295 #: src/hdate_strings.c:283 src/hdate_strings.c:306
296 msgid "Vezot Habracha"
297 msgstr "Vezot Habracha"
298
299 #: src/hdate_strings.c:284 src/hdate_strings.c:307
300 msgid "Vayakhel-Pekudei"
301 msgstr "Vayakhel-Pekudei"
302
303 #: src/hdate_strings.c:284 src/hdate_strings.c:307
304 msgid "Tazria-Metzora"
305 msgstr "Tazria-Metzora"
306
307 #: src/hdate_strings.c:284 src/hdate_strings.c:307
308 msgid "Achrei Mot-Kedoshim"
309 msgstr "Achrei Mot-Kedoshim"
310
311 #: src/hdate_strings.c:285 src/hdate_strings.c:308
312 msgid "Behar-Bechukotai"
313 msgstr "Behar-Bechukotai"
314
315 #: src/hdate_strings.c:285 src/hdate_strings.c:308
316 msgid "Chukat-Balak"
317 msgstr "Chukat-Balak"
318
319 #: src/hdate_strings.c:285 src/hdate_strings.c:308
320 msgid "Matot-Masei"
321 msgstr "Matot-Masei"
322
323 #: src/hdate_strings.c:286 src/hdate_strings.c:309
324 msgid "Nitzavim-Vayeilech"
325 msgstr "Nitzavim-Vayeilech"
326
327 #: src/hdate_strings.c:364 src/hdate_strings.c:369
328 msgid "Tishrei"
329 msgstr "Tishrei"
330
331 #: src/hdate_strings.c:364 src/hdate_strings.c:369
332 msgid "Cheshvan"
333 msgstr "Cheshvan"
334
335 #: src/hdate_strings.c:364 src/hdate_strings.c:369
336 msgid "Kislev"
337 msgstr "Kislev"
338
339 #: src/hdate_strings.c:364 src/hdate_strings.c:369
340 msgid "Tevet"
341 msgstr "Tevet"
342
343 #: src/hdate_strings.c:365 src/hdate_strings.c:370
344 msgid "Sh'vat"
345 msgstr "Sh'vat"
346
347 #: src/hdate_strings.c:365 src/hdate_strings.c:370
348 msgid "Adar"
349 msgstr "Adar"
350
351 #: src/hdate_strings.c:365 src/hdate_strings.c:370
352 msgid "Nisan"
353 msgstr "Nisan"
354
355 #: src/hdate_strings.c:365 src/hdate_strings.c:370
356 msgid "Iyyar"
357 msgstr "Iyyar"
358
359 #: src/hdate_strings.c:366 src/hdate_strings.c:371
360 msgid "Sivan"
361 msgstr "Sivan"
362
363 #: src/hdate_strings.c:366 src/hdate_strings.c:371
364 #, fuzzy
365 msgid "Tammuz"
366 msgstr "Tzom Tammuz"
367
368 #: src/hdate_strings.c:366 src/hdate_strings.c:371
369 msgid "Av"
370 msgstr "Av"
371
372 #: src/hdate_strings.c:366 src/hdate_strings.c:371
373 msgid "Elul"
374 msgstr "Elul"
375
376 #: src/hdate_strings.c:366 src/hdate_strings.c:371
377 msgid "Adar I"
378 msgstr "Adar I"
379
380 #: src/hdate_strings.c:367 src/hdate_strings.c:372
381 msgid "Adar II"
382 msgstr "Adar II"
383
384 #: src/hdate_strings.c:384
385 msgid "January"
386 msgstr "Januari"
387
388 #: src/hdate_strings.c:384
389 msgid "February"
390 msgstr "Februari"
391
392 #: src/hdate_strings.c:384
393 msgid "March"
394 msgstr "Mars"
395
396 #: src/hdate_strings.c:385
397 msgid "April"
398 msgstr "April"
399
400 #: src/hdate_strings.c:385 src/hdate_strings.c:388
401 msgid "May"
402 msgstr "Maj"
403
404 #: src/hdate_strings.c:385
405 msgid "June"
406 msgstr "Juni"
407
408 #: src/hdate_strings.c:386
409 msgid "July"
410 msgstr "Juli"
411
412 #: src/hdate_strings.c:386
413 msgid "August"
414 msgstr "Augusti"
415
416 #: src/hdate_strings.c:386
417 msgid "September"
418 msgstr "September"
419
420 #: src/hdate_strings.c:387
421 msgid "October"
422 msgstr "Oktober"
423
424 #: src/hdate_strings.c:387
425 msgid "November"
426 msgstr "November"
427
428 #: src/hdate_strings.c:387
429 msgid "December"
430 msgstr "December"
431
432 #: src/hdate_strings.c:388
433 msgid "Jan"
434 msgstr "Jan"
435
436 #: src/hdate_strings.c:388
437 msgid "Feb"
438 msgstr "Feb"
439
440 #: src/hdate_strings.c:388
441 msgid "Mar"
442 msgstr "Mar"
443
444 #: src/hdate_strings.c:388
445 msgid "Apr"
446 msgstr "Apr"
447
448 #: src/hdate_strings.c:389
449 msgid "Jun"
450 msgstr "Jun"
451
452 #: src/hdate_strings.c:389
453 msgid "Jul"
454 msgstr "Jul"
455
456 #: src/hdate_strings.c:389
457 msgid "Aug"
458 msgstr "Aug"
459
460 #: src/hdate_strings.c:389
461 msgid "Sep"
462 msgstr "Sep"
463
464 #: src/hdate_strings.c:389
465 msgid "Oct"
466 msgstr "Okt"
467
468 #: src/hdate_strings.c:390
469 msgid "Nov"
470 msgstr "Nov"
471
472 #: src/hdate_strings.c:390
473 msgid "Dec"
474 msgstr "Dec"
475
476 #: src/hdate_strings.c:396 src/hdate_strings.c:416
477 msgid "Rosh Hashana I"
478 msgstr "Rosh Hashana I"
479
480 #: src/hdate_strings.c:396 src/hdate_strings.c:416
481 msgid "Rosh Hashana II"
482 msgstr "Rosh Hashana II"
483
484 #: src/hdate_strings.c:397 src/hdate_strings.c:417
485 msgid "Tzom Gedaliah"
486 msgstr "Tzom Gedaliah"
487
488 #: src/hdate_strings.c:397 src/hdate_strings.c:417
489 msgid "Yom Kippur"
490 msgstr "Yom Kippur"
491
492 #: src/hdate_strings.c:398 src/hdate_strings.c:418
493 msgid "Sukkot"
494 msgstr "Sukkot"
495
496 #: src/hdate_strings.c:398 src/hdate_strings.c:418
497 msgid "Hol hamoed Sukkot"
498 msgstr "Hol hamoed Sukkot"
499
500 #: src/hdate_strings.c:399 src/hdate_strings.c:419
501 msgid "Hoshana raba"
502 msgstr "Hoshana raba"
503
504 #: src/hdate_strings.c:399 src/hdate_strings.c:419
505 msgid "Simchat Torah"
506 msgstr "Simchat Torah"
507
508 #: src/hdate_strings.c:400 src/hdate_strings.c:420
509 msgid "Chanukah"
510 msgstr "Chanukah"
511
512 #: src/hdate_strings.c:400 src/hdate_strings.c:420
513 msgid "Asara B'Tevet"
514 msgstr "Asara B'Tevet"
515
516 #: src/hdate_strings.c:401 src/hdate_strings.c:421
517 msgid "Tu B'Shvat"
518 msgstr "Tu B'Shvat"
519
520 #: src/hdate_strings.c:401 src/hdate_strings.c:421
521 msgid "Ta'anit Esther"
522 msgstr "Ta'anit Esther"
523
524 #: src/hdate_strings.c:402 src/hdate_strings.c:422
525 msgid "Purim"
526 msgstr "Purim"
527
528 #: src/hdate_strings.c:402 src/hdate_strings.c:422
529 msgid "Shushan Purim"
530 msgstr "Shushan Purim"
531
532 #: src/hdate_strings.c:403 src/hdate_strings.c:423
533 msgid "Pesach"
534 msgstr "Pesach"
535
536 #: src/hdate_strings.c:403 src/hdate_strings.c:423
537 msgid "Hol hamoed Pesach"
538 msgstr "Hol hamoed Pesach"
539
540 #: src/hdate_strings.c:404 src/hdate_strings.c:424
541 msgid "Yom HaAtzma'ut"
542 msgstr "Yom HaAtzma'ut"
543
544 #: src/hdate_strings.c:404 src/hdate_strings.c:424
545 msgid "Lag B'Omer"
546 msgstr "Lag B'Omer"
547
548 #: src/hdate_strings.c:405 src/hdate_strings.c:425
549 msgid "Erev Shavuot"
550 msgstr "Erev Shavuot"
551
552 #: src/hdate_strings.c:405 src/hdate_strings.c:425
553 msgid "Shavuot"
554 msgstr "Shavuot"
555
556 #: src/hdate_strings.c:406 src/hdate_strings.c:426
557 msgid "Tzom Tammuz"
558 msgstr "Tzom Tammuz"
559
560 #: src/hdate_strings.c:406 src/hdate_strings.c:426
561 msgid "Tish'a B'Av"
562 msgstr "Tish'a B'Av"
563
564 #: src/hdate_strings.c:407 src/hdate_strings.c:427
565 msgid "Tu B'Av"
566 msgstr "Tu B'Av"
567
568 #: src/hdate_strings.c:407 src/hdate_strings.c:427
569 msgid "Yom HaShoah"
570 msgstr "Yom HaShoah"
571
572 #: src/hdate_strings.c:408 src/hdate_strings.c:428
573 msgid "Yom HaZikaron"
574 msgstr "Yom HaZikaron"
575
576 #: src/hdate_strings.c:408 src/hdate_strings.c:428
577 msgid "Yom Yerushalayim"
578 msgstr "Yom Yerushalayim"
579
580 #: src/hdate_strings.c:409 src/hdate_strings.c:429
581 msgid "Shmini Atzeret"
582 msgstr "Shmini Atzeret"
583
584 #: src/hdate_strings.c:409 src/hdate_strings.c:429
585 msgid "Pesach VII"
586 msgstr "Pesach VII"
587
588 #: src/hdate_strings.c:410 src/hdate_strings.c:430
589 msgid "Pesach VIII"
590 msgstr "Pesach VIII"
591
592 #: src/hdate_strings.c:410 src/hdate_strings.c:430
593 msgid "Shavuot II"
594 msgstr "Shavuot II"
595
596 #: src/hdate_strings.c:411 src/hdate_strings.c:431
597 msgid "Sukkot II"
598 msgstr "Sukkot II"
599
600 #: src/hdate_strings.c:411 src/hdate_strings.c:431
601 msgid "Pesach II"
602 msgstr "Pesach II"
603
604 #: src/hdate_strings.c:412 src/hdate_strings.c:432
605 msgid "Family Day"
606 msgstr "Familjedagen"
607
608 #: src/hdate_strings.c:412 src/hdate_strings.c:432
609 msgid "Memorial day for fallen whose place of burial is unknown"
610 msgstr "Minnesdag för de fallena vars gravplats är okänd"
611
612 #: src/hdate_strings.c:413
613 msgid "Yitzhak Rabin memorial day"
614 msgstr "Minnesdag för Yitzhak Rabin"
615
616 #: src/hdate_strings.c:413
617 msgid "Zeev Zhabotinsky day"
618 msgstr "Zeev Zhabotinksys dag"
619
620 #: src/hdate_strings.c:414 src/hdate_strings.c:434
621 #, fuzzy
622 msgid "Erev Yom Kippur"
623 msgstr "Erev Yom Kippur"
624
625 #: src/hdate_strings.c:433
626 msgid "Rabin memorial day"
627 msgstr "Minnesdag för Y. Rabin"
628
629 #: src/hdate_strings.c:433
630 msgid "Zhabotinsky day"
631 msgstr "Zhabotinksys dag"
632
633 #: src/hdate_strings.c:514
634 msgid "in the Omer"
635 msgstr ""
636
637 #: examples/hcal/hcal.c:142
638 msgid ""
639 "# configuration file for hcal - Hebrew calendar program\n"
640 "# part of package libhdate\n"
641 "#\n"
642 "# Should you mangle this file and wish to restore its default content,\n"
643 "# rename or delete this file and run hcal; hcal will automatically\n"
644 "# regenerate the default content.\n"
645 "#\n"
646 "# Your system administrator can set system-wide defaults for hcal by\n"
647 "# modifying file <not yet implemented>.\n"
648 "# You may override all defaults by changing the contents of this file.\n"
649 "#\n"
650 "# Version information\n"
651 "# This may be used by updates to hcal to determine how to parse the file\n"
652 "# and whether additional information and options should be appended to\n"
653 "# the end of this file.\n"
654 "VERSION=2.00\n"
655 "# Location awareness\n"
656 "# hcal wants to accurately highlight the current Hebrew day, including\n"
657 "# during the hours between sunset and secular midnight. If you don't\n"
658 "# provide it with latitude, longitude, and time zone information, hcal\n"
659 "# will try to guess the information, based upon your system timezone,\n"
660 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
661 "# in that timezone. When hcal is forced to guess, it alerts the user\n"
662 "# with a message that includes the guessed location.\n"
663 "# hcal's guesses will also affect its default behaviour for ouput of\n"
664 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays\n"
665 "#SUNSET_AWARE=TRUE\n"
666 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
667 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
668 "# delimiters. Use negative values to indicate South and West, or\n"
669 "# use the abbreviated compass directions N, S, E, W.\n"
670 "#LATITUDE=\n"
671 "#LONGITUDE=\n"
672 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
673 "# with the characters :'\" as possible delimiters.\n"
674 "#TIMEZONE=\n"
675 "\n"
676 "# Israel and the diaspora\n"
677 "# If hcal guesses that you're not in Israel, the DIASPORA option will be\n"
678 "# set true. This will affect holiday and parasha output. FORCE_ISRAEL\n"
679 "# forces hcal to display calendar information for Israel, using hcal's\n"
680 "# default coordinates foe Israel, or coordinates that you provide that\n"
681 "# seem legitmately within Israel.\n"
682 "# Thus, if you are living in Sao Paolo, and will be visiting Israel for\n"
683 "# Sukkot, set BOTH flags true in order to see holiday information for\n"
684 "# a non-resident vistor to Israel. The command line options for these\n"
685 "# features are --israel, -I, --diaspora, -d.\n"
686 "#FORCE_DIASPORA=FALSE;\n"
687 "#FORCE_ISRAEL=FALSE;\n"
688 "\n"
689 "# Shabbat related\n"
690 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
691 "# The command line options for these features are -p (--parasha), and\n"
692 "# -s (--shabbat). The CANDLE_LIGHTING field can accept a value of 18 - 90 "
693 "(minutes\n"
694 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
695 "# (minutes after sunset).\n"
696 "#PARASHA_NAMES=FALSE\n"
697 "#SHABBAT_INFO=FALSE\n"
698 "#CANDLE_LIGHTING=FALSE\n"
699 "#HAVDALAH=FALSE\n"
700 "\n"
701 "# Holiday identification\n"
702 "# hcal flags holidays by replacing the gregorian/Hebrew date separator\n"
703 "# with assorted unhelpful cryptic symbols. Setting FOOTNOTES to true\n"
704 "# will have hcal output after the month's calendar, a list of the month's\n"
705 "# holidays along with the days on which they occur.\n"
706 "#FOOTNOTE=FALSE\n"
707 "\n"
708 "# Output in hebrew characters\n"
709 "# hcal defaults to output all information in your default language, so\n"
710 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
711 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
712 "# still outputting gregorian information in your default language. To\n"
713 "# output ALL information in Hebrew, run something like this:\n"
714 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hcal; LC_ALL=$LC_TEMP\n"
715 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
716 "# output, you need to install a terminal font that includes the Hebrew\n"
717 "# character set (hint: unicode).\n"
718 "# The command line option for FORCE_HEBREW is either --hebrew or -H\n"
719 "#FORCE_HEBREW=FALSE\n"
720 "\n"
721 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
722 "# Unfortunately, the world can not be depended upon to be either. Most\n"
723 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
724 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
725 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
726 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
727 "# This will reverse the order of the Hebrew characters, so they will\n"
728 "# display 'visual'ly correct; however, such output will not be suitable\n"
729 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
730 "# automatically forces hebrew.\n"
731 "# The command line option for OUTPUT_BIDI is either --bidi, --visual, or -b\n"
732 "#OUTPUT_BIDI=FALSE\n"
733 "\n"
734 "# Display enhancements\n"
735 "# hcal defaults to display the current day in reverse video\n"
736 "# The command line option for this feature is --no-reverse\n"
737 "#SUPPRESS_REVERSE_VIDEO=FALSE;\n"
738 "# hcal can display its output \"calming, muted tones\". Note that piping\n"
739 "# colorized output may yield unexpected results.\n"
740 "#COLORIZE=FALSE\n"
741 "\n"
742 "# HTML OUTPUT\n"
743 "#OUTPUT_HTML=FALSE\n"
744 "#USE_EXTERNAL_CSS_FILE=\"pathto/foo/bar\"\n"
745 "\n"
746 "# Suppress alerts and warnings\n"
747 "# hcal alerts the user via STDERR when it guesses the user's location.\n"
748 "#QUIET_ALERTS=FALSE\n"
749 "\n"
750 "# Three month display\n"
751 "# hcal can display a previous, current and next month side-by-side. hcal\n"
752 "# can also display a calendar for an entire year in four rows of three\n"
753 "# months each. Note that this will display properly only if your console\n"
754 "# is set for at least 127 columns. Note also that setting this option to\n"
755 "# will cause options FOOTNOTES, SHABBAT, and PARASHA_NAMES to false.\n"
756 "#THREE_MONTH=FALSE\n"
757 "\n"
758 "# User-defined menus\n"
759 "# You may specify here command-line strings to optionally be parsed\n"
760 "# by hcal at execution time. To do so, use the command line option -m\n"
761 "# (--menu). hcal will process first the settings of this config file,\n"
762 "# then the other settings of your command line, and then will prompt\n"
763 "# you for which menu item you would like to select. hcal will process\n"
764 "# your menu selection as if it were a new command line, further modifying\n"
765 "# all the prior settings.\n"
766 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
767 "# truncated at one hundred characters\n"
768 "#MENU= -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
769 "#MENU= -l 32 -L 34 -z 2 # son in bnei brak\n"
770 "#MENU= -fbc -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
771 "#MENU= -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
772 msgstr ""
773
774 #: examples/hcal/hcal.c:271
775 msgid ""
776 "hcal - Hebrew calendar\n"
777 "version 1.6"
778 msgstr ""
779
780 #: examples/hcal/hcal.c:281
781 msgid ""
782 "Usage: hcal [options] [coordinates timezone] ] [[month] year]\n"
783 " coordinates: -l [NS]yy[.xxx] -L [EW]xx[.xxx]\n"
784 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
785 " timezone: -z nn[( .nn | :mm )]\n"
786 "Try 'hcal --help' for more information"
787 msgstr ""
788
789 #: examples/hcal/hcal.c:295
790 msgid ""
791 "Hebrew calendar\n"
792 "OPTIONS:\n"
793 " -1 --one-month over-ride config file setting if you had set\n"
794 " option --three-month as a default there\n"
795 " -3 --three-month displays previous/next months\n"
796 " side by side. requires 127 columns\n"
797 " -b --bidi prints hebrew in reverse (visual)\n"
798 " --visual\n"
799 " --no-bidi over-ride config file setting if you had set\n"
800 " --no-visual option -bidi as a default there\n"
801 " -c --colorize displays in calming, muted tones\n"
802 " --no-color over-ride a --colorize setting in your config file\n"
803 " -d --diaspora use diaspora reading and holidays.\n"
804 " -f --footnote print descriptive notes of holidays\n"
805 " --no-footnote over-ride a footnote setting in your config file\n"
806 " -h --html output in html format to stdout\n"
807 " -H --hebrew print hebrew information in Hebrew\n"
808 " -i use external css file \"./hcal.css\".\n"
809 " -I --israel override a diaspora default\n"
810 " --no-reverse do not highlight today's date\n"
811 " -m --menu prompt user-defined menu from config file\n"
812 " -p --parasha print week's parasha on each calendar row\n"
813 " -q --quiet-alerts suppress warning messages\n"
814 " -s --shabbat print Shabbat times and parshiot\n"
815 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
816 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
817 " -z --timezone nn timezone, +/-UTC\n"
818 " -l --latitude yy latitude yy degrees. Negative values are South\n"
819 " -L --longitude xx longitude xx degrees. Negative values are West\n"
820 "\n"
821 "All options can be made default in the config file, or menu-ized for\n"
822 "easy selection."
823 msgstr ""
824
825 #: examples/hcal/hcal.c:1868
826 msgid ""
827 "ALERT: options --parasha, --shabbat, --footnote are not supported in 'three-"
828 "month' mode"
829 msgstr ""
830
831 #: examples/hcal/hcal.c:1940 examples/hcal/local_functions.c:92
832 #: examples/hcal/local_functions.c:99 examples/hcal/local_functions.c:112
833 #: examples/hcal/local_functions.c:486 examples/hcal/local_functions.c:491
834 msgid "error"
835 msgstr ""
836
837 #: examples/hcal/hcal.c:1940
838 msgid "too many parameters received. expected [[mm] [yyyy]"
839 msgstr ""
840
841 #: examples/hcal/hcal.c:1949 examples/hcal/hdate.c:1929
842 #: examples/hcal/hdate.c:2003 examples/hcal/hdate.c:2100
843 msgid "year"
844 msgstr ""
845
846 #: examples/hcal/hcal.c:1957 examples/hcal/hdate.c:2013
847 #: examples/hcal/hdate.c:2016 examples/hcal/hdate.c:2070
848 #: examples/hcal/hdate.c:2110 examples/hcal/hdate.c:2113
849 #: examples/hcal/hdate.c:2132
850 msgid "month"
851 msgstr ""
852
853 #: examples/hcal/hdate.c:42
854 msgid "sunrise"
855 msgstr ""
856
857 #: examples/hcal/hdate.c:43
858 msgid "sunset"
859 msgstr ""
860
861 #: examples/hcal/hdate.c:44
862 msgid "first_light"
863 msgstr ""
864
865 #: examples/hcal/hdate.c:45
866 msgid "talit"
867 msgstr ""
868
869 #: examples/hcal/hdate.c:46
870 msgid "midday"
871 msgstr ""
872
873 #: examples/hcal/hdate.c:47
874 msgid "first_stars"
875 msgstr ""
876
877 #: examples/hcal/hdate.c:48
878 msgid "three_stars"
879 msgstr ""
880
881 #: examples/hcal/hdate.c:49 examples/hcal/hdate.c:635
882 msgid "sun_hour"
883 msgstr ""
884
885 #: examples/hcal/hdate.c:50
886 msgid "candle-lighting"
887 msgstr ""
888
889 #: examples/hcal/hdate.c:51
890 msgid "havdalah"
891 msgstr ""
892
893 #: examples/hcal/hdate.c:81
894 msgid ""
895 "# configuration file for hdate - Hebrew date information program\n"
896 "# part of package libhdate\n"
897 "#\n"
898 "# Should you mangle this file and wish to restore its default content,\n"
899 "# rename or delete this file and run hdate; hdate will automatically\n"
900 "# regenerate the default content.\n"
901 "#\n"
902 "# Your system administrator can set system-wide defaults for hcal by\n"
903 "# modifying file <not yet implemented>.\n"
904 "# You may override all defaults by changing the contents of this file.\n"
905 "#\n"
906 "# Version information\n"
907 "# This may be used by updates to hcal to determine how to parse the file\n"
908 "# and whether additional information and options should be appended to\n"
909 "# the end of this file.\n"
910 "VERSION=2.00\n"
911 "#\n"
912 "# Location awareness\n"
913 "# hdate wants to accurately highlight the current Hebrew day, including\n"
914 "# during the hours between sunset and secular midnight. If you don't\n"
915 "# provide it with latitude, longitude, and time zone information, hdate\n"
916 "# will try to guess the information, based upon your system timezone,\n"
917 "# and its (limited, and maybe biased) of the dominant Jewish community\n"
918 "# in that timezone. When hdate is forced to guess, it alerts the user\n"
919 "# with a message that includes the guessed location.\n"
920 "# hdate's guesses will also affect its default behaviour for ouput of\n"
921 "# Shabbat times, parshiot, and choice of Israel/diaspora hoidays.\n"
922 "#SUNSET_AWARE=TRUE\n"
923 "# LATITUDE and LONGITUDE may be in decimal format or in the form\n"
924 "# degrees[:minutes[:seconds]] with the characters :'\" as possible\n"
925 "# delimiters. Use negative values to indicate South and West, or\n"
926 "# use the abbreviated compass directions N, S, E, W.\n"
927 "#LATITUDE=\n"
928 "#LONGITUDE=\n"
929 "# TIMEZONE may may be in decimal format or in the form degrees[:minutes]\n"
930 "# with the characters :'\" as possible delimiters.\n"
931 "#TIMEZONE=\n"
932 "\n"
933 "# Output in hebrew characters\n"
934 "# hdate defaults to output all information in your default language, so\n"
935 "# if your default language is Hebrew, you're all set. Otherwise, you can\n"
936 "# set FORCE_HEBREW to true to output Hebrew information in Hebrew, while\n"
937 "# still outputting gregorian information in your default language. To\n"
938 "# output ALL information in Hebrew, run something like this:\n"
939 "# LC_TEMP=LC_ALL; LC_ALL=\"he_IL.UTF-8\"; hdate; LC_ALL=$LC_TEMP\n"
940 "# If setting FORCE_HEBREW to true results in 'garbage' or non-Hebrew\n"
941 "# output, you need to install a terminal font that includes the Hebrew\n"
942 "# character set (hint: unicode).\n"
943 "#FORCE_HEBREW=FALSE\n"
944 "\n"
945 "# The FORCE_HEBREW option outputs data that is 'correct' and 'logical'.\n"
946 "# Unfortunately, the world can not be depended upon to be either. Most\n"
947 "# Xwindow applications will display the data fine with FORCE_HEBREW; most\n"
948 "# xterm implementations will not. (in fact, the only xterm clone I know\n"
949 "# of that comes close is mlterm). If using FORCE_HEBREW results in\n"
950 "# Hebrew characters being displayed in reverse, set OUTPUT_BIDI to true.\n"
951 "# This will reverse the order of the Hebrew characters, so they will\n"
952 "# display 'visual'ly correct; however, such output will not be suitable\n"
953 "# for piping or pasting to many other applications. Setting OUTPUT_BIDI\n"
954 "# automatically forces hebrew.\n"
955 "#OUTPUT_BIDI=FALSE\n"
956 "\n"
957 "# The Hebrew language output of Hebrew information can also be 'styled'\n"
958 "# in the following ways:\n"
959 "# option YOM ~> yom shishi, aleph tishrei ...\n"
960 "# option LESHABBAT ~> yom sheni leshabbat miketz, kof kislev ...\n"
961 "# option LESEDER ~> yom sheni leseder miketz, kof kislev ...\n"
962 "#YOM=FALSE\n"
963 "#LESHABBAT=FALSE\n"
964 "#LESEDER=FALSE\n"
965 "\n"
966 "#SUN_RISE_SET=FALSE\n"
967 "#TIMES_OF_DAY=FALSE\n"
968 "#SHORT_FORMAT=FALSE\n"
969 "#SEFIRAT_HAOMER=FALSE\n"
970 "#DIASPORA=FALSE\n"
971 "\n"
972 "\n"
973 "# Shabbat related\n"
974 "# Setting SHABBAT_INFO true will output parshiot and Shabbat times.\n"
975 "# The command line options for these features are -r (--parasha), and\n"
976 "# -c. The CANDLE_LIGHTING field can accept a value of 18 - 90 (minutes\n"
977 "# before sunset). The HAVDALAH field can accept a value of 20 - 90\n"
978 "# (minutes after sunset).\n"
979 "#PARASHA_NAMES=FALSE\n"
980 "#ONLY_IF_PARASHA_IS_READ=FALSE\n"
981 "#SHABBAT_INFO=FALSE\n"
982 "\n"
983 "#CANDLE_LIGHTING=FALSE\n"
984 "#HAVDALAH=FALSE\n"
985 "\n"
986 "# Holiday related\n"
987 "#HOLIDAYS=FALSE\n"
988 "#ONLY_IF_HOLIDAY=FALSE\n"
989 "\n"
990 "# Tabular output\n"
991 "# This option has hdate output the information you request in a single\n"
992 "# comma-delimited line per day, suitable for piping or import to\n"
993 "# spreadsheet formatting applications, etc. To belabor the obvious,\n"
994 "# try running - ./hdate 12 2011 -Rt --table |column -s, -t \n"
995 "# The command line option for this feature is, um, --table\n"
996 "#TABULAR=FALSE\n"
997 "\n"
998 "# iCal format\n"
999 "# hdate can output its information in iCal-compatable format\n"
1000 "# ICAL=FALSE\n"
1001 "# Suppress alerts and warnings\n"
1002 "# hdate alerts the user via STDERR when it guesses the user's location.\n"
1003 "#QUIET_ALERTS=FALSE\n"
1004 "\n"
1005 "# Julian day number\n"
1006 "# The Julian day number is a .... See ... for more details.\n"
1007 "# setting the option JULIAN_DAY will have hdate output that number in\n"
1008 "# the format JDN-nnnnnnn at the beginning of its first line of output.\n"
1009 "#JULIAN_DAY=FALSE\n"
1010 "\n"
1011 "# User-defined menus\n"
1012 "# You may specify here command-line strings to optionally be parsed\n"
1013 "# by hcal at execution time. To do so, use the command line option -m\n"
1014 "# (--menu). hcal will process first the settings of this config file,\n"
1015 "# then the other settings of your command line, and then will prompt\n"
1016 "# you for which menu item you would like to select. hcal will process\n"
1017 "# your menu selection as if it were a new command line, further modifying\n"
1018 "# all the prior settings.\n"
1019 "# Only the first ten \"MENU=\" entries will be read. Each line will be\n"
1020 "# truncated at one hundred characters\n"
1021 "#MENU= -bd -l -23.55 -L -46.61 -z -3 # parents in Sao Paolo\n"
1022 "#MENU= -b -l 32 -L 34 -z 2 # son in bnei brak\n"
1023 "#MENU= -bd -l 43.71 -L -79.43 -z -5 # me in Toronto\n"
1024 "#MENU= -bd -l 22.26 -L 114.15 -z 8 # supplier in Hong Kong\n"
1025 msgstr ""
1026
1027 #: examples/hcal/hdate.c:209
1028 msgid ""
1029 "hdate - display Hebrew date information\n"
1030 "version 1.6"
1031 msgstr ""
1032
1033 #: examples/hcal/hdate.c:219
1034 msgid ""
1035 "Usage: hdate [options] [coordinates timezone] [[[day] month] year]\n"
1036 " hdate [options] [coordinates timezone] [julian_day]\n"
1037 "\n"
1038 " coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx]\n"
1039 " -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]]\n"
1040 " timezone: -z nn[( .nn | :mm )]\n"
1041 "Try 'hdate --help' for more information"
1042 msgstr ""
1043
1044 #: examples/hcal/hdate.c:235
1045 msgid ""
1046 "hdate - display Hebrew date information\n"
1047 "OPTIONS:\n"
1048 " -b --bidi prints hebrew in reverse (visual)\n"
1049 " --visual\n"
1050 " -c print Shabbat start/end times.\n"
1051 " --candles modify default minhag of 20 minutes. (17<n<91)\n"
1052 " --havdalah modify default minhag of 3 stars. (19<n<91 minutes)\n"
1053 " -d --diaspora use diaspora reading and holidays.\n"
1054 " -h --holidays print holidays.\n"
1055 " -H print only it is a holiday.\n"
1056 " -i --ical use iCal formated output.\n"
1057 " -j --julian print Julian day number.\n"
1058 " -m --menu prompt user-defined menu from config file\n"
1059 " -o --omer print Sefirat Haomer.\n"
1060 " -q --quiet-alerts suppress warning messages\n"
1061 " -r --parasha print weekly reading on saturday.\n"
1062 " -R print only if there is a weekly reading on Shabbat.\n"
1063 " -s --sun print sunrise/sunset times.\n"
1064 " -S --short-format print using short format.\n"
1065 " -t print day times: first light, talit, sunrise,\n"
1066 " midday, sunset, first stars, three stars.\n"
1067 " -T --table tabular output, suitable for spreadsheets\n"
1068 "\n"
1069 " -z --timezone nn timezone, +/-UTC\n"
1070 " -l --latitude yy latitude yy degrees. Negative values are South\n"
1071 " -L --longitude xx longitude xx degrees. Negative values are West\n"
1072 "\n"
1073 " --hebrew forces Hebrew to print in Hebrew characters\n"
1074 " --yom force Hebrew prefix to Hebrew day of week\n"
1075 " --leshabbat insert parasha between day of week and day\n"
1076 " --leseder insert parasha between day of week and day\n"
1077 " --not-sunset-aware don't display next day if after sunset\n"
1078 "\n"
1079 "All options can be made default in the config file, or menu-ized for\n"
1080 "easy selection."
1081 msgstr ""
1082
1083 #: examples/hcal/hdate.c:274
1084 msgid ""
1085 "ALERT: The information displayed is for today's Hebrew date.\n"
1086 " Because it is now after sunset, that means the data is\n"
1087 " for the Gregorian day beginning at midnight."
1088 msgstr ""
1089
1090 #: examples/hcal/hdate.c:405
1091 msgid "eve of "
1092 msgstr ""
1093
1094 #: examples/hcal/hdate.c:669
1095 msgid "today is day"
1096 msgstr ""
1097
1098 #: examples/hcal/hdate.c:743
1099 msgid "Gregorian date"
1100 msgstr ""
1101
1102 #: examples/hcal/hdate.c:743
1103 msgid "Hebrew Date"
1104 msgstr ""
1105
1106 #: examples/hcal/hdate.c:748
1107 #, fuzzy
1108 msgid "holiday"
1109 msgstr "Fredag"
1110
1111 #: examples/hcal/hdate.c:749
1112 msgid "omer count"
1113 msgstr ""
1114
1115 #: examples/hcal/hdate.c:750
1116 msgid "parashat"
1117 msgstr ""
1118
1119 #: examples/hcal/hdate.c:1016
1120 msgid "Parashat"
1121 msgstr ""
1122
1123 #: examples/hcal/hdate.c:2120 examples/hcal/hdate.c:2139
1124 #, fuzzy
1125 msgid "day"
1126 msgstr "Maj"
1127
1128 #: examples/hcal/hdate.c:2168
1129 msgid "too many arguments; after options max is dd mm yyyy"
1130 msgstr ""
1131
1132 #: examples/hcal/local_functions.c:93
1133 msgid "parameter"
1134 msgstr ""
1135
1136 #: examples/hcal/local_functions.c:94
1137 msgid "is non-numeric or out of bounds"
1138 msgstr ""
1139
1140 #: examples/hcal/local_functions.c:100 examples/hcal/local_functions.c:113
1141 msgid "option"
1142 msgstr ""
1143
1144 #: examples/hcal/local_functions.c:100
1145 msgid "missing parameter"
1146 msgstr ""
1147
1148 #: examples/hcal/local_functions.c:106
1149 msgid "ALERT: time zone not entered, using system local time zone"
1150 msgstr ""
1151
1152 #: examples/hcal/local_functions.c:113
1153 msgid "is not a valid option"
1154 msgstr ""
1155
1156 #: examples/hcal/local_functions.c:130
1157 msgid "ALERT: guessing... will use co-ordinates for"
1158 msgstr ""
1159
1160 #: examples/hcal/local_functions.c:138
1161 msgid "Los Angeles"
1162 msgstr ""
1163
1164 #: examples/hcal/local_functions.c:139
1165 msgid "Mexico City"
1166 msgstr ""
1167
1168 #: examples/hcal/local_functions.c:140
1169 msgid "New York City"
1170 msgstr ""
1171
1172 #: examples/hcal/local_functions.c:143
1173 msgid "Buenos Aires"
1174 msgstr ""
1175
1176 #: examples/hcal/local_functions.c:144
1177 msgid "London"
1178 msgstr ""
1179
1180 #: examples/hcal/local_functions.c:145
1181 msgid "Paris"
1182 msgstr ""
1183
1184 #: examples/hcal/local_functions.c:146
1185 msgid "Tel-Aviv"
1186 msgstr ""
1187
1188 #: examples/hcal/local_functions.c:147
1189 msgid "Moscow"
1190 msgstr ""
1191
1192 #: examples/hcal/local_functions.c:148
1193 msgid "Tashkent"
1194 msgstr ""
1195
1196 #: examples/hcal/local_functions.c:149
1197 msgid "Beijing"
1198 msgstr ""
1199
1200 #: examples/hcal/local_functions.c:151
1201 msgid "Honolulu"
1202 msgstr ""
1203
1204 #: examples/hcal/local_functions.c:152
1205 msgid "Hmmm, ... hate to do this, really ..."
1206 msgstr ""
1207
1208 #: examples/hcal/local_functions.c:152
1209 msgid "using co-ordinates for the equator, at the center of time zone"
1210 msgstr ""
1211
1212 #: examples/hcal/local_functions.c:318 examples/hcal/local_functions.c:332
1213 #: examples/hcal/local_functions.c:333
1214 msgid "l (latitude)"
1215 msgstr ""
1216
1217 #: examples/hcal/local_functions.c:319
1218 msgid "L (Longitue)"
1219 msgstr ""
1220
1221 #: examples/hcal/local_functions.c:365 examples/hcal/local_functions.c:379
1222 #: examples/hcal/local_functions.c:380 examples/hcal/local_functions.c:411
1223 msgid "L (Longitude)"
1224 msgstr ""
1225
1226 #: examples/hcal/local_functions.c:442
1227 msgid "z (time zone)"
1228 msgstr ""
1229
1230 #: examples/hcal/local_functions.c:462
1231 msgid "z (timezone)"
1232 msgstr ""
1233
1234 #: examples/hcal/local_functions.c:486
1235 msgid "valid longitude parameter missing for given latitude"
1236 msgstr ""
1237
1238 #: examples/hcal/local_functions.c:491
1239 msgid "valid latitude parameter missing for given longitude"
1240 msgstr ""
1241
1242 #: examples/hcal/local_functions.c:529
1243 msgid "time zone value of"
1244 msgstr ""
1245
1246 #: examples/hcal/local_functions.c:530
1247 msgid "is incompatible with a longitude of"
1248 msgstr ""
1249
1250 #: examples/hcal/local_functions.c:530
1251 msgid "degrees"
1252 msgstr ""
1253
1254 #: examples/hcal/local_functions.c:638
1255 msgid ""
1256 "This seems to be to be your first time using this version.\n"
1257 "Please read the new documentation in the man page and config\n"
1258 "file. Attempting to create a config file ..."
1259 msgstr ""
1260
1261 #: examples/hcal/local_functions.c:677
1262 msgid "failure attempting to create config file"
1263 msgstr ""
1264
1265 #: examples/hcal/local_functions.c:681
1266 msgid "config file created"
1267 msgstr ""
1268
1269 #: examples/hcal/local_functions.c:682
1270 msgid "failure closing"
1271 msgstr ""
1272
1273 #: examples/hcal/local_functions.c:702
1274 msgid "memory allocation failure"
1275 msgstr ""
1276
1277 #: examples/hcal/local_functions.c:916
1278 msgid "your custom menu options (from your config file)"
1279 msgstr ""
1280
1281 #: examples/hcal/local_functions.c:922
1282 msgid "ALERT: -m (--menu) option specified, but no menu items in config file"
1283 msgstr ""
1284
1285 #: examples/hcal/local_functions.c:925
1286 msgid "enter your selection, or <return> to continue"
1287 msgstr ""
1288
1289 #: examples/hcal/local_functions.c:929
1290 msgid "menu selection received was out of bounds"
1291 msgstr ""
1292
1293 #~ msgid "Tamuz"
1294 #~ msgstr "Tamuz"
0 libhdate_la_CFLAGS =\
1 -Wall\
2 -g
3
4 lib_LTLIBRARIES = libhdate.la
5
6 libhdate_la_SOURCES = \
7 deprecated.c\
8 hdate_strings.c\
9 hdate_julian.c\
10 hdate_holyday.c\
11 hdate_parasha.c\
12 hdate_sun_time.c\
13 hdate.h\
14 support.h
15
16 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
17
18 libhdate_la_LIBADD =
19
20 include_HEADERS = hdate.h hdatepp.h
21
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkglibexecdir = $(libexecdir)/@PACKAGE@
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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 = src
38 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
39 $(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/libtool.m4 \
45 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
46 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
47 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
48 $(top_srcdir)/m4/progtest.m4 $(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 CONFIG_CLEAN_VPATH_FILES =
54 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55 am__vpath_adj = case $$p in \
56 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57 *) f=$$p;; \
58 esac;
59 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
60 am__install_max = 40
61 am__nobase_strip_setup = \
62 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
63 am__nobase_strip = \
64 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
65 am__nobase_list = $(am__nobase_strip_setup); \
66 for p in $$list; do echo "$$p $$p"; done | \
67 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
68 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
69 if (++n[$$2] == $(am__install_max)) \
70 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
71 END { for (dir in files) print dir, files[dir] }'
72 am__base_list = \
73 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
74 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
75 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
76 LTLIBRARIES = $(lib_LTLIBRARIES)
77 libhdate_la_DEPENDENCIES =
78 am_libhdate_la_OBJECTS = libhdate_la-deprecated.lo \
79 libhdate_la-hdate_strings.lo libhdate_la-hdate_julian.lo \
80 libhdate_la-hdate_holyday.lo libhdate_la-hdate_parasha.lo \
81 libhdate_la-hdate_sun_time.lo
82 libhdate_la_OBJECTS = $(am_libhdate_la_OBJECTS)
83 libhdate_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
84 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libhdate_la_CFLAGS) \
85 $(CFLAGS) $(libhdate_la_LDFLAGS) $(LDFLAGS) -o $@
86 DEFAULT_INCLUDES = -I.@am__isrc@
87 depcomp = $(SHELL) $(top_srcdir)/depcomp
88 am__depfiles_maybe = depfiles
89 am__mv = mv -f
90 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
91 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
92 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
93 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
94 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
95 CCLD = $(CC)
96 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
97 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
98 $(LDFLAGS) -o $@
99 SOURCES = $(libhdate_la_SOURCES)
100 DIST_SOURCES = $(libhdate_la_SOURCES)
101 HEADERS = $(include_HEADERS)
102 ETAGS = etags
103 CTAGS = ctags
104 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
105 ACLOCAL = @ACLOCAL@
106 AMTAR = @AMTAR@
107 AR = @AR@
108 AUTOCONF = @AUTOCONF@
109 AUTOHEADER = @AUTOHEADER@
110 AUTOMAKE = @AUTOMAKE@
111 AWK = @AWK@
112 CC = @CC@
113 CCDEPMODE = @CCDEPMODE@
114 CFLAGS = @CFLAGS@
115 CPP = @CPP@
116 CPPFLAGS = @CPPFLAGS@
117 CYGPATH_W = @CYGPATH_W@
118 DATADIRNAME = @DATADIRNAME@
119 DEFS = @DEFS@
120 DEPDIR = @DEPDIR@
121 DLLTOOL = @DLLTOOL@
122 DSYMUTIL = @DSYMUTIL@
123 DUMPBIN = @DUMPBIN@
124 ECHO_C = @ECHO_C@
125 ECHO_N = @ECHO_N@
126 ECHO_T = @ECHO_T@
127 EGREP = @EGREP@
128 EXEEXT = @EXEEXT@
129 FGREP = @FGREP@
130 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
131 GMSGFMT = @GMSGFMT@
132 GMSGFMT_015 = @GMSGFMT_015@
133 GP_MODULES_PATH = @GP_MODULES_PATH@
134 GREP = @GREP@
135 INSTALL = @INSTALL@
136 INSTALL_DATA = @INSTALL_DATA@
137 INSTALL_PROGRAM = @INSTALL_PROGRAM@
138 INSTALL_SCRIPT = @INSTALL_SCRIPT@
139 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
140 INTLLIBS = @INTLLIBS@
141 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
142 LD = @LD@
143 LDFLAGS = @LDFLAGS@
144 LIBICONV = @LIBICONV@
145 LIBINTL = @LIBINTL@
146 LIBOBJS = @LIBOBJS@
147 LIBS = @LIBS@
148 LIBTOOL = @LIBTOOL@
149 LIPO = @LIPO@
150 LN_S = @LN_S@
151 LTLIBICONV = @LTLIBICONV@
152 LTLIBINTL = @LTLIBINTL@
153 LTLIBOBJS = @LTLIBOBJS@
154 MAINT = @MAINT@
155 MAKEINFO = @MAKEINFO@
156 MANIFEST_TOOL = @MANIFEST_TOOL@
157 MKDIR_P = @MKDIR_P@
158 MSGFMT = @MSGFMT@
159 MSGFMT_015 = @MSGFMT_015@
160 MSGMERGE = @MSGMERGE@
161 NM = @NM@
162 NMEDIT = @NMEDIT@
163 OBJDUMP = @OBJDUMP@
164 OBJEXT = @OBJEXT@
165 OTOOL = @OTOOL@
166 OTOOL64 = @OTOOL64@
167 PACKAGE = @PACKAGE@
168 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
169 PACKAGE_NAME = @PACKAGE_NAME@
170 PACKAGE_STRING = @PACKAGE_STRING@
171 PACKAGE_TARNAME = @PACKAGE_TARNAME@
172 PACKAGE_URL = @PACKAGE_URL@
173 PACKAGE_VERSION = @PACKAGE_VERSION@
174 PATH_SEPARATOR = @PATH_SEPARATOR@
175 PA_MODULES_PATH = @PA_MODULES_PATH@
176 PA_VERSION = @PA_VERSION@
177 PE_CFLAGS = @PE_CFLAGS@
178 PE_MODULES_PATH = @PE_MODULES_PATH@
179 PH_CONFIG_PATH = @PH_CONFIG_PATH@
180 PH_INCLUDE_PATH = @PH_INCLUDE_PATH@
181 PH_MODULES_PATH = @PH_MODULES_PATH@
182 PKG_CONFIG = @PKG_CONFIG@
183 POSUB = @POSUB@
184 PY_CFLAGS = @PY_CFLAGS@
185 PY_MODULES_PATH = @PY_MODULES_PATH@
186 PY_VERSION = @PY_VERSION@
187 RANLIB = @RANLIB@
188 RU_CFLAGS = @RU_CFLAGS@
189 RU_MODULES_PATH = @RU_MODULES_PATH@
190 RU_VERSION = @RU_VERSION@
191 SED = @SED@
192 SET_MAKE = @SET_MAKE@
193 SHELL = @SHELL@
194 STRIP = @STRIP@
195 USE_NLS = @USE_NLS@
196 VERSION = @VERSION@
197 VERSION_INFO = @VERSION_INFO@
198 XGETTEXT = @XGETTEXT@
199 XGETTEXT_015 = @XGETTEXT_015@
200 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
201 abs_builddir = @abs_builddir@
202 abs_srcdir = @abs_srcdir@
203 abs_top_builddir = @abs_top_builddir@
204 abs_top_srcdir = @abs_top_srcdir@
205 ac_ct_AR = @ac_ct_AR@
206 ac_ct_CC = @ac_ct_CC@
207 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
208 am__include = @am__include@
209 am__leading_dot = @am__leading_dot@
210 am__quote = @am__quote@
211 am__tar = @am__tar@
212 am__untar = @am__untar@
213 bindir = @bindir@
214 build = @build@
215 build_alias = @build_alias@
216 build_cpu = @build_cpu@
217 build_os = @build_os@
218 build_vendor = @build_vendor@
219 builddir = @builddir@
220 datadir = @datadir@
221 datarootdir = @datarootdir@
222 docdir = @docdir@
223 dvidir = @dvidir@
224 exec_prefix = @exec_prefix@
225 have_fpc = @have_fpc@
226 have_gpc = @have_gpc@
227 have_perl = @have_perl@
228 have_php = @have_php@
229 have_php_config = @have_php_config@
230 have_python = @have_python@
231 have_ruby = @have_ruby@
232 have_swig = @have_swig@
233 host = @host@
234 host_alias = @host_alias@
235 host_cpu = @host_cpu@
236 host_os = @host_os@
237 host_vendor = @host_vendor@
238 htmldir = @htmldir@
239 includedir = @includedir@
240 infodir = @infodir@
241 install_sh = @install_sh@
242 libdir = @libdir@
243 libexecdir = @libexecdir@
244 localedir = @localedir@
245 localstatedir = @localstatedir@
246 mandir = @mandir@
247 mkdir_p = @mkdir_p@
248 oldincludedir = @oldincludedir@
249 pdfdir = @pdfdir@
250 prefix = @prefix@
251 program_transform_name = @program_transform_name@
252 psdir = @psdir@
253 sbindir = @sbindir@
254 sharedstatedir = @sharedstatedir@
255 srcdir = @srcdir@
256 sysconfdir = @sysconfdir@
257 target_alias = @target_alias@
258 top_build_prefix = @top_build_prefix@
259 top_builddir = @top_builddir@
260 top_srcdir = @top_srcdir@
261 libhdate_la_CFLAGS = \
262 -Wall\
263 -g
264
265 lib_LTLIBRARIES = libhdate.la
266 libhdate_la_SOURCES = \
267 deprecated.c\
268 hdate_strings.c\
269 hdate_julian.c\
270 hdate_holyday.c\
271 hdate_parasha.c\
272 hdate_sun_time.c\
273 hdate.h\
274 support.h
275
276 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
277 libhdate_la_LIBADD =
278 include_HEADERS = hdate.h hdatepp.h
279 all: all-am
280
281 .SUFFIXES:
282 .SUFFIXES: .c .lo .o .obj
283 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
284 @for dep in $?; do \
285 case '$(am__configure_deps)' in \
286 *$$dep*) \
287 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
288 && { if test -f $@; then exit 0; else break; fi; }; \
289 exit 1;; \
290 esac; \
291 done; \
292 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
293 $(am__cd) $(top_srcdir) && \
294 $(AUTOMAKE) --gnu src/Makefile
295 .PRECIOUS: Makefile
296 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
297 @case '$?' in \
298 *config.status*) \
299 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
300 *) \
301 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
302 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
303 esac;
304
305 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
306 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
307
308 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
309 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
310 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
312 $(am__aclocal_m4_deps):
313 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
314 @$(NORMAL_INSTALL)
315 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
316 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
317 list2=; for p in $$list; do \
318 if test -f $$p; then \
319 list2="$$list2 $$p"; \
320 else :; fi; \
321 done; \
322 test -z "$$list2" || { \
323 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
324 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
325 }
326
327 uninstall-libLTLIBRARIES:
328 @$(NORMAL_UNINSTALL)
329 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
330 for p in $$list; do \
331 $(am__strip_dir) \
332 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
333 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
334 done
335
336 clean-libLTLIBRARIES:
337 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
338 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
339 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
340 test "$$dir" != "$$p" || dir=.; \
341 echo "rm -f \"$${dir}/so_locations\""; \
342 rm -f "$${dir}/so_locations"; \
343 done
344 libhdate.la: $(libhdate_la_OBJECTS) $(libhdate_la_DEPENDENCIES)
345 $(libhdate_la_LINK) -rpath $(libdir) $(libhdate_la_OBJECTS) $(libhdate_la_LIBADD) $(LIBS)
346
347 mostlyclean-compile:
348 -rm -f *.$(OBJEXT)
349
350 distclean-compile:
351 -rm -f *.tab.c
352
353 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-deprecated.Plo@am__quote@
354 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_holyday.Plo@am__quote@
355 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_julian.Plo@am__quote@
356 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_parasha.Plo@am__quote@
357 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_strings.Plo@am__quote@
358 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_sun_time.Plo@am__quote@
359
360 .c.o:
361 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
362 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
363 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
364 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
365 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
366
367 .c.obj:
368 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
369 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
370 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
371 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
372 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
373
374 .c.lo:
375 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
376 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
377 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
378 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
380
381 libhdate_la-deprecated.lo: deprecated.c
382 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-deprecated.lo -MD -MP -MF $(DEPDIR)/libhdate_la-deprecated.Tpo -c -o libhdate_la-deprecated.lo `test -f 'deprecated.c' || echo '$(srcdir)/'`deprecated.c
383 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libhdate_la-deprecated.Tpo $(DEPDIR)/libhdate_la-deprecated.Plo
384 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='deprecated.c' object='libhdate_la-deprecated.lo' libtool=yes @AMDEPBACKSLASH@
385 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-deprecated.lo `test -f 'deprecated.c' || echo '$(srcdir)/'`deprecated.c
387
388 libhdate_la-hdate_strings.lo: hdate_strings.c
389 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
390 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libhdate_la-hdate_strings.Tpo $(DEPDIR)/libhdate_la-hdate_strings.Plo
391 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_strings.c' object='libhdate_la-hdate_strings.lo' libtool=yes @AMDEPBACKSLASH@
392 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
394
395 libhdate_la-hdate_julian.lo: hdate_julian.c
396 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
397 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libhdate_la-hdate_julian.Tpo $(DEPDIR)/libhdate_la-hdate_julian.Plo
398 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_julian.c' object='libhdate_la-hdate_julian.lo' libtool=yes @AMDEPBACKSLASH@
399 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
401
402 libhdate_la-hdate_holyday.lo: hdate_holyday.c
403 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
404 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libhdate_la-hdate_holyday.Tpo $(DEPDIR)/libhdate_la-hdate_holyday.Plo
405 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_holyday.c' object='libhdate_la-hdate_holyday.lo' libtool=yes @AMDEPBACKSLASH@
406 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
408
409 libhdate_la-hdate_parasha.lo: hdate_parasha.c
410 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
411 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libhdate_la-hdate_parasha.Tpo $(DEPDIR)/libhdate_la-hdate_parasha.Plo
412 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_parasha.c' object='libhdate_la-hdate_parasha.lo' libtool=yes @AMDEPBACKSLASH@
413 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
414 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
415
416 libhdate_la-hdate_sun_time.lo: hdate_sun_time.c
417 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
418 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libhdate_la-hdate_sun_time.Tpo $(DEPDIR)/libhdate_la-hdate_sun_time.Plo
419 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_sun_time.c' object='libhdate_la-hdate_sun_time.lo' libtool=yes @AMDEPBACKSLASH@
420 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
421 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --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
422
423 mostlyclean-libtool:
424 -rm -f *.lo
425
426 clean-libtool:
427 -rm -rf .libs _libs
428 install-includeHEADERS: $(include_HEADERS)
429 @$(NORMAL_INSTALL)
430 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
431 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
432 for p in $$list; do \
433 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
434 echo "$$d$$p"; \
435 done | $(am__base_list) | \
436 while read files; do \
437 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
438 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
439 done
440
441 uninstall-includeHEADERS:
442 @$(NORMAL_UNINSTALL)
443 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
444 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
445 test -n "$$files" || exit 0; \
446 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
447 cd "$(DESTDIR)$(includedir)" && rm -f $$files
448
449 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
450 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
451 unique=`for i in $$list; do \
452 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
453 done | \
454 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
455 END { if (nonempty) { for (i in files) print i; }; }'`; \
456 mkid -fID $$unique
457 tags: TAGS
458
459 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
460 $(TAGS_FILES) $(LISP)
461 set x; \
462 here=`pwd`; \
463 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
464 unique=`for i in $$list; do \
465 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
466 done | \
467 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
468 END { if (nonempty) { for (i in files) print i; }; }'`; \
469 shift; \
470 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
471 test -n "$$unique" || unique=$$empty_fix; \
472 if test $$# -gt 0; then \
473 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
474 "$$@" $$unique; \
475 else \
476 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
477 $$unique; \
478 fi; \
479 fi
480 ctags: CTAGS
481 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
482 $(TAGS_FILES) $(LISP)
483 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
484 unique=`for i in $$list; do \
485 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
486 done | \
487 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
488 END { if (nonempty) { for (i in files) print i; }; }'`; \
489 test -z "$(CTAGS_ARGS)$$unique" \
490 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
491 $$unique
492
493 GTAGS:
494 here=`$(am__cd) $(top_builddir) && pwd` \
495 && $(am__cd) $(top_srcdir) \
496 && gtags -i $(GTAGS_ARGS) "$$here"
497
498 distclean-tags:
499 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
500
501 distdir: $(DISTFILES)
502 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
503 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
504 list='$(DISTFILES)'; \
505 dist_files=`for file in $$list; do echo $$file; done | \
506 sed -e "s|^$$srcdirstrip/||;t" \
507 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
508 case $$dist_files in \
509 */*) $(MKDIR_P) `echo "$$dist_files" | \
510 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
511 sort -u` ;; \
512 esac; \
513 for file in $$dist_files; do \
514 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
515 if test -d $$d/$$file; then \
516 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
517 if test -d "$(distdir)/$$file"; then \
518 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
519 fi; \
520 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
521 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
522 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
523 fi; \
524 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
525 else \
526 test -f "$(distdir)/$$file" \
527 || cp -p $$d/$$file "$(distdir)/$$file" \
528 || exit 1; \
529 fi; \
530 done
531 check-am: all-am
532 check: check-am
533 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
534 installdirs:
535 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
536 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
537 done
538 install: install-am
539 install-exec: install-exec-am
540 install-data: install-data-am
541 uninstall: uninstall-am
542
543 install-am: all-am
544 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
545
546 installcheck: installcheck-am
547 install-strip:
548 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
549 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
550 `test -z '$(STRIP)' || \
551 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
552 mostlyclean-generic:
553
554 clean-generic:
555
556 distclean-generic:
557 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
558 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
559
560 maintainer-clean-generic:
561 @echo "This command is intended for maintainers to use"
562 @echo "it deletes files that may require special tools to rebuild."
563 clean: clean-am
564
565 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
566 mostlyclean-am
567
568 distclean: distclean-am
569 -rm -rf ./$(DEPDIR)
570 -rm -f Makefile
571 distclean-am: clean-am distclean-compile distclean-generic \
572 distclean-tags
573
574 dvi: dvi-am
575
576 dvi-am:
577
578 html: html-am
579
580 html-am:
581
582 info: info-am
583
584 info-am:
585
586 install-data-am: install-includeHEADERS
587
588 install-dvi: install-dvi-am
589
590 install-dvi-am:
591
592 install-exec-am: install-libLTLIBRARIES
593
594 install-html: install-html-am
595
596 install-html-am:
597
598 install-info: install-info-am
599
600 install-info-am:
601
602 install-man:
603
604 install-pdf: install-pdf-am
605
606 install-pdf-am:
607
608 install-ps: install-ps-am
609
610 install-ps-am:
611
612 installcheck-am:
613
614 maintainer-clean: maintainer-clean-am
615 -rm -rf ./$(DEPDIR)
616 -rm -f Makefile
617 maintainer-clean-am: distclean-am maintainer-clean-generic
618
619 mostlyclean: mostlyclean-am
620
621 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
622 mostlyclean-libtool
623
624 pdf: pdf-am
625
626 pdf-am:
627
628 ps: ps-am
629
630 ps-am:
631
632 uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
633
634 .MAKE: install-am install-strip
635
636 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
637 clean-libLTLIBRARIES clean-libtool ctags distclean \
638 distclean-compile distclean-generic distclean-libtool \
639 distclean-tags distdir dvi dvi-am html html-am info info-am \
640 install install-am install-data install-data-am install-dvi \
641 install-dvi-am install-exec install-exec-am install-html \
642 install-html-am install-includeHEADERS install-info \
643 install-info-am install-libLTLIBRARIES install-man install-pdf \
644 install-pdf-am install-ps install-ps-am install-strip \
645 installcheck installcheck-am installdirs maintainer-clean \
646 maintainer-clean-generic mostlyclean mostlyclean-compile \
647 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
648 tags uninstall uninstall-am uninstall-includeHEADERS \
649 uninstall-libLTLIBRARIES
650
651
652 # Tell versions [3.59,3.63) of GNU make to not export all variables.
653 # Otherwise a system limit (for SysV at least) may be exceeded.
654 .NOEXPORT:
0 /* libhdate - Hebrew calendar library: http://libhdate.sourceforge.net
1 *
2 * Copyright (C) 2011-2012 Boruch Baum <boruch-baum@users.sourceforge.net>
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 #define _GNU_SOURCE
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <string.h>
22
23 #ifdef ENABLE_NLS
24 #include <locale.h>
25 #endif
26
27 #include "hdate.h"
28 #include "support.h"
29
30 /**
31 @brief convert an integer to hebrew string UTF-8 (logical)
32
33 @param n The int to convert ( 0 < n < 11000)
34
35 @warning DEPRECATION: This function is now just a wrapper for
36 hdate_string, and is subject to deprecation.
37 Callers to this function must free() after using the memory
38 pointed to by the return value.
39 [deprecation date 2011-12-28]
40 The original function outputted to a local static string,
41 and suggested that the caller copied it away.
42 */
43 char *
44 hdate_get_int_string (int const n)
45 {
46 char *dest;
47 int hebrew_form = HDATE_STRING_HEBREW;
48
49 if (!hdate_is_hebrew_locale()) hebrew_form = HDATE_STRING_LOCAL;
50 return hdate_string( HDATE_STRING_INT, n, HDATE_STRING_SHORT, hebrew_form);
51 }
52
53
54 /**
55 @brief Return a static string, with name of week day.
56
57 @param day_of_week The number of the day 1..7 (1 - sun).
58 @param short_form A short flag (true - sun; false - sunday).
59 @warning DEPRECATION: This function is now just a wrapper for
60 hdate_string, and is subject to deprecation.
61 [deprecation date 2011-12-28]
62 */
63 char *
64 hdate_get_day_string (int const day_of_week, int const short_form)
65 {
66 return hdate_string( HDATE_STRING_DOW, day_of_week, short_form, HDATE_STRING_LOCAL);
67 }
68
69 /**
70 @brief Return a static string, with name of month.
71
72 @param month The number of the month 1..12 (1 - jan).
73 @param short_form A short flag.
74 @warning DEPRECATION: This function is now just a wrapper for
75 hdate_string, and is subject to deprecation.
76 [deprecation date 2011-12-28]
77 */
78 char *
79 hdate_get_month_string (int const month, int const short_form)
80 {
81 return hdate_string( HDATE_STRING_GMONTH, month, short_form, HDATE_STRING_LOCAL);
82 }
83
84 /**
85 @brief Return a static string, with name of hebrew month.
86
87 @param month The number of the month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
88 @param short_form A short flag.
89 @warning DEPRECATION: This function is now just a wrapper for
90 hdate_string, and is subject to deprecation.
91 [deprecation date 2011-12-28]
92 */
93 char *
94 hdate_get_hebrew_month_string (int const month, int const short_form)
95 {
96 return hdate_string( HDATE_STRING_HMONTH, month, short_form, HDATE_STRING_LOCAL);
97 }
98
99 /**
100 @brief Name of hebrew holiday.
101
102 @param holiday The holiday number.
103 @param short_text A short flag. 0=true, !0=false
104 @warning DEPRECATION: This function is now just a wrapper for
105 hdate_string, and is subject to deprecation.
106 [deprecation date 2011-12-28]
107 */
108 char *
109 hdate_get_holyday_string (int const holiday, int const short_text)
110 {
111 return hdate_string( HDATE_STRING_HOLIDAY, holiday, short_text, HDATE_STRING_LOCAL);
112 }
113
114 /**
115 @brief Name of Parasha
116
117 @param parasha The Number of Parasha 1-Bereshit
118 (55 through 61 are joined strings e.g. Vayakhel Pekudei)
119 @param short_form A short flag. 0=true, !0 = false
120 @warning DEPRECATION: This function is now just a wrapper for
121 hdate_string, and is subject to deprecation.
122 [deprecation date 2011-12-28]
123 */
124 char *
125 hdate_get_parasha_string (int const parasha, int const short_form)
126 {
127 return hdate_string( HDATE_STRING_PARASHA, parasha, short_form, HDATE_STRING_LOCAL);
128 }
129
130 /**
131 @brief Return a string, with the day in the omer
132
133 @param omer day The day in the omer.
134 @return a pointer to a string with the day in the omer. The caller
135 must free() the pointer after use.
136 @warning DEPRECATION: This function is now just a wrapper for
137 hdate_string, and is subject to deprecation.
138 [deprecation date 2011-12-28]
139 @attention The prior version of this function returned a pointer to a
140 static string buffer. The current version returns a pointer to
141 a malloc()ed buffer and needs to be free()d after use.
142 */
143 char *
144 hdate_get_omer_string (int const omer_day)
145 {
146 return hdate_string( HDATE_STRING_OMER,
147 omer_day,
148 HDATE_STRING_LONG,
149 HDATE_STRING_LOCAL);
150
151 }
0 /* libhdate - Hebrew calendar library: http://libhdate.sourceforge.net
1 *
2 * Copyright (C) 2011-2012 Boruch Baum <boruch-baum@users.sourceforge.net>
3 * 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
4 * 1984-2003 Amos Shapir
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 3 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 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, see <http://www.gnu.org/licenses/>.
18 */
19
20 /** @file hdate.h
21 @brief libhdate C language header.
22
23 libhdate - Hebrew calendar library, the C language header file.
24 */
25
26 #ifndef __HDATE_H__
27 #define __HDATE_H__
28
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33
34 /** @def HDATE_DIASPORA_FLAG
35 @brief use diaspora dates and holydays flag
36 */
37 #define HDATE_DIASPORA_FLAG -1
38
39 /** @def HDATE_ISRAEL_FLAG
40 @brief use israel dates and holydays flag
41 */
42 #define HDATE_ISRAEL_FLAG 0
43
44 /** @def HDATE_SHORT_FLAG
45 @brief use short strings flag
46 */
47 #define HDATE_SHORT_FLAG -1
48
49 /** @def HDATE_LONG_FLAG
50 @brief use long strings flag
51 */
52 #define HDATE_LONG_FLAG 0
53
54 /** @def HEBREW_NUMBER_BUFFER_SIZE
55 @brief for hdate_get_int_string_ and hdate_get_int_wstring
56 @note
57 How large should the buffer be? Hebrew year 10,999 would
58 be י'תתקצ"ט, eight characters, each two bytes, plus an
59 end-of-string delimiter, equals 17. This could effectively
60 yield a range extending to Hebrew year 11,899, י"א תתצ"ט,
61 due to the extra ק needed for the '900' century. However,
62 for readability, I would want a an extra space at that
63 point between the millenium and the century...
64 */
65 #define HEBREW_NUMBER_BUFFER_SIZE 17
66 #define HEBREW_WNUMBER_BUFFER_SIZE 9
67
68
69 /** @struct hdate_struct
70 @brief libhdate Hebrew date struct
71 */
72 typedef struct
73 {
74 /** The number of day in the hebrew month (1..31). */
75 int hd_day;
76 /** The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2). */
77 int hd_mon;
78 /** The number of the hebrew year. */
79 int hd_year;
80 /** The number of the day in the month. (1..31) */
81 int gd_day;
82 /** The number of the month 1..12 (1 - jan). */
83 int gd_mon;
84 /** The number of the year. */
85 int gd_year;
86 /** The day of the week 1..7 (1 - sunday). */
87 int hd_dw;
88 /** The length of the year in days. */
89 int hd_size_of_year;
90 /** The week day of Hebrew new year. */
91 int hd_new_year_dw;
92 /** The number type of year. */
93 int hd_year_type;
94 /** The Julian day number */
95 int hd_jd;
96 /** The number of days passed since 1 tishrey */
97 int hd_days;
98 /** The number of weeks passed since 1 tishrey */
99 int hd_weeks;
100 } hdate_struct;
101
102 /*************************************************************/
103 /*************************************************************/
104
105 /**
106 @brief compute date structure from the Gregorian date
107
108 @param h pointer this hdate struct.
109 @param d Day of month 1..31
110 @param m Month 1..12
111 if m or d is 0 return current date.
112 @param y Year in 4 digits e.g. 2001
113 @return pointer to this hdate struct
114 */
115 hdate_struct *
116 hdate_set_gdate (hdate_struct *h, int d, int m, int y);
117
118 /**
119 @brief compute date structure from the Hebrew date
120
121 @param h pointer this hdate struct.
122 @param d Day of month 1..31
123 @param m Month 1..14 ,(13 - Adar 1, 14 - Adar 2)
124 if m or d is 0 return current date.
125 @param y Year in 4 digits e.g. 5731
126 @return pointer to this hdate struct
127 */
128 hdate_struct *
129 hdate_set_hdate (hdate_struct *h, int d, int m, int y);
130
131 /**
132 @brief compute date structure from the Julian day
133
134 @param h pointer this hdate struct.
135 @param jd the julian day number.
136 @return pointer to this hdate struct
137 */
138 hdate_struct *
139 hdate_set_jd (hdate_struct *h, int jd);
140
141 /*************************************************************/
142 /*************************************************************/
143
144 /**
145 @brief Return a string, with the hebrew date.
146
147 @return NULL pointer upon failure or, upon success, a pointer to a
148 string containing the short ( e.g. "1 Tishrey" ) or long (e.g. "Tuesday
149 18 Tishrey 5763 Hol hamoed Sukot" ) formated date. You must free() the
150 pointer after use.
151
152 @param h The hdate_struct of the date to print.
153 @param diaspora if true give diaspora holydays
154 @param short_format A short flag (true - returns a short string, false returns a long string).
155
156 @warning This was originally written using a local static string,
157 calling for output to be copied away.
158
159 */
160 char *
161 hdate_get_format_date (hdate_struct const * h, int diaspora, int s);
162
163 /**
164 @brief get the number of hebrew parasha.
165
166 @param h pointer this hdate struct.
167 @param diaspora if true give diaspora readings
168 @return the number of parasha 1. Bereshit etc..
169 (55 through 61 are joined strings e.g. Vayakhel Pekudei)
170 */
171 int
172 hdate_get_parasha (hdate_struct const * h, int diaspora);
173
174 /**
175 @brief get the number of hebrew holiday.
176
177 @param h pointer this hdate struct.
178 @param diaspora if true give diaspora holidays
179 @return the number of holiday.
180 */
181 int
182 hdate_get_holyday (hdate_struct const * h, int diaspora);
183
184 /*************************************************************/
185 /*************************************************************/
186
187 /**
188 @brief convert an integer to hebrew string.
189
190 @param n The int to convert ( 0 < n < 11000)
191 @return a string of the hebrew number UTF-8 (logical)
192 @warning DEPRECATION: This function is now just a wrapper for
193 hdate_string, and is subject to deprecation.
194 Callers to this function must free() after using the memory
195 pointed to by the return value.
196 The original function outputted to a local static string,
197 and suggested that the caller copied it away.
198 [deprecation date 2011-12-28]
199 */
200 char *
201 hdate_get_int_string (int n);
202
203
204 /**
205 @brief Return a static string, with name of week day.
206
207 @param day_of_week The number of the day 1..7 (1 - sun).
208 @param short_form A short flag (true - sun; false - sunday).
209 @warning DEPRECATION: This function is now just a wrapper for
210 hdate_string, and is subject to deprecation.
211 [deprecation date 2011-12-28]
212 */
213 char *
214 hdate_get_day_string (int day, int s);
215
216 /**
217 @brief Return a static string, with name of month.
218
219 @param month The number of the month 1..12 (1 - jan).
220 @param short_form A short flag.
221 @warning DEPRECATION: This function is now just a wrapper for
222 hdate_string, and is subject to deprecation.
223 [deprecation date 2011-12-28]
224 */
225 char *
226 hdate_get_month_string (int month, int s);
227
228 /**
229 @brief Return a static string, with name of hebrew month.
230
231 @param month The number of the month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
232 @param short_form A short flag.
233 @warning DEPRECATION: This function is now just a wrapper for
234 hdate_string, and is subject to deprecation.
235 [deprecation date 2011-12-28]
236 */
237 char *
238 hdate_get_hebrew_month_string (int month, int s);
239
240 /**
241 @brief Name of hebrew holiday.
242
243 @param holiday The holiday number.
244 @param short_text A short flag. 0=true, !0=false
245 @warning DEPRECATION: This function is now just a wrapper for
246 hdate_string, and is subject to deprecation.
247 [deprecation date 2011-12-28]
248 */
249 char *
250 hdate_get_holyday_string (int holyday, int s);
251
252 /**
253 @brief Name of Parasha
254
255 @param parasha The Number of Parasha 1-Bereshit
256 (55 through 61 are joined strings e.g. Vayakhel Pekudei)
257 @param short_form A short flag. 0=true, !0 = false
258 @warning DEPRECATION: This function is now just a wrapper for
259 hdate_string, and is subject to deprecation.
260 [deprecation date 2011-12-28]
261 */
262 char *
263 hdate_get_parasha_string (int parasha, int s);
264
265 /**
266 @brief Return a static string, with the day in the omer
267
268 @param omer day The day in the omer.
269 @return a pointer to a string with the day in the omer. The caller
270 must free() the pointer after use.
271 @warning DEPRECATION: This function is now just a wrapper for
272 hdate_string, and is subject to deprecation.
273 @attention The prior version of this function returned a pointer to a
274 static string buffer. The current version returns a pointer to
275 a malloc()ed buffer and needs to be free()d after use.
276 [deprecation date 2011-12-28]
277 */
278 char *
279 hdate_get_omer_string (int omer_day);
280
281 /*************************************************************/
282 /*************************************************************/
283
284 /**
285 @brief Return the day in the omer of the given date
286
287 @param h The hdate_struct of the date to use.
288 @return The day in the omer, starting from 1 (or 0 if not in sfirat ha omer)
289 */
290 int
291 hdate_get_omer_day(hdate_struct const * h);
292
293 /**
294 @brief Return number of hebrew holyday type.
295
296 Holiday types:
297 0 - Regular day
298 1 - Yom tov (plus yom kippor)
299 2 - Erev yom kippur
300 3 - Hol hamoed
301 4 - Hanuka and purim
302 5 - Tzomot
303 6 - Independance day and Yom yerushalaim
304 7 - Lag baomer ,Tu beav, Tu beshvat
305 8 - Tzahal and Holocaust memorial days
306 9 - National days
307
308 @param holyday the holyday number
309 @return the number of holyday type.
310 */
311 int
312 hdate_get_holyday_type (int holyday);
313
314 /**
315 @brief size of hebrew year in days.
316
317 @param hebrew_year the hebrew year.
318 @return size of Hebrew year
319 */
320 int
321 hdate_get_size_of_hebrew_year (int hebrew_year);
322
323 /*************************************************************/
324 /*************************************************************/
325
326 /**
327 @brief Days since Tishrey 3744
328
329 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
330
331 @param hebrew_year The Hebrew year
332 @return Number of days since 3,1,3744
333 */
334 int
335 hdate_days_from_3744 (int hebrew_year);
336
337 /**
338 @brief Return Hebrew year type based on size and first week day of year.
339
340 @param size_of_year Length of year in days
341 @param new_year_dw First week day of year
342 @return the number for year type (1..14)
343 */
344 int
345 hdate_get_year_type (int size_of_year, int new_year_dw);
346
347 /**
348 @brief Compute Julian day from Gregorian date
349
350 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
351
352 @param day Day of month 1..31
353 @param month Month 1..12
354 @param year Year in 4 digits e.g. 2001
355 @return the julian day number
356 */
357 int
358 hdate_gdate_to_jd (int day, int month, int year);
359
360 /**
361 @brief Compute Julian day from Hebrew day, month and year
362
363 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
364
365 @param day Day of month 1..31
366 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
367 @param year Hebrew year in 4 digits e.g. 5753
368 @param jd_tishrey1 return the julian number of 1 Tishrey this year
369 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
370 @return the julian day number
371 */
372 int
373 hdate_hdate_to_jd (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year);
374
375 /**
376 @brief Converting from the Julian day to the Gregorian date
377
378 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
379
380 @param jd Julian day
381 @param day return Day of month 1..31
382 @param month return Month 1..12
383 @param year return Year in 4 digits e.g. 2001
384 */
385 void
386 hdate_jd_to_gdate (int jd, int *day, int *month, int *year);
387
388 /**
389 @brief Converting from the Julian day to the Hebrew day
390
391 @author Yaacov Zamir 2005
392
393 @param jd Julian day
394 @param day return Day of month 1..31
395 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
396 @param year return Year in 4 digits e.g. 2001
397 @param jd_tishrey1 return the julian number of 1 Tishrey this year
398 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
399 */
400 void
401 hdate_jd_to_hdate (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year);
402
403 /*************************************************************/
404 /*************************************************************/
405
406 /**
407 @brief days from 1 january
408
409 @param day this day of month
410 @param month this month
411 @param year this year
412 @return the days from 1 jan
413 */
414 int
415 hdate_get_day_of_year (int day, int month, int year);
416
417 /**
418 @brief utc sun times for altitude at a gregorian date
419
420 Returns the sunset and sunrise times in minutes from 00:00 (utc time)
421 if sun altitude in sunrise is deg degries.
422 This function only works for altitudes sun realy is.
423 If the sun never get to this altitude, the returned sunset and sunrise values
424 will be negative. This can happen in low altitude when latitude is
425 nearing the pols in winter times, the sun never goes very high in
426 the sky there.
427
428 @param day this day of month
429 @param month this month
430 @param year this year
431 @param longitude longitude to use in calculations
432 @param latitude latitude to use in calculations
433 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
434 @param sunrise return the utc sunrise in minutes
435 @param sunset return the utc sunset in minutes
436 */
437 void
438 hdate_get_utc_sun_time_deg (int day, int month, int year,
439 double latitude, double longitude, double deg, int *sunrise, int *sunset);
440
441 /**
442 @brief utc sunrise/set time for a gregorian date
443
444 @param day this day of month
445 @param month this month
446 @param year this year
447 @param longitude longitude to use in calculations
448 degrees, negative values are east
449 @param latitude latitude to use in calculations
450 degrees, negative values are south
451 @param sunrise return the utc sunrise in minutes after midnight (00:00)
452 @param sunset return the utc sunset in minutes after midnight (00:00)
453 */
454 void
455 hdate_get_utc_sun_time (int day, int month, int year,
456 double latitude, double longitude, int *sunrise, int *sunset);
457
458 /**
459 @brief utc sunrise/set time for a gregorian date
460
461 @param day this day of month
462 @param month this month
463 @param year this year
464 @param longitude longitude to use in calculations
465 @param latitude latitude to use in calculations
466 @param sun_hour return the length of shaa zaminit in minutes
467 @param first_light return the utc alut ha-shachar in minutes
468 @param talit return the utc tphilin and talit in minutes
469 @param sunrise return the utc sunrise in minutes
470 @param midday return the utc midday in minutes
471 @param sunset return the utc sunset in minutes
472 @param first_stars return the utc tzeit hacochavim in minutes
473 @param three_stars return the utc shlosha cochavim in minutes
474 */
475 void
476 hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude,
477 int *sun_hour, int *first_light, int *talit, int *sunrise,
478 int *midday, int *sunset, int *first_stars, int *three_stars);
479
480 /*************************************************************/
481 /*************************************************************/
482
483 /**
484 @brief get the Gregorian day of the month
485
486 @param h pointer this hdate struct.
487 @return the Gregorian day of the month, 1..31.
488 */
489 int
490 hdate_get_gday (hdate_struct const * h);
491
492 /**
493 @brief get the Gregorian month
494
495 @param h pointer this hdate struct.
496 @return the Gregorian month, jan = 1.
497 */
498 int
499 hdate_get_gmonth (hdate_struct const * h);
500
501 /**
502 @brief get the Gregorian year
503
504 @param h pointer this hdate struct.
505 @return the Gregorian year.
506 */
507 int
508 hdate_get_gyear (hdate_struct const * h);
509
510 /**
511 @brief get the Hebrew day of the month
512
513 @param h pointer this hdate struct.
514 @return the Hebrew day of the month, 1..30.
515 */
516 int
517 hdate_get_hday (hdate_struct const * h);
518
519 /**
520 @brief get the Hebrew month
521
522 @param h pointer this hdate struct.
523 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
524 */
525 int
526 hdate_get_hmonth (hdate_struct const * h);
527
528 /**
529 @brief get the Hebrew year
530
531 @param h pointer this hdate struct.
532 @return the Hebrew year.
533 */
534 int
535 hdate_get_hyear (hdate_struct const * h);
536
537 /**
538 @brief get the day of the week
539
540 @param h pointer this hdate struct.
541 @return the the day of the week.
542 */
543 int
544 hdate_get_day_of_the_week (hdate_struct const * h);
545
546 /**
547 @brief get the size of the hebrew year
548
549 @param h pointer this hdate struct.
550 @return the the size of the hebrew year.
551 */
552 int
553 hdate_get_size_of_year (hdate_struct const * h);
554
555 /**
556 @brief get the new year day of the week
557
558 @param h pointer this hdate struct.
559 @return the the new year day of the week.
560 */
561 int
562 hdate_get_new_year_day_of_the_week (hdate_struct const * h);
563
564 /**
565 @brief get the Julian day number
566
567 @param h pointer this hdate struct.
568 @return the Julian day number.
569 */
570 int
571 hdate_get_julian (hdate_struct const * h);
572
573 /**
574 @brief get the number of days passed since 1 tishrey
575
576 @param h pointer this hdate struct.
577 @return the number of days passed since 1 tishrey.
578 */
579 int
580 hdate_get_days (hdate_struct const * h);
581
582 /**
583 @brief get the number of weeks passed since 1 tishrey
584
585 @param h pointer this hdate struct.
586 @return the number of weeks passed since 1 tishrey.
587 */
588 int
589 hdate_get_weeks (hdate_struct const * h);
590
591 /*************************************************************/
592 /*************************************************************/
593
594 /**
595 @brief creat a new hdate struct object, must be deleted using delete_hdate.
596
597 @return a new hdate object
598 */
599 hdate_struct *
600 new_hdate ();
601
602 /**
603 @brief delete an hdate struct object.
604
605 @param h pointer this hdate struct.
606 */
607 hdate_struct *
608 delete_hdate (hdate_struct *h);
609
610 /*************************************************************/
611 /*************************************************************/
612
613 /**
614 @brief Return a static string, with the package name and version
615
616 @return a static string, with the package name and version
617 */
618 char *
619 hdate_get_version_string ();
620
621 /**
622 @brief name of translator
623
624 @return a static string with name of translator, or NULL if none.
625 */
626 char *
627 hdate_get_translator_string ();
628
629 /**
630 @brief helper function to find hebrew locale
631
632 @return 0 - latin locale, -1 - hebrew locale
633 */
634 int
635 hdate_is_hebrew_locale();
636
637 /**
638 @brief Return string values for hdate information
639 @return a pointer to a string containing the information. In the cases
640 integers and omer, the strings will NOT be static, and the
641 caller must free() them after use. Returns a null pointer
642 upon failure.
643 @param type_of_string 0 = integer, 1 = day of week, 2 = parshaot,
644 3 = hmonth, 4 = gmonth, 5 = holiday, 6 = omer
645 @param index integer ( 0 < n < 11000)
646 day of week ( 0 < n < 8 )
647 parshaot ( 0 , n < 62 )
648 hmonth ( 0 < n < 15 )
649 gmonth ( 0 < n < 13 )
650 holiday ( 0 < n < 37 )
651 omer ( 0 < n < 50 )
652 @param short_form 0 = short format
653 @param hebrew_form 0 = not hebrew (native/embedded)
654 */
655 char* hdate_string( int type_of_string, int index, int short_form, int hebrew_form);
656
657 /** @def HDATE_STRING_INT
658 @brief for function hdate_string: identifies string type: integer
659 */
660 #define HDATE_STRING_INT 0
661
662 /** @def HDATE_STRING_DOW
663 @brief for function hdate_string: identifies string type: day of week
664 */
665 #define HDATE_STRING_DOW 1
666
667 /** @def HDATE_STRING_PARASHA
668 @brief for function hdate_string: identifies string type: parasha
669 */
670 #define HDATE_STRING_PARASHA 2
671
672 /** @def HDATE_STRING_HMONTH
673 @brief for function hdate_string: identifies string type: hebrew_month
674 */
675 #define HDATE_STRING_HMONTH 3
676
677 /** @def HDATE_STRING_GMONTH
678 @brief for function hdate_string: identifies string type: gregorian_month
679 */
680 #define HDATE_STRING_GMONTH 4
681
682 /** @def HDATE_STRING_HOLIDAY
683 @brief for function hdate_string: identifies string type: holiday
684 */
685 #define HDATE_STRING_HOLIDAY 5
686
687 /** @def HDATE_STRING_HOLIDAY
688 @brief for function hdate_string: identifies string type: holiday
689 */
690 #define HDATE_STRING_OMER 6
691
692 /** @def HDATE_STRING_SHORT
693 @brief for function hdate_string: use short form, if one exists
694 */
695 #define HDATE_STRING_SHORT 1
696
697 /** @def HDATE_STRING_LONG
698 @brief for function hdate_string: use long form
699 */
700 #define HDATE_STRING_LONG 0
701
702 /** @def HDATE_STRING_HEBREW
703 @brief for function hdate_string: use embedded hebrew string
704 */
705 #define HDATE_STRING_HEBREW 1
706
707 /** @def HDATE_STRING_LOCAL
708 @brief for function hdate_string: use local locale string
709 */
710 #define HDATE_STRING_LOCAL 0
711
712
713
714 #ifdef __cplusplus
715 }
716 #endif
717
718 #endif
0 /* libhdate - Hebrew calendar library: http://libhdate.sourceforge.net
1 *
2 * Copyright (C) 2011-2012 Boruch Baum <boruch-baum@users.sourceforge.net>
3 * 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
4 * 1984-2003 Amos Shapir
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 3 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 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, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include "hdate.h"
21 #include "support.h"
22
23 /**
24 @brief Return number of hebrew holyday.
25
26 @param h The hdate_struct of the date to use.
27 @param diaspora if True give diaspora holydays
28 @return the number of holyday.
29 */
30 int
31 hdate_get_holyday (hdate_struct const * h, int diaspora)
32 {
33 int holyday;
34
35 /* holydays table */
36 static int holydays_table[14][30] =
37 {
38 { /* Tishrey */
39 1, 2, 3, 3, 0, 0, 0, 0, 37, 4,
40 0, 0, 0, 0, 5, 31, 6, 6, 6, 6,
41 7, 27, 8, 0, 0, 0, 0, 0, 0, 0},
42 { /* Heshvan */
43 0, 0, 0, 0, 0, 0, 0, 0, 0, 35,
44 35, 35, 0, 0, 0, 0, 0, 0, 0, 0,
45 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
46 { /* Kislev */
47 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
48 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
49 0, 0, 0, 0, 9, 9, 9, 9, 9, 9},
50 { /* Tevet */
51 9, 9, 9, 0, 0, 0, 0, 0, 0, 10,
52 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
53 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
54 { /* Shvat */
55 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
56 0, 0, 0, 0, 11, 0, 0, 0, 0, 0,
57 0, 0, 0, 0, 0, 0, 0, 0, 0, 33},
58 { /* Adar */
59 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
60 12, 0, 12, 13, 14, 0, 0, 0, 0, 0,
61 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
62 { /* Nisan */
63 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
64 0, 0, 0, 0, 15, 32, 16, 16, 16, 16,
65 28, 29, 0, 0, 0, 24, 24, 24, 0, 0},
66 { /* Iyar */
67 0, 17, 17, 17, 17, 17, 0, 0, 0, 0,
68 0, 0, 0, 0, 0, 0, 0, 18, 0, 0,
69 0, 0, 0, 0, 0, 0, 0, 26, 0, 0},
70 { /* Sivan */
71 0, 0, 0, 0, 19, 20, 30, 0, 0, 0,
72 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
73 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
74 { /* Tamuz */
75 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
76 0, 0, 0, 0, 0, 0, 21, 21, 0, 0,
77 0, 0, 0, 0, 0, 0, 0, 0, 36, 36},
78 { /* Av */
79 0, 0, 0, 0, 0, 0, 0, 0, 22, 22,
80 0, 0, 0, 0, 23, 0, 0, 0, 0, 0,
81 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
82 { /* Elul */
83 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
84 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
85 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
86 { /* Adar 1 */
87 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
88 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
89 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
90 { /* Adar 2 */
91 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
92 12, 0, 12, 13, 14, 0, 0, 0, 0, 0,
93 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
94 };
95
96 /* sanity check */
97 if (h->hd_mon < 1 || h->hd_mon > 14 || h->hd_day < 1 || h->hd_day > 30)
98 return 0;
99
100 holyday = holydays_table[h->hd_mon - 1][h->hd_day - 1];
101
102 /* if tzom on sat delay one day */
103 /* tzom gdalyaho on sat */
104 if ((holyday == 3) && (h->hd_dw == 7 || (h->hd_day == 4 && h->hd_dw !=1)))
105 holyday = 0;
106 /* 17 of Tamuz on sat */
107 if ((holyday == 21) && ((h->hd_dw == 7) || (h->hd_day == 18 && h->hd_dw != 1)))
108 holyday = 0;
109 /* 9 of Av on sat */
110 if ((holyday == 22) && ((h->hd_dw == 7) || (h->hd_day == 10 && h->hd_dw != 1)))
111 holyday = 0;
112
113 /* Hanukah in a long year */
114 if ((holyday == 9) && (h->hd_size_of_year % 10 != 3) && (h->hd_day == 3))
115 holyday = 0;
116
117 /* if tanit ester on sat mov to Thu */
118 if ((holyday == 12) && ((h->hd_dw == 7) || (h->hd_day == 11 && h->hd_dw != 5)))
119 holyday = 0;
120
121 /* yom yerushalym after 68 */
122 if (holyday == 26)
123 {
124 if (h->gd_year < 1968)
125 holyday = 0;
126 }
127
128 /* yom ha azmaot and yom ha zicaron */
129 if (holyday == 17)
130 {
131 if (h->gd_year < 1948)
132 holyday = 0;
133 else if (h->gd_year < 2004)
134 {
135 if ((h->hd_day == 3) && (h->hd_dw == 5))
136 holyday = 17;
137 else if ((h->hd_day == 4) && (h->hd_dw == 5))
138 holyday = 17;
139 else if ((h->hd_day == 5) && (h->hd_dw != 6 && h->hd_dw != 7))
140 holyday = 17;
141 else if ((h->hd_day == 2) && (h->hd_dw == 4))
142 holyday = 25;
143 else if ((h->hd_day == 3) && (h->hd_dw == 4))
144 holyday = 25;
145 else if ((h->hd_day == 4) && (h->hd_dw != 5 && h->hd_dw != 6))
146 holyday = 25;
147 else
148 holyday = 0;
149 }
150 else
151 {
152 if ((h->hd_day == 3) && (h->hd_dw == 5))
153 holyday = 17;
154 else if ((h->hd_day == 4) && (h->hd_dw == 5))
155 holyday = 17;
156 else if ((h->hd_day == 6) && (h->hd_dw == 3))
157 holyday = 17;
158 else if ((h->hd_day == 5) && (h->hd_dw != 6 && h->hd_dw != 7 && h->hd_dw != 2))
159 holyday = 17;
160 else if ((h->hd_day == 2) && (h->hd_dw == 4))
161 holyday = 25;
162 else if ((h->hd_day == 3) && (h->hd_dw == 4))
163 holyday = 25;
164 else if ((h->hd_day == 5) && (h->hd_dw == 2))
165 holyday = 25;
166 else if ((h->hd_day == 4) && (h->hd_dw != 5 && h->hd_dw != 6 && h->hd_dw != 1))
167 holyday = 25;
168 else
169 holyday = 0;
170 }
171 }
172
173 /* yom ha shoaa, on years after 1958 */
174 if (holyday == 24)
175 {
176 if (h->gd_year < 1958)
177 holyday = 0;
178 else
179 {
180 if ((h->hd_day == 26) && (h->hd_dw != 5))
181 holyday = 0;
182 if ((h->hd_day == 28) && (h->hd_dw != 2))
183 holyday = 0;
184 if ((h->hd_day == 27) && (h->hd_dw == 6 || h->hd_dw == 1))
185 holyday = 0;
186 }
187 }
188
189 /* Rabin day, on years after 1997 */
190 if (holyday == 35)
191 {
192 if (h->gd_year < 1997)
193 holyday = 0;
194 else
195 {
196 if ((h->hd_day == 10 || h->hd_day == 11) && (h->hd_dw != 5))
197 holyday = 0;
198 if ((h->hd_day == 12) && (h->hd_dw == 6 || h->hd_dw == 7))
199 holyday = 0;
200 }
201 }
202
203 /* Zhabotinsky day, on years after 2005 */
204 if (holyday == 36)
205 {
206 if (h->gd_year < 2005)
207 holyday = 0;
208 else
209 {
210 if ((h->hd_day == 30) && (h->hd_dw != 1))
211 holyday = 0;
212 if ((h->hd_day == 29) && (h->hd_dw == 7))
213 holyday = 0;
214 }
215 }
216
217 /* diaspora holidays */
218
219 /* simchat tora only in diaspora in israel just one day shmini+simchat tora */
220 if (holyday == 8 && !diaspora)
221 holyday = 0;
222
223 /* sukkot II holiday only in diaspora */
224 if (holyday == 31 && !diaspora)
225 holyday = 6;
226
227 /* pesach II holiday only in diaspora */
228 if (holyday == 32 && !diaspora)
229 holyday = 16;
230
231 /* shavot II holiday only in diaspora */
232 if (holyday == 30 && !diaspora)
233 holyday = 0;
234
235 /* pesach VIII holiday only in diaspora */
236 if (holyday == 29 && !diaspora)
237 holyday = 0;
238
239 return holyday;
240 }
241
242 /**
243 @brief Return the day in the omer of the given date
244
245 @param h The hdate_struct of the date to use.
246 @return The day in the omer, starting from 1 (or 0 if not in sfirat ha omer)
247 */
248 int
249 hdate_get_omer_day(hdate_struct const * h)
250 {
251 int omer_day;
252 hdate_struct sixteen_nissan;
253
254 hdate_set_hdate(&sixteen_nissan, 16, 7, h->hd_year);
255 omer_day = h->hd_jd - sixteen_nissan.hd_jd + 1;
256
257 if ((omer_day > 49) || (omer_day < 0))
258 omer_day = 0;
259
260 return omer_day;
261 }
262
263 /**
264 @brief Return number of hebrew holyday type.
265
266 Holiday types:
267 0 - Regular day
268 1 - Yom tov (plus yom kippor)
269 2 - Erev yom kippur
270 3 - Hol hamoed
271 4 - Hanuka and purim
272 5 - Tzomot
273 6 - Independance day and Yom yerushalaim
274 7 - Lag baomer ,Tu beav, Tu beshvat
275 8 - Tzahal and Holocaust memorial days
276 9 - National days
277
278 @param holyday the holyday number
279 @return the number of holyday type.
280 */
281
282 int
283 hdate_get_holyday_type (int holyday)
284 {
285 int holyday_type;
286
287 switch (holyday)
288 {
289 case 0: /* regular day */
290 holyday_type = 0;
291 break;
292
293 case 1:
294 case 2:
295 case 4: /* FIXME: yom kipur is a yom tov ? */
296 case 5:
297 case 8:
298 case 15:
299 case 20:
300 case 27:
301 case 28:
302 case 29:
303 case 30:
304 case 31:
305 case 32: /* Yom tov, To find erev yom tov, check if tomorrow returns 1 */
306 holyday_type = 1;
307 break;
308
309 case 37: /* Erev yom kippur */
310 holyday_type = 2;
311 break;
312
313 case 6:
314 case 7:
315 case 16: /* Hol hamoed */
316 holyday_type = 3;
317 break;
318
319 case 9:
320 case 13:
321 case 14: /* Hanuka and purim */
322 holyday_type = 4;
323 break;
324
325 case 3:
326 case 10:
327 case 12:
328 case 21:
329 case 22: /* tzom */
330 holyday_type = 5;
331 break;
332
333 case 17:
334 case 26: /* Independance day and Yom yerushalaim */
335 holyday_type = 6;
336 break;
337
338 case 18:
339 case 23:
340 case 11: /* Lag baomer ,Tu beav, Tu beshvat */
341 holyday_type = 7;
342 break;
343
344 case 24:
345 case 25: /* Tzahal and Holocaust memorial days */
346 holyday_type = 8;
347 break;
348
349
350 default: /* National days */
351 holyday_type = 9;
352 break;
353 }
354
355 return holyday_type;
356 }
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 /* if simhat tora return vezot habracha */
73 if (h->hd_mon == 1)
74 {
75 /* simhat tora is a day after shmini atzeret outsite israel */
76 if (h->hd_day == 22 && !diaspora) return 54;
77 if (h->hd_day == 23 && diaspora) return 54;
78 }
79
80
81 if (h->hd_mon == 1 && h->hd_day == 22)
82 {
83 return 54;
84 }
85
86 /* if not shabat return none */
87 if (h->hd_dw != 7)
88 {
89 return 0;
90 }
91
92 /* check for diaspora readings */
93 diaspora = diaspora?1:0;
94
95 switch (h->hd_weeks)
96 {
97 case 1:
98 if (h->hd_new_year_dw == 7)
99 {
100 /* Rosh hashana */
101 return 0;
102 }
103 else if ((h->hd_new_year_dw == 2) || (h->hd_new_year_dw == 3))
104 {
105 return 52;
106 }
107 else /* if (h->hd_new_year_dw == 5) */
108 {
109 return 53;
110 }
111 break;
112 case 2:
113 if (h->hd_new_year_dw == 5)
114 {
115 /* Yom kippur */
116 return 0;
117 }
118 else
119 {
120 return 53;
121 }
122 break;
123 case 3:
124 /* Succot */
125 return 0;
126 break;
127 case 4:
128 if (h->hd_new_year_dw == 7)
129 {
130 /* Simhat tora in israel */
131 if (!diaspora) return 54;
132 /* Not simhat tora in diaspora */
133 else return 0;
134 }
135 else
136 {
137 return 1;
138 }
139 break;
140 default:
141 /* simhat tora on week 4 bereshit too */
142 reading = h->hd_weeks - 3;
143
144 /* was simhat tora on shabat ? */
145 if (h->hd_new_year_dw == 7)
146 reading = reading - 1;
147
148 /* no joining */
149 if (reading < 22)
150 {
151 return reading;
152 }
153
154 /* pesach */
155 if ((h->hd_mon == 7) && (h->hd_day > 14))
156 {
157 /* Shmini of pesach in diaspora is on the 22 of the month*/
158 if (diaspora && (h->hd_day <= 22))
159 return 0;
160 if (!diaspora && (h->hd_day < 22))
161 return 0;
162 }
163
164 /* Pesach allways removes one */
165 if (((h->hd_mon == 7) && (h->hd_day > 21)) || (h->hd_mon > 7 && h->hd_mon < 13))
166 {
167 reading--;
168
169 /* on diaspora, shmini of pesach may fall on shabat if next new year is on shabat */
170 if (diaspora &&
171 (((h->hd_new_year_dw + h->hd_size_of_year) % 7) == 2))
172 {
173 reading--;
174 }
175 }
176
177 /* on diaspora, shavot may fall on shabat if next new year is on shabat */
178 if (diaspora &&
179 (h->hd_mon < 13) &&
180 ((h->hd_mon > 9) || (h->hd_mon == 9 && h->hd_day >= 7)) &&
181 ((h->hd_new_year_dw + h->hd_size_of_year) % 7) == 0)
182 {
183 if (h->hd_mon == 9 && h->hd_day == 7)
184 {
185 return 0;
186 }
187 else
188 {
189 reading--;
190 }
191 }
192
193 /* joining */
194 if (join_flags[diaspora][h->hd_year_type - 1][0] && (reading >= 22))
195 {
196 if (reading == 22)
197 {
198 return 55;
199 }
200 else
201 {
202 reading++;
203 }
204 }
205 if (join_flags[diaspora][h->hd_year_type - 1][1] && (reading >= 27))
206 {
207 if (reading == 27)
208 {
209 return 56;
210 }
211 else
212 {
213 reading++;
214 }
215 }
216 if (join_flags[diaspora][h->hd_year_type - 1][2] && (reading >= 29))
217 {
218 if (reading == 29)
219 {
220 return 57;
221 }
222 else
223 {
224 reading++;
225 }
226 }
227 if (join_flags[diaspora][h->hd_year_type - 1][3] && (reading >= 32))
228 {
229 if (reading == 32)
230 {
231 return 58;
232 }
233 else
234 {
235 reading++;
236 }
237 }
238
239 if (join_flags[diaspora][h->hd_year_type - 1][4] && (reading >= 39))
240 {
241 if (reading == 39)
242 {
243 return 59;
244 }
245 else
246 {
247 reading++;
248 }
249 }
250 if (join_flags[diaspora][h->hd_year_type - 1][5] && (reading >= 42))
251 {
252 if (reading == 42)
253 {
254 return 60;
255 }
256 else
257 {
258 reading++;
259 }
260 }
261 if (join_flags[diaspora][h->hd_year_type - 1][6] && (reading >= 51))
262 {
263 if (reading == 51)
264 {
265 return 61;
266 }
267 else
268 {
269 reading++;
270 }
271 }
272 break;
273 }
274
275 return reading;
276 }
0 /* libhdate - Hebrew calendar library: http://libhdate.sourceforge.net
1 *
2 * Copyright (C) 2011-2012 Boruch Baum <boruch-baum@users.sourceforge.net>
3 * 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
4 * 1984-2003 Amos Shapir
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 3 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 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, see <http://www.gnu.org/licenses/>.
18 */
19
20 #define _GNU_SOURCE
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <string.h>
24
25 #ifdef ENABLE_NLS
26 #include <locale.h>
27 #endif
28
29 #include "hdate.h"
30 #include "support.h"
31
32 /**
33 @brief helper function to find hebrew locale
34
35 @return 0 - latin locale, -1 - hebrew locale
36 */
37 int
38 hdate_is_hebrew_locale()
39 {
40 char *locale;
41 char *language;
42
43 /* Get the name of the current locale. */
44 #ifdef ENABLE_NLS
45 locale = setlocale (LC_MESSAGES, NULL);
46 language = getenv ("LANGUAGE");
47 #else
48 locale = NULL;
49 language = NULL;
50 #endif
51
52 if (!((locale && (locale[0] == 'h') && (locale[1] == 'e')) ||
53 (language && (language[0] == 'h') && (language[1] == 'e'))))
54 {
55 /* not hebrew locale return false */
56 return 0;
57 }
58
59 return -1;
60 }
61
62 /**
63 @brief Return a string, with the hebrew date.
64
65 @return NULL pointer upon failure or, upon success, a pointer to a
66 string containing the short ( e.g. "1 Tishrey" ) or long (e.g. "Tuesday
67 18 Tishrey 5763 Hol hamoed Sukot" ) formated date. You must free() the
68 pointer after use.
69
70 @param h The hdate_struct of the date to print.
71 @param diaspora if true give diaspora holydays
72 @param short_format A short flag (true - returns a short string, false returns a long string).
73
74 @warning This was originally written using a local static string,
75 calling for output to be copied away.
76 */
77
78 char * hdate_get_format_date (hdate_struct const *h, int const diaspora, int const short_format)
79 {
80 int hebrew_format = HDATE_STRING_LOCAL;
81 int omer_day = 0;
82 int holiday = 0;
83 char *bet_h = ""; // Hebrew prefix for Hebrew month
84
85 char *hebrew_buffer1, *hebrew_buffer2;
86 size_t hebrew_buffer1_len = -1;
87 size_t hebrew_buffer2_len = -1;
88
89 char *hday_int_str, *hyear_int_str, *omer_str;
90
91 if (hdate_is_hebrew_locale())
92 {
93 bet_h="ב";
94 hebrew_format = HDATE_STRING_HEBREW;
95 }
96
97 hday_int_str = hdate_string(HDATE_STRING_INT, h->hd_day, HDATE_STRING_LONG,hebrew_format);
98 if (hday_int_str == NULL) return NULL;
99 hyear_int_str = hdate_string(HDATE_STRING_INT, h->hd_year, HDATE_STRING_LONG,hebrew_format);
100 if (hyear_int_str == NULL)
101 {
102 free(hday_int_str);
103 return NULL;
104 }
105
106 /************************************************************
107 * short format
108 ************************************************************/
109 if (short_format)
110 {
111 hebrew_buffer1_len = asprintf (&hebrew_buffer1, "%s %s %s\n",
112 hday_int_str,
113 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, HDATE_STRING_LONG, hebrew_format),
114 hyear_int_str);
115 }
116
117
118 /************************************************************
119 * long (normal) format
120 ************************************************************/
121 else
122 {
123 hebrew_buffer1_len = asprintf (&hebrew_buffer1, "%s %s%s %s",
124 hday_int_str,
125 bet_h,
126 hdate_string( HDATE_STRING_HMONTH , h->hd_mon, HDATE_STRING_LONG, hebrew_format),
127 hyear_int_str);
128
129 /* if a day in the omer print it */
130 if (hebrew_buffer1_len != -1) omer_day = hdate_get_omer_day(h);
131 if (omer_day != 0)
132 {
133 omer_str = hdate_string(HDATE_STRING_OMER, omer_day, HDATE_STRING_LONG, hebrew_format);
134 hebrew_buffer2_len = asprintf (&hebrew_buffer2, "%s, %s", hebrew_buffer1, omer_str);
135 if (omer_str != NULL) free(omer_str);
136 free(hebrew_buffer1);
137 if (hebrew_buffer2_len != -1) hebrew_buffer1 = hebrew_buffer2;
138 hebrew_buffer1_len = hebrew_buffer2_len;
139 }
140
141 /* if holiday print it */
142 if (hebrew_buffer1_len != -1) holiday = hdate_get_holyday (h, diaspora);
143 if (holiday != 0)
144 {
145 hebrew_buffer2_len = asprintf (&hebrew_buffer2, "%s, %s", hebrew_buffer1,
146 hdate_string( HDATE_STRING_HOLIDAY, holiday, HDATE_STRING_LONG, hebrew_format));
147 free(hebrew_buffer1);
148 if (hebrew_buffer2_len != -1) hebrew_buffer1 = hebrew_buffer2;
149 hebrew_buffer1_len = hebrew_buffer2_len;
150 }
151
152 }
153
154 free(hday_int_str);
155 free(hyear_int_str);
156 if (hebrew_buffer1_len != -1) return hebrew_buffer1;
157 return NULL;
158 }
159
160 /**
161 @brief Return a static string, with the package name and version
162
163 @return a a static string, with the package name and version
164 */
165 char *
166 hdate_get_version_string ()
167 {
168 static char version[500];
169
170 /* make a "packge version" string */
171 // snprintf (version, 500, "%s %s", PACKAGE, VERSION);
172
173 return (version);
174 }
175
176 /**
177 @brief Return a static string, with the name of translator
178
179 @return a a static string, with the name of translator
180 */
181 char *
182 hdate_get_translator_string ()
183 {
184 /* if untranslated return null */
185 if (strcmp (_("translator"), "translator") == 0)
186 return NULL;
187
188 /* return the translator name */
189 return _("translator");
190 }
191
192 /**
193 @brief Return string values for hdate information
194 @return a pointer to a string containing the information. In the cases
195 integers and omer, the strings will NOT be static, and the
196 caller must free() them after use.
197 @param type_of_string 0 = integer, 1 = day of week, 2 = parshaot,
198 3 = hmonth, 4 = gmonth, 5 = holiday, 6 = omer
199 @param index integer ( 0 < n < 11000)
200 day of week ( 0 < n < 8 )
201 parshaot ( 0 , n < 62 )
202 hmonth ( 0 < n < 15 )
203 gmonth ( 0 < n < 13 )
204 holiday ( 0 < n < 37 )
205 omer ( 0 < n < 50 )
206 @param short_form 0 = short format
207 @param hebrew_form 0 = not hebrew (native/embedded)
208 */
209
210 // TODO - Number days of chol hamoed, and maybe have an entry for shabbat chol hamoed
211 // DONE - (I hope) change short to be = 1 long = 0, and switch order of data structures
212 // this way user app opt.short = 0/FALSE will work as a parameter to pass here
213
214 // These definitions are in hdate.h
215 //
216 // HDATE_STRING_INT 0
217 // HDATE_STRING_DOW 1
218 // HDATE_STRING_PARASHA 2
219 // HDATE_STRING_HMONTH 3
220 // HDATE_STRING_GMONTH 4
221 // HDATE_STRING_HOLIDAY 5
222 // HDATE_STRING_OMER 6
223 // HDATE STRING_SHORT 1
224 // HDATE_STRING_LONG 0
225 // HDATE_STRING_HEBREW 1
226 // HDATE_STRING_LOCAL 0
227 char* hdate_string( int const type_of_string, int const index, int const input_short_form, int const input_hebrew_form)
228 {
229 int short_form = 0;
230 int hebrew_form = 0;
231
232 // type_of_string: integer and omer require allocated strings
233 char *return_string = NULL;
234 char *h_int_string = NULL;
235 int return_string_len = -1;
236
237 #define H_CHAR_WIDTH 2
238 static char *digits[3][10] = {
239 {" ", "א", "ב", "ג", "ד", "ה", "ו", "ז", "ח", "ט"},
240 {"ט", "י", "כ", "ל", "מ", "נ", "ס", "ע", "פ", "צ"},
241 {" ", "ק", "ר", "ש", "ת"}
242 };
243
244 static char *days[2][2][7] = {
245 { // begin english
246 { // begin english long
247 N_("Sunday"), N_("Monday"), N_("Tuesday"), N_("Wednesday"),
248 N_("Thursday"), N_("Friday"), N_("Saturday")},
249 { // begin english short
250 N_("Sun"), N_("Mon"), N_("Tue"), N_("Wed"), N_("Thu"),
251 N_("Fri"), N_("Sat")}
252 },
253 { // begin hebrew
254 { // begin hebrew long
255 "ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"},
256 { // begin hebrew short
257 "א", "ב", "ג", "ד", "ה", "ו", "ש"}
258 }
259 };
260
261 static char *parashaot[2][2][62] = {
262 { // begin english
263 { // begin english long
264 N_("none"), N_("Bereshit"), N_("Noach"),
265 N_("Lech-Lecha"), N_("Vayera"), N_("Chayei Sara"),
266 N_("Toldot"), N_("Vayetzei"), N_("Vayishlach"),
267 N_("Vayeshev"), N_("Miketz"), N_("Vayigash"), /* 11 */
268 N_("Vayechi"), N_("Shemot"), N_("Vaera"),
269 N_("Bo"), N_("Beshalach"), N_("Yitro"),
270 N_("Mishpatim"), N_("Terumah"), N_("Tetzaveh"), /* 20 */
271 N_("Ki Tisa"), N_("Vayakhel"), N_("Pekudei"),
272 N_("Vayikra"), N_("Tzav"), N_("Shmini"),
273 N_("Tazria"), N_("Metzora"), N_("Achrei Mot"),
274 N_("Kedoshim"), N_("Emor"), N_("Behar"), /* 32 */
275 N_("Bechukotai"), N_("Bamidbar"), N_("Nasso"),
276 N_("Beha'alotcha"), N_("Sh'lach"), N_("Korach"),
277 N_("Chukat"), N_("Balak"), N_("Pinchas"), /* 41 */
278 N_("Matot"), N_("Masei"), N_("Devarim"),
279 N_("Vaetchanan"), N_("Eikev"), N_("Re'eh"),
280 N_("Shoftim"), N_("Ki Teitzei"), N_("Ki Tavo"), /* 50 */
281 N_("Nitzavim"), N_("Vayeilech"), N_("Ha'Azinu"),
282 N_("Vezot Habracha"), /* 54 */
283 N_("Vayakhel-Pekudei"),N_("Tazria-Metzora"), N_("Achrei Mot-Kedoshim"),
284 N_("Behar-Bechukotai"),N_("Chukat-Balak"), N_("Matot-Masei"),
285 N_("Nitzavim-Vayeilech")},
286 { // begin english short
287 N_("none"), N_("Bereshit"), N_("Noach"),
288 N_("Lech-Lecha"), N_("Vayera"), N_("Chayei Sara"),
289 N_("Toldot"), N_("Vayetzei"), N_("Vayishlach"),
290 N_("Vayeshev"), N_("Miketz"), N_("Vayigash"), /* 11 */
291 N_("Vayechi"), N_("Shemot"), N_("Vaera"),
292 N_("Bo"), N_("Beshalach"), N_("Yitro"),
293 N_("Mishpatim"), N_("Terumah"), N_("Tetzaveh"), /* 20 */
294 N_("Ki Tisa"), N_("Vayakhel"), N_("Pekudei"),
295 N_("Vayikra"), N_("Tzav"), N_("Shmini"),
296 N_("Tazria"), N_("Metzora"), N_("Achrei Mot"),
297 N_("Kedoshim"), N_("Emor"), N_("Behar"), /* 32 */
298 N_("Bechukotai"), N_("Bamidbar"), N_("Nasso"),
299 N_("Beha'alotcha"), N_("Sh'lach"), N_("Korach"),
300 N_("Chukat"), N_("Balak"), N_("Pinchas"), /* 41 */
301 N_("Matot"), N_("Masei"), N_("Devarim"),
302 N_("Vaetchanan"), N_("Eikev"), N_("Re'eh"),
303 N_("Shoftim"), N_("Ki Teitzei"), N_("Ki Tavo"), /* 50 */
304 N_("Nitzavim"), N_("Vayeilech"), N_("Ha'Azinu"),
305 N_("Vezot Habracha"), /* 54 */
306 N_("Vayakhel-Pekudei"),N_("Tazria-Metzora"), N_("Achrei Mot-Kedoshim"),
307 N_("Behar-Bechukotai"),N_("Chukat-Balak"), N_("Matot-Masei"),
308 N_("Nitzavim-Vayeilech")}
309 },
310 { // begin hebrew
311 { // begin hebrew long
312 "none", "בראשית", "נח",
313 "לך לך", "וירא", "חיי שרה",
314 "תולדות", "ויצא", "וישלח",
315 "וישב", "מקץ", "ויגש", /* 11 */
316 "ויחי", "שמות", "וארא",
317 "בא", "בשלח", "יתרו",
318 "משפטים", "תרומה", "תצוה", /* 20 */
319 "כי תשא", "ויקהל", "פקודי",
320 "ויקרא", "צו", "שמיני",
321 "תזריע", "מצורע", "אחרי מות",
322 "קדושים", "אמור", "בהר", /* 32 */
323 "בחוקתי", "במדבר", "נשא",
324 "בהעלתך", "שלח", "קרח",
325 "חקת", "בלק", "פנחס", /* 41 */
326 "מטות", "מסעי", "דברים",
327 "ואתחנן", "עקב", "ראה",
328 "שופטים", "כי תצא", "כי תבוא", /* 50 */
329 "נצבים", "וילך", "האזינו",
330 "וזאת הברכה", /* 54 */
331 "ויקהל-פקודי", "תזריע-מצורע", "אחרי מות-קדושים",
332 "בהר-בחוקתי", "חוקת-בלק", "מטות מסעי",
333 "נצבים-וילך"},
334 { // begin hebrew short
335 "none", "בראשית", "נח",
336 "לך לך", "וירא", "חיי שרה",
337 "תולדות", "ויצא", "וישלח",
338 "וישב", "מקץ", "ויגש", /* 11 */
339 "ויחי", "שמות", "וארא",
340 "בא", "בשלח", "יתרו",
341 "משפטים", "תרומה", "תצוה", /* 20 */
342 "כי תשא", "ויקהל", "פקודי",
343 "ויקרא", "צו", "שמיני",
344 "תזריע", "מצורע", "אחרי מות",
345 "קדושים", "אמור", "בהר", /* 32 */
346 "בחוקתי", "במדבר", "נשא",
347 "בהעלתך", "שלח", "קרח",
348 "חקת", "בלק", "פנחס", /* 41 */
349 "מטות", "מסעי", "דברים",
350 "ואתחנן", "עקב", "ראה",
351 "שופטים", "כי תצא", "כי תבוא", /* 50 */
352 "נצבים", "וילך", "האזינו",
353 "וזאת הברכה", /* 54 */
354 "ויקהל-פקודי", "תזריע-מצורע", "אחרי מות-קדושים",
355 "בהר-בחוקתי", "חוקת-בלק", "מטות מסעי",
356 "נצבים-וילך"}
357 }
358 };
359
360 static char *hebrew_months[2][2][14] = {
361 { // begin english
362 { // begin english long
363 N_("Tishrei"), N_("Cheshvan"), N_("Kislev"), N_("Tevet"),
364 N_("Sh'vat"), N_("Adar"), N_("Nisan"), N_("Iyyar"),
365 N_("Sivan"), N_("Tammuz"), N_("Av"), N_("Elul"), N_("Adar I"),
366 N_("Adar II")},
367 { // begin english short
368 N_("Tishrei"), N_("Cheshvan"), N_("Kislev"), N_("Tevet"),
369 N_("Sh'vat"), N_("Adar"), N_("Nisan"), N_("Iyyar"),
370 N_("Sivan"), N_("Tammuz"), N_("Av"), N_("Elul"), N_("Adar I"),
371 N_("Adar II")}
372 },
373 { // begin hebrew
374 { // begin hebrew long
375 "תשרי", "חשון", "כסלו", "טבת", "שבט", "אדר", "ניסן", "אייר",
376 "סיון", "תמוז", "אב", "אלול", "אדר א", "אדר ב" },
377 { // begin hebrew short
378 "תשרי", "חשון", "כסלו", "טבת", "שבט", "אדר", "ניסן", "אייר",
379 "סיון", "תמוז", "אב", "אלול", "אדר א", "אדר ב" }}
380 };
381
382 static char *gregorian_months[2][12] = {
383 {N_("January"), N_("February"), N_("March"),
384 N_("April"), N_("May"), N_("June"),
385 N_("July"), N_("August"), N_("September"),
386 N_("October"), N_("November"), N_("December")},
387 {N_("Jan"), N_("Feb"), N_("Mar"), N_("Apr"), N_("May"),
388 N_("Jun"), N_("Jul"), N_("Aug"), N_("Sep"), N_("Oct"),
389 N_("Nov"), N_("Dec")},
390 };
391
392 static char *holidays[2][2][37] = {
393 { // begin english
394 { // begin english long
395 N_("Rosh Hashana I"), N_("Rosh Hashana II"),
396 N_("Tzom Gedaliah"), N_("Yom Kippur"),
397 N_("Sukkot"), N_("Hol hamoed Sukkot"),
398 N_("Hoshana raba"), N_("Simchat Torah"),
399 N_("Chanukah"), N_("Asara B'Tevet"),
400 N_("Tu B'Shvat"), N_("Ta'anit Esther"),
401 N_("Purim"), N_("Shushan Purim"),
402 N_("Pesach"), N_("Hol hamoed Pesach"),
403 N_("Yom HaAtzma'ut"), N_("Lag B'Omer"),
404 N_("Erev Shavuot"), N_("Shavuot"),
405 N_("Tzom Tammuz"), N_("Tish'a B'Av"),
406 N_("Tu B'Av"), N_("Yom HaShoah"),
407 N_("Yom HaZikaron"), N_("Yom Yerushalayim"),
408 N_("Shmini Atzeret"), N_("Pesach VII"),
409 N_("Pesach VIII"), N_("Shavuot II"),
410 N_("Sukkot II"), N_("Pesach II"),
411 N_("Family Day"), N_("Memorial day for fallen whose place of burial is unknown"),
412 N_("Yitzhak Rabin memorial day"), N_("Zeev Zhabotinsky day"),
413 N_("Erev Yom Kippur")},
414 { // begin english short
415 N_("Rosh Hashana I"), N_("Rosh Hashana II"),
416 N_("Tzom Gedaliah"), N_("Yom Kippur"),
417 N_("Sukkot"), N_("Hol hamoed Sukkot"),
418 N_("Hoshana raba"), N_("Simchat Torah"),
419 N_("Chanukah"), N_("Asara B'Tevet"), /* 10 */
420 N_("Tu B'Shvat"), N_("Ta'anit Esther"),
421 N_("Purim"), N_("Shushan Purim"),
422 N_("Pesach"), N_("Hol hamoed Pesach"),
423 N_("Yom HaAtzma'ut"), N_("Lag B'Omer"),
424 N_("Erev Shavuot"), N_("Shavuot"), /* 20 */
425 N_("Tzom Tammuz"), N_("Tish'a B'Av"),
426 N_("Tu B'Av"), N_("Yom HaShoah"),
427 N_("Yom HaZikaron"), N_("Yom Yerushalayim"),
428 N_("Shmini Atzeret"), N_("Pesach VII"),
429 N_("Pesach VIII"), N_("Shavuot II"), /* 30 */
430 N_("Sukkot II"), N_("Pesach II"),
431 N_("Family Day"), N_("Memorial day for fallen whose place of burial is unknown"),
432 N_("Rabin memorial day"), N_("Zhabotinsky day"),
433 N_("Erev Yom Kippur")}
434 },
435 { // begin hebrew
436 { // begin hebrew long
437 "א ר\"ה", "ב' ר\"ה",
438 "צום גדליה", "יוה\"כ",
439 "סוכות", "חוה\"מ סוכות",
440 "הוש\"ר", "שמח\"ת",
441 "חנוכה", "י' בטבת", /* 10 */
442 "ט\"ו בשבט", "תענית אסתר",
443 "פורים", "שושן פורים",
444 "פסח", "חוה\"מ פסח",
445 "יום העצמאות", "ל\"ג בעומר",
446 "ערב שבועות", "שבועות", /* 20 */
447 "צום תמוז", "ט' באב",
448 "ט\"ו באב", "יום השואה",
449 "יום הזכרון", "יום י-ם",
450 "שמיני עצרת", "ז' פסח",
451 "אחרון של פסח", "ב' שבועות", /* 30 */
452 "ב' סוכות", "ב' פסח",
453 "יום המשפחה", "יום זכרון...",
454 "יום הזכרון ליצחק רבין","יום ז\'בוטינסקי",
455 "עיוה\"כ"},
456 { // begin hebrew short
457 "א' ראש השנה", "ב' ראש השנה",
458 "צום גדליה", "יום הכפורים",
459 "סוכות", "חול המועד סוכות",
460 "הושענא רבה", "שמחת תורה",
461 "חנוכה", "צום עשרה בטבת",/* 10 */
462 "ט\"ו בשבט", "תענית אסתר",
463 "פורים", "שושן פורים",
464 "פסח", "חול המועד פסח",
465 "יום העצמאות", "ל\"ג בעומר",
466 "ערב שבועות", "שבועות", /* 20 */
467 "צום שבעה עשר בתמוז", "תשעה באב",
468 "ט\"ו באב", "יום השואה",
469 "יום הזכרון", "יום ירושלים",
470 "שמיני עצרת", "שביעי פסח",
471 "אחרון של פסח", "שני של שבועות",/* 30 */
472 "שני של סוכות", "שני של פסח",
473 "יום המשפחה", "יום זכרון...",
474 "יום הזכרון ליצחק רבין","יום ז\'בוטינסקי",
475 "עיוה\"כ"} }
476 };
477
478 #ifdef ENABLE_NLS
479 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
480 bind_textdomain_codeset (PACKAGE, "UTF-8");
481 #endif
482
483 // validate parameters
484 if (input_short_form != 0) short_form = 1;
485 if (input_hebrew_form != 0) hebrew_form = 1;
486
487 switch (type_of_string)
488 {
489 case HDATE_STRING_DOW: if (index >= 1 && index <= 7)
490 return _(days[hebrew_form][short_form][index - 1]);
491 break;
492 case HDATE_STRING_PARASHA: if (index >= 1 && index <= 61)
493 return _(parashaot[hebrew_form][short_form][index]);
494 break;
495 case HDATE_STRING_HMONTH:
496 if (index >= 1 && index <= 14)
497 return _(hebrew_months[hebrew_form][short_form][index - 1]);
498 break;
499 case HDATE_STRING_GMONTH:
500 if (index >= 1 && index <= 12)
501 return _(gregorian_months[short_form][index - 1]);
502 break;
503 case HDATE_STRING_HOLIDAY: if (index >= 1 && index <= 37)
504 return _(holidays[hebrew_form][short_form][index - 1]);
505 break;
506 case HDATE_STRING_OMER:
507 if (index > 0 && index < 50)
508 {
509 h_int_string = hdate_string(HDATE_STRING_INT, index, HDATE_STRING_LONG, hebrew_form);
510 if (h_int_string == NULL) return NULL;
511
512 return_string_len = asprintf(
513 &return_string, "%s %s", h_int_string, _("in the Omer"));
514
515 free(h_int_string);
516
517 if (return_string_len != -1) return return_string;
518 }
519 return NULL;
520 break;
521 case HDATE_STRING_INT:
522 if ((index > 0) && (index < 11000))
523 {
524 // not hebrew form - return the number in decimal form
525 if (!hebrew_form)
526 {
527 return_string_len = asprintf (&return_string, "%d", index);
528 if (return_string_len == -1) return NULL;
529 return return_string;
530 }
531
532 // HEBREW_NUMBER_BUFFER_SIZE 17 defined in hdate.h
533 return_string = malloc(HEBREW_NUMBER_BUFFER_SIZE);
534 if (return_string == NULL) return NULL;
535
536 return_string[0] = '\0';
537
538 int n = index;
539
540 if (n >= 1000)
541 {
542 strncat (return_string, digits[0][n / 1000], H_CHAR_WIDTH);
543 n %= 1000;
544 }
545 while (n >= 400)
546 {
547 strncat (return_string, digits[2][4], H_CHAR_WIDTH);
548 n -= 400;
549 }
550 if (n >= 100)
551 {
552 strncat (return_string, digits[2][n / 100], H_CHAR_WIDTH);
553 n %= 100;
554 }
555 if (n >= 10)
556 {
557 if (n == 15 || n == 16)
558 n -= 9;
559 strncat (return_string, digits[1][n / 10], H_CHAR_WIDTH);
560 n %= 10;
561 }
562 if (n > 0)
563 strncat (return_string, digits[0][n], H_CHAR_WIDTH);
564
565 // possibly add the ' and " to hebrew numbers
566 if (!short_form)
567 {
568 return_string_len = strlen (return_string);
569 if (return_string_len <= H_CHAR_WIDTH) strncat (return_string, "'", H_CHAR_WIDTH);
570 else
571 {
572 return_string[return_string_len + 1] = return_string[return_string_len];
573 return_string[return_string_len] = return_string[return_string_len - 1];
574 return_string[return_string_len - 1] = return_string[return_string_len - 2];
575 return_string[return_string_len - 2] = '\"';
576 return_string[return_string_len + 2] = '\0';
577 }
578 }
579 return return_string;
580 }
581 return NULL;
582 break;
583 } // end of switch(type_of_string)
584
585 return NULL;
586 }
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 #include <errno.h>
28
29 #include "hdate.h"
30 #include "support.h"
31
32 /**
33 @brief days from 1 january
34
35 @parm day this day of month
36 @parm month this month
37 @parm year this year
38 @return the days from 1 jan
39 */
40 int
41 hdate_get_day_of_year (int day, int month, int year)
42 {
43 int jd;
44
45 /* get todays julian day number */
46 jd = (1461 * (year + 4800 + (month - 14) / 12)) / 4 +
47 (367 * (month - 2 - 12 * ((month - 14) / 12))) / 12 -
48 (3 * ((year + 4900 + (month - 14) / 12) / 100)) / 4 + day;
49
50 /* substruct the julian day of 1/1/year and add one */
51 jd = jd - ((1461 * (year + 4799)) / 4 +
52 367 * 11 / 12 - (3 * ((year + 4899) / 100)) / 4);
53
54 return jd;
55 }
56
57 /**
58 @brief utc sun times for altitude at a gregorian date
59
60 Returns the sunset and sunrise times in minutes from 00:00 (utc time)
61 if sun altitude in sunrise is deg degries.
62 This function only works for altitudes sun realy is.
63 If the sun never get to this altitude, the returned sunset and sunrise values
64 will be negative. This can happen in low altitude when latitude is
65 nearing the pols in winter times, the sun never goes very high in
66 the sky there.
67
68 @param day this day of month
69 @param month this month
70 @param year this year
71 @param longitude longitude to use in calculations
72 @param latitude latitude to use in calculations
73 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
74 @param sunrise return the utc sunrise in minutes
75 @param sunset return the utc sunset in minutes
76 */
77 void
78 hdate_get_utc_sun_time_deg (int day, int month, int year, double latitude, double longitude, double deg, int *sunrise, int *sunset)
79 {
80 double gama; /* location of sun in yearly cycle in radians */
81 double eqtime; /* diffference betwen sun noon and clock noon */
82 double decl; /* sun declanation */
83 double ha; /* solar hour engle */
84 double sunrise_angle = M_PI * deg / 180.0; /* sun angle at sunrise/set */
85
86 int day_of_year;
87
88 /* get the day of year */
89 day_of_year = hdate_get_day_of_year (day, month, year);
90
91 /* get radians of sun orbit around erth =) */
92 gama = 2.0 * M_PI * ((double)(day_of_year - 1) / 365.0);
93
94 /* get the diff betwen suns clock and wall clock in minutes */
95 eqtime = 229.18 * (0.000075 + 0.001868 * cos (gama)
96 - 0.032077 * sin (gama) - 0.014615 * cos (2.0 * gama)
97 - 0.040849 * sin (2.0 * gama));
98
99 /* calculate suns declanation at the equater in radians */
100 decl = 0.006918 - 0.399912 * cos (gama) + 0.070257 * sin (gama)
101 - 0.006758 * cos (2.0 * gama) + 0.000907 * sin (2.0 * gama)
102 - 0.002697 * cos (3.0 * gama) + 0.00148 * sin (3.0 * gama);
103
104 /* we use radians, ratio is 2pi/360 */
105 latitude = M_PI * latitude / 180.0;
106
107 /* the sun real time diff from noon at sunset/rise in radians */
108 errno = 0;
109 ha = acos (cos (sunrise_angle) / (cos (latitude) * cos (decl)) - tan (latitude) * tan (decl));
110
111 /* check for too high altitudes and return negative values */
112 if (errno == EDOM)
113 {
114 *sunrise = -720;
115 *sunset = -720;
116
117 return;
118 }
119
120 /* we use minutes, ratio is 1440min/2pi */
121 ha = 720.0 * ha / M_PI;
122
123 /* get sunset/rise times in utc wall clock in minutes from 00:00 time */
124 *sunrise = (int)(720.0 - 4.0 * longitude - ha - eqtime);
125 *sunset = (int)(720.0 - 4.0 * longitude + ha - eqtime);
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 sunrise return the utc sunrise in minutes
139 @parm sunset return the utc sunset in minutes
140 */
141 void
142 hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)
143 {
144 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 90.833, sunrise, sunset);
145
146 return;
147 }
148
149 /**
150 @brief utc sunrise/set time for a gregorian date
151
152 @parm day this day of month
153 @parm month this month
154 @parm year this year
155 @parm longitude longitude to use in calculations
156 @parm latitude latitude to use in calculations
157 @parm sun_hour return the length of shaa zaminit in minutes
158 @parm first_light return the utc alut ha-shachar in minutes
159 @parm talit return the utc tphilin and talit in minutes
160 @parm sunrise return the utc sunrise in minutes
161 @parm midday return the utc midday in minutes
162 @parm sunset return the utc sunset in minutes
163 @parm first_stars return the utc tzeit hacochavim in minutes
164 @parm three_stars return the utc shlosha cochavim in minutes
165 */
166 void
167 hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude,
168 int *sun_hour, int *first_light, int *talit, int *sunrise,
169 int *midday, int *sunset, int *first_stars, int *three_stars)
170 {
171 int place_holder;
172
173 /* sunset and rise time */
174 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 90.833, sunrise, sunset);
175
176 /* shaa zmanit by gara, 1/12 of light time */
177 *sun_hour = (*sunset - *sunrise) / 12;
178 *midday = (*sunset + *sunrise) / 2;
179
180 /* get times of the different sun angles */
181 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 106.01, first_light, &place_holder);
182 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 101.0, talit, &place_holder);
183 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 96.0, &place_holder, first_stars);
184 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 98.5, &place_holder, three_stars);
185
186 return;
187 }
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 2011-2012 Boruch Baum <boruch-baum@users.sourceforge.net>
3 * 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
4 * 1984-2003 Amos Shapir
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 3 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 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, see <http://www.gnu.org/licenses/>.
18 */
19
20 /** @file hdatepp.h
21 @brief libhdate C++ language header.
22
23 libhdate - Hebrew calendar library, the C++ language header file.
24 */
25
26 #ifndef __HDATE_PP_H__
27 #define __HDATE_PP_H__
28
29 #include <hdate.h>
30
31 /**
32 @brief the libhdate namespace.
33 */
34 namespace hdate
35 {
36
37 /**
38 @brief Hdate class.
39
40 class for Hebrew/Gregorian date conversions
41 */
42 class Hdate
43 {
44
45 public:
46 ////////////////////////////////////////
47 ////////////////////////////////////////
48
49 /**
50 @brief Hdate constructor.
51 */
52 Hdate()
53 {
54 /* default is this day */
55 h = new_hdate();
56
57 /* default is in israel */
58 diaspora = HDATE_ISRAEL_FLAG;
59
60 /* default localeconv is Tel-Aviv winter time */
61 latitude = 32.0;
62 longitude = -34.0;
63 tz = 2;
64 }
65
66 /**
67 @brief Hdate destructor.
68 */
69 ~Hdate()
70 {
71 delete_hdate(h);
72 }
73
74 ////////////////////////////////////////
75 ////////////////////////////////////////
76
77 /**
78 @brief compute date structure from the Gregorian date
79
80 @param d Day of month 1..31
81 @param m Month 1..12 , if m or d is 0 return current date.
82 @param y Year in 4 digits e.g. 2001
83 */
84 void
85 set_gdate (int d, int m, int y)
86 {
87 hdate_set_gdate (h, d, m, y);
88 }
89
90 /**
91 @brief compute date structure from the Hebrew date
92
93 @param d Day of month 1..31
94 @param m Month 1..14 , if m or d is 0 return current date.
95 @param y Year in 4 digits e.g. 5731
96 */
97 void
98 set_hdate (int d, int m, int y)
99 {
100 hdate_set_hdate (h, d, m, y);
101 }
102
103 /**
104 @brief compute date structure from the Julian day
105
106 @param jd the julian day number.
107 */
108 void
109 set_jd (int jd)
110 {
111 hdate_set_jd (h, jd);
112 }
113
114 ////////////////////////////////////////
115 ////////////////////////////////////////
116
117 /**
118 @brief Return a string, with the hebrew date.
119
120 @return NULL pointer upon failure or, upon success, a pointer to a
121 string containing the short ( e.g. "1 Tishrey" ) or long (e.g. "Tuesday
122 18 Tishrey 5763 Hol hamoed Sukot" ) formated date. You must free() the
123 pointer after use.
124
125 @param h The hdate_struct of the date to print.
126 @param diaspora if true give diaspora holydays
127 @param short_format A short flag (true - returns a short string, false returns a long string).
128
129 @warning This was originally written using a local static string,
130 calling for output to be copied away.
131
132 */
133 char *
134 get_format_date (int s)
135 {
136 return hdate_get_format_date (h, diaspora, s);
137 }
138
139 /**
140 @brief Return a static string, with name of week day.
141
142 @param day_of_week The number of the day 1..7 (1 - sun).
143 @param short_form A short flag (true - sun; false - sunday).
144 @warning DEPRECATION: This function is now just a wrapper for
145 hdate_string, and is subject to deprecation.
146 [deprecation date 2011-12-28]
147 */
148 char *
149 get_day_of_week_string (int short_form)
150 {
151 //return hdate_get_day_string (h->hd_dw, s);
152 return hdate_string( HDATE_STRING_HMONTH, h->hd_dw, short_form, HDATE_STRING_LOCAL);
153 }
154
155 /**
156 @brief Return a static string, with name of month.
157
158 @param month The number of the month 1..12 (1 - jan).
159 @param short_form A short flag.
160 @warning DEPRECATION: This function is now just a wrapper for
161 hdate_string, and is subject to deprecation.
162 [deprecation date 2011-12-28]
163 */
164 char *
165 get_month_string (int short_form)
166 {
167 //return hdate_get_month_string (h->gd_mon, s);
168 return hdate_string( HDATE_STRING_GMONTH, h->gd_mon, short_form, HDATE_STRING_LOCAL);
169 }
170
171 /**
172 @brief Return a static string, with name of hebrew month.
173
174 @param month The number of the month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
175 @param short_form A short flag.
176 @warning DEPRECATION: This function is now just a wrapper for
177 hdate_string, and is subject to deprecation.
178 [deprecation date 2011-12-28]
179 */
180 char *
181 get_hebrew_month_string (int short_form)
182 {
183 //return hdate_get_hebrew_month_string (h->hd_mon, s);
184 return hdate_string( HDATE_STRING_HMONTH, h->hd_mon, short_form, HDATE_STRING_LOCAL);
185 }
186
187 /**
188 @brief Name of hebrew holiday.
189
190 @param holiday The holiday number.
191 @param short_text A short flag. 0=true, !0=false
192 @warning DEPRECATION: This function is now just a wrapper for
193 hdate_string, and is subject to deprecation.
194 [deprecation date 2011-12-28]
195 */
196 char *
197 get_holyday_string (int s)
198 {
199 int holiday;
200
201 holiday = hdate_get_holyday (h, diaspora);
202 //return hdate_get_holyday_string (holyday, s);
203 return hdate_string( HDATE_STRING_HOLIDAY, holiday, HDATE_STRING_LONG, HDATE_STRING_LOCAL);
204
205 }
206
207 /**
208 @brief get the day of the omer
209
210 @return return The day in the omer, starting from 1 (or 0 if not in sfirat ha omer)
211 */
212 int
213 get_omer_day ()
214 {
215 return hdate_get_omer_day (h);
216 }
217
218 /**
219 @brief get the hebrew holiday type.
220
221 @return the holiday type
222 */
223 int
224 get_holyday_type ()
225 {
226 int holyday;
227
228 holyday = hdate_get_holyday (h, diaspora);
229 return hdate_get_holyday_type (holyday);
230 }
231
232 /**
233 @brief Name of Parasha
234
235 @param parasha The Number of Parasha 1-Bereshit
236 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
237 @param short_form A short flag. 0=true, !0 = false
238 @warning DEPRECATION: This function is now just a wrapper for
239 hdate_string, and is subject to deprecation.
240 [deprecation date 2011-12-28]
241 */
242 char *
243 get_parasha_string (int s)
244 {
245 int parasha;
246
247 parasha = hdate_get_parasha (h, diaspora);
248 //return hdate_get_parasha_string (parasha, s);
249 return hdate_string( HDATE_STRING_PARASHA, parasha, HDATE_STRING_LONG, HDATE_STRING_LOCAL);
250
251 }
252
253 /**
254 @brief get name hebrew year.
255
256 @param n The int to convert ( 0 < n < 11000)
257 @return a string of the hebrew number UTF-8 (logical)
258 @warning DEPRECATION: This function is now just a wrapper for
259 hdate_string, and is subject to deprecation.
260 Callers to this function must free() after using the memory
261 pointed to by the return value.
262 The original function outputted to a local static string,
263 and suggested that the caller copied it away.
264 [deprecation date 2011-12-28]
265 */
266 char *
267 get_hebrew_year_string ()
268 {
269 //return hdate_get_int_string (h->hd_year);
270 return hdate_string( HDATE_STRING_INT, h->hd_year, HDATE_STRING_LONG, HDATE_STRING_LOCAL);
271
272 }
273
274 /**
275 @brief get name hebrew hebrew day of the month
276
277 @param n The int to convert ( 0 < n < 11000)
278 @return a string of the hebrew number UTF-8 (logical)
279 @warning DEPRECATION: This function is now just a wrapper for
280 hdate_string, and is subject to deprecation.
281 Callers to this function must free() after using the memory
282 pointed to by the return value.
283 The original function outputted to a local static string,
284 and suggested that the caller copied it away.
285 [deprecation date 2011-12-28]
286
287 */
288 char *
289 get_hebrew_day_string ()
290 {
291 // return hdate_get_int_string (h->hd_day);
292 return hdate_string( HDATE_STRING_HMONTH, h->hd_day, HDATE_STRING_LONG, HDATE_STRING_LOCAL);
293 }
294
295 /**
296 @brief Return string values for hdate information
297 @return a pointer to a string containing the information. In the cases
298 integers and omer, the strings will NOT be static, and the
299 caller must free() them after use. Returns a null pointer
300 upon failure.
301 @param type_of_string 0 = integer, 1 = day of week, 2 = parshaot,
302 3 = hmonth, 4 = gmonth, 5 = holiday, 6 = omer
303 @param index integer ( 0 < n < 11000)
304 day of week ( 0 < n < 8 )
305 parshaot ( 0 , n < 62 )
306 hmonth ( 0 < n < 15 )
307 gmonth ( 0 < n < 13 )
308 holiday ( 0 < n < 37 )
309 omer ( 0 < n < 50 )
310 @param short_form 0 = short format
311 @param hebrew_form 0 = not hebrew (native/embedded)
312 */
313 char* get_string()
314 {
315 return hdate_string( type_of_string, index, short_form, hebrew_form);
316 }
317 ////////////////////////////////////////
318 ////////////////////////////////////////
319
320 /**
321 @brief get parash number
322
323 @return the hebrew parasha number
324 */
325 int
326 get_parasha ()
327 {
328 return hdate_get_parasha (h, diaspora);
329 }
330
331 /**
332 @brief get holiday number
333 @return the hebrew holiday number
334 */
335 int
336 get_holyday ()
337 {
338 return hdate_get_holyday (h, diaspora);
339 }
340
341 /**
342 @brief get Gregorian day of the month
343
344 @return the Gregorian day of the month
345 */
346 int
347 get_gday ()
348 {
349 return hdate_get_gday (h);
350 }
351
352 /**
353 @brief get Gregorian month
354
355 @return the Gregorian month
356 */
357 int
358 get_gmonth ()
359 {
360 return hdate_get_gmonth (h);
361 }
362
363 /**
364 @brief get Gregorian year
365
366 @return the Gregorian year
367 */
368 int
369 get_gyear ()
370 {
371 return hdate_get_gyear (h);
372 }
373
374 /**
375 @brief get Hebrew day of the month
376
377 @return the Hebrew day of the month
378 */
379 int
380 get_hday ()
381 {
382 return hdate_get_hday (h);
383 }
384
385 /**
386 @brief get Hebrew month
387
388 @return the Hebrew month
389 */
390 int
391 get_hmonth ()
392 {
393 return hdate_get_hmonth (h);
394 }
395
396 /**
397 @brief get Hebrew year
398
399 @return the Hebrew year
400 */
401 int
402 get_hyear ()
403 {
404 return hdate_get_hyear (h);
405 }
406
407 /**
408 @brief get the day of the week
409
410 @return the day of the week
411 */
412 int
413 get_day_of_the_week ()
414 {
415 return hdate_get_day_of_the_week (h);
416 }
417
418 /**
419 @brief get the size of the Hebrew year in days
420
421 @return the size of the Hebrew year in days
422 */
423 int
424 get_size_of_year ()
425 {
426 return hdate_get_size_of_year (h);
427 }
428
429 /**
430 @brief get the day of the week of hebrew new years
431
432 @return the day of the week of hebrew new years
433 */
434 int
435 get_new_year_day_of_the_week ()
436 {
437 return hdate_get_new_year_day_of_the_week (h);
438 }
439
440 /**
441 @brief get the Julian day number
442
443 @return the Julian day number
444 */
445 int
446 get_julian ()
447 {
448 return hdate_get_julian (h);
449 }
450
451 /**
452 @brief get the number of days sice Tishrey I
453
454 @return the the number of days sice Tishrey I
455 */
456 int
457 get_days ()
458 {
459 return hdate_get_days (h);
460 }
461
462 /**
463 @brief get the number of weeks sice Tishrey I
464
465 @return the the number of weeks sice Tishrey I
466 */
467 int
468 get_weeks ()
469 {
470 return hdate_get_weeks (h);
471 }
472
473 ////////////////////////////////////////
474 ////////////////////////////////////////
475
476 /**
477 @brief set location
478
479 @param in_longitude longitude to use in calculations
480 degrees, negative values are east
481 @param in_latitude latitude to use in calculations
482 degrees, negative values are south
483 @param in_tz time zone
484 */
485 void
486 set_location (double in_latitude, double in_longitude, int in_tz)
487 {
488 latitude = in_latitude;
489 longitude = in_longitude;
490 tz = in_tz;
491 }
492
493 /**
494 @brief sunrise time
495
496 @return sunrise in minutes after midnight (00:00)
497 */
498 int
499 get_sunrise ()
500 {
501 int sunrise;
502 int sunset;
503
504 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
505 latitude, longitude,
506 &sunrise, &sunset);
507
508 return sunrise + tz * 60;
509 }
510
511 /**
512 @brief sunset time
513
514 @return sunset in minutes after midnight (00:00)
515 */
516 int
517 get_sunset ()
518 {
519 int sunrise;
520 int sunset;
521
522 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
523 latitude, longitude,
524 &sunrise, &sunset);
525
526 return sunset + tz * 60;
527 }
528
529 /**
530 @brief first light time
531
532 @return first light in minutes after midnight (00:00)
533 */
534 int
535 get_first_light ()
536 {
537 int sunrise;
538 int sunset;
539
540 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
541 latitude, longitude, 106.01,
542 &sunrise, &sunset);
543
544 return sunrise + tz * 60;
545 }
546
547 /**
548 @brief talit time
549
550 @return talit time in minutes after midnight (00:00)
551 */
552 int
553 get_talit ()
554 {
555 int sunrise;
556 int sunset;
557
558 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
559 latitude, longitude, 101.0,
560 &sunrise, &sunset);
561
562 return sunrise + tz * 60;
563 }
564
565 /**
566 @brief first stars time
567
568 @return first stars in minutes after midnight (00:00)
569 */
570 int
571 get_first_stars ()
572 {
573 int sunrise;
574 int sunset;
575
576 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
577 latitude, longitude, 96.0,
578 &sunrise, &sunset);
579
580 return sunset + tz * 60;
581 }
582
583 /**
584 @brief three stars time
585
586 @return three stars in minutes after midnight (00:00)
587 */
588 int
589 get_three_stars ()
590 {
591 int sunrise;
592 int sunset;
593
594 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
595 latitude, longitude, 98.5,
596 &sunrise, &sunset);
597
598 return sunset + tz * 60;
599 }
600
601 /**
602 @brief sun light hour time
603
604 @return sun light hour in minutes
605 */
606 int
607 get_sun_hour ()
608 {
609 int sunrise;
610 int sunset;
611
612 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
613 latitude, longitude,
614 &sunrise, &sunset);
615
616 return (sunset - sunrise) / 12;
617 }
618
619 /**
620 @brief midday hour time
621
622 @return midday hour in minutes
623 */
624 int
625 get_midday ()
626 {
627 int sunrise;
628 int sunset;
629
630 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
631 latitude, longitude,
632 &sunrise, &sunset);
633
634 return (sunset + sunrise) / 2;
635 }
636
637 ////////////////////////////////////////
638 ////////////////////////////////////////
639
640 /**
641 @brief name of translator
642
643 @return a static string with name of translator, or NULL if none
644 */
645 char *
646 get_translator_string ()
647 {
648 return hdate_get_translator_string ();
649 }
650
651 /**
652 @brief set this hdate object to use diaspora holidays and dates
653 */
654 void
655 set_diaspora ()
656 {
657 diaspora = HDATE_DIASPORA_FLAG;
658 }
659
660 /**
661 @brief set this hdate object to use israel holidays and dates
662 */
663 void
664 set_israel ()
665 {
666 diaspora = HDATE_ISRAEL_FLAG;
667 }
668
669 private:
670
671 int diaspora;
672 double latitude;
673 double longitude;
674 int tz;
675 hdate_struct *h;
676 int type_of_string;
677 int index;
678 int short_form;
679 int hebrew_form;
680
681 };
682 }
683 // name space
684
685 #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