blob: 5c2c0c043e1ed05f5a30068d224e5e3b628f35d4 [file] [log] [blame]
Stewart Smithb2bcc832015-08-20 13:38:33 +10001From c99b7d366a5e11414befbe653af3bc4b642aede8 Mon Sep 17 00:00:00 2001
2From: Jeremy Kerr <jk@ozlabs.org>
3Date: Fri, 12 Dec 2014 09:35:40 +0800
4Subject: [PATCH] autotools: Add autopoint-generated files
5
6Since buildroot doesn't give us an autopoint, we're unable to regenerate
7these files. Add the autopoint artefacts required to do an autoreconf
8without autopoint.
9
10Generated with:
11
12 touch .stamp
13 autopoint
14 find . -type f -newer stamp | xargs git add
15
16Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
17---
18 ABOUT-NLS | 1282 ++++++++++++++++++++++++++++++++++++++++++++++++
19 config.rpath | 672 +++++++++++++++++++++++++
20 m4/codeset.m4 | 21 +
21 m4/fcntl-o.m4 | 81 +++
22 m4/gettext.m4 | 383 +++++++++++++++
23 m4/glibc2.m4 | 30 ++
24 m4/glibc21.m4 | 30 ++
25 m4/iconv.m4 | 214 ++++++++
26 m4/intdiv0.m4 | 84 ++++
27 m4/intl.m4 | 294 +++++++++++
28 m4/intldir.m4 | 19 +
29 m4/intlmacosx.m4 | 51 ++
30 m4/intmax.m4 | 33 ++
31 m4/inttypes-pri.m4 | 36 ++
32 m4/inttypes_h.m4 | 26 +
33 m4/lcmessage.m4 | 31 ++
34 m4/lib-ld.m4 | 110 +++++
35 m4/lib-link.m4 | 774 +++++++++++++++++++++++++++++
36 m4/lib-prefix.m4 | 224 +++++++++
37 m4/lock.m4 | 37 ++
38 m4/longlong.m4 | 106 ++++
39 m4/nls.m4 | 32 ++
40 m4/po.m4 | 449 +++++++++++++++++
41 m4/printf-posix.m4 | 45 ++
42 m4/progtest.m4 | 92 ++++
43 m4/size_max.m4 | 75 +++
44 m4/stdint_h.m4 | 26 +
45 m4/threadlib.m4 | 347 +++++++++++++
46 m4/uintmax_t.m4 | 30 ++
47 m4/visibility.m4 | 74 +++
48 m4/wchar_t.m4 | 20 +
49 m4/wint_t.m4 | 28 ++
50 m4/xsize.m4 | 13 +
51 po/Makefile.in.in | 444 +++++++++++++++++
52 po/Makevars.template | 41 ++
53 po/Rules-quot | 47 ++
54 po/boldquot.sed | 10 +
55 po/en@boldquot.header | 25 +
56 po/en@quot.header | 22 +
57 po/insert-header.sin | 23 +
58 po/quot.sed | 6 +
59 po/remove-potcdate.sin | 19 +
60 42 files changed, 6406 insertions(+)
61 create mode 100644 ABOUT-NLS
62 create mode 100755 config.rpath
63 create mode 100644 m4/codeset.m4
64 create mode 100644 m4/fcntl-o.m4
65 create mode 100644 m4/gettext.m4
66 create mode 100644 m4/glibc2.m4
67 create mode 100644 m4/glibc21.m4
68 create mode 100644 m4/iconv.m4
69 create mode 100644 m4/intdiv0.m4
70 create mode 100644 m4/intl.m4
71 create mode 100644 m4/intldir.m4
72 create mode 100644 m4/intlmacosx.m4
73 create mode 100644 m4/intmax.m4
74 create mode 100644 m4/inttypes-pri.m4
75 create mode 100644 m4/inttypes_h.m4
76 create mode 100644 m4/lcmessage.m4
77 create mode 100644 m4/lib-ld.m4
78 create mode 100644 m4/lib-link.m4
79 create mode 100644 m4/lib-prefix.m4
80 create mode 100644 m4/lock.m4
81 create mode 100644 m4/longlong.m4
82 create mode 100644 m4/nls.m4
83 create mode 100644 m4/po.m4
84 create mode 100644 m4/printf-posix.m4
85 create mode 100644 m4/progtest.m4
86 create mode 100644 m4/size_max.m4
87 create mode 100644 m4/stdint_h.m4
88 create mode 100644 m4/threadlib.m4
89 create mode 100644 m4/uintmax_t.m4
90 create mode 100644 m4/visibility.m4
91 create mode 100644 m4/wchar_t.m4
92 create mode 100644 m4/wint_t.m4
93 create mode 100644 m4/xsize.m4
94 create mode 100644 po/Makefile.in.in
95 create mode 100644 po/Makevars.template
96 create mode 100644 po/Rules-quot
97 create mode 100644 po/boldquot.sed
98 create mode 100644 po/en@boldquot.header
99 create mode 100644 po/en@quot.header
100 create mode 100644 po/insert-header.sin
101 create mode 100644 po/quot.sed
102 create mode 100644 po/remove-potcdate.sin
103
104diff --git a/ABOUT-NLS b/ABOUT-NLS
105new file mode 100644
106index 0000000..b1de1b6
107--- /dev/null
108+++ b/ABOUT-NLS
109@@ -0,0 +1,1282 @@
110+1 Notes on the Free Translation Project
111+***************************************
112+
113+Free software is going international! The Free Translation Project is
114+a way to get maintainers of free software, translators, and users all
115+together, so that free software will gradually become able to speak many
116+languages. A few packages already provide translations for their
117+messages.
118+
119+ If you found this `ABOUT-NLS' file inside a distribution, you may
120+assume that the distributed package does use GNU `gettext' internally,
121+itself available at your nearest GNU archive site. But you do _not_
122+need to install GNU `gettext' prior to configuring, installing or using
123+this package with messages translated.
124+
125+ Installers will find here some useful hints. These notes also
126+explain how users should proceed for getting the programs to use the
127+available translations. They tell how people wanting to contribute and
128+work on translations can contact the appropriate team.
129+
130+1.1 INSTALL Matters
131+===================
132+
133+Some packages are "localizable" when properly installed; the programs
134+they contain can be made to speak your own native language. Most such
135+packages use GNU `gettext'. Other packages have their own ways to
136+internationalization, predating GNU `gettext'.
137+
138+ By default, this package will be installed to allow translation of
139+messages. It will automatically detect whether the system already
140+provides the GNU `gettext' functions. Installers may use special
141+options at configuration time for changing the default behaviour. The
142+command:
143+
144+ ./configure --disable-nls
145+
146+will _totally_ disable translation of messages.
147+
148+ When you already have GNU `gettext' installed on your system and run
149+configure without an option for your new package, `configure' will
150+probably detect the previously built and installed `libintl' library
151+and will decide to use it. If not, you may have to to use the
152+`--with-libintl-prefix' option to tell `configure' where to look for it.
153+
154+ Internationalized packages usually have many `po/LL.po' files, where
155+LL gives an ISO 639 two-letter code identifying the language. Unless
156+translations have been forbidden at `configure' time by using the
157+`--disable-nls' switch, all available translations are installed
158+together with the package. However, the environment variable `LINGUAS'
159+may be set, prior to configuration, to limit the installed set.
160+`LINGUAS' should then contain a space separated list of two-letter
161+codes, stating which languages are allowed.
162+
163+1.2 Using This Package
164+======================
165+
166+As a user, if your language has been installed for this package, you
167+only have to set the `LANG' environment variable to the appropriate
168+`LL_CC' combination. If you happen to have the `LC_ALL' or some other
169+`LC_xxx' environment variables set, you should unset them before
170+setting `LANG', otherwise the setting of `LANG' will not have the
171+desired effect. Here `LL' is an ISO 639 two-letter language code, and
172+`CC' is an ISO 3166 two-letter country code. For example, let's
173+suppose that you speak German and live in Germany. At the shell
174+prompt, merely execute `setenv LANG de_DE' (in `csh'),
175+`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
176+This can be done from your `.login' or `.profile' file, once and for
177+all.
178+
179+ You might think that the country code specification is redundant.
180+But in fact, some languages have dialects in different countries. For
181+example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
182+country code serves to distinguish the dialects.
183+
184+ The locale naming convention of `LL_CC', with `LL' denoting the
185+language and `CC' denoting the country, is the one use on systems based
186+on GNU libc. On other systems, some variations of this scheme are
187+used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
188+locales supported by your system for your language by running the
189+command `locale -a | grep '^LL''.
190+
191+ Not all programs have translations for all languages. By default, an
192+English message is shown in place of a nonexistent translation. If you
193+understand other languages, you can set up a priority list of languages.
194+This is done through a different environment variable, called
195+`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
196+for the purpose of message handling, but you still need to have `LANG'
197+set to the primary language; this is required by other parts of the
198+system libraries. For example, some Swedish users who would rather
199+read translations in German than English for when Swedish is not
200+available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
201+
202+ Special advice for Norwegian users: The language code for Norwegian
203+bokma*l changed from `no' to `nb' recently (in 2003). During the
204+transition period, while some message catalogs for this language are
205+installed under `nb' and some older ones under `no', it's recommended
206+for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
207+older translations are used.
208+
209+ In the `LANGUAGE' environment variable, but not in the `LANG'
210+environment variable, `LL_CC' combinations can be abbreviated as `LL'
211+to denote the language's main dialect. For example, `de' is equivalent
212+to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
213+(Portuguese as spoken in Portugal) in this context.
214+
215+1.3 Translating Teams
216+=====================
217+
218+For the Free Translation Project to be a success, we need interested
219+people who like their own language and write it well, and who are also
220+able to synergize with other translators speaking the same language.
221+Each translation team has its own mailing list. The up-to-date list of
222+teams can be found at the Free Translation Project's homepage,
223+`http://translationproject.org/', in the "Teams" area.
224+
225+ If you'd like to volunteer to _work_ at translating messages, you
226+should become a member of the translating team for your own language.
227+The subscribing address is _not_ the same as the list itself, it has
228+`-request' appended. For example, speakers of Swedish can send a
229+message to `sv-request@li.org', having this message body:
230+
231+ subscribe
232+
233+ Keep in mind that team members are expected to participate
234+_actively_ in translations, or at solving translational difficulties,
235+rather than merely lurking around. If your team does not exist yet and
236+you want to start one, or if you are unsure about what to do or how to
237+get started, please write to `coordinator@translationproject.org' to
238+reach the coordinator for all translator teams.
239+
240+ The English team is special. It works at improving and uniformizing
241+the terminology in use. Proven linguistic skills are praised more than
242+programming skills, here.
243+
244+1.4 Available Packages
245+======================
246+
247+Languages are not equally supported in all packages. The following
248+matrix shows the current state of internationalization, as of June
249+2010. The matrix shows, in regard of each package, for which languages
250+PO files have been submitted to translation coordination, with a
251+translation percentage of at least 50%.
252+
253+ Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca
254+ +--------------------------------------------------+
255+ a2ps | [] [] |
256+ aegis | |
257+ ant-phone | |
258+ anubis | |
259+ aspell | [] [] |
260+ bash | |
261+ bfd | |
262+ bibshelf | [] |
263+ binutils | |
264+ bison | |
265+ bison-runtime | [] |
266+ bluez-pin | [] [] |
267+ bombono-dvd | |
268+ buzztard | |
269+ cflow | |
270+ clisp | |
271+ coreutils | [] [] |
272+ cpio | |
273+ cppi | |
274+ cpplib | [] |
275+ cryptsetup | |
276+ dfarc | |
277+ dialog | [] [] |
278+ dico | |
279+ diffutils | [] |
280+ dink | |
281+ doodle | |
282+ e2fsprogs | [] |
283+ enscript | [] |
284+ exif | |
285+ fetchmail | [] |
286+ findutils | [] |
287+ flex | [] |
288+ freedink | |
289+ gas | |
290+ gawk | [] [] |
291+ gcal | [] |
292+ gcc | |
293+ gettext-examples | [] [] [] [] |
294+ gettext-runtime | [] [] |
295+ gettext-tools | [] [] |
296+ gip | [] |
297+ gjay | |
298+ gliv | [] |
299+ glunarclock | [] [] |
300+ gnubiff | |
301+ gnucash | [] |
302+ gnuedu | |
303+ gnulib | |
304+ gnunet | |
305+ gnunet-gtk | |
306+ gnutls | |
307+ gold | |
308+ gpe-aerial | |
309+ gpe-beam | |
310+ gpe-bluetooth | |
311+ gpe-calendar | |
312+ gpe-clock | [] |
313+ gpe-conf | |
314+ gpe-contacts | |
315+ gpe-edit | |
316+ gpe-filemanager | |
317+ gpe-go | |
318+ gpe-login | |
319+ gpe-ownerinfo | [] |
320+ gpe-package | |
321+ gpe-sketchbook | |
322+ gpe-su | [] |
323+ gpe-taskmanager | [] |
324+ gpe-timesheet | [] |
325+ gpe-today | [] |
326+ gpe-todo | |
327+ gphoto2 | |
328+ gprof | [] |
329+ gpsdrive | |
330+ gramadoir | |
331+ grep | |
332+ grub | [] [] |
333+ gsasl | |
334+ gss | |
335+ gst-plugins-bad | [] |
336+ gst-plugins-base | [] |
337+ gst-plugins-good | [] |
338+ gst-plugins-ugly | [] |
339+ gstreamer | [] [] [] |
340+ gtick | |
341+ gtkam | [] |
342+ gtkorphan | [] |
343+ gtkspell | [] [] [] |
344+ gutenprint | |
345+ hello | [] |
346+ help2man | |
347+ hylafax | |
348+ idutils | |
349+ indent | [] [] |
350+ iso_15924 | |
351+ iso_3166 | [] [] [] [] [] [] [] |
352+ iso_3166_2 | |
353+ iso_4217 | |
354+ iso_639 | [] [] [] [] |
355+ iso_639_3 | |
356+ jwhois | |
357+ kbd | |
358+ keytouch | [] |
359+ keytouch-editor | |
360+ keytouch-keyboa... | [] |
361+ klavaro | [] |
362+ latrine | |
363+ ld | [] |
364+ leafpad | [] [] |
365+ libc | [] [] |
366+ libexif | () |
367+ libextractor | |
368+ libgnutls | |
369+ libgpewidget | |
370+ libgpg-error | |
371+ libgphoto2 | |
372+ libgphoto2_port | |
373+ libgsasl | |
374+ libiconv | [] |
375+ libidn | |
376+ lifelines | |
377+ liferea | [] [] |
378+ lilypond | |
379+ linkdr | [] |
380+ lordsawar | |
381+ lprng | |
382+ lynx | [] |
383+ m4 | |
384+ mailfromd | |
385+ mailutils | |
386+ make | |
387+ man-db | |
388+ man-db-manpages | |
389+ minicom | |
390+ mkisofs | |
391+ myserver | |
392+ nano | [] [] |
393+ opcodes | |
394+ parted | |
395+ pies | |
396+ popt | |
397+ psmisc | |
398+ pspp | [] |
399+ pwdutils | |
400+ radius | [] |
401+ recode | [] [] |
402+ rosegarden | |
403+ rpm | |
404+ rush | |
405+ sarg | |
406+ screem | |
407+ scrollkeeper | [] [] [] |
408+ sed | [] [] |
409+ sharutils | [] [] |
410+ shishi | |
411+ skencil | |
412+ solfege | |
413+ solfege-manual | |
414+ soundtracker | |
415+ sp | |
416+ sysstat | |
417+ tar | [] |
418+ texinfo | |
419+ tin | |
420+ unicode-han-tra... | |
421+ unicode-transla... | |
422+ util-linux-ng | [] |
423+ vice | |
424+ vmm | |
425+ vorbis-tools | |
426+ wastesedge | |
427+ wdiff | |
428+ wget | [] [] |
429+ wyslij-po | |
430+ xchat | [] [] [] [] |
431+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] |
432+ xkeyboard-config | [] [] |
433+ +--------------------------------------------------+
434+ af am an ar as ast az be be@latin bg bn_IN bs ca
435+ 6 0 1 2 3 19 1 10 3 28 3 1 38
436+
437+ crh cs da de el en en_GB en_ZA eo es et eu fa
438+ +-------------------------------------------------+
439+ a2ps | [] [] [] [] [] [] [] |
440+ aegis | [] [] [] |
441+ ant-phone | [] () |
442+ anubis | [] [] |
443+ aspell | [] [] [] [] [] |
444+ bash | [] [] [] |
445+ bfd | [] |
446+ bibshelf | [] [] [] |
447+ binutils | [] |
448+ bison | [] [] |
449+ bison-runtime | [] [] [] [] |
450+ bluez-pin | [] [] [] [] [] [] |
451+ bombono-dvd | [] |
452+ buzztard | [] [] [] |
453+ cflow | [] [] |
454+ clisp | [] [] [] [] |
455+ coreutils | [] [] [] [] |
456+ cpio | |
457+ cppi | |
458+ cpplib | [] [] [] |
459+ cryptsetup | [] |
460+ dfarc | [] [] [] |
461+ dialog | [] [] [] [] [] |
462+ dico | |
463+ diffutils | [] [] [] [] [] [] |
464+ dink | [] [] [] |
465+ doodle | [] |
466+ e2fsprogs | [] [] [] |
467+ enscript | [] [] [] |
468+ exif | () [] [] |
469+ fetchmail | [] [] () [] [] [] |
470+ findutils | [] [] [] |
471+ flex | [] [] |
472+ freedink | [] [] [] |
473+ gas | [] |
474+ gawk | [] [] [] |
475+ gcal | [] |
476+ gcc | [] [] |
477+ gettext-examples | [] [] [] [] |
478+ gettext-runtime | [] [] [] [] |
479+ gettext-tools | [] [] [] |
480+ gip | [] [] [] [] |
481+ gjay | [] |
482+ gliv | [] [] [] |
483+ glunarclock | [] [] |
484+ gnubiff | () |
485+ gnucash | [] () () () () |
486+ gnuedu | [] [] |
487+ gnulib | [] [] |
488+ gnunet | |
489+ gnunet-gtk | [] |
490+ gnutls | [] [] |
491+ gold | [] |
492+ gpe-aerial | [] [] [] [] |
493+ gpe-beam | [] [] [] [] |
494+ gpe-bluetooth | [] [] |
495+ gpe-calendar | [] |
496+ gpe-clock | [] [] [] [] |
497+ gpe-conf | [] [] [] |
498+ gpe-contacts | [] [] [] |
499+ gpe-edit | [] [] |
500+ gpe-filemanager | [] [] [] |
501+ gpe-go | [] [] [] [] |
502+ gpe-login | [] [] |
503+ gpe-ownerinfo | [] [] [] [] |
504+ gpe-package | [] [] [] |
505+ gpe-sketchbook | [] [] [] [] |
506+ gpe-su | [] [] [] [] |
507+ gpe-taskmanager | [] [] [] [] |
508+ gpe-timesheet | [] [] [] [] |
509+ gpe-today | [] [] [] [] |
510+ gpe-todo | [] [] [] |
511+ gphoto2 | [] [] () [] [] [] |
512+ gprof | [] [] [] |
513+ gpsdrive | [] [] [] |
514+ gramadoir | [] [] [] |
515+ grep | [] |
516+ grub | [] [] |
517+ gsasl | [] |
518+ gss | |
519+ gst-plugins-bad | [] [] [] [] [] |
520+ gst-plugins-base | [] [] [] [] [] |
521+ gst-plugins-good | [] [] [] [] [] [] |
522+ gst-plugins-ugly | [] [] [] [] [] [] |
523+ gstreamer | [] [] [] [] [] |
524+ gtick | [] () [] |
525+ gtkam | [] [] () [] [] |
526+ gtkorphan | [] [] [] [] |
527+ gtkspell | [] [] [] [] [] [] [] |
528+ gutenprint | [] [] [] |
529+ hello | [] [] [] [] |
530+ help2man | [] |
531+ hylafax | [] [] |
532+ idutils | [] [] |
533+ indent | [] [] [] [] [] [] [] |
534+ iso_15924 | [] () [] [] |
535+ iso_3166 | [] [] [] [] () [] [] [] () |
536+ iso_3166_2 | () |
537+ iso_4217 | [] [] [] () [] [] |
538+ iso_639 | [] [] [] [] () [] [] |
539+ iso_639_3 | [] |
540+ jwhois | [] |
541+ kbd | [] [] [] [] [] |
542+ keytouch | [] [] |
543+ keytouch-editor | [] [] |
544+ keytouch-keyboa... | [] |
545+ klavaro | [] [] [] [] |
546+ latrine | [] () |
547+ ld | [] [] |
548+ leafpad | [] [] [] [] [] [] |
549+ libc | [] [] [] [] |
550+ libexif | [] [] () |
551+ libextractor | |
552+ libgnutls | [] |
553+ libgpewidget | [] [] |
554+ libgpg-error | [] [] |
555+ libgphoto2 | [] () |
556+ libgphoto2_port | [] () [] |
557+ libgsasl | |
558+ libiconv | [] [] [] [] [] |
559+ libidn | [] [] [] |
560+ lifelines | [] () |
561+ liferea | [] [] [] [] [] |
562+ lilypond | [] [] [] |
563+ linkdr | [] [] [] |
564+ lordsawar | [] |
565+ lprng | |
566+ lynx | [] [] [] [] |
567+ m4 | [] [] [] [] |
568+ mailfromd | |
569+ mailutils | [] |
570+ make | [] [] [] |
571+ man-db | |
572+ man-db-manpages | |
573+ minicom | [] [] [] [] |
574+ mkisofs | |
575+ myserver | |
576+ nano | [] [] [] |
577+ opcodes | [] [] |
578+ parted | [] [] |
579+ pies | |
580+ popt | [] [] [] [] [] |
581+ psmisc | [] [] [] |
582+ pspp | [] |
583+ pwdutils | [] |
584+ radius | [] |
585+ recode | [] [] [] [] [] [] |
586+ rosegarden | () () () |
587+ rpm | [] [] [] |
588+ rush | |
589+ sarg | |
590+ screem | |
591+ scrollkeeper | [] [] [] [] [] |
592+ sed | [] [] [] [] [] [] |
593+ sharutils | [] [] [] [] |
594+ shishi | |
595+ skencil | [] () [] |
596+ solfege | [] [] [] |
597+ solfege-manual | [] [] |
598+ soundtracker | [] [] [] |
599+ sp | [] |
600+ sysstat | [] [] [] |
601+ tar | [] [] [] [] |
602+ texinfo | [] [] [] |
603+ tin | [] [] |
604+ unicode-han-tra... | |
605+ unicode-transla... | |
606+ util-linux-ng | [] [] [] [] |
607+ vice | () () |
608+ vmm | [] |
609+ vorbis-tools | [] [] |
610+ wastesedge | [] |
611+ wdiff | [] [] |
612+ wget | [] [] [] |
613+ wyslij-po | |
614+ xchat | [] [] [] [] [] |
615+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] |
616+ xkeyboard-config | [] [] [] [] [] [] |
617+ +-------------------------------------------------+
618+ crh cs da de el en en_GB en_ZA eo es et eu fa
619+ 5 64 105 117 18 1 8 0 28 89 18 19 0
620+
621+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn
622+ +----------------------------------------------------+
623+ a2ps | [] [] [] [] |
624+ aegis | [] [] |
625+ ant-phone | [] [] |
626+ anubis | [] [] [] [] |
627+ aspell | [] [] [] [] |
628+ bash | [] [] [] [] |
629+ bfd | [] [] [] |
630+ bibshelf | [] [] [] [] [] |
631+ binutils | [] [] [] |
632+ bison | [] [] [] [] |
633+ bison-runtime | [] [] [] [] [] [] |
634+ bluez-pin | [] [] [] [] [] [] [] [] |
635+ bombono-dvd | [] |
636+ buzztard | [] |
637+ cflow | [] [] [] |
638+ clisp | [] |
639+ coreutils | [] [] [] [] [] |
640+ cpio | [] [] [] [] |
641+ cppi | [] [] |
642+ cpplib | [] [] [] |
643+ cryptsetup | [] [] [] |
644+ dfarc | [] [] [] |
645+ dialog | [] [] [] [] [] [] [] |
646+ dico | |
647+ diffutils | [] [] [] [] [] [] [] [] [] |
648+ dink | [] |
649+ doodle | [] [] |
650+ e2fsprogs | [] [] |
651+ enscript | [] [] [] [] |
652+ exif | [] [] [] [] [] [] |
653+ fetchmail | [] [] [] [] |
654+ findutils | [] [] [] [] [] [] |
655+ flex | [] [] [] |
656+ freedink | [] [] [] |
657+ gas | [] [] |
658+ gawk | [] [] [] [] () [] |
659+ gcal | [] |
660+ gcc | [] |
661+ gettext-examples | [] [] [] [] [] [] [] |
662+ gettext-runtime | [] [] [] [] [] [] |
663+ gettext-tools | [] [] [] [] |
664+ gip | [] [] [] [] [] [] |
665+ gjay | [] |
666+ gliv | [] () |
667+ glunarclock | [] [] [] [] |
668+ gnubiff | () [] () |
669+ gnucash | () () () () () [] |
670+ gnuedu | [] [] |
671+ gnulib | [] [] [] [] [] [] |
672+ gnunet | |
673+ gnunet-gtk | [] |
674+ gnutls | [] [] |
675+ gold | [] [] |
676+ gpe-aerial | [] [] [] |
677+ gpe-beam | [] [] [] [] |
678+ gpe-bluetooth | [] [] [] [] |
679+ gpe-calendar | [] [] |
680+ gpe-clock | [] [] [] [] [] |
681+ gpe-conf | [] [] [] [] |
682+ gpe-contacts | [] [] [] [] |
683+ gpe-edit | [] [] [] |
684+ gpe-filemanager | [] [] [] [] |
685+ gpe-go | [] [] [] [] [] |
686+ gpe-login | [] [] [] |
687+ gpe-ownerinfo | [] [] [] [] [] |
688+ gpe-package | [] [] [] |
689+ gpe-sketchbook | [] [] [] [] |
690+ gpe-su | [] [] [] [] [] [] |
691+ gpe-taskmanager | [] [] [] [] [] |
692+ gpe-timesheet | [] [] [] [] [] |
693+ gpe-today | [] [] [] [] [] [] [] |
694+ gpe-todo | [] [] [] |
695+ gphoto2 | [] [] [] [] [] [] |
696+ gprof | [] [] [] [] |
697+ gpsdrive | [] [] [] |
698+ gramadoir | [] [] [] |
699+ grep | [] [] |
700+ grub | [] [] [] [] |
701+ gsasl | [] [] [] [] [] |
702+ gss | [] [] [] [] [] |
703+ gst-plugins-bad | [] [] [] [] [] [] |
704+ gst-plugins-base | [] [] [] [] [] [] |
705+ gst-plugins-good | [] [] [] [] [] [] |
706+ gst-plugins-ugly | [] [] [] [] [] [] |
707+ gstreamer | [] [] [] [] [] |
708+ gtick | [] [] [] [] [] |
709+ gtkam | [] [] [] [] [] |
710+ gtkorphan | [] [] [] |
711+ gtkspell | [] [] [] [] [] [] [] [] [] |
712+ gutenprint | [] [] [] [] |
713+ hello | [] [] [] |
714+ help2man | [] [] |
715+ hylafax | [] |
716+ idutils | [] [] [] [] [] [] |
717+ indent | [] [] [] [] [] [] [] [] |
718+ iso_15924 | [] () [] [] |
719+ iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] |
720+ iso_3166_2 | () [] [] [] |
721+ iso_4217 | [] () [] [] [] [] |
722+ iso_639 | [] () [] [] [] [] [] [] [] |
723+ iso_639_3 | () [] [] |
724+ jwhois | [] [] [] [] [] |
725+ kbd | [] [] |
726+ keytouch | [] [] [] [] [] [] |
727+ keytouch-editor | [] [] [] [] [] |
728+ keytouch-keyboa... | [] [] [] [] [] |
729+ klavaro | [] [] |
730+ latrine | [] [] [] |
731+ ld | [] [] [] [] |
732+ leafpad | [] [] [] [] [] [] [] () |
733+ libc | [] [] [] [] [] |
734+ libexif | [] |
735+ libextractor | |
736+ libgnutls | [] [] |
737+ libgpewidget | [] [] [] [] |
738+ libgpg-error | [] [] |
739+ libgphoto2 | [] [] [] |
740+ libgphoto2_port | [] [] [] |
741+ libgsasl | [] [] [] [] [] |
742+ libiconv | [] [] [] [] [] [] |
743+ libidn | [] [] [] [] |
744+ lifelines | () |
745+ liferea | [] [] [] [] |
746+ lilypond | [] [] |
747+ linkdr | [] [] [] [] [] |
748+ lordsawar | |
749+ lprng | [] |
750+ lynx | [] [] [] [] [] |
751+ m4 | [] [] [] [] [] [] |
752+ mailfromd | |
753+ mailutils | [] [] |
754+ make | [] [] [] [] [] [] [] [] [] |
755+ man-db | [] [] |
756+ man-db-manpages | [] |
757+ minicom | [] [] [] [] [] |
758+ mkisofs | [] [] [] [] |
759+ myserver | |
760+ nano | [] [] [] [] [] [] |
761+ opcodes | [] [] [] [] |
762+ parted | [] [] [] [] |
763+ pies | |
764+ popt | [] [] [] [] [] [] [] [] [] |
765+ psmisc | [] [] [] |
766+ pspp | |
767+ pwdutils | [] [] |
768+ radius | [] [] |
769+ recode | [] [] [] [] [] [] [] [] |
770+ rosegarden | () () () () () |
771+ rpm | [] [] |
772+ rush | |
773+ sarg | [] |
774+ screem | [] [] |
775+ scrollkeeper | [] [] [] [] |
776+ sed | [] [] [] [] [] [] [] [] |
777+ sharutils | [] [] [] [] [] [] [] |
778+ shishi | [] |
779+ skencil | [] |
780+ solfege | [] [] [] [] |
781+ solfege-manual | [] [] |
782+ soundtracker | [] [] |
783+ sp | [] () |
784+ sysstat | [] [] [] [] [] |
785+ tar | [] [] [] [] [] [] [] |
786+ texinfo | [] [] [] [] |
787+ tin | [] |
788+ unicode-han-tra... | |
789+ unicode-transla... | [] [] |
790+ util-linux-ng | [] [] [] [] [] [] |
791+ vice | () () () |
792+ vmm | [] |
793+ vorbis-tools | [] |
794+ wastesedge | () () |
795+ wdiff | [] |
796+ wget | [] [] [] [] [] [] [] [] |
797+ wyslij-po | [] [] [] |
798+ xchat | [] [] [] [] [] [] [] [] [] |
799+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] |
800+ xkeyboard-config | [] [] [] [] [] |
801+ +----------------------------------------------------+
802+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn
803+ 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4
804+
805+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne
806+ +-----------------------------------------------+
807+ a2ps | [] |
808+ aegis | |
809+ ant-phone | |
810+ anubis | [] [] |
811+ aspell | [] |
812+ bash | |
813+ bfd | |
814+ bibshelf | [] [] |
815+ binutils | |
816+ bison | [] |
817+ bison-runtime | [] [] [] [] [] |
818+ bluez-pin | [] [] [] [] [] |
819+ bombono-dvd | |
820+ buzztard | |
821+ cflow | |
822+ clisp | |
823+ coreutils | [] |
824+ cpio | |
825+ cppi | |
826+ cpplib | |
827+ cryptsetup | |
828+ dfarc | [] |
829+ dialog | [] [] [] [] [] |
830+ dico | |
831+ diffutils | [] [] |
832+ dink | |
833+ doodle | |
834+ e2fsprogs | |
835+ enscript | |
836+ exif | [] |
837+ fetchmail | |
838+ findutils | |
839+ flex | |
840+ freedink | [] |
841+ gas | |
842+ gawk | |
843+ gcal | |
844+ gcc | |
845+ gettext-examples | [] [] [] [] |
846+ gettext-runtime | [] |
847+ gettext-tools | [] |
848+ gip | [] [] |
849+ gjay | |
850+ gliv | |
851+ glunarclock | [] |
852+ gnubiff | |
853+ gnucash | () () () () |
854+ gnuedu | |
855+ gnulib | |
856+ gnunet | |
857+ gnunet-gtk | |
858+ gnutls | [] |
859+ gold | |
860+ gpe-aerial | [] |
861+ gpe-beam | [] |
862+ gpe-bluetooth | [] [] |
863+ gpe-calendar | [] |
864+ gpe-clock | [] [] [] [] [] |
865+ gpe-conf | [] [] |
866+ gpe-contacts | [] [] |
867+ gpe-edit | [] |
868+ gpe-filemanager | [] [] |
869+ gpe-go | [] [] [] |
870+ gpe-login | [] |
871+ gpe-ownerinfo | [] [] |
872+ gpe-package | [] [] |
873+ gpe-sketchbook | [] [] |
874+ gpe-su | [] [] [] [] [] [] |
875+ gpe-taskmanager | [] [] [] [] [] [] |
876+ gpe-timesheet | [] [] |
877+ gpe-today | [] [] [] [] |
878+ gpe-todo | [] [] |
879+ gphoto2 | |
880+ gprof | [] |
881+ gpsdrive | |
882+ gramadoir | |
883+ grep | |
884+ grub | |
885+ gsasl | |
886+ gss | |
887+ gst-plugins-bad | [] [] [] [] |
888+ gst-plugins-base | [] [] |
889+ gst-plugins-good | [] [] |
890+ gst-plugins-ugly | [] [] [] [] [] |
891+ gstreamer | |
892+ gtick | |
893+ gtkam | [] |
894+ gtkorphan | [] [] |
895+ gtkspell | [] [] [] [] [] [] [] |
896+ gutenprint | |
897+ hello | [] [] [] |
898+ help2man | |
899+ hylafax | |
900+ idutils | |
901+ indent | |
902+ iso_15924 | [] [] |
903+ iso_3166 | [] [] () [] [] [] [] [] |
904+ iso_3166_2 | |
905+ iso_4217 | [] [] |
906+ iso_639 | [] [] |
907+ iso_639_3 | [] |
908+ jwhois | [] |
909+ kbd | |
910+ keytouch | [] |
911+ keytouch-editor | [] |
912+ keytouch-keyboa... | [] |
913+ klavaro | [] |
914+ latrine | [] |
915+ ld | |
916+ leafpad | [] [] [] |
917+ libc | [] |
918+ libexif | |
919+ libextractor | |
920+ libgnutls | [] |
921+ libgpewidget | [] [] |
922+ libgpg-error | |
923+ libgphoto2 | |
924+ libgphoto2_port | |
925+ libgsasl | |
926+ libiconv | |
927+ libidn | |
928+ lifelines | |
929+ liferea | |
930+ lilypond | |
931+ linkdr | |
932+ lordsawar | |
933+ lprng | |
934+ lynx | |
935+ m4 | |
936+ mailfromd | |
937+ mailutils | |
938+ make | [] |
939+ man-db | |
940+ man-db-manpages | |
941+ minicom | [] |
942+ mkisofs | |
943+ myserver | |
944+ nano | [] [] |
945+ opcodes | |
946+ parted | |
947+ pies | |
948+ popt | [] [] [] |
949+ psmisc | |
950+ pspp | |
951+ pwdutils | |
952+ radius | |
953+ recode | |
954+ rosegarden | |
955+ rpm | |
956+ rush | |
957+ sarg | |
958+ screem | |
959+ scrollkeeper | [] [] |
960+ sed | |
961+ sharutils | |
962+ shishi | |
963+ skencil | |
964+ solfege | [] |
965+ solfege-manual | |
966+ soundtracker | |
967+ sp | |
968+ sysstat | [] |
969+ tar | [] |
970+ texinfo | [] |
971+ tin | |
972+ unicode-han-tra... | |
973+ unicode-transla... | |
974+ util-linux-ng | |
975+ vice | |
976+ vmm | |
977+ vorbis-tools | |
978+ wastesedge | |
979+ wdiff | |
980+ wget | [] |
981+ wyslij-po | |
982+ xchat | [] [] [] |
983+ xdg-user-dirs | [] [] [] [] [] [] [] [] |
984+ xkeyboard-config | [] [] [] |
985+ +-----------------------------------------------+
986+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne
987+ 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1
988+
989+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr
990+ +---------------------------------------------------+
991+ a2ps | [] [] [] [] [] [] [] [] |
992+ aegis | [] [] [] |
993+ ant-phone | [] [] |
994+ anubis | [] [] [] |
995+ aspell | [] [] [] [] [] |
996+ bash | [] [] |
997+ bfd | [] |
998+ bibshelf | [] [] |
999+ binutils | [] [] |
1000+ bison | [] [] [] |
1001+ bison-runtime | [] [] [] [] [] [] [] |
1002+ bluez-pin | [] [] [] [] [] [] [] [] |
1003+ bombono-dvd | [] () |
1004+ buzztard | [] [] |
1005+ cflow | [] |
1006+ clisp | [] [] |
1007+ coreutils | [] [] [] [] [] [] |
1008+ cpio | [] [] [] |
1009+ cppi | [] |
1010+ cpplib | [] |
1011+ cryptsetup | [] |
1012+ dfarc | [] |
1013+ dialog | [] [] [] [] |
1014+ dico | [] |
1015+ diffutils | [] [] [] [] [] [] |
1016+ dink | () |
1017+ doodle | [] [] |
1018+ e2fsprogs | [] [] |
1019+ enscript | [] [] [] [] [] |
1020+ exif | [] [] [] () [] |
1021+ fetchmail | [] [] [] [] |
1022+ findutils | [] [] [] [] [] |
1023+ flex | [] [] [] [] [] |
1024+ freedink | [] [] |
1025+ gas | |
1026+ gawk | [] [] [] [] |
1027+ gcal | |
1028+ gcc | [] |
1029+ gettext-examples | [] [] [] [] [] [] [] [] |
1030+ gettext-runtime | [] [] [] [] [] [] [] [] [] |
1031+ gettext-tools | [] [] [] [] [] [] |
1032+ gip | [] [] [] [] [] |
1033+ gjay | |
1034+ gliv | [] [] [] [] [] [] |
1035+ glunarclock | [] [] [] [] [] |
1036+ gnubiff | [] () |
1037+ gnucash | [] () () () |
1038+ gnuedu | [] |
1039+ gnulib | [] [] [] [] |
1040+ gnunet | |
1041+ gnunet-gtk | |
1042+ gnutls | [] [] |
1043+ gold | |
1044+ gpe-aerial | [] [] [] [] [] [] [] |
1045+ gpe-beam | [] [] [] [] [] [] [] |
1046+ gpe-bluetooth | [] [] |
1047+ gpe-calendar | [] [] [] [] |
1048+ gpe-clock | [] [] [] [] [] [] [] [] |
1049+ gpe-conf | [] [] [] [] [] [] [] |
1050+ gpe-contacts | [] [] [] [] [] |
1051+ gpe-edit | [] [] [] |
1052+ gpe-filemanager | [] [] [] |
1053+ gpe-go | [] [] [] [] [] [] [] [] |
1054+ gpe-login | [] [] |
1055+ gpe-ownerinfo | [] [] [] [] [] [] [] [] |
1056+ gpe-package | [] [] |
1057+ gpe-sketchbook | [] [] [] [] [] [] [] |
1058+ gpe-su | [] [] [] [] [] [] [] [] |
1059+ gpe-taskmanager | [] [] [] [] [] [] [] [] |
1060+ gpe-timesheet | [] [] [] [] [] [] [] [] |
1061+ gpe-today | [] [] [] [] [] [] [] [] |
1062+ gpe-todo | [] [] [] [] [] |
1063+ gphoto2 | [] [] [] [] [] [] [] [] |
1064+ gprof | [] [] [] |
1065+ gpsdrive | [] [] |
1066+ gramadoir | [] [] |
1067+ grep | [] [] [] [] |
1068+ grub | [] [] [] |
1069+ gsasl | [] [] [] [] |
1070+ gss | [] [] [] |
1071+ gst-plugins-bad | [] [] [] [] [] [] |
1072+ gst-plugins-base | [] [] [] [] [] |
1073+ gst-plugins-good | [] [] [] [] [] |
1074+ gst-plugins-ugly | [] [] [] [] [] [] |
1075+ gstreamer | [] [] [] [] [] |
1076+ gtick | [] [] [] |
1077+ gtkam | [] [] [] [] [] [] |
1078+ gtkorphan | [] |
1079+ gtkspell | [] [] [] [] [] [] [] [] [] [] |
1080+ gutenprint | [] [] |
1081+ hello | [] [] [] [] |
1082+ help2man | [] [] |
1083+ hylafax | [] |
1084+ idutils | [] [] [] [] [] |
1085+ indent | [] [] [] [] [] [] [] |
1086+ iso_15924 | [] [] [] [] |
1087+ iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] |
1088+ iso_3166_2 | [] [] [] |
1089+ iso_4217 | [] [] [] [] [] [] [] [] |
1090+ iso_639 | [] [] [] [] [] [] [] [] [] |
1091+ iso_639_3 | [] [] |
1092+ jwhois | [] [] [] [] |
1093+ kbd | [] [] [] |
1094+ keytouch | [] [] [] |
1095+ keytouch-editor | [] [] [] |
1096+ keytouch-keyboa... | [] [] [] |
1097+ klavaro | [] [] |
1098+ latrine | [] [] |
1099+ ld | |
1100+ leafpad | [] [] [] [] [] [] [] [] [] |
1101+ libc | [] [] [] [] |
1102+ libexif | [] [] () [] |
1103+ libextractor | |
1104+ libgnutls | [] [] |
1105+ libgpewidget | [] [] [] |
1106+ libgpg-error | [] [] |
1107+ libgphoto2 | [] [] |
1108+ libgphoto2_port | [] [] [] [] [] |
1109+ libgsasl | [] [] [] [] [] |
1110+ libiconv | [] [] [] [] [] |
1111+ libidn | [] [] |
1112+ lifelines | [] [] |
1113+ liferea | [] [] [] [] [] () () [] |
1114+ lilypond | [] |
1115+ linkdr | [] [] [] |
1116+ lordsawar | |
1117+ lprng | [] |
1118+ lynx | [] [] [] |
1119+ m4 | [] [] [] [] [] |
1120+ mailfromd | [] |
1121+ mailutils | [] |
1122+ make | [] [] [] [] |
1123+ man-db | [] [] [] |
1124+ man-db-manpages | [] [] [] |
1125+ minicom | [] [] [] [] |
1126+ mkisofs | [] [] [] |
1127+ myserver | |
1128+ nano | [] [] [] [] |
1129+ opcodes | [] [] |
1130+ parted | [] [] [] [] |
1131+ pies | [] |
1132+ popt | [] [] [] [] |
1133+ psmisc | [] [] [] |
1134+ pspp | [] [] |
1135+ pwdutils | [] |
1136+ radius | [] [] [] |
1137+ recode | [] [] [] [] [] [] [] [] |
1138+ rosegarden | () () |
1139+ rpm | [] [] [] |
1140+ rush | [] [] |
1141+ sarg | |
1142+ screem | |
1143+ scrollkeeper | [] [] [] [] [] [] [] [] |
1144+ sed | [] [] [] [] [] [] [] [] [] |
1145+ sharutils | [] [] [] [] |
1146+ shishi | [] |
1147+ skencil | [] [] |
1148+ solfege | [] [] [] [] |
1149+ solfege-manual | [] [] [] |
1150+ soundtracker | [] |
1151+ sp | |
1152+ sysstat | [] [] [] [] |
1153+ tar | [] [] [] [] |
1154+ texinfo | [] [] [] [] |
1155+ tin | [] |
1156+ unicode-han-tra... | |
1157+ unicode-transla... | |
1158+ util-linux-ng | [] [] [] [] [] |
1159+ vice | [] |
1160+ vmm | [] |
1161+ vorbis-tools | [] [] |
1162+ wastesedge | [] |
1163+ wdiff | [] [] |
1164+ wget | [] [] [] [] [] [] [] |
1165+ wyslij-po | [] [] [] |
1166+ xchat | [] [] [] [] [] [] [] [] [] |
1167+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] |
1168+ xkeyboard-config | [] [] [] |
1169+ +---------------------------------------------------+
1170+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr
1171+ 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37
1172+
1173+ sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW
1174+ +---------------------------------------------------+
1175+ a2ps | [] [] [] [] [] | 27
1176+ aegis | [] | 9
1177+ ant-phone | [] [] [] [] | 9
1178+ anubis | [] [] [] [] | 15
1179+ aspell | [] [] [] | 20
1180+ bash | [] [] [] | 12
1181+ bfd | [] | 6
1182+ bibshelf | [] [] [] | 16
1183+ binutils | [] [] | 8
1184+ bison | [] [] | 12
1185+ bison-runtime | [] [] [] [] [] [] | 29
1186+ bluez-pin | [] [] [] [] [] [] [] [] | 37
1187+ bombono-dvd | [] | 4
1188+ buzztard | [] | 7
1189+ cflow | [] [] [] | 9
1190+ clisp | | 10
1191+ coreutils | [] [] [] [] | 22
1192+ cpio | [] [] [] [] [] [] | 13
1193+ cppi | [] [] | 5
1194+ cpplib | [] [] [] [] [] [] | 14
1195+ cryptsetup | [] [] | 7
1196+ dfarc | [] | 9
1197+ dialog | [] [] [] [] [] [] [] | 30
1198+ dico | [] | 2
1199+ diffutils | [] [] [] [] [] [] | 30
1200+ dink | | 4
1201+ doodle | [] [] | 7
1202+ e2fsprogs | [] [] [] | 11
1203+ enscript | [] [] [] [] | 17
1204+ exif | [] [] [] | 16
1205+ fetchmail | [] [] [] | 17
1206+ findutils | [] [] [] [] [] | 20
1207+ flex | [] [] [] [] | 15
1208+ freedink | [] | 10
1209+ gas | [] | 4
1210+ gawk | [] [] [] [] | 18
1211+ gcal | [] [] | 5
1212+ gcc | [] [] [] | 7
1213+ gettext-examples | [] [] [] [] [] [] [] | 34
1214+ gettext-runtime | [] [] [] [] [] [] [] | 29
1215+ gettext-tools | [] [] [] [] [] [] | 22
1216+ gip | [] [] [] [] | 22
1217+ gjay | [] | 3
1218+ gliv | [] [] [] | 14
1219+ glunarclock | [] [] [] [] [] | 19
1220+ gnubiff | [] [] | 4
1221+ gnucash | () [] () [] () | 10
1222+ gnuedu | [] [] | 7
1223+ gnulib | [] [] [] [] | 16
1224+ gnunet | [] | 1
1225+ gnunet-gtk | [] [] [] | 5
1226+ gnutls | [] [] [] | 10
1227+ gold | [] | 4
1228+ gpe-aerial | [] [] [] | 18
1229+ gpe-beam | [] [] [] | 19
1230+ gpe-bluetooth | [] [] [] | 13
1231+ gpe-calendar | [] [] [] [] | 12
1232+ gpe-clock | [] [] [] [] [] | 28
1233+ gpe-conf | [] [] [] [] | 20
1234+ gpe-contacts | [] [] [] | 17
1235+ gpe-edit | [] [] [] | 12
1236+ gpe-filemanager | [] [] [] [] | 16
1237+ gpe-go | [] [] [] [] [] | 25
1238+ gpe-login | [] [] [] | 11
1239+ gpe-ownerinfo | [] [] [] [] [] | 25
1240+ gpe-package | [] [] [] | 13
1241+ gpe-sketchbook | [] [] [] | 20
1242+ gpe-su | [] [] [] [] [] | 30
1243+ gpe-taskmanager | [] [] [] [] [] | 29
1244+ gpe-timesheet | [] [] [] [] [] | 25
1245+ gpe-today | [] [] [] [] [] [] | 30
1246+ gpe-todo | [] [] [] [] | 17
1247+ gphoto2 | [] [] [] [] [] | 24
1248+ gprof | [] [] [] | 15
1249+ gpsdrive | [] [] [] | 11
1250+ gramadoir | [] [] [] | 11
1251+ grep | [] [] [] | 10
1252+ grub | [] [] [] | 14
1253+ gsasl | [] [] [] [] | 14
1254+ gss | [] [] [] | 11
1255+ gst-plugins-bad | [] [] [] [] | 26
1256+ gst-plugins-base | [] [] [] [] [] | 24
1257+ gst-plugins-good | [] [] [] [] | 24
1258+ gst-plugins-ugly | [] [] [] [] [] | 29
1259+ gstreamer | [] [] [] [] | 22
1260+ gtick | [] [] [] | 13
1261+ gtkam | [] [] [] | 20
1262+ gtkorphan | [] [] [] | 14
1263+ gtkspell | [] [] [] [] [] [] [] [] [] | 45
1264+ gutenprint | [] | 10
1265+ hello | [] [] [] [] [] [] | 21
1266+ help2man | [] [] | 7
1267+ hylafax | [] | 5
1268+ idutils | [] [] [] [] | 17
1269+ indent | [] [] [] [] [] [] | 30
1270+ iso_15924 | () [] () [] [] | 16
1271+ iso_3166 | [] [] () [] [] () [] [] [] () | 53
1272+ iso_3166_2 | () [] () [] | 9
1273+ iso_4217 | [] () [] [] () [] [] | 26
1274+ iso_639 | [] [] [] () [] () [] [] [] [] | 38
1275+ iso_639_3 | [] () | 8
1276+ jwhois | [] [] [] [] [] | 16
1277+ kbd | [] [] [] [] [] | 15
1278+ keytouch | [] [] [] | 16
1279+ keytouch-editor | [] [] [] | 14
1280+ keytouch-keyboa... | [] [] [] | 14
1281+ klavaro | [] | 11
1282+ latrine | [] [] [] | 10
1283+ ld | [] [] [] [] | 11
1284+ leafpad | [] [] [] [] [] [] | 33
1285+ libc | [] [] [] [] [] | 21
1286+ libexif | [] () | 7
1287+ libextractor | [] | 1
1288+ libgnutls | [] [] [] | 9
1289+ libgpewidget | [] [] [] | 14
1290+ libgpg-error | [] [] [] | 9
1291+ libgphoto2 | [] [] | 8
1292+ libgphoto2_port | [] [] [] [] | 14
1293+ libgsasl | [] [] [] | 13
1294+ libiconv | [] [] [] [] | 21
1295+ libidn | () [] [] | 11
1296+ lifelines | [] | 4
1297+ liferea | [] [] [] | 21
1298+ lilypond | [] | 7
1299+ linkdr | [] [] [] [] [] | 17
1300+ lordsawar | | 1
1301+ lprng | [] | 3
1302+ lynx | [] [] [] [] | 17
1303+ m4 | [] [] [] [] | 19
1304+ mailfromd | [] [] | 3
1305+ mailutils | [] | 5
1306+ make | [] [] [] [] | 21
1307+ man-db | [] [] [] | 8
1308+ man-db-manpages | | 4
1309+ minicom | [] [] | 16
1310+ mkisofs | [] [] | 9
1311+ myserver | | 0
1312+ nano | [] [] [] [] | 21
1313+ opcodes | [] [] [] | 11
1314+ parted | [] [] [] [] [] | 15
1315+ pies | [] [] | 3
1316+ popt | [] [] [] [] [] [] | 27
1317+ psmisc | [] [] | 11
1318+ pspp | | 4
1319+ pwdutils | [] [] | 6
1320+ radius | [] [] | 9
1321+ recode | [] [] [] [] | 28
1322+ rosegarden | () | 0
1323+ rpm | [] [] [] | 11
1324+ rush | [] [] | 4
1325+ sarg | | 1
1326+ screem | [] | 3
1327+ scrollkeeper | [] [] [] [] [] | 27
1328+ sed | [] [] [] [] [] | 30
1329+ sharutils | [] [] [] [] [] | 22
1330+ shishi | [] | 3
1331+ skencil | [] [] | 7
1332+ solfege | [] [] [] [] | 16
1333+ solfege-manual | [] | 8
1334+ soundtracker | [] [] [] | 9
1335+ sp | [] | 3
1336+ sysstat | [] [] | 15
1337+ tar | [] [] [] [] [] [] | 23
1338+ texinfo | [] [] [] [] [] | 17
1339+ tin | | 4
1340+ unicode-han-tra... | | 0
1341+ unicode-transla... | | 2
1342+ util-linux-ng | [] [] [] [] | 20
1343+ vice | () () | 1
1344+ vmm | [] | 4
1345+ vorbis-tools | [] | 6
1346+ wastesedge | | 2
1347+ wdiff | [] [] | 7
1348+ wget | [] [] [] [] [] | 26
1349+ wyslij-po | [] [] | 8
1350+ xchat | [] [] [] [] [] [] | 36
1351+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63
1352+ xkeyboard-config | [] [] [] | 22
1353+ +---------------------------------------------------+
1354+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW
1355+ 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618
1356+
1357+ Some counters in the preceding matrix are higher than the number of
1358+visible blocks let us expect. This is because a few extra PO files are
1359+used for implementing regional variants of languages, or language
1360+dialects.
1361+
1362+ For a PO file in the matrix above to be effective, the package to
1363+which it applies should also have been internationalized and
1364+distributed as such by its maintainer. There might be an observable
1365+lag between the mere existence a PO file and its wide availability in a
1366+distribution.
1367+
1368+ If June 2010 seems to be old, you may fetch a more recent copy of
1369+this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date
1370+matrix with full percentage details can be found at
1371+`http://translationproject.org/extra/matrix.html'.
1372+
1373+1.5 Using `gettext' in new packages
1374+===================================
1375+
1376+If you are writing a freely available program and want to
1377+internationalize it you are welcome to use GNU `gettext' in your
1378+package. Of course you have to respect the GNU Library General Public
1379+License which covers the use of the GNU `gettext' library. This means
1380+in particular that even non-free programs can use `libintl' as a shared
1381+library, whereas only free software can use `libintl' as a static
1382+library or use modified versions of `libintl'.
1383+
1384+ Once the sources are changed appropriately and the setup can handle
1385+the use of `gettext' the only thing missing are the translations. The
1386+Free Translation Project is also available for packages which are not
1387+developed inside the GNU project. Therefore the information given above
1388+applies also for every other Free Software Project. Contact
1389+`coordinator@translationproject.org' to make the `.pot' files available
1390+to the translation teams.
1391+
1392diff --git a/config.rpath b/config.rpath
1393new file mode 100755
1394index 0000000..17298f2
1395--- /dev/null
1396+++ b/config.rpath
1397@@ -0,0 +1,672 @@
1398+#! /bin/sh
1399+# Output a system dependent set of variables, describing how to set the
1400+# run time search path of shared libraries in an executable.
1401+#
1402+# Copyright 1996-2010 Free Software Foundation, Inc.
1403+# Taken from GNU libtool, 2001
1404+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1405+#
1406+# This file is free software; the Free Software Foundation gives
1407+# unlimited permission to copy and/or distribute it, with or without
1408+# modifications, as long as this notice is preserved.
1409+#
1410+# The first argument passed to this file is the canonical host specification,
1411+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
1412+# or
1413+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1414+# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
1415+# should be set by the caller.
1416+#
1417+# The set of defined variables is at the end of this script.
1418+
1419+# Known limitations:
1420+# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
1421+# than 256 bytes, otherwise the compiler driver will dump core. The only
1422+# known workaround is to choose shorter directory names for the build
1423+# directory and/or the installation directory.
1424+
1425+# All known linkers require a `.a' archive for static linking (except MSVC,
1426+# which needs '.lib').
1427+libext=a
1428+shrext=.so
1429+
1430+host="$1"
1431+host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432+host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433+host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434+
1435+# Code taken from libtool.m4's _LT_CC_BASENAME.
1436+
1437+for cc_temp in $CC""; do
1438+ case $cc_temp in
1439+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1440+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1441+ \-*) ;;
1442+ *) break;;
1443+ esac
1444+done
1445+cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
1446+
1447+# Code taken from libtool.m4's _LT_COMPILER_PIC.
1448+
1449+wl=
1450+if test "$GCC" = yes; then
1451+ wl='-Wl,'
1452+else
1453+ case "$host_os" in
1454+ aix*)
1455+ wl='-Wl,'
1456+ ;;
1457+ darwin*)
1458+ case $cc_basename in
1459+ xlc*)
1460+ wl='-Wl,'
1461+ ;;
1462+ esac
1463+ ;;
1464+ mingw* | cygwin* | pw32* | os2* | cegcc*)
1465+ ;;
1466+ hpux9* | hpux10* | hpux11*)
1467+ wl='-Wl,'
1468+ ;;
1469+ irix5* | irix6* | nonstopux*)
1470+ wl='-Wl,'
1471+ ;;
1472+ newsos6)
1473+ ;;
1474+ linux* | k*bsd*-gnu)
1475+ case $cc_basename in
1476+ ecc*)
1477+ wl='-Wl,'
1478+ ;;
1479+ icc* | ifort*)
1480+ wl='-Wl,'
1481+ ;;
1482+ lf95*)
1483+ wl='-Wl,'
1484+ ;;
1485+ pgcc | pgf77 | pgf90)
1486+ wl='-Wl,'
1487+ ;;
1488+ ccc*)
1489+ wl='-Wl,'
1490+ ;;
1491+ como)
1492+ wl='-lopt='
1493+ ;;
1494+ *)
1495+ case `$CC -V 2>&1 | sed 5q` in
1496+ *Sun\ C*)
1497+ wl='-Wl,'
1498+ ;;
1499+ esac
1500+ ;;
1501+ esac
1502+ ;;
1503+ osf3* | osf4* | osf5*)
1504+ wl='-Wl,'
1505+ ;;
1506+ rdos*)
1507+ ;;
1508+ solaris*)
1509+ wl='-Wl,'
1510+ ;;
1511+ sunos4*)
1512+ wl='-Qoption ld '
1513+ ;;
1514+ sysv4 | sysv4.2uw2* | sysv4.3*)
1515+ wl='-Wl,'
1516+ ;;
1517+ sysv4*MP*)
1518+ ;;
1519+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1520+ wl='-Wl,'
1521+ ;;
1522+ unicos*)
1523+ wl='-Wl,'
1524+ ;;
1525+ uts4*)
1526+ ;;
1527+ esac
1528+fi
1529+
1530+# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
1531+
1532+hardcode_libdir_flag_spec=
1533+hardcode_libdir_separator=
1534+hardcode_direct=no
1535+hardcode_minus_L=no
1536+
1537+case "$host_os" in
1538+ cygwin* | mingw* | pw32* | cegcc*)
1539+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
1540+ # When not using gcc, we currently assume that we are using
1541+ # Microsoft Visual C++.
1542+ if test "$GCC" != yes; then
1543+ with_gnu_ld=no
1544+ fi
1545+ ;;
1546+ interix*)
1547+ # we just hope/assume this is gcc and not c89 (= MSVC++)
1548+ with_gnu_ld=yes
1549+ ;;
1550+ openbsd*)
1551+ with_gnu_ld=no
1552+ ;;
1553+esac
1554+
1555+ld_shlibs=yes
1556+if test "$with_gnu_ld" = yes; then
1557+ # Set some defaults for GNU ld with shared library support. These
1558+ # are reset later if shared libraries are not supported. Putting them
1559+ # here allows them to be overridden if necessary.
1560+ # Unlike libtool, we use -rpath here, not --rpath, since the documented
1561+ # option of GNU ld is called -rpath, not --rpath.
1562+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1563+ case "$host_os" in
1564+ aix[3-9]*)
1565+ # On AIX/PPC, the GNU linker is very broken
1566+ if test "$host_cpu" != ia64; then
1567+ ld_shlibs=no
1568+ fi
1569+ ;;
1570+ amigaos*)
1571+ hardcode_libdir_flag_spec='-L$libdir'
1572+ hardcode_minus_L=yes
1573+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1574+ # that the semantics of dynamic libraries on AmigaOS, at least up
1575+ # to version 4, is to share data among multiple programs linked
1576+ # with the same dynamic library. Since this doesn't match the
1577+ # behavior of shared libraries on other platforms, we cannot use
1578+ # them.
1579+ ld_shlibs=no
1580+ ;;
1581+ beos*)
1582+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1583+ :
1584+ else
1585+ ld_shlibs=no
1586+ fi
1587+ ;;
1588+ cygwin* | mingw* | pw32* | cegcc*)
1589+ # hardcode_libdir_flag_spec is actually meaningless, as there is
1590+ # no search path for DLLs.
1591+ hardcode_libdir_flag_spec='-L$libdir'
1592+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1593+ :
1594+ else
1595+ ld_shlibs=no
1596+ fi
1597+ ;;
1598+ interix[3-9]*)
1599+ hardcode_direct=no
1600+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1601+ ;;
1602+ gnu* | linux* | k*bsd*-gnu)
1603+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1604+ :
1605+ else
1606+ ld_shlibs=no
1607+ fi
1608+ ;;
1609+ netbsd*)
1610+ ;;
1611+ solaris*)
1612+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1613+ ld_shlibs=no
1614+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1615+ :
1616+ else
1617+ ld_shlibs=no
1618+ fi
1619+ ;;
1620+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1621+ case `$LD -v 2>&1` in
1622+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
1623+ ld_shlibs=no
1624+ ;;
1625+ *)
1626+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1627+ hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1628+ else
1629+ ld_shlibs=no
1630+ fi
1631+ ;;
1632+ esac
1633+ ;;
1634+ sunos4*)
1635+ hardcode_direct=yes
1636+ ;;
1637+ *)
1638+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1639+ :
1640+ else
1641+ ld_shlibs=no
1642+ fi
1643+ ;;
1644+ esac
1645+ if test "$ld_shlibs" = no; then
1646+ hardcode_libdir_flag_spec=
1647+ fi
1648+else
1649+ case "$host_os" in
1650+ aix3*)
1651+ # Note: this linker hardcodes the directories in LIBPATH if there
1652+ # are no directories specified by -L.
1653+ hardcode_minus_L=yes
1654+ if test "$GCC" = yes; then
1655+ # Neither direct hardcoding nor static linking is supported with a
1656+ # broken collect2.
1657+ hardcode_direct=unsupported
1658+ fi
1659+ ;;
1660+ aix[4-9]*)
1661+ if test "$host_cpu" = ia64; then
1662+ # On IA64, the linker does run time linking by default, so we don't
1663+ # have to do anything special.
1664+ aix_use_runtimelinking=no
1665+ else
1666+ aix_use_runtimelinking=no
1667+ # Test if we are trying to use run time linking or normal
1668+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1669+ # need to do runtime linking.
1670+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1671+ for ld_flag in $LDFLAGS; do
1672+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1673+ aix_use_runtimelinking=yes
1674+ break
1675+ fi
1676+ done
1677+ ;;
1678+ esac
1679+ fi
1680+ hardcode_direct=yes
1681+ hardcode_libdir_separator=':'
1682+ if test "$GCC" = yes; then
1683+ case $host_os in aix4.[012]|aix4.[012].*)
1684+ collect2name=`${CC} -print-prog-name=collect2`
1685+ if test -f "$collect2name" && \
1686+ strings "$collect2name" | grep resolve_lib_name >/dev/null
1687+ then
1688+ # We have reworked collect2
1689+ :
1690+ else
1691+ # We have old collect2
1692+ hardcode_direct=unsupported
1693+ hardcode_minus_L=yes
1694+ hardcode_libdir_flag_spec='-L$libdir'
1695+ hardcode_libdir_separator=
1696+ fi
1697+ ;;
1698+ esac
1699+ fi
1700+ # Begin _LT_AC_SYS_LIBPATH_AIX.
1701+ echo 'int main () { return 0; }' > conftest.c
1702+ ${CC} ${LDFLAGS} conftest.c -o conftest
1703+ aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1704+}'`
1705+ if test -z "$aix_libpath"; then
1706+ aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1707+}'`
1708+ fi
1709+ if test -z "$aix_libpath"; then
1710+ aix_libpath="/usr/lib:/lib"
1711+ fi
1712+ rm -f conftest.c conftest
1713+ # End _LT_AC_SYS_LIBPATH_AIX.
1714+ if test "$aix_use_runtimelinking" = yes; then
1715+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1716+ else
1717+ if test "$host_cpu" = ia64; then
1718+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
1719+ else
1720+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1721+ fi
1722+ fi
1723+ ;;
1724+ amigaos*)
1725+ hardcode_libdir_flag_spec='-L$libdir'
1726+ hardcode_minus_L=yes
1727+ # see comment about different semantics on the GNU ld section
1728+ ld_shlibs=no
1729+ ;;
1730+ bsdi[45]*)
1731+ ;;
1732+ cygwin* | mingw* | pw32* | cegcc*)
1733+ # When not using gcc, we currently assume that we are using
1734+ # Microsoft Visual C++.
1735+ # hardcode_libdir_flag_spec is actually meaningless, as there is
1736+ # no search path for DLLs.
1737+ hardcode_libdir_flag_spec=' '
1738+ libext=lib
1739+ ;;
1740+ darwin* | rhapsody*)
1741+ hardcode_direct=no
1742+ if test "$GCC" = yes ; then
1743+ :
1744+ else
1745+ case $cc_basename in
1746+ xlc*)
1747+ ;;
1748+ *)
1749+ ld_shlibs=no
1750+ ;;
1751+ esac
1752+ fi
1753+ ;;
1754+ dgux*)
1755+ hardcode_libdir_flag_spec='-L$libdir'
1756+ ;;
1757+ freebsd1*)
1758+ ld_shlibs=no
1759+ ;;
1760+ freebsd2.2*)
1761+ hardcode_libdir_flag_spec='-R$libdir'
1762+ hardcode_direct=yes
1763+ ;;
1764+ freebsd2*)
1765+ hardcode_direct=yes
1766+ hardcode_minus_L=yes
1767+ ;;
1768+ freebsd* | dragonfly*)
1769+ hardcode_libdir_flag_spec='-R$libdir'
1770+ hardcode_direct=yes
1771+ ;;
1772+ hpux9*)
1773+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1774+ hardcode_libdir_separator=:
1775+ hardcode_direct=yes
1776+ # hardcode_minus_L: Not really in the search PATH,
1777+ # but as the default location of the library.
1778+ hardcode_minus_L=yes
1779+ ;;
1780+ hpux10*)
1781+ if test "$with_gnu_ld" = no; then
1782+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1783+ hardcode_libdir_separator=:
1784+ hardcode_direct=yes
1785+ # hardcode_minus_L: Not really in the search PATH,
1786+ # but as the default location of the library.
1787+ hardcode_minus_L=yes
1788+ fi
1789+ ;;
1790+ hpux11*)
1791+ if test "$with_gnu_ld" = no; then
1792+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1793+ hardcode_libdir_separator=:
1794+ case $host_cpu in
1795+ hppa*64*|ia64*)
1796+ hardcode_direct=no
1797+ ;;
1798+ *)
1799+ hardcode_direct=yes
1800+ # hardcode_minus_L: Not really in the search PATH,
1801+ # but as the default location of the library.
1802+ hardcode_minus_L=yes
1803+ ;;
1804+ esac
1805+ fi
1806+ ;;
1807+ irix5* | irix6* | nonstopux*)
1808+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1809+ hardcode_libdir_separator=:
1810+ ;;
1811+ netbsd*)
1812+ hardcode_libdir_flag_spec='-R$libdir'
1813+ hardcode_direct=yes
1814+ ;;
1815+ newsos6)
1816+ hardcode_direct=yes
1817+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1818+ hardcode_libdir_separator=:
1819+ ;;
1820+ openbsd*)
1821+ if test -f /usr/libexec/ld.so; then
1822+ hardcode_direct=yes
1823+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1824+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1825+ else
1826+ case "$host_os" in
1827+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
1828+ hardcode_libdir_flag_spec='-R$libdir'
1829+ ;;
1830+ *)
1831+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1832+ ;;
1833+ esac
1834+ fi
1835+ else
1836+ ld_shlibs=no
1837+ fi
1838+ ;;
1839+ os2*)
1840+ hardcode_libdir_flag_spec='-L$libdir'
1841+ hardcode_minus_L=yes
1842+ ;;
1843+ osf3*)
1844+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1845+ hardcode_libdir_separator=:
1846+ ;;
1847+ osf4* | osf5*)
1848+ if test "$GCC" = yes; then
1849+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1850+ else
1851+ # Both cc and cxx compiler support -rpath directly
1852+ hardcode_libdir_flag_spec='-rpath $libdir'
1853+ fi
1854+ hardcode_libdir_separator=:
1855+ ;;
1856+ solaris*)
1857+ hardcode_libdir_flag_spec='-R$libdir'
1858+ ;;
1859+ sunos4*)
1860+ hardcode_libdir_flag_spec='-L$libdir'
1861+ hardcode_direct=yes
1862+ hardcode_minus_L=yes
1863+ ;;
1864+ sysv4)
1865+ case $host_vendor in
1866+ sni)
1867+ hardcode_direct=yes # is this really true???
1868+ ;;
1869+ siemens)
1870+ hardcode_direct=no
1871+ ;;
1872+ motorola)
1873+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1874+ ;;
1875+ esac
1876+ ;;
1877+ sysv4.3*)
1878+ ;;
1879+ sysv4*MP*)
1880+ if test -d /usr/nec; then
1881+ ld_shlibs=yes
1882+ fi
1883+ ;;
1884+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1885+ ;;
1886+ sysv5* | sco3.2v5* | sco5v6*)
1887+ hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1888+ hardcode_libdir_separator=':'
1889+ ;;
1890+ uts4*)
1891+ hardcode_libdir_flag_spec='-L$libdir'
1892+ ;;
1893+ *)
1894+ ld_shlibs=no
1895+ ;;
1896+ esac
1897+fi
1898+
1899+# Check dynamic linker characteristics
1900+# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
1901+# Unlike libtool.m4, here we don't care about _all_ names of the library, but
1902+# only about the one the linker finds when passed -lNAME. This is the last
1903+# element of library_names_spec in libtool.m4, or possibly two of them if the
1904+# linker has special search rules.
1905+library_names_spec= # the last element of library_names_spec in libtool.m4
1906+libname_spec='lib$name'
1907+case "$host_os" in
1908+ aix3*)
1909+ library_names_spec='$libname.a'
1910+ ;;
1911+ aix[4-9]*)
1912+ library_names_spec='$libname$shrext'
1913+ ;;
1914+ amigaos*)
1915+ library_names_spec='$libname.a'
1916+ ;;
1917+ beos*)
1918+ library_names_spec='$libname$shrext'
1919+ ;;
1920+ bsdi[45]*)
1921+ library_names_spec='$libname$shrext'
1922+ ;;
1923+ cygwin* | mingw* | pw32* | cegcc*)
1924+ shrext=.dll
1925+ library_names_spec='$libname.dll.a $libname.lib'
1926+ ;;
1927+ darwin* | rhapsody*)
1928+ shrext=.dylib
1929+ library_names_spec='$libname$shrext'
1930+ ;;
1931+ dgux*)
1932+ library_names_spec='$libname$shrext'
1933+ ;;
1934+ freebsd1*)
1935+ ;;
1936+ freebsd* | dragonfly*)
1937+ case "$host_os" in
1938+ freebsd[123]*)
1939+ library_names_spec='$libname$shrext$versuffix' ;;
1940+ *)
1941+ library_names_spec='$libname$shrext' ;;
1942+ esac
1943+ ;;
1944+ gnu*)
1945+ library_names_spec='$libname$shrext'
1946+ ;;
1947+ hpux9* | hpux10* | hpux11*)
1948+ case $host_cpu in
1949+ ia64*)
1950+ shrext=.so
1951+ ;;
1952+ hppa*64*)
1953+ shrext=.sl
1954+ ;;
1955+ *)
1956+ shrext=.sl
1957+ ;;
1958+ esac
1959+ library_names_spec='$libname$shrext'
1960+ ;;
1961+ interix[3-9]*)
1962+ library_names_spec='$libname$shrext'
1963+ ;;
1964+ irix5* | irix6* | nonstopux*)
1965+ library_names_spec='$libname$shrext'
1966+ case "$host_os" in
1967+ irix5* | nonstopux*)
1968+ libsuff= shlibsuff=
1969+ ;;
1970+ *)
1971+ case $LD in
1972+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
1973+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
1974+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
1975+ *) libsuff= shlibsuff= ;;
1976+ esac
1977+ ;;
1978+ esac
1979+ ;;
1980+ linux*oldld* | linux*aout* | linux*coff*)
1981+ ;;
1982+ linux* | k*bsd*-gnu)
1983+ library_names_spec='$libname$shrext'
1984+ ;;
1985+ knetbsd*-gnu)
1986+ library_names_spec='$libname$shrext'
1987+ ;;
1988+ netbsd*)
1989+ library_names_spec='$libname$shrext'
1990+ ;;
1991+ newsos6)
1992+ library_names_spec='$libname$shrext'
1993+ ;;
1994+ nto-qnx*)
1995+ library_names_spec='$libname$shrext'
1996+ ;;
1997+ openbsd*)
1998+ library_names_spec='$libname$shrext$versuffix'
1999+ ;;
2000+ os2*)
2001+ libname_spec='$name'
2002+ shrext=.dll
2003+ library_names_spec='$libname.a'
2004+ ;;
2005+ osf3* | osf4* | osf5*)
2006+ library_names_spec='$libname$shrext'
2007+ ;;
2008+ rdos*)
2009+ ;;
2010+ solaris*)
2011+ library_names_spec='$libname$shrext'
2012+ ;;
2013+ sunos4*)
2014+ library_names_spec='$libname$shrext$versuffix'
2015+ ;;
2016+ sysv4 | sysv4.3*)
2017+ library_names_spec='$libname$shrext'
2018+ ;;
2019+ sysv4*MP*)
2020+ library_names_spec='$libname$shrext'
2021+ ;;
2022+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2023+ library_names_spec='$libname$shrext'
2024+ ;;
2025+ uts4*)
2026+ library_names_spec='$libname$shrext'
2027+ ;;
2028+esac
2029+
2030+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2031+escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
2032+shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
2033+escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
2034+escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
2035+escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
2036+
2037+LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
2038+
2039+# How to pass a linker flag through the compiler.
2040+wl="$escaped_wl"
2041+
2042+# Static library suffix (normally "a").
2043+libext="$libext"
2044+
2045+# Shared library suffix (normally "so").
2046+shlibext="$shlibext"
2047+
2048+# Format of library name prefix.
2049+libname_spec="$escaped_libname_spec"
2050+
2051+# Library names that the linker finds when passed -lNAME.
2052+library_names_spec="$escaped_library_names_spec"
2053+
2054+# Flag to hardcode \$libdir into a binary during linking.
2055+# This must work even if \$libdir does not exist.
2056+hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
2057+
2058+# Whether we need a single -rpath flag with a separated argument.
2059+hardcode_libdir_separator="$hardcode_libdir_separator"
2060+
2061+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
2062+# resulting binary.
2063+hardcode_direct="$hardcode_direct"
2064+
2065+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
2066+# resulting binary.
2067+hardcode_minus_L="$hardcode_minus_L"
2068+
2069+EOF
2070diff --git a/m4/codeset.m4 b/m4/codeset.m4
2071new file mode 100644
2072index 0000000..a53c042
2073--- /dev/null
2074+++ b/m4/codeset.m4
2075@@ -0,0 +1,21 @@
2076+# codeset.m4 serial 4 (gettext-0.18)
2077+dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
2078+dnl This file is free software; the Free Software Foundation
2079+dnl gives unlimited permission to copy and/or distribute it,
2080+dnl with or without modifications, as long as this notice is preserved.
2081+
2082+dnl From Bruno Haible.
2083+
2084+AC_DEFUN([AM_LANGINFO_CODESET],
2085+[
2086+ AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
2087+ [AC_TRY_LINK([#include <langinfo.h>],
2088+ [char* cs = nl_langinfo(CODESET); return !cs;],
2089+ [am_cv_langinfo_codeset=yes],
2090+ [am_cv_langinfo_codeset=no])
2091+ ])
2092+ if test $am_cv_langinfo_codeset = yes; then
2093+ AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
2094+ [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
2095+ fi
2096+])
2097diff --git a/m4/fcntl-o.m4 b/m4/fcntl-o.m4
2098new file mode 100644
2099index 0000000..d416a61
2100--- /dev/null
2101+++ b/m4/fcntl-o.m4
2102@@ -0,0 +1,81 @@
2103+# fcntl-o.m4 serial 1
2104+dnl Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc.
2105+dnl This file is free software; the Free Software Foundation
2106+dnl gives unlimited permission to copy and/or distribute it,
2107+dnl with or without modifications, as long as this notice is preserved.
2108+
2109+dnl Written by Paul Eggert.
2110+
2111+# Test whether the flags O_NOATIME and O_NOFOLLOW actually work.
2112+# Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise.
2113+# Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise.
2114+AC_DEFUN([gl_FCNTL_O_FLAGS],
2115+[
2116+ dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW.
2117+ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2118+ AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h],
2119+ [AC_RUN_IFELSE(
2120+ [AC_LANG_PROGRAM(
2121+ [[#include <sys/types.h>
2122+ #include <sys/stat.h>
2123+ #include <unistd.h>
2124+ #include <fcntl.h>
2125+ #ifndef O_NOATIME
2126+ #define O_NOATIME 0
2127+ #endif
2128+ #ifndef O_NOFOLLOW
2129+ #define O_NOFOLLOW 0
2130+ #endif
2131+ static int const constants[] =
2132+ {
2133+ O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
2134+ O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
2135+ };
2136+ ]],
2137+ [[
2138+ int status = !constants;
2139+ {
2140+ static char const sym[] = "conftest.sym";
2141+ if (symlink (".", sym) != 0
2142+ || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
2143+ status |= 32;
2144+ unlink (sym);
2145+ }
2146+ {
2147+ static char const file[] = "confdefs.h";
2148+ int fd = open (file, O_RDONLY | O_NOATIME);
2149+ char c;
2150+ struct stat st0, st1;
2151+ if (fd < 0
2152+ || fstat (fd, &st0) != 0
2153+ || sleep (1) != 0
2154+ || read (fd, &c, 1) != 1
2155+ || close (fd) != 0
2156+ || stat (file, &st1) != 0
2157+ || st0.st_atime != st1.st_atime)
2158+ status |= 64;
2159+ }
2160+ return status;]])],
2161+ [gl_cv_header_working_fcntl_h=yes],
2162+ [case $? in #(
2163+ 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
2164+ 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
2165+ 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
2166+ *) gl_cv_header_working_fcntl_h='no';;
2167+ esac],
2168+ [gl_cv_header_working_fcntl_h=cross-compiling])])
2169+
2170+ case $gl_cv_header_working_fcntl_h in #(
2171+ *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
2172+ *) ac_val=1;;
2173+ esac
2174+ AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val],
2175+ [Define to 1 if O_NOATIME works.])
2176+
2177+ case $gl_cv_header_working_fcntl_h in #(
2178+ *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
2179+ *) ac_val=1;;
2180+ esac
2181+ AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val],
2182+ [Define to 1 if O_NOFOLLOW works.])
2183+])
2184diff --git a/m4/gettext.m4 b/m4/gettext.m4
2185new file mode 100644
2186index 0000000..f84e6a5
2187--- /dev/null
2188+++ b/m4/gettext.m4
2189@@ -0,0 +1,383 @@
2190+# gettext.m4 serial 63 (gettext-0.18)
2191+dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
2192+dnl This file is free software; the Free Software Foundation
2193+dnl gives unlimited permission to copy and/or distribute it,
2194+dnl with or without modifications, as long as this notice is preserved.
2195+dnl
2196+dnl This file can can be used in projects which are not available under
2197+dnl the GNU General Public License or the GNU Library General Public
2198+dnl License but which still want to provide support for the GNU gettext
2199+dnl functionality.
2200+dnl Please note that the actual code of the GNU gettext library is covered
2201+dnl by the GNU Library General Public License, and the rest of the GNU
2202+dnl gettext package package is covered by the GNU General Public License.
2203+dnl They are *not* in the public domain.
2204+
2205+dnl Authors:
2206+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
2207+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
2208+
2209+dnl Macro to add for using GNU gettext.
2210+
2211+dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
2212+dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
2213+dnl default (if it is not specified or empty) is 'no-libtool'.
2214+dnl INTLSYMBOL should be 'external' for packages with no intl directory,
2215+dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
2216+dnl If INTLSYMBOL is 'use-libtool', then a libtool library
2217+dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
2218+dnl depending on --{enable,disable}-{shared,static} and on the presence of
2219+dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
2220+dnl $(top_builddir)/intl/libintl.a will be created.
2221+dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
2222+dnl implementations (in libc or libintl) without the ngettext() function
2223+dnl will be ignored. If NEEDSYMBOL is specified and is
2224+dnl 'need-formatstring-macros', then GNU gettext implementations that don't
2225+dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
2226+dnl INTLDIR is used to find the intl libraries. If empty,
2227+dnl the value `$(top_builddir)/intl/' is used.
2228+dnl
2229+dnl The result of the configuration is one of three cases:
2230+dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
2231+dnl and used.
2232+dnl Catalog format: GNU --> install in $(datadir)
2233+dnl Catalog extension: .mo after installation, .gmo in source tree
2234+dnl 2) GNU gettext has been found in the system's C library.
2235+dnl Catalog format: GNU --> install in $(datadir)
2236+dnl Catalog extension: .mo after installation, .gmo in source tree
2237+dnl 3) No internationalization, always use English msgid.
2238+dnl Catalog format: none
2239+dnl Catalog extension: none
2240+dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
2241+dnl The use of .gmo is historical (it was needed to avoid overwriting the
2242+dnl GNU format catalogs when building on a platform with an X/Open gettext),
2243+dnl but we keep it in order not to force irrelevant filename changes on the
2244+dnl maintainers.
2245+dnl
2246+AC_DEFUN([AM_GNU_GETTEXT],
2247+[
2248+ dnl Argument checking.
2249+ ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
2250+ [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
2251+])])])])])
2252+ ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
2253+ [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
2254+ ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
2255+ [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
2256+])])])])
2257+ define([gt_included_intl],
2258+ ifelse([$1], [external],
2259+ ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
2260+ [yes]))
2261+ define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
2262+ gt_NEEDS_INIT
2263+ AM_GNU_GETTEXT_NEED([$2])
2264+
2265+ AC_REQUIRE([AM_PO_SUBDIRS])dnl
2266+ ifelse(gt_included_intl, yes, [
2267+ AC_REQUIRE([AM_INTL_SUBDIR])dnl
2268+ ])
2269+
2270+ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
2271+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2272+ AC_REQUIRE([AC_LIB_RPATH])
2273+
2274+ dnl Sometimes libintl requires libiconv, so first search for libiconv.
2275+ dnl Ideally we would do this search only after the
2276+ dnl if test "$USE_NLS" = "yes"; then
2277+ dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
2278+ dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
2279+ dnl the configure script would need to contain the same shell code
2280+ dnl again, outside any 'if'. There are two solutions:
2281+ dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
2282+ dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
2283+ dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
2284+ dnl documented, we avoid it.
2285+ ifelse(gt_included_intl, yes, , [
2286+ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
2287+ ])
2288+
2289+ dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
2290+ gt_INTL_MACOSX
2291+
2292+ dnl Set USE_NLS.
2293+ AC_REQUIRE([AM_NLS])
2294+
2295+ ifelse(gt_included_intl, yes, [
2296+ BUILD_INCLUDED_LIBINTL=no
2297+ USE_INCLUDED_LIBINTL=no
2298+ ])
2299+ LIBINTL=
2300+ LTLIBINTL=
2301+ POSUB=
2302+
2303+ dnl Add a version number to the cache macros.
2304+ case " $gt_needs " in
2305+ *" need-formatstring-macros "*) gt_api_version=3 ;;
2306+ *" need-ngettext "*) gt_api_version=2 ;;
2307+ *) gt_api_version=1 ;;
2308+ esac
2309+ gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
2310+ gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
2311+
2312+ dnl If we use NLS figure out what method
2313+ if test "$USE_NLS" = "yes"; then
2314+ gt_use_preinstalled_gnugettext=no
2315+ ifelse(gt_included_intl, yes, [
2316+ AC_MSG_CHECKING([whether included gettext is requested])
2317+ AC_ARG_WITH([included-gettext],
2318+ [ --with-included-gettext use the GNU gettext library included here],
2319+ nls_cv_force_use_gnu_gettext=$withval,
2320+ nls_cv_force_use_gnu_gettext=no)
2321+ AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
2322+
2323+ nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2324+ if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2325+ ])
2326+ dnl User does not insist on using GNU NLS library. Figure out what
2327+ dnl to use. If GNU gettext is available we use this. Else we have
2328+ dnl to fall back to GNU NLS library.
2329+
2330+ if test $gt_api_version -ge 3; then
2331+ gt_revision_test_code='
2332+#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
2333+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
2334+#endif
2335+changequote(,)dnl
2336+typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
2337+changequote([,])dnl
2338+'
2339+ else
2340+ gt_revision_test_code=
2341+ fi
2342+ if test $gt_api_version -ge 2; then
2343+ gt_expression_test_code=' + * ngettext ("", "", 0)'
2344+ else
2345+ gt_expression_test_code=
2346+ fi
2347+
2348+ AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
2349+ [AC_TRY_LINK([#include <libintl.h>
2350+$gt_revision_test_code
2351+extern int _nl_msg_cat_cntr;
2352+extern int *_nl_domain_bindings;],
2353+ [bindtextdomain ("", "");
2354+return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
2355+ [eval "$gt_func_gnugettext_libc=yes"],
2356+ [eval "$gt_func_gnugettext_libc=no"])])
2357+
2358+ if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
2359+ dnl Sometimes libintl requires libiconv, so first search for libiconv.
2360+ ifelse(gt_included_intl, yes, , [
2361+ AM_ICONV_LINK
2362+ ])
2363+ dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
2364+ dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
2365+ dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
2366+ dnl even if libiconv doesn't exist.
2367+ AC_LIB_LINKFLAGS_BODY([intl])
2368+ AC_CACHE_CHECK([for GNU gettext in libintl],
2369+ [$gt_func_gnugettext_libintl],
2370+ [gt_save_CPPFLAGS="$CPPFLAGS"
2371+ CPPFLAGS="$CPPFLAGS $INCINTL"
2372+ gt_save_LIBS="$LIBS"
2373+ LIBS="$LIBS $LIBINTL"
2374+ dnl Now see whether libintl exists and does not depend on libiconv.
2375+ AC_TRY_LINK([#include <libintl.h>
2376+$gt_revision_test_code
2377+extern int _nl_msg_cat_cntr;
2378+extern
2379+#ifdef __cplusplus
2380+"C"
2381+#endif
2382+const char *_nl_expand_alias (const char *);],
2383+ [bindtextdomain ("", "");
2384+return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
2385+ [eval "$gt_func_gnugettext_libintl=yes"],
2386+ [eval "$gt_func_gnugettext_libintl=no"])
2387+ dnl Now see whether libintl exists and depends on libiconv.
2388+ if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
2389+ LIBS="$LIBS $LIBICONV"
2390+ AC_TRY_LINK([#include <libintl.h>
2391+$gt_revision_test_code
2392+extern int _nl_msg_cat_cntr;
2393+extern
2394+#ifdef __cplusplus
2395+"C"
2396+#endif
2397+const char *_nl_expand_alias (const char *);],
2398+ [bindtextdomain ("", "");
2399+return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
2400+ [LIBINTL="$LIBINTL $LIBICONV"
2401+ LTLIBINTL="$LTLIBINTL $LTLIBICONV"
2402+ eval "$gt_func_gnugettext_libintl=yes"
2403+ ])
2404+ fi
2405+ CPPFLAGS="$gt_save_CPPFLAGS"
2406+ LIBS="$gt_save_LIBS"])
2407+ fi
2408+
2409+ dnl If an already present or preinstalled GNU gettext() is found,
2410+ dnl use it. But if this macro is used in GNU gettext, and GNU
2411+ dnl gettext is already preinstalled in libintl, we update this
2412+ dnl libintl. (Cf. the install rule in intl/Makefile.in.)
2413+ if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
2414+ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
2415+ && test "$PACKAGE" != gettext-runtime \
2416+ && test "$PACKAGE" != gettext-tools; }; then
2417+ gt_use_preinstalled_gnugettext=yes
2418+ else
2419+ dnl Reset the values set by searching for libintl.
2420+ LIBINTL=
2421+ LTLIBINTL=
2422+ INCINTL=
2423+ fi
2424+
2425+ ifelse(gt_included_intl, yes, [
2426+ if test "$gt_use_preinstalled_gnugettext" != "yes"; then
2427+ dnl GNU gettext is not found in the C library.
2428+ dnl Fall back on included GNU gettext library.
2429+ nls_cv_use_gnu_gettext=yes
2430+ fi
2431+ fi
2432+
2433+ if test "$nls_cv_use_gnu_gettext" = "yes"; then
2434+ dnl Mark actions used to generate GNU NLS library.
2435+ BUILD_INCLUDED_LIBINTL=yes
2436+ USE_INCLUDED_LIBINTL=yes
2437+ LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
2438+ LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
2439+ LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2440+ fi
2441+
2442+ CATOBJEXT=
2443+ if test "$gt_use_preinstalled_gnugettext" = "yes" \
2444+ || test "$nls_cv_use_gnu_gettext" = "yes"; then
2445+ dnl Mark actions to use GNU gettext tools.
2446+ CATOBJEXT=.gmo
2447+ fi
2448+ ])
2449+
2450+ if test -n "$INTL_MACOSX_LIBS"; then
2451+ if test "$gt_use_preinstalled_gnugettext" = "yes" \
2452+ || test "$nls_cv_use_gnu_gettext" = "yes"; then
2453+ dnl Some extra flags are needed during linking.
2454+ LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
2455+ LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
2456+ fi
2457+ fi
2458+
2459+ if test "$gt_use_preinstalled_gnugettext" = "yes" \
2460+ || test "$nls_cv_use_gnu_gettext" = "yes"; then
2461+ AC_DEFINE([ENABLE_NLS], [1],
2462+ [Define to 1 if translation of program messages to the user's native language
2463+ is requested.])
2464+ else
2465+ USE_NLS=no
2466+ fi
2467+ fi
2468+
2469+ AC_MSG_CHECKING([whether to use NLS])
2470+ AC_MSG_RESULT([$USE_NLS])
2471+ if test "$USE_NLS" = "yes"; then
2472+ AC_MSG_CHECKING([where the gettext function comes from])
2473+ if test "$gt_use_preinstalled_gnugettext" = "yes"; then
2474+ if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
2475+ gt_source="external libintl"
2476+ else
2477+ gt_source="libc"
2478+ fi
2479+ else
2480+ gt_source="included intl directory"
2481+ fi
2482+ AC_MSG_RESULT([$gt_source])
2483+ fi
2484+
2485+ if test "$USE_NLS" = "yes"; then
2486+
2487+ if test "$gt_use_preinstalled_gnugettext" = "yes"; then
2488+ if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
2489+ AC_MSG_CHECKING([how to link with libintl])
2490+ AC_MSG_RESULT([$LIBINTL])
2491+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
2492+ fi
2493+
2494+ dnl For backward compatibility. Some packages may be using this.
2495+ AC_DEFINE([HAVE_GETTEXT], [1],
2496+ [Define if the GNU gettext() function is already present or preinstalled.])
2497+ AC_DEFINE([HAVE_DCGETTEXT], [1],
2498+ [Define if the GNU dcgettext() function is already present or preinstalled.])
2499+ fi
2500+
2501+ dnl We need to process the po/ directory.
2502+ POSUB=po
2503+ fi
2504+
2505+ ifelse(gt_included_intl, yes, [
2506+ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
2507+ dnl to 'yes' because some of the testsuite requires it.
2508+ if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
2509+ BUILD_INCLUDED_LIBINTL=yes
2510+ fi
2511+
2512+ dnl Make all variables we use known to autoconf.
2513+ AC_SUBST([BUILD_INCLUDED_LIBINTL])
2514+ AC_SUBST([USE_INCLUDED_LIBINTL])
2515+ AC_SUBST([CATOBJEXT])
2516+
2517+ dnl For backward compatibility. Some configure.ins may be using this.
2518+ nls_cv_header_intl=
2519+ nls_cv_header_libgt=
2520+
2521+ dnl For backward compatibility. Some Makefiles may be using this.
2522+ DATADIRNAME=share
2523+ AC_SUBST([DATADIRNAME])
2524+
2525+ dnl For backward compatibility. Some Makefiles may be using this.
2526+ INSTOBJEXT=.mo
2527+ AC_SUBST([INSTOBJEXT])
2528+
2529+ dnl For backward compatibility. Some Makefiles may be using this.
2530+ GENCAT=gencat
2531+ AC_SUBST([GENCAT])
2532+
2533+ dnl For backward compatibility. Some Makefiles may be using this.
2534+ INTLOBJS=
2535+ if test "$USE_INCLUDED_LIBINTL" = yes; then
2536+ INTLOBJS="\$(GETTOBJS)"
2537+ fi
2538+ AC_SUBST([INTLOBJS])
2539+
2540+ dnl Enable libtool support if the surrounding package wishes it.
2541+ INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
2542+ AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
2543+ ])
2544+
2545+ dnl For backward compatibility. Some Makefiles may be using this.
2546+ INTLLIBS="$LIBINTL"
2547+ AC_SUBST([INTLLIBS])
2548+
2549+ dnl Make all documented variables known to autoconf.
2550+ AC_SUBST([LIBINTL])
2551+ AC_SUBST([LTLIBINTL])
2552+ AC_SUBST([POSUB])
2553+])
2554+
2555+
2556+dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
2557+m4_define([gt_NEEDS_INIT],
2558+[
2559+ m4_divert_text([DEFAULTS], [gt_needs=])
2560+ m4_define([gt_NEEDS_INIT], [])
2561+])
2562+
2563+
2564+dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
2565+AC_DEFUN([AM_GNU_GETTEXT_NEED],
2566+[
2567+ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
2568+])
2569+
2570+
2571+dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
2572+AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
2573diff --git a/m4/glibc2.m4 b/m4/glibc2.m4
2574new file mode 100644
2575index 0000000..f148c12
2576--- /dev/null
2577+++ b/m4/glibc2.m4
2578@@ -0,0 +1,30 @@
2579+# glibc2.m4 serial 2
2580+dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc.
2581+dnl This file is free software; the Free Software Foundation
2582+dnl gives unlimited permission to copy and/or distribute it,
2583+dnl with or without modifications, as long as this notice is preserved.
2584+
2585+# Test for the GNU C Library, version 2.0 or newer.
2586+# From Bruno Haible.
2587+
2588+AC_DEFUN([gt_GLIBC2],
2589+ [
2590+ AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer],
2591+ [ac_cv_gnu_library_2],
2592+ [AC_EGREP_CPP([Lucky GNU user],
2593+ [
2594+#include <features.h>
2595+#ifdef __GNU_LIBRARY__
2596+ #if (__GLIBC__ >= 2)
2597+ Lucky GNU user
2598+ #endif
2599+#endif
2600+ ],
2601+ [ac_cv_gnu_library_2=yes],
2602+ [ac_cv_gnu_library_2=no])
2603+ ]
2604+ )
2605+ AC_SUBST([GLIBC2])
2606+ GLIBC2="$ac_cv_gnu_library_2"
2607+ ]
2608+)
2609diff --git a/m4/glibc21.m4 b/m4/glibc21.m4
2610new file mode 100644
2611index 0000000..68ada9d
2612--- /dev/null
2613+++ b/m4/glibc21.m4
2614@@ -0,0 +1,30 @@
2615+# glibc21.m4 serial 4
2616+dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc.
2617+dnl This file is free software; the Free Software Foundation
2618+dnl gives unlimited permission to copy and/or distribute it,
2619+dnl with or without modifications, as long as this notice is preserved.
2620+
2621+# Test for the GNU C Library, version 2.1 or newer.
2622+# From Bruno Haible.
2623+
2624+AC_DEFUN([gl_GLIBC21],
2625+ [
2626+ AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer],
2627+ [ac_cv_gnu_library_2_1],
2628+ [AC_EGREP_CPP([Lucky GNU user],
2629+ [
2630+#include <features.h>
2631+#ifdef __GNU_LIBRARY__
2632+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2633+ Lucky GNU user
2634+ #endif
2635+#endif
2636+ ],
2637+ [ac_cv_gnu_library_2_1=yes],
2638+ [ac_cv_gnu_library_2_1=no])
2639+ ]
2640+ )
2641+ AC_SUBST([GLIBC21])
2642+ GLIBC21="$ac_cv_gnu_library_2_1"
2643+ ]
2644+)
2645diff --git a/m4/iconv.m4 b/m4/iconv.m4
2646new file mode 100644
2647index 0000000..e2041b9
2648--- /dev/null
2649+++ b/m4/iconv.m4
2650@@ -0,0 +1,214 @@
2651+# iconv.m4 serial 11 (gettext-0.18.1)
2652+dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc.
2653+dnl This file is free software; the Free Software Foundation
2654+dnl gives unlimited permission to copy and/or distribute it,
2655+dnl with or without modifications, as long as this notice is preserved.
2656+
2657+dnl From Bruno Haible.
2658+
2659+AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
2660+[
2661+ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
2662+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2663+ AC_REQUIRE([AC_LIB_RPATH])
2664+
2665+ dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2666+ dnl accordingly.
2667+ AC_LIB_LINKFLAGS_BODY([iconv])
2668+])
2669+
2670+AC_DEFUN([AM_ICONV_LINK],
2671+[
2672+ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
2673+ dnl those with the standalone portable GNU libiconv installed).
2674+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2675+
2676+ dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2677+ dnl accordingly.
2678+ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
2679+
2680+ dnl Add $INCICONV to CPPFLAGS before performing the following checks,
2681+ dnl because if the user has installed libiconv and not disabled its use
2682+ dnl via --without-libiconv-prefix, he wants to use it. The first
2683+ dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
2684+ am_save_CPPFLAGS="$CPPFLAGS"
2685+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
2686+
2687+ AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
2688+ am_cv_func_iconv="no, consider installing GNU libiconv"
2689+ am_cv_lib_iconv=no
2690+ AC_TRY_LINK([#include <stdlib.h>
2691+#include <iconv.h>],
2692+ [iconv_t cd = iconv_open("","");
2693+ iconv(cd,NULL,NULL,NULL,NULL);
2694+ iconv_close(cd);],
2695+ [am_cv_func_iconv=yes])
2696+ if test "$am_cv_func_iconv" != yes; then
2697+ am_save_LIBS="$LIBS"
2698+ LIBS="$LIBS $LIBICONV"
2699+ AC_TRY_LINK([#include <stdlib.h>
2700+#include <iconv.h>],
2701+ [iconv_t cd = iconv_open("","");
2702+ iconv(cd,NULL,NULL,NULL,NULL);
2703+ iconv_close(cd);],
2704+ [am_cv_lib_iconv=yes]
2705+ [am_cv_func_iconv=yes])
2706+ LIBS="$am_save_LIBS"
2707+ fi
2708+ ])
2709+ if test "$am_cv_func_iconv" = yes; then
2710+ AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
2711+ dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10.
2712+ am_save_LIBS="$LIBS"
2713+ if test $am_cv_lib_iconv = yes; then
2714+ LIBS="$LIBS $LIBICONV"
2715+ fi
2716+ AC_TRY_RUN([
2717+#include <iconv.h>
2718+#include <string.h>
2719+int main ()
2720+{
2721+ /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
2722+ returns. */
2723+ {
2724+ iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
2725+ if (cd_utf8_to_88591 != (iconv_t)(-1))
2726+ {
2727+ static const char input[] = "\342\202\254"; /* EURO SIGN */
2728+ char buf[10];
2729+ const char *inptr = input;
2730+ size_t inbytesleft = strlen (input);
2731+ char *outptr = buf;
2732+ size_t outbytesleft = sizeof (buf);
2733+ size_t res = iconv (cd_utf8_to_88591,
2734+ (char **) &inptr, &inbytesleft,
2735+ &outptr, &outbytesleft);
2736+ if (res == 0)
2737+ return 1;
2738+ }
2739+ }
2740+ /* Test against Solaris 10 bug: Failures are not distinguishable from
2741+ successful returns. */
2742+ {
2743+ iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
2744+ if (cd_ascii_to_88591 != (iconv_t)(-1))
2745+ {
2746+ static const char input[] = "\263";
2747+ char buf[10];
2748+ const char *inptr = input;
2749+ size_t inbytesleft = strlen (input);
2750+ char *outptr = buf;
2751+ size_t outbytesleft = sizeof (buf);
2752+ size_t res = iconv (cd_ascii_to_88591,
2753+ (char **) &inptr, &inbytesleft,
2754+ &outptr, &outbytesleft);
2755+ if (res == 0)
2756+ return 1;
2757+ }
2758+ }
2759+#if 0 /* This bug could be worked around by the caller. */
2760+ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
2761+ {
2762+ iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
2763+ if (cd_88591_to_utf8 != (iconv_t)(-1))
2764+ {
2765+ static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
2766+ char buf[50];
2767+ const char *inptr = input;
2768+ size_t inbytesleft = strlen (input);
2769+ char *outptr = buf;
2770+ size_t outbytesleft = sizeof (buf);
2771+ size_t res = iconv (cd_88591_to_utf8,
2772+ (char **) &inptr, &inbytesleft,
2773+ &outptr, &outbytesleft);
2774+ if ((int)res > 0)
2775+ return 1;
2776+ }
2777+ }
2778+#endif
2779+ /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
2780+ provided. */
2781+ if (/* Try standardized names. */
2782+ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
2783+ /* Try IRIX, OSF/1 names. */
2784+ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
2785+ /* Try AIX names. */
2786+ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
2787+ /* Try HP-UX names. */
2788+ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
2789+ return 1;
2790+ return 0;
2791+}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
2792+ [case "$host_os" in
2793+ aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
2794+ *) am_cv_func_iconv_works="guessing yes" ;;
2795+ esac])
2796+ LIBS="$am_save_LIBS"
2797+ ])
2798+ case "$am_cv_func_iconv_works" in
2799+ *no) am_func_iconv=no am_cv_lib_iconv=no ;;
2800+ *) am_func_iconv=yes ;;
2801+ esac
2802+ else
2803+ am_func_iconv=no am_cv_lib_iconv=no
2804+ fi
2805+ if test "$am_func_iconv" = yes; then
2806+ AC_DEFINE([HAVE_ICONV], [1],
2807+ [Define if you have the iconv() function and it works.])
2808+ fi
2809+ if test "$am_cv_lib_iconv" = yes; then
2810+ AC_MSG_CHECKING([how to link with libiconv])
2811+ AC_MSG_RESULT([$LIBICONV])
2812+ else
2813+ dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
2814+ dnl either.
2815+ CPPFLAGS="$am_save_CPPFLAGS"
2816+ LIBICONV=
2817+ LTLIBICONV=
2818+ fi
2819+ AC_SUBST([LIBICONV])
2820+ AC_SUBST([LTLIBICONV])
2821+])
2822+
2823+dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
2824+dnl avoid warnings like
2825+dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
2826+dnl This is tricky because of the way 'aclocal' is implemented:
2827+dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
2828+dnl Otherwise aclocal's initial scan pass would miss the macro definition.
2829+dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
2830+dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
2831+dnl warnings.
2832+m4_define([gl_iconv_AC_DEFUN],
2833+ m4_version_prereq([2.64],
2834+ [[AC_DEFUN_ONCE(
2835+ [$1], [$2])]],
2836+ [[AC_DEFUN(
2837+ [$1], [$2])]]))
2838+gl_iconv_AC_DEFUN([AM_ICONV],
2839+[
2840+ AM_ICONV_LINK
2841+ if test "$am_cv_func_iconv" = yes; then
2842+ AC_MSG_CHECKING([for iconv declaration])
2843+ AC_CACHE_VAL([am_cv_proto_iconv], [
2844+ AC_TRY_COMPILE([
2845+#include <stdlib.h>
2846+#include <iconv.h>
2847+extern
2848+#ifdef __cplusplus
2849+"C"
2850+#endif
2851+#if defined(__STDC__) || defined(__cplusplus)
2852+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2853+#else
2854+size_t iconv();
2855+#endif
2856+], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"])
2857+ 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);"])
2858+ am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2859+ AC_MSG_RESULT([
2860+ $am_cv_proto_iconv])
2861+ AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
2862+ [Define as const if the declaration of iconv() needs const.])
2863+ fi
2864+])
2865diff --git a/m4/intdiv0.m4 b/m4/intdiv0.m4
2866new file mode 100644
2867index 0000000..289c4df
2868--- /dev/null
2869+++ b/m4/intdiv0.m4
2870@@ -0,0 +1,84 @@
2871+# intdiv0.m4 serial 3 (gettext-0.18)
2872+dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc.
2873+dnl This file is free software; the Free Software Foundation
2874+dnl gives unlimited permission to copy and/or distribute it,
2875+dnl with or without modifications, as long as this notice is preserved.
2876+
2877+dnl From Bruno Haible.
2878+
2879+AC_DEFUN([gt_INTDIV0],
2880+[
2881+ AC_REQUIRE([AC_PROG_CC])dnl
2882+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
2883+
2884+ AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
2885+ gt_cv_int_divbyzero_sigfpe,
2886+ [
2887+ gt_cv_int_divbyzero_sigfpe=
2888+changequote(,)dnl
2889+ case "$host_os" in
2890+ macos* | darwin[6-9]* | darwin[1-9][0-9]*)
2891+ # On MacOS X 10.2 or newer, just assume the same as when cross-
2892+ # compiling. If we were to perform the real test, 1 Crash Report
2893+ # dialog window would pop up.
2894+ case "$host_cpu" in
2895+ i[34567]86 | x86_64)
2896+ gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
2897+ esac
2898+ ;;
2899+ esac
2900+changequote([,])dnl
2901+ if test -z "$gt_cv_int_divbyzero_sigfpe"; then
2902+ AC_TRY_RUN([
2903+#include <stdlib.h>
2904+#include <signal.h>
2905+
2906+static void
2907+sigfpe_handler (int sig)
2908+{
2909+ /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2910+ exit (sig != SIGFPE);
2911+}
2912+
2913+int x = 1;
2914+int y = 0;
2915+int z;
2916+int nan;
2917+
2918+int main ()
2919+{
2920+ signal (SIGFPE, sigfpe_handler);
2921+/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2922+#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2923+ signal (SIGTRAP, sigfpe_handler);
2924+#endif
2925+/* Linux/SPARC yields signal SIGILL. */
2926+#if defined (__sparc__) && defined (__linux__)
2927+ signal (SIGILL, sigfpe_handler);
2928+#endif
2929+
2930+ z = x / y;
2931+ nan = y / y;
2932+ exit (1);
2933+}
2934+], [gt_cv_int_divbyzero_sigfpe=yes], [gt_cv_int_divbyzero_sigfpe=no],
2935+ [
2936+ # Guess based on the CPU.
2937+changequote(,)dnl
2938+ case "$host_cpu" in
2939+ alpha* | i[34567]86 | x86_64 | m68k | s390*)
2940+ gt_cv_int_divbyzero_sigfpe="guessing yes";;
2941+ *)
2942+ gt_cv_int_divbyzero_sigfpe="guessing no";;
2943+ esac
2944+changequote([,])dnl
2945+ ])
2946+ fi
2947+ ])
2948+ case "$gt_cv_int_divbyzero_sigfpe" in
2949+ *yes) value=1;;
2950+ *) value=0;;
2951+ esac
2952+ AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value],
2953+ [Define if integer division by zero raises signal SIGFPE.])
2954+])
2955diff --git a/m4/intl.m4 b/m4/intl.m4
2956new file mode 100644
2957index 0000000..335b23c
2958--- /dev/null
2959+++ b/m4/intl.m4
2960@@ -0,0 +1,294 @@
2961+# intl.m4 serial 17 (gettext-0.18)
2962+dnl Copyright (C) 1995-2009 Free Software Foundation, Inc.
2963+dnl This file is free software; the Free Software Foundation
2964+dnl gives unlimited permission to copy and/or distribute it,
2965+dnl with or without modifications, as long as this notice is preserved.
2966+dnl
2967+dnl This file can can be used in projects which are not available under
2968+dnl the GNU General Public License or the GNU Library General Public
2969+dnl License but which still want to provide support for the GNU gettext
2970+dnl functionality.
2971+dnl Please note that the actual code of the GNU gettext library is covered
2972+dnl by the GNU Library General Public License, and the rest of the GNU
2973+dnl gettext package package is covered by the GNU General Public License.
2974+dnl They are *not* in the public domain.
2975+
2976+dnl Authors:
2977+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
2978+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2009.
2979+
2980+AC_PREREQ([2.52])
2981+
2982+dnl Checks for all prerequisites of the intl subdirectory,
2983+dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
2984+dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
2985+AC_DEFUN([AM_INTL_SUBDIR],
2986+[
2987+ AC_REQUIRE([AC_PROG_INSTALL])dnl
2988+ AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
2989+ AC_REQUIRE([AC_PROG_CC])dnl
2990+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
2991+ AC_REQUIRE([gt_GLIBC2])dnl
2992+ AC_REQUIRE([AC_PROG_RANLIB])dnl
2993+ AC_REQUIRE([gl_VISIBILITY])dnl
2994+ AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
2995+ AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
2996+ AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
2997+ AC_REQUIRE([gt_TYPE_WINT_T])dnl
2998+ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2999+ AC_REQUIRE([gt_TYPE_INTMAX_T])
3000+ AC_REQUIRE([gt_PRINTF_POSIX])
3001+ AC_REQUIRE([gl_GLIBC21])dnl
3002+ AC_REQUIRE([gl_XSIZE])dnl
3003+ AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl
3004+ AC_REQUIRE([gt_INTL_MACOSX])dnl
3005+
3006+ dnl Support for automake's --enable-silent-rules.
3007+ case "$enable_silent_rules" in
3008+ yes) INTL_DEFAULT_VERBOSITY=0;;
3009+ no) INTL_DEFAULT_VERBOSITY=1;;
3010+ *) INTL_DEFAULT_VERBOSITY=1;;
3011+ esac
3012+ AC_SUBST([INTL_DEFAULT_VERBOSITY])
3013+
3014+ AC_CHECK_TYPE([ptrdiff_t], ,
3015+ [AC_DEFINE([ptrdiff_t], [long],
3016+ [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
3017+ ])
3018+ AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
3019+ AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \
3020+ snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
3021+
3022+ dnl Use the _snprintf function only if it is declared (because on NetBSD it
3023+ dnl is defined as a weak alias of snprintf; we prefer to use the latter).
3024+ gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
3025+ gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
3026+
3027+ dnl Use the *_unlocked functions only if they are declared.
3028+ dnl (because some of them were defined without being declared in Solaris
3029+ dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
3030+ dnl on Solaris 2.5.1 to run on Solaris 2.6).
3031+ dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
3032+ gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
3033+
3034+ case $gt_cv_func_printf_posix in
3035+ *yes) HAVE_POSIX_PRINTF=1 ;;
3036+ *) HAVE_POSIX_PRINTF=0 ;;
3037+ esac
3038+ AC_SUBST([HAVE_POSIX_PRINTF])
3039+ if test "$ac_cv_func_asprintf" = yes; then
3040+ HAVE_ASPRINTF=1
3041+ else
3042+ HAVE_ASPRINTF=0
3043+ fi
3044+ AC_SUBST([HAVE_ASPRINTF])
3045+ if test "$ac_cv_func_snprintf" = yes; then
3046+ HAVE_SNPRINTF=1
3047+ else
3048+ HAVE_SNPRINTF=0
3049+ fi
3050+ AC_SUBST([HAVE_SNPRINTF])
3051+ if test "$ac_cv_func_newlocale" = yes; then
3052+ HAVE_NEWLOCALE=1
3053+ else
3054+ HAVE_NEWLOCALE=0
3055+ fi
3056+ AC_SUBST([HAVE_NEWLOCALE])
3057+ if test "$ac_cv_func_wprintf" = yes; then
3058+ HAVE_WPRINTF=1
3059+ else
3060+ HAVE_WPRINTF=0
3061+ fi
3062+ AC_SUBST([HAVE_WPRINTF])
3063+
3064+ AM_LANGINFO_CODESET
3065+ gt_LC_MESSAGES
3066+
3067+ dnl Compilation on mingw and Cygwin needs special Makefile rules, because
3068+ dnl 1. when we install a shared library, we must arrange to export
3069+ dnl auxiliary pointer variables for every exported variable,
3070+ dnl 2. when we install a shared library and a static library simultaneously,
3071+ dnl the include file specifies __declspec(dllimport) and therefore we
3072+ dnl must arrange to define the auxiliary pointer variables for the
3073+ dnl exported variables _also_ in the static library.
3074+ if test "$enable_shared" = yes; then
3075+ case "$host_os" in
3076+ mingw* | cygwin*) is_woe32dll=yes ;;
3077+ *) is_woe32dll=no ;;
3078+ esac
3079+ else
3080+ is_woe32dll=no
3081+ fi
3082+ WOE32DLL=$is_woe32dll
3083+ AC_SUBST([WOE32DLL])
3084+
3085+ dnl On mingw and Cygwin, we can activate special Makefile rules which add
3086+ dnl version information to the shared libraries and executables.
3087+ case "$host_os" in
3088+ mingw* | cygwin*) is_woe32=yes ;;
3089+ *) is_woe32=no ;;
3090+ esac
3091+ WOE32=$is_woe32
3092+ AC_SUBST([WOE32])
3093+ if test $WOE32 = yes; then
3094+ dnl Check for a program that compiles Windows resource files.
3095+ AC_CHECK_TOOL([WINDRES], [windres])
3096+ fi
3097+
3098+ dnl Determine whether when creating a library, "-lc" should be passed to
3099+ dnl libtool or not. On many platforms, it is required for the libtool option
3100+ dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool
3101+ dnl in the *.la files - makes it impossible to create multithreaded programs,
3102+ dnl because libtool also reorders the -lc to come before the -pthread, and
3103+ dnl this disables pthread_create() <http://docs.hp.com/en/1896/pthreads.html>.
3104+ case "$host_os" in
3105+ hpux*) LTLIBC="" ;;
3106+ *) LTLIBC="-lc" ;;
3107+ esac
3108+ AC_SUBST([LTLIBC])
3109+
3110+ dnl Rename some macros and functions used for locking.
3111+ AH_BOTTOM([
3112+#define __libc_lock_t gl_lock_t
3113+#define __libc_lock_define gl_lock_define
3114+#define __libc_lock_define_initialized gl_lock_define_initialized
3115+#define __libc_lock_init gl_lock_init
3116+#define __libc_lock_lock gl_lock_lock
3117+#define __libc_lock_unlock gl_lock_unlock
3118+#define __libc_lock_recursive_t gl_recursive_lock_t
3119+#define __libc_lock_define_recursive gl_recursive_lock_define
3120+#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized
3121+#define __libc_lock_init_recursive gl_recursive_lock_init
3122+#define __libc_lock_lock_recursive gl_recursive_lock_lock
3123+#define __libc_lock_unlock_recursive gl_recursive_lock_unlock
3124+#define glthread_in_use libintl_thread_in_use
3125+#define glthread_lock_init_func libintl_lock_init_func
3126+#define glthread_lock_lock_func libintl_lock_lock_func
3127+#define glthread_lock_unlock_func libintl_lock_unlock_func
3128+#define glthread_lock_destroy_func libintl_lock_destroy_func
3129+#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded
3130+#define glthread_rwlock_init_func libintl_rwlock_init_func
3131+#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded
3132+#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func
3133+#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded
3134+#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func
3135+#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded
3136+#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func
3137+#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded
3138+#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func
3139+#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded
3140+#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func
3141+#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded
3142+#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func
3143+#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded
3144+#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func
3145+#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded
3146+#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func
3147+#define glthread_once_func libintl_once_func
3148+#define glthread_once_singlethreaded libintl_once_singlethreaded
3149+#define glthread_once_multithreaded libintl_once_multithreaded
3150+])
3151+])
3152+
3153+
3154+dnl Checks for the core files of the intl subdirectory:
3155+dnl dcigettext.c
3156+dnl eval-plural.h
3157+dnl explodename.c
3158+dnl finddomain.c
3159+dnl gettextP.h
3160+dnl gmo.h
3161+dnl hash-string.h hash-string.c
3162+dnl l10nflist.c
3163+dnl libgnuintl.h.in (except the *printf stuff)
3164+dnl loadinfo.h
3165+dnl loadmsgcat.c
3166+dnl localealias.c
3167+dnl log.c
3168+dnl plural-exp.h plural-exp.c
3169+dnl plural.y
3170+dnl Used by libglocale.
3171+AC_DEFUN([gt_INTL_SUBDIR_CORE],
3172+[
3173+ AC_REQUIRE([AC_C_INLINE])dnl
3174+ AC_REQUIRE([AC_TYPE_SIZE_T])dnl
3175+ AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3176+ AC_REQUIRE([AC_FUNC_ALLOCA])dnl
3177+ AC_REQUIRE([AC_FUNC_MMAP])dnl
3178+ AC_REQUIRE([gt_INTDIV0])dnl
3179+ AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
3180+ AC_REQUIRE([gt_INTTYPES_PRI])dnl
3181+ AC_REQUIRE([gl_LOCK])dnl
3182+
3183+ AC_TRY_LINK(
3184+ [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],
3185+ [],
3186+ [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1],
3187+ [Define to 1 if the compiler understands __builtin_expect.])])
3188+
3189+ AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h])
3190+ AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
3191+ stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
3192+ argz_stringify argz_next __fsetlocking])
3193+
3194+ dnl Use the *_unlocked functions only if they are declared.
3195+ dnl (because some of them were defined without being declared in Solaris
3196+ dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
3197+ dnl on Solaris 2.5.1 to run on Solaris 2.6).
3198+ dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
3199+ gt_CHECK_DECL([feof_unlocked], [#include <stdio.h>])
3200+ gt_CHECK_DECL([fgets_unlocked], [#include <stdio.h>])
3201+
3202+ AM_ICONV
3203+
3204+ dnl intl/plural.c is generated from intl/plural.y. It requires bison,
3205+ dnl because plural.y uses bison specific features. It requires at least
3206+ dnl bison-1.26 because earlier versions generate a plural.c that doesn't
3207+ dnl compile.
3208+ dnl bison is only needed for the maintainer (who touches plural.y). But in
3209+ dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
3210+ dnl the rule in general Makefile. Now, some people carelessly touch the
3211+ dnl files or have a broken "make" program, hence the plural.c rule will
3212+ dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
3213+ dnl present or too old.
3214+ AC_CHECK_PROGS([INTLBISON], [bison])
3215+ if test -z "$INTLBISON"; then
3216+ ac_verc_fail=yes
3217+ else
3218+ dnl Found it, now check the version.
3219+ AC_MSG_CHECKING([version of bison])
3220+changequote(<<,>>)dnl
3221+ ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3222+ case $ac_prog_version in
3223+ '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3224+ 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3225+changequote([,])dnl
3226+ ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3227+ *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3228+ esac
3229+ AC_MSG_RESULT([$ac_prog_version])
3230+ fi
3231+ if test $ac_verc_fail = yes; then
3232+ INTLBISON=:
3233+ fi
3234+])
3235+
3236+
3237+dnl gt_CHECK_DECL(FUNC, INCLUDES)
3238+dnl Check whether a function is declared.
3239+AC_DEFUN([gt_CHECK_DECL],
3240+[
3241+ AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1],
3242+ [AC_TRY_COMPILE([$2], [
3243+#ifndef $1
3244+ char *p = (char *) $1;
3245+#endif
3246+], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
3247+ if test $ac_cv_have_decl_$1 = yes; then
3248+ gt_value=1
3249+ else
3250+ gt_value=0
3251+ fi
3252+ AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
3253+ [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
3254+])
3255diff --git a/m4/intldir.m4 b/m4/intldir.m4
3256new file mode 100644
3257index 0000000..ebae76d
3258--- /dev/null
3259+++ b/m4/intldir.m4
3260@@ -0,0 +1,19 @@
3261+# intldir.m4 serial 2 (gettext-0.18)
3262+dnl Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc.
3263+dnl This file is free software; the Free Software Foundation
3264+dnl gives unlimited permission to copy and/or distribute it,
3265+dnl with or without modifications, as long as this notice is preserved.
3266+dnl
3267+dnl This file can can be used in projects which are not available under
3268+dnl the GNU General Public License or the GNU Library General Public
3269+dnl License but which still want to provide support for the GNU gettext
3270+dnl functionality.
3271+dnl Please note that the actual code of the GNU gettext library is covered
3272+dnl by the GNU Library General Public License, and the rest of the GNU
3273+dnl gettext package package is covered by the GNU General Public License.
3274+dnl They are *not* in the public domain.
3275+
3276+AC_PREREQ([2.52])
3277+
3278+dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory.
3279+AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], [])
3280diff --git a/m4/intlmacosx.m4 b/m4/intlmacosx.m4
3281new file mode 100644
3282index 0000000..dd91025
3283--- /dev/null
3284+++ b/m4/intlmacosx.m4
3285@@ -0,0 +1,51 @@
3286+# intlmacosx.m4 serial 3 (gettext-0.18)
3287+dnl Copyright (C) 2004-2010 Free Software Foundation, Inc.
3288+dnl This file is free software; the Free Software Foundation
3289+dnl gives unlimited permission to copy and/or distribute it,
3290+dnl with or without modifications, as long as this notice is preserved.
3291+dnl
3292+dnl This file can can be used in projects which are not available under
3293+dnl the GNU General Public License or the GNU Library General Public
3294+dnl License but which still want to provide support for the GNU gettext
3295+dnl functionality.
3296+dnl Please note that the actual code of the GNU gettext library is covered
3297+dnl by the GNU Library General Public License, and the rest of the GNU
3298+dnl gettext package package is covered by the GNU General Public License.
3299+dnl They are *not* in the public domain.
3300+
3301+dnl Checks for special options needed on MacOS X.
3302+dnl Defines INTL_MACOSX_LIBS.
3303+AC_DEFUN([gt_INTL_MACOSX],
3304+[
3305+ dnl Check for API introduced in MacOS X 10.2.
3306+ AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
3307+ [gt_cv_func_CFPreferencesCopyAppValue],
3308+ [gt_save_LIBS="$LIBS"
3309+ LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
3310+ AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
3311+ [CFPreferencesCopyAppValue(NULL, NULL)],
3312+ [gt_cv_func_CFPreferencesCopyAppValue=yes],
3313+ [gt_cv_func_CFPreferencesCopyAppValue=no])
3314+ LIBS="$gt_save_LIBS"])
3315+ if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
3316+ AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
3317+ [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
3318+ fi
3319+ dnl Check for API introduced in MacOS X 10.3.
3320+ AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
3321+ [gt_save_LIBS="$LIBS"
3322+ LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
3323+ AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
3324+ [gt_cv_func_CFLocaleCopyCurrent=yes],
3325+ [gt_cv_func_CFLocaleCopyCurrent=no])
3326+ LIBS="$gt_save_LIBS"])
3327+ if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
3328+ AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
3329+ [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
3330+ fi
3331+ INTL_MACOSX_LIBS=
3332+ if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
3333+ INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
3334+ fi
3335+ AC_SUBST([INTL_MACOSX_LIBS])
3336+])
3337diff --git a/m4/intmax.m4 b/m4/intmax.m4
3338new file mode 100644
3339index 0000000..74aaaf5
3340--- /dev/null
3341+++ b/m4/intmax.m4
3342@@ -0,0 +1,33 @@
3343+# intmax.m4 serial 5 (gettext-0.18)
3344+dnl Copyright (C) 2002-2005, 2008-2010 Free Software Foundation, Inc.
3345+dnl This file is free software; the Free Software Foundation
3346+dnl gives unlimited permission to copy and/or distribute it,
3347+dnl with or without modifications, as long as this notice is preserved.
3348+
3349+dnl From Bruno Haible.
3350+dnl Test whether the system has the 'intmax_t' type, but don't attempt to
3351+dnl find a replacement if it is lacking.
3352+
3353+AC_DEFUN([gt_TYPE_INTMAX_T],
3354+[
3355+ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
3356+ AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3357+ AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t],
3358+ [AC_TRY_COMPILE([
3359+#include <stddef.h>
3360+#include <stdlib.h>
3361+#if HAVE_STDINT_H_WITH_UINTMAX
3362+#include <stdint.h>
3363+#endif
3364+#if HAVE_INTTYPES_H_WITH_UINTMAX
3365+#include <inttypes.h>
3366+#endif
3367+], [intmax_t x = -1;
3368+ return !x;],
3369+ [gt_cv_c_intmax_t=yes],
3370+ [gt_cv_c_intmax_t=no])])
3371+ if test $gt_cv_c_intmax_t = yes; then
3372+ AC_DEFINE([HAVE_INTMAX_T], [1],
3373+ [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
3374+ fi
3375+])
3376diff --git a/m4/inttypes-pri.m4 b/m4/inttypes-pri.m4
3377new file mode 100644
3378index 0000000..718a4f4
3379--- /dev/null
3380+++ b/m4/inttypes-pri.m4
3381@@ -0,0 +1,36 @@
3382+# inttypes-pri.m4 serial 6 (gettext-0.18)
3383+dnl Copyright (C) 1997-2002, 2006, 2008-2010 Free Software Foundation, Inc.
3384+dnl This file is free software; the Free Software Foundation
3385+dnl gives unlimited permission to copy and/or distribute it,
3386+dnl with or without modifications, as long as this notice is preserved.
3387+
3388+dnl From Bruno Haible.
3389+
3390+AC_PREREQ([2.52])
3391+
3392+# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
3393+# macros to non-string values. This is the case on AIX 4.3.3.
3394+
3395+AC_DEFUN([gt_INTTYPES_PRI],
3396+[
3397+ AC_CHECK_HEADERS([inttypes.h])
3398+ if test $ac_cv_header_inttypes_h = yes; then
3399+ AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
3400+ [gt_cv_inttypes_pri_broken],
3401+ [
3402+ AC_TRY_COMPILE([#include <inttypes.h>
3403+#ifdef PRId32
3404+char *p = PRId32;
3405+#endif
3406+], [], [gt_cv_inttypes_pri_broken=no], [gt_cv_inttypes_pri_broken=yes])
3407+ ])
3408+ fi
3409+ if test "$gt_cv_inttypes_pri_broken" = yes; then
3410+ AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1],
3411+ [Define if <inttypes.h> exists and defines unusable PRI* macros.])
3412+ PRI_MACROS_BROKEN=1
3413+ else
3414+ PRI_MACROS_BROKEN=0
3415+ fi
3416+ AC_SUBST([PRI_MACROS_BROKEN])
3417+])
3418diff --git a/m4/inttypes_h.m4 b/m4/inttypes_h.m4
3419new file mode 100644
3420index 0000000..782d77e
3421--- /dev/null
3422+++ b/m4/inttypes_h.m4
3423@@ -0,0 +1,26 @@
3424+# inttypes_h.m4 serial 9
3425+dnl Copyright (C) 1997-2004, 2006, 2008-2010 Free Software Foundation, Inc.
3426+dnl This file is free software; the Free Software Foundation
3427+dnl gives unlimited permission to copy and/or distribute it,
3428+dnl with or without modifications, as long as this notice is preserved.
3429+
3430+dnl From Paul Eggert.
3431+
3432+# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
3433+# doesn't clash with <sys/types.h>, and declares uintmax_t.
3434+
3435+AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
3436+[
3437+ AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h],
3438+ [AC_TRY_COMPILE(
3439+ [#include <sys/types.h>
3440+#include <inttypes.h>],
3441+ [uintmax_t i = (uintmax_t) -1; return !i;],
3442+ [gl_cv_header_inttypes_h=yes],
3443+ [gl_cv_header_inttypes_h=no])])
3444+ if test $gl_cv_header_inttypes_h = yes; then
3445+ AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1],
3446+ [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
3447+ and declares uintmax_t. ])
3448+ fi
3449+])
3450diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4
3451new file mode 100644
3452index 0000000..1a70543
3453--- /dev/null
3454+++ b/m4/lcmessage.m4
3455@@ -0,0 +1,31 @@
3456+# lcmessage.m4 serial 6 (gettext-0.18)
3457+dnl Copyright (C) 1995-2002, 2004-2005, 2008-2010 Free Software Foundation,
3458+dnl Inc.
3459+dnl This file is free software; the Free Software Foundation
3460+dnl gives unlimited permission to copy and/or distribute it,
3461+dnl with or without modifications, as long as this notice is preserved.
3462+dnl
3463+dnl This file can can be used in projects which are not available under
3464+dnl the GNU General Public License or the GNU Library General Public
3465+dnl License but which still want to provide support for the GNU gettext
3466+dnl functionality.
3467+dnl Please note that the actual code of the GNU gettext library is covered
3468+dnl by the GNU Library General Public License, and the rest of the GNU
3469+dnl gettext package package is covered by the GNU General Public License.
3470+dnl They are *not* in the public domain.
3471+
3472+dnl Authors:
3473+dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
3474+
3475+# Check whether LC_MESSAGES is available in <locale.h>.
3476+
3477+AC_DEFUN([gt_LC_MESSAGES],
3478+[
3479+ AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES],
3480+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
3481+ [gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no])])
3482+ if test $gt_cv_val_LC_MESSAGES = yes; then
3483+ AC_DEFINE([HAVE_LC_MESSAGES], [1],
3484+ [Define if your <locale.h> file defines LC_MESSAGES.])
3485+ fi
3486+])
3487diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4
3488new file mode 100644
3489index 0000000..ebb3052
3490--- /dev/null
3491+++ b/m4/lib-ld.m4
3492@@ -0,0 +1,110 @@
3493+# lib-ld.m4 serial 4 (gettext-0.18)
3494+dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc.
3495+dnl This file is free software; the Free Software Foundation
3496+dnl gives unlimited permission to copy and/or distribute it,
3497+dnl with or without modifications, as long as this notice is preserved.
3498+
3499+dnl Subroutines of libtool.m4,
3500+dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
3501+dnl with libtool.m4.
3502+
3503+dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
3504+AC_DEFUN([AC_LIB_PROG_LD_GNU],
3505+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
3506+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3507+case `$LD -v 2>&1 </dev/null` in
3508+*GNU* | *'with BFD'*)
3509+ acl_cv_prog_gnu_ld=yes ;;
3510+*)
3511+ acl_cv_prog_gnu_ld=no ;;
3512+esac])
3513+with_gnu_ld=$acl_cv_prog_gnu_ld
3514+])
3515+
3516+dnl From libtool-1.4. Sets the variable LD.
3517+AC_DEFUN([AC_LIB_PROG_LD],
3518+[AC_ARG_WITH([gnu-ld],
3519+[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
3520+test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
3521+AC_REQUIRE([AC_PROG_CC])dnl
3522+AC_REQUIRE([AC_CANONICAL_HOST])dnl
3523+# Prepare PATH_SEPARATOR.
3524+# The user is always right.
3525+if test "${PATH_SEPARATOR+set}" != set; then
3526+ echo "#! /bin/sh" >conf$$.sh
3527+ echo "exit 0" >>conf$$.sh
3528+ chmod +x conf$$.sh
3529+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3530+ PATH_SEPARATOR=';'
3531+ else
3532+ PATH_SEPARATOR=:
3533+ fi
3534+ rm -f conf$$.sh
3535+fi
3536+ac_prog=ld
3537+if test "$GCC" = yes; then
3538+ # Check if gcc -print-prog-name=ld gives a path.
3539+ AC_MSG_CHECKING([for ld used by GCC])
3540+ case $host in
3541+ *-*-mingw*)
3542+ # gcc leaves a trailing carriage return which upsets mingw
3543+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3544+ *)
3545+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3546+ esac
3547+ case $ac_prog in
3548+ # Accept absolute paths.
3549+ [[\\/]* | [A-Za-z]:[\\/]*)]
3550+ [re_direlt='/[^/][^/]*/\.\./']
3551+ # Canonicalize the path of ld
3552+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3553+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3554+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3555+ done
3556+ test -z "$LD" && LD="$ac_prog"
3557+ ;;
3558+ "")
3559+ # If it fails, then pretend we aren't using GCC.
3560+ ac_prog=ld
3561+ ;;
3562+ *)
3563+ # If it is relative, then search for the first ld in PATH.
3564+ with_gnu_ld=unknown
3565+ ;;
3566+ esac
3567+elif test "$with_gnu_ld" = yes; then
3568+ AC_MSG_CHECKING([for GNU ld])
3569+else
3570+ AC_MSG_CHECKING([for non-GNU ld])
3571+fi
3572+AC_CACHE_VAL([acl_cv_path_LD],
3573+[if test -z "$LD"; then
3574+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3575+ for ac_dir in $PATH; do
3576+ test -z "$ac_dir" && ac_dir=.
3577+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3578+ acl_cv_path_LD="$ac_dir/$ac_prog"
3579+ # Check to see if the program is GNU ld. I'd rather use --version,
3580+ # but apparently some GNU ld's only accept -v.
3581+ # Break only if it was the GNU/non-GNU ld that we prefer.
3582+ case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3583+ *GNU* | *'with BFD'*)
3584+ test "$with_gnu_ld" != no && break ;;
3585+ *)
3586+ test "$with_gnu_ld" != yes && break ;;
3587+ esac
3588+ fi
3589+ done
3590+ IFS="$ac_save_ifs"
3591+else
3592+ acl_cv_path_LD="$LD" # Let the user override the test with a path.
3593+fi])
3594+LD="$acl_cv_path_LD"
3595+if test -n "$LD"; then
3596+ AC_MSG_RESULT([$LD])
3597+else
3598+ AC_MSG_RESULT([no])
3599+fi
3600+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3601+AC_LIB_PROG_LD_GNU
3602+])
3603diff --git a/m4/lib-link.m4 b/m4/lib-link.m4
3604new file mode 100644
3605index 0000000..c73bd8e
3606--- /dev/null
3607+++ b/m4/lib-link.m4
3608@@ -0,0 +1,774 @@
3609+# lib-link.m4 serial 21 (gettext-0.18)
3610+dnl Copyright (C) 2001-2010 Free Software Foundation, Inc.
3611+dnl This file is free software; the Free Software Foundation
3612+dnl gives unlimited permission to copy and/or distribute it,
3613+dnl with or without modifications, as long as this notice is preserved.
3614+
3615+dnl From Bruno Haible.
3616+
3617+AC_PREREQ([2.54])
3618+
3619+dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
3620+dnl the libraries corresponding to explicit and implicit dependencies.
3621+dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
3622+dnl augments the CPPFLAGS variable.
3623+dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
3624+dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
3625+AC_DEFUN([AC_LIB_LINKFLAGS],
3626+[
3627+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
3628+ AC_REQUIRE([AC_LIB_RPATH])
3629+ pushdef([Name],[translit([$1],[./-], [___])])
3630+ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
3631+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
3632+ AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
3633+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
3634+ ac_cv_lib[]Name[]_libs="$LIB[]NAME"
3635+ ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
3636+ ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
3637+ ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
3638+ ])
3639+ LIB[]NAME="$ac_cv_lib[]Name[]_libs"
3640+ LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
3641+ INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
3642+ LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
3643+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
3644+ AC_SUBST([LIB]NAME)
3645+ AC_SUBST([LTLIB]NAME)
3646+ AC_SUBST([LIB]NAME[_PREFIX])
3647+ dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
3648+ dnl results of this search when this library appears as a dependency.
3649+ HAVE_LIB[]NAME=yes
3650+ popdef([NAME])
3651+ popdef([Name])
3652+])
3653+
3654+dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
3655+dnl searches for libname and the libraries corresponding to explicit and
3656+dnl implicit dependencies, together with the specified include files and
3657+dnl the ability to compile and link the specified testcode. The missing-message
3658+dnl defaults to 'no' and may contain additional hints for the user.
3659+dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
3660+dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
3661+dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
3662+dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
3663+dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
3664+dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
3665+AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
3666+[
3667+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
3668+ AC_REQUIRE([AC_LIB_RPATH])
3669+ pushdef([Name],[translit([$1],[./-], [___])])
3670+ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
3671+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
3672+
3673+ dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
3674+ dnl accordingly.
3675+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
3676+
3677+ dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
3678+ dnl because if the user has installed lib[]Name and not disabled its use
3679+ dnl via --without-lib[]Name-prefix, he wants to use it.
3680+ ac_save_CPPFLAGS="$CPPFLAGS"
3681+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
3682+
3683+ AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
3684+ ac_save_LIBS="$LIBS"
3685+ dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
3686+ dnl because these -l options might require -L options that are present in
3687+ dnl LIBS. -l options benefit only from the -L options listed before it.
3688+ dnl Otherwise, add it to the front of LIBS, because it may be a static
3689+ dnl library that depends on another static library that is present in LIBS.
3690+ dnl Static libraries benefit only from the static libraries listed after
3691+ dnl it.
3692+ case " $LIB[]NAME" in
3693+ *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
3694+ *) LIBS="$LIB[]NAME $LIBS" ;;
3695+ esac
3696+ AC_TRY_LINK([$3], [$4],
3697+ [ac_cv_lib[]Name=yes],
3698+ [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
3699+ LIBS="$ac_save_LIBS"
3700+ ])
3701+ if test "$ac_cv_lib[]Name" = yes; then
3702+ HAVE_LIB[]NAME=yes
3703+ AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
3704+ AC_MSG_CHECKING([how to link with lib[]$1])
3705+ AC_MSG_RESULT([$LIB[]NAME])
3706+ else
3707+ HAVE_LIB[]NAME=no
3708+ dnl If $LIB[]NAME didn't lead to a usable library, we don't need
3709+ dnl $INC[]NAME either.
3710+ CPPFLAGS="$ac_save_CPPFLAGS"
3711+ LIB[]NAME=
3712+ LTLIB[]NAME=
3713+ LIB[]NAME[]_PREFIX=
3714+ fi
3715+ AC_SUBST([HAVE_LIB]NAME)
3716+ AC_SUBST([LIB]NAME)
3717+ AC_SUBST([LTLIB]NAME)
3718+ AC_SUBST([LIB]NAME[_PREFIX])
3719+ popdef([NAME])
3720+ popdef([Name])
3721+])
3722+
3723+dnl Determine the platform dependent parameters needed to use rpath:
3724+dnl acl_libext,
3725+dnl acl_shlibext,
3726+dnl acl_hardcode_libdir_flag_spec,
3727+dnl acl_hardcode_libdir_separator,
3728+dnl acl_hardcode_direct,
3729+dnl acl_hardcode_minus_L.
3730+AC_DEFUN([AC_LIB_RPATH],
3731+[
3732+ dnl Tell automake >= 1.10 to complain if config.rpath is missing.
3733+ m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
3734+ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
3735+ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
3736+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
3737+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
3738+ AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
3739+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3740+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3741+ . ./conftest.sh
3742+ rm -f ./conftest.sh
3743+ acl_cv_rpath=done
3744+ ])
3745+ wl="$acl_cv_wl"
3746+ acl_libext="$acl_cv_libext"
3747+ acl_shlibext="$acl_cv_shlibext"
3748+ acl_libname_spec="$acl_cv_libname_spec"
3749+ acl_library_names_spec="$acl_cv_library_names_spec"
3750+ acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3751+ acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3752+ acl_hardcode_direct="$acl_cv_hardcode_direct"
3753+ acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3754+ dnl Determine whether the user wants rpath handling at all.
3755+ AC_ARG_ENABLE([rpath],
3756+ [ --disable-rpath do not hardcode runtime library paths],
3757+ :, enable_rpath=yes)
3758+])
3759+
3760+dnl AC_LIB_FROMPACKAGE(name, package)
3761+dnl declares that libname comes from the given package. The configure file
3762+dnl will then not have a --with-libname-prefix option but a
3763+dnl --with-package-prefix option. Several libraries can come from the same
3764+dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
3765+dnl macro call that searches for libname.
3766+AC_DEFUN([AC_LIB_FROMPACKAGE],
3767+[
3768+ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
3769+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
3770+ define([acl_frompackage_]NAME, [$2])
3771+ popdef([NAME])
3772+ pushdef([PACK],[$2])
3773+ pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
3774+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
3775+ define([acl_libsinpackage_]PACKUP,
3776+ m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1])
3777+ popdef([PACKUP])
3778+ popdef([PACK])
3779+])
3780+
3781+dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
3782+dnl the libraries corresponding to explicit and implicit dependencies.
3783+dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
3784+dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
3785+dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
3786+AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
3787+[
3788+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
3789+ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
3790+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
3791+ pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
3792+ pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
3793+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
3794+ pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
3795+ dnl Autoconf >= 2.61 supports dots in --with options.
3796+ pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)])
3797+ dnl By default, look in $includedir and $libdir.
3798+ use_additional=yes
3799+ AC_LIB_WITH_FINAL_PREFIX([
3800+ eval additional_includedir=\"$includedir\"
3801+ eval additional_libdir=\"$libdir\"
3802+ ])
3803+ AC_ARG_WITH(P_A_C_K[-prefix],
3804+[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
3805+ --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
3806+[
3807+ if test "X$withval" = "Xno"; then
3808+ use_additional=no
3809+ else
3810+ if test "X$withval" = "X"; then
3811+ AC_LIB_WITH_FINAL_PREFIX([
3812+ eval additional_includedir=\"$includedir\"
3813+ eval additional_libdir=\"$libdir\"
3814+ ])
3815+ else
3816+ additional_includedir="$withval/include"
3817+ additional_libdir="$withval/$acl_libdirstem"
3818+ if test "$acl_libdirstem2" != "$acl_libdirstem" \
3819+ && ! test -d "$withval/$acl_libdirstem"; then
3820+ additional_libdir="$withval/$acl_libdirstem2"
3821+ fi
3822+ fi
3823+ fi
3824+])
3825+ dnl Search the library and its dependencies in $additional_libdir and
3826+ dnl $LDFLAGS. Using breadth-first-seach.
3827+ LIB[]NAME=
3828+ LTLIB[]NAME=
3829+ INC[]NAME=
3830+ LIB[]NAME[]_PREFIX=
3831+ dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
3832+ dnl computed. So it has to be reset here.
3833+ HAVE_LIB[]NAME=
3834+ rpathdirs=
3835+ ltrpathdirs=
3836+ names_already_handled=
3837+ names_next_round='$1 $2'
3838+ while test -n "$names_next_round"; do
3839+ names_this_round="$names_next_round"
3840+ names_next_round=
3841+ for name in $names_this_round; do
3842+ already_handled=
3843+ for n in $names_already_handled; do
3844+ if test "$n" = "$name"; then
3845+ already_handled=yes
3846+ break
3847+ fi
3848+ done
3849+ if test -z "$already_handled"; then
3850+ names_already_handled="$names_already_handled $name"
3851+ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
3852+ dnl or AC_LIB_HAVE_LINKFLAGS call.
3853+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3854+ eval value=\"\$HAVE_LIB$uppername\"
3855+ if test -n "$value"; then
3856+ if test "$value" = yes; then
3857+ eval value=\"\$LIB$uppername\"
3858+ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
3859+ eval value=\"\$LTLIB$uppername\"
3860+ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
3861+ else
3862+ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
3863+ dnl that this library doesn't exist. So just drop it.
3864+ :
3865+ fi
3866+ else
3867+ dnl Search the library lib$name in $additional_libdir and $LDFLAGS
3868+ dnl and the already constructed $LIBNAME/$LTLIBNAME.
3869+ found_dir=
3870+ found_la=
3871+ found_so=
3872+ found_a=
3873+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
3874+ if test -n "$acl_shlibext"; then
3875+ shrext=".$acl_shlibext" # typically: shrext=.so
3876+ else
3877+ shrext=
3878+ fi
3879+ if test $use_additional = yes; then
3880+ dir="$additional_libdir"
3881+ dnl The same code as in the loop below:
3882+ dnl First look for a shared library.
3883+ if test -n "$acl_shlibext"; then
3884+ if test -f "$dir/$libname$shrext"; then
3885+ found_dir="$dir"
3886+ found_so="$dir/$libname$shrext"
3887+ else
3888+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3889+ ver=`(cd "$dir" && \
3890+ for f in "$libname$shrext".*; do echo "$f"; done \
3891+ | sed -e "s,^$libname$shrext\\\\.,," \
3892+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3893+ | sed 1q ) 2>/dev/null`
3894+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3895+ found_dir="$dir"
3896+ found_so="$dir/$libname$shrext.$ver"
3897+ fi
3898+ else
3899+ eval library_names=\"$acl_library_names_spec\"
3900+ for f in $library_names; do
3901+ if test -f "$dir/$f"; then
3902+ found_dir="$dir"
3903+ found_so="$dir/$f"
3904+ break
3905+ fi
3906+ done
3907+ fi
3908+ fi
3909+ fi
3910+ dnl Then look for a static library.
3911+ if test "X$found_dir" = "X"; then
3912+ if test -f "$dir/$libname.$acl_libext"; then
3913+ found_dir="$dir"
3914+ found_a="$dir/$libname.$acl_libext"
3915+ fi
3916+ fi
3917+ if test "X$found_dir" != "X"; then
3918+ if test -f "$dir/$libname.la"; then
3919+ found_la="$dir/$libname.la"
3920+ fi
3921+ fi
3922+ fi
3923+ if test "X$found_dir" = "X"; then
3924+ for x in $LDFLAGS $LTLIB[]NAME; do
3925+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
3926+ case "$x" in
3927+ -L*)
3928+ dir=`echo "X$x" | sed -e 's/^X-L//'`
3929+ dnl First look for a shared library.
3930+ if test -n "$acl_shlibext"; then
3931+ if test -f "$dir/$libname$shrext"; then
3932+ found_dir="$dir"
3933+ found_so="$dir/$libname$shrext"
3934+ else
3935+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3936+ ver=`(cd "$dir" && \
3937+ for f in "$libname$shrext".*; do echo "$f"; done \
3938+ | sed -e "s,^$libname$shrext\\\\.,," \
3939+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3940+ | sed 1q ) 2>/dev/null`
3941+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3942+ found_dir="$dir"
3943+ found_so="$dir/$libname$shrext.$ver"
3944+ fi
3945+ else
3946+ eval library_names=\"$acl_library_names_spec\"
3947+ for f in $library_names; do
3948+ if test -f "$dir/$f"; then
3949+ found_dir="$dir"
3950+ found_so="$dir/$f"
3951+ break
3952+ fi
3953+ done
3954+ fi
3955+ fi
3956+ fi
3957+ dnl Then look for a static library.
3958+ if test "X$found_dir" = "X"; then
3959+ if test -f "$dir/$libname.$acl_libext"; then
3960+ found_dir="$dir"
3961+ found_a="$dir/$libname.$acl_libext"
3962+ fi
3963+ fi
3964+ if test "X$found_dir" != "X"; then
3965+ if test -f "$dir/$libname.la"; then
3966+ found_la="$dir/$libname.la"
3967+ fi
3968+ fi
3969+ ;;
3970+ esac
3971+ if test "X$found_dir" != "X"; then
3972+ break
3973+ fi
3974+ done
3975+ fi
3976+ if test "X$found_dir" != "X"; then
3977+ dnl Found the library.
3978+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
3979+ if test "X$found_so" != "X"; then
3980+ dnl Linking with a shared library. We attempt to hardcode its
3981+ dnl directory into the executable's runpath, unless it's the
3982+ dnl standard /usr/lib.
3983+ if test "$enable_rpath" = no \
3984+ || test "X$found_dir" = "X/usr/$acl_libdirstem" \
3985+ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
3986+ dnl No hardcoding is needed.
3987+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
3988+ else
3989+ dnl Use an explicit option to hardcode DIR into the resulting
3990+ dnl binary.
3991+ dnl Potentially add DIR to ltrpathdirs.
3992+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
3993+ haveit=
3994+ for x in $ltrpathdirs; do
3995+ if test "X$x" = "X$found_dir"; then
3996+ haveit=yes
3997+ break
3998+ fi
3999+ done
4000+ if test -z "$haveit"; then
4001+ ltrpathdirs="$ltrpathdirs $found_dir"
4002+ fi
4003+ dnl The hardcoding into $LIBNAME is system dependent.
4004+ if test "$acl_hardcode_direct" = yes; then
4005+ dnl Using DIR/libNAME.so during linking hardcodes DIR into the
4006+ dnl resulting binary.
4007+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
4008+ else
4009+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4010+ dnl Use an explicit option to hardcode DIR into the resulting
4011+ dnl binary.
4012+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
4013+ dnl Potentially add DIR to rpathdirs.
4014+ dnl The rpathdirs will be appended to $LIBNAME at the end.
4015+ haveit=
4016+ for x in $rpathdirs; do
4017+ if test "X$x" = "X$found_dir"; then
4018+ haveit=yes
4019+ break
4020+ fi
4021+ done
4022+ if test -z "$haveit"; then
4023+ rpathdirs="$rpathdirs $found_dir"
4024+ fi
4025+ else
4026+ dnl Rely on "-L$found_dir".
4027+ dnl But don't add it if it's already contained in the LDFLAGS
4028+ dnl or the already constructed $LIBNAME
4029+ haveit=
4030+ for x in $LDFLAGS $LIB[]NAME; do
4031+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4032+ if test "X$x" = "X-L$found_dir"; then
4033+ haveit=yes
4034+ break
4035+ fi
4036+ done
4037+ if test -z "$haveit"; then
4038+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
4039+ fi
4040+ if test "$acl_hardcode_minus_L" != no; then
4041+ dnl FIXME: Not sure whether we should use
4042+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
4043+ dnl here.
4044+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
4045+ else
4046+ dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
4047+ dnl here, because this doesn't fit in flags passed to the
4048+ dnl compiler. So give up. No hardcoding. This affects only
4049+ dnl very old systems.
4050+ dnl FIXME: Not sure whether we should use
4051+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
4052+ dnl here.
4053+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
4054+ fi
4055+ fi
4056+ fi
4057+ fi
4058+ else
4059+ if test "X$found_a" != "X"; then
4060+ dnl Linking with a static library.
4061+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
4062+ else
4063+ dnl We shouldn't come here, but anyway it's good to have a
4064+ dnl fallback.
4065+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
4066+ fi
4067+ fi
4068+ dnl Assume the include files are nearby.
4069+ additional_includedir=
4070+ case "$found_dir" in
4071+ */$acl_libdirstem | */$acl_libdirstem/)
4072+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4073+ if test "$name" = '$1'; then
4074+ LIB[]NAME[]_PREFIX="$basedir"
4075+ fi
4076+ additional_includedir="$basedir/include"
4077+ ;;
4078+ */$acl_libdirstem2 | */$acl_libdirstem2/)
4079+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4080+ if test "$name" = '$1'; then
4081+ LIB[]NAME[]_PREFIX="$basedir"
4082+ fi
4083+ additional_includedir="$basedir/include"
4084+ ;;
4085+ esac
4086+ if test "X$additional_includedir" != "X"; then
4087+ dnl Potentially add $additional_includedir to $INCNAME.
4088+ dnl But don't add it
4089+ dnl 1. if it's the standard /usr/include,
4090+ dnl 2. if it's /usr/local/include and we are using GCC on Linux,
4091+ dnl 3. if it's already present in $CPPFLAGS or the already
4092+ dnl constructed $INCNAME,
4093+ dnl 4. if it doesn't exist as a directory.
4094+ if test "X$additional_includedir" != "X/usr/include"; then
4095+ haveit=
4096+ if test "X$additional_includedir" = "X/usr/local/include"; then
4097+ if test -n "$GCC"; then
4098+ case $host_os in
4099+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4100+ esac
4101+ fi
4102+ fi
4103+ if test -z "$haveit"; then
4104+ for x in $CPPFLAGS $INC[]NAME; do
4105+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4106+ if test "X$x" = "X-I$additional_includedir"; then
4107+ haveit=yes
4108+ break
4109+ fi
4110+ done
4111+ if test -z "$haveit"; then
4112+ if test -d "$additional_includedir"; then
4113+ dnl Really add $additional_includedir to $INCNAME.
4114+ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
4115+ fi
4116+ fi
4117+ fi
4118+ fi
4119+ fi
4120+ dnl Look for dependencies.
4121+ if test -n "$found_la"; then
4122+ dnl Read the .la file. It defines the variables
4123+ dnl dlname, library_names, old_library, dependency_libs, current,
4124+ dnl age, revision, installed, dlopen, dlpreopen, libdir.
4125+ save_libdir="$libdir"
4126+ case "$found_la" in
4127+ */* | *\\*) . "$found_la" ;;
4128+ *) . "./$found_la" ;;
4129+ esac
4130+ libdir="$save_libdir"
4131+ dnl We use only dependency_libs.
4132+ for dep in $dependency_libs; do
4133+ case "$dep" in
4134+ -L*)
4135+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4136+ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
4137+ dnl But don't add it
4138+ dnl 1. if it's the standard /usr/lib,
4139+ dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
4140+ dnl 3. if it's already present in $LDFLAGS or the already
4141+ dnl constructed $LIBNAME,
4142+ dnl 4. if it doesn't exist as a directory.
4143+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
4144+ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
4145+ haveit=
4146+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
4147+ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
4148+ if test -n "$GCC"; then
4149+ case $host_os in
4150+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4151+ esac
4152+ fi
4153+ fi
4154+ if test -z "$haveit"; then
4155+ haveit=
4156+ for x in $LDFLAGS $LIB[]NAME; do
4157+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4158+ if test "X$x" = "X-L$additional_libdir"; then
4159+ haveit=yes
4160+ break
4161+ fi
4162+ done
4163+ if test -z "$haveit"; then
4164+ if test -d "$additional_libdir"; then
4165+ dnl Really add $additional_libdir to $LIBNAME.
4166+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
4167+ fi
4168+ fi
4169+ haveit=
4170+ for x in $LDFLAGS $LTLIB[]NAME; do
4171+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4172+ if test "X$x" = "X-L$additional_libdir"; then
4173+ haveit=yes
4174+ break
4175+ fi
4176+ done
4177+ if test -z "$haveit"; then
4178+ if test -d "$additional_libdir"; then
4179+ dnl Really add $additional_libdir to $LTLIBNAME.
4180+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
4181+ fi
4182+ fi
4183+ fi
4184+ fi
4185+ ;;
4186+ -R*)
4187+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
4188+ if test "$enable_rpath" != no; then
4189+ dnl Potentially add DIR to rpathdirs.
4190+ dnl The rpathdirs will be appended to $LIBNAME at the end.
4191+ haveit=
4192+ for x in $rpathdirs; do
4193+ if test "X$x" = "X$dir"; then
4194+ haveit=yes
4195+ break
4196+ fi
4197+ done
4198+ if test -z "$haveit"; then
4199+ rpathdirs="$rpathdirs $dir"
4200+ fi
4201+ dnl Potentially add DIR to ltrpathdirs.
4202+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
4203+ haveit=
4204+ for x in $ltrpathdirs; do
4205+ if test "X$x" = "X$dir"; then
4206+ haveit=yes
4207+ break
4208+ fi
4209+ done
4210+ if test -z "$haveit"; then
4211+ ltrpathdirs="$ltrpathdirs $dir"
4212+ fi
4213+ fi
4214+ ;;
4215+ -l*)
4216+ dnl Handle this in the next round.
4217+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4218+ ;;
4219+ *.la)
4220+ dnl Handle this in the next round. Throw away the .la's
4221+ dnl directory; it is already contained in a preceding -L
4222+ dnl option.
4223+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4224+ ;;
4225+ *)
4226+ dnl Most likely an immediate library name.
4227+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
4228+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
4229+ ;;
4230+ esac
4231+ done
4232+ fi
4233+ else
4234+ dnl Didn't find the library; assume it is in the system directories
4235+ dnl known to the linker and runtime loader. (All the system
4236+ dnl directories known to the linker should also be known to the
4237+ dnl runtime loader, otherwise the system is severely misconfigured.)
4238+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
4239+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
4240+ fi
4241+ fi
4242+ fi
4243+ done
4244+ done
4245+ if test "X$rpathdirs" != "X"; then
4246+ if test -n "$acl_hardcode_libdir_separator"; then
4247+ dnl Weird platform: only the last -rpath option counts, the user must
4248+ dnl pass all path elements in one option. We can arrange that for a
4249+ dnl single library, but not when more than one $LIBNAMEs are used.
4250+ alldirs=
4251+ for found_dir in $rpathdirs; do
4252+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4253+ done
4254+ dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
4255+ acl_save_libdir="$libdir"
4256+ libdir="$alldirs"
4257+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
4258+ libdir="$acl_save_libdir"
4259+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
4260+ else
4261+ dnl The -rpath options are cumulative.
4262+ for found_dir in $rpathdirs; do
4263+ acl_save_libdir="$libdir"
4264+ libdir="$found_dir"
4265+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
4266+ libdir="$acl_save_libdir"
4267+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
4268+ done
4269+ fi
4270+ fi
4271+ if test "X$ltrpathdirs" != "X"; then
4272+ dnl When using libtool, the option that works for both libraries and
4273+ dnl executables is -R. The -R options are cumulative.
4274+ for found_dir in $ltrpathdirs; do
4275+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
4276+ done
4277+ fi
4278+ popdef([P_A_C_K])
4279+ popdef([PACKLIBS])
4280+ popdef([PACKUP])
4281+ popdef([PACK])
4282+ popdef([NAME])
4283+])
4284+
4285+dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
4286+dnl unless already present in VAR.
4287+dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
4288+dnl contains two or three consecutive elements that belong together.
4289+AC_DEFUN([AC_LIB_APPENDTOVAR],
4290+[
4291+ for element in [$2]; do
4292+ haveit=
4293+ for x in $[$1]; do
4294+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4295+ if test "X$x" = "X$element"; then
4296+ haveit=yes
4297+ break
4298+ fi
4299+ done
4300+ if test -z "$haveit"; then
4301+ [$1]="${[$1]}${[$1]:+ }$element"
4302+ fi
4303+ done
4304+])
4305+
4306+dnl For those cases where a variable contains several -L and -l options
4307+dnl referring to unknown libraries and directories, this macro determines the
4308+dnl necessary additional linker options for the runtime path.
4309+dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
4310+dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
4311+dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
4312+dnl otherwise linking without libtool is assumed.
4313+AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
4314+[
4315+ AC_REQUIRE([AC_LIB_RPATH])
4316+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
4317+ $1=
4318+ if test "$enable_rpath" != no; then
4319+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4320+ dnl Use an explicit option to hardcode directories into the resulting
4321+ dnl binary.
4322+ rpathdirs=
4323+ next=
4324+ for opt in $2; do
4325+ if test -n "$next"; then
4326+ dir="$next"
4327+ dnl No need to hardcode the standard /usr/lib.
4328+ if test "X$dir" != "X/usr/$acl_libdirstem" \
4329+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
4330+ rpathdirs="$rpathdirs $dir"
4331+ fi
4332+ next=
4333+ else
4334+ case $opt in
4335+ -L) next=yes ;;
4336+ -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
4337+ dnl No need to hardcode the standard /usr/lib.
4338+ if test "X$dir" != "X/usr/$acl_libdirstem" \
4339+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
4340+ rpathdirs="$rpathdirs $dir"
4341+ fi
4342+ next= ;;
4343+ *) next= ;;
4344+ esac
4345+ fi
4346+ done
4347+ if test "X$rpathdirs" != "X"; then
4348+ if test -n ""$3""; then
4349+ dnl libtool is used for linking. Use -R options.
4350+ for dir in $rpathdirs; do
4351+ $1="${$1}${$1:+ }-R$dir"
4352+ done
4353+ else
4354+ dnl The linker is used for linking directly.
4355+ if test -n "$acl_hardcode_libdir_separator"; then
4356+ dnl Weird platform: only the last -rpath option counts, the user
4357+ dnl must pass all path elements in one option.
4358+ alldirs=
4359+ for dir in $rpathdirs; do
4360+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
4361+ done
4362+ acl_save_libdir="$libdir"
4363+ libdir="$alldirs"
4364+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
4365+ libdir="$acl_save_libdir"
4366+ $1="$flag"
4367+ else
4368+ dnl The -rpath options are cumulative.
4369+ for dir in $rpathdirs; do
4370+ acl_save_libdir="$libdir"
4371+ libdir="$dir"
4372+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
4373+ libdir="$acl_save_libdir"
4374+ $1="${$1}${$1:+ }$flag"
4375+ done
4376+ fi
4377+ fi
4378+ fi
4379+ fi
4380+ fi
4381+ AC_SUBST([$1])
4382+])
4383diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4
4384new file mode 100644
4385index 0000000..1601cea
4386--- /dev/null
4387+++ b/m4/lib-prefix.m4
4388@@ -0,0 +1,224 @@
4389+# lib-prefix.m4 serial 7 (gettext-0.18)
4390+dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc.
4391+dnl This file is free software; the Free Software Foundation
4392+dnl gives unlimited permission to copy and/or distribute it,
4393+dnl with or without modifications, as long as this notice is preserved.
4394+
4395+dnl From Bruno Haible.
4396+
4397+dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
4398+dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
4399+dnl require excessive bracketing.
4400+ifdef([AC_HELP_STRING],
4401+[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
4402+[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
4403+
4404+dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
4405+dnl to access previously installed libraries. The basic assumption is that
4406+dnl a user will want packages to use other packages he previously installed
4407+dnl with the same --prefix option.
4408+dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
4409+dnl libraries, but is otherwise very convenient.
4410+AC_DEFUN([AC_LIB_PREFIX],
4411+[
4412+ AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
4413+ AC_REQUIRE([AC_PROG_CC])
4414+ AC_REQUIRE([AC_CANONICAL_HOST])
4415+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
4416+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
4417+ dnl By default, look in $includedir and $libdir.
4418+ use_additional=yes
4419+ AC_LIB_WITH_FINAL_PREFIX([
4420+ eval additional_includedir=\"$includedir\"
4421+ eval additional_libdir=\"$libdir\"
4422+ ])
4423+ AC_LIB_ARG_WITH([lib-prefix],
4424+[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
4425+ --without-lib-prefix don't search for libraries in includedir and libdir],
4426+[
4427+ if test "X$withval" = "Xno"; then
4428+ use_additional=no
4429+ else
4430+ if test "X$withval" = "X"; then
4431+ AC_LIB_WITH_FINAL_PREFIX([
4432+ eval additional_includedir=\"$includedir\"
4433+ eval additional_libdir=\"$libdir\"
4434+ ])
4435+ else
4436+ additional_includedir="$withval/include"
4437+ additional_libdir="$withval/$acl_libdirstem"
4438+ fi
4439+ fi
4440+])
4441+ if test $use_additional = yes; then
4442+ dnl Potentially add $additional_includedir to $CPPFLAGS.
4443+ dnl But don't add it
4444+ dnl 1. if it's the standard /usr/include,
4445+ dnl 2. if it's already present in $CPPFLAGS,
4446+ dnl 3. if it's /usr/local/include and we are using GCC on Linux,
4447+ dnl 4. if it doesn't exist as a directory.
4448+ if test "X$additional_includedir" != "X/usr/include"; then
4449+ haveit=
4450+ for x in $CPPFLAGS; do
4451+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4452+ if test "X$x" = "X-I$additional_includedir"; then
4453+ haveit=yes
4454+ break
4455+ fi
4456+ done
4457+ if test -z "$haveit"; then
4458+ if test "X$additional_includedir" = "X/usr/local/include"; then
4459+ if test -n "$GCC"; then
4460+ case $host_os in
4461+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4462+ esac
4463+ fi
4464+ fi
4465+ if test -z "$haveit"; then
4466+ if test -d "$additional_includedir"; then
4467+ dnl Really add $additional_includedir to $CPPFLAGS.
4468+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
4469+ fi
4470+ fi
4471+ fi
4472+ fi
4473+ dnl Potentially add $additional_libdir to $LDFLAGS.
4474+ dnl But don't add it
4475+ dnl 1. if it's the standard /usr/lib,
4476+ dnl 2. if it's already present in $LDFLAGS,
4477+ dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
4478+ dnl 4. if it doesn't exist as a directory.
4479+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4480+ haveit=
4481+ for x in $LDFLAGS; do
4482+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4483+ if test "X$x" = "X-L$additional_libdir"; then
4484+ haveit=yes
4485+ break
4486+ fi
4487+ done
4488+ if test -z "$haveit"; then
4489+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4490+ if test -n "$GCC"; then
4491+ case $host_os in
4492+ linux*) haveit=yes;;
4493+ esac
4494+ fi
4495+ fi
4496+ if test -z "$haveit"; then
4497+ if test -d "$additional_libdir"; then
4498+ dnl Really add $additional_libdir to $LDFLAGS.
4499+ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
4500+ fi
4501+ fi
4502+ fi
4503+ fi
4504+ fi
4505+])
4506+
4507+dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
4508+dnl acl_final_exec_prefix, containing the values to which $prefix and
4509+dnl $exec_prefix will expand at the end of the configure script.
4510+AC_DEFUN([AC_LIB_PREPARE_PREFIX],
4511+[
4512+ dnl Unfortunately, prefix and exec_prefix get only finally determined
4513+ dnl at the end of configure.
4514+ if test "X$prefix" = "XNONE"; then
4515+ acl_final_prefix="$ac_default_prefix"
4516+ else
4517+ acl_final_prefix="$prefix"
4518+ fi
4519+ if test "X$exec_prefix" = "XNONE"; then
4520+ acl_final_exec_prefix='${prefix}'
4521+ else
4522+ acl_final_exec_prefix="$exec_prefix"
4523+ fi
4524+ acl_save_prefix="$prefix"
4525+ prefix="$acl_final_prefix"
4526+ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4527+ prefix="$acl_save_prefix"
4528+])
4529+
4530+dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
4531+dnl variables prefix and exec_prefix bound to the values they will have
4532+dnl at the end of the configure script.
4533+AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
4534+[
4535+ acl_save_prefix="$prefix"
4536+ prefix="$acl_final_prefix"
4537+ acl_save_exec_prefix="$exec_prefix"
4538+ exec_prefix="$acl_final_exec_prefix"
4539+ $1
4540+ exec_prefix="$acl_save_exec_prefix"
4541+ prefix="$acl_save_prefix"
4542+])
4543+
4544+dnl AC_LIB_PREPARE_MULTILIB creates
4545+dnl - a variable acl_libdirstem, containing the basename of the libdir, either
4546+dnl "lib" or "lib64" or "lib/64",
4547+dnl - a variable acl_libdirstem2, as a secondary possible value for
4548+dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
4549+dnl "lib/amd64".
4550+AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
4551+[
4552+ dnl There is no formal standard regarding lib and lib64.
4553+ dnl On glibc systems, the current practice is that on a system supporting
4554+ dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
4555+ dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
4556+ dnl the compiler's default mode by looking at the compiler's library search
4557+ dnl path. If at least one of its elements ends in /lib64 or points to a
4558+ dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
4559+ dnl Otherwise we use the default, namely "lib".
4560+ dnl On Solaris systems, the current practice is that on a system supporting
4561+ dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
4562+ dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
4563+ dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
4564+ AC_REQUIRE([AC_CANONICAL_HOST])
4565+ acl_libdirstem=lib
4566+ acl_libdirstem2=
4567+ case "$host_os" in
4568+ solaris*)
4569+ dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
4570+ dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
4571+ dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
4572+ dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
4573+ dnl symlink is missing, so we set acl_libdirstem2 too.
4574+ AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
4575+ [AC_EGREP_CPP([sixtyfour bits], [
4576+#ifdef _LP64
4577+sixtyfour bits
4578+#endif
4579+ ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
4580+ ])
4581+ if test $gl_cv_solaris_64bit = yes; then
4582+ acl_libdirstem=lib/64
4583+ case "$host_cpu" in
4584+ sparc*) acl_libdirstem2=lib/sparcv9 ;;
4585+ i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4586+ esac
4587+ fi
4588+ ;;
4589+ *)
4590+ searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4591+ if test -n "$searchpath"; then
4592+ acl_save_IFS="${IFS= }"; IFS=":"
4593+ for searchdir in $searchpath; do
4594+ if test -d "$searchdir"; then
4595+ case "$searchdir" in
4596+ */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4597+ */../ | */.. )
4598+ # Better ignore directories of this form. They are misleading.
4599+ ;;
4600+ *) searchdir=`cd "$searchdir" && pwd`
4601+ case "$searchdir" in
4602+ */lib64 ) acl_libdirstem=lib64 ;;
4603+ esac ;;
4604+ esac
4605+ fi
4606+ done
4607+ IFS="$acl_save_IFS"
4608+ fi
4609+ ;;
4610+ esac
4611+ test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4612+])
4613diff --git a/m4/lock.m4 b/m4/lock.m4
4614new file mode 100644
4615index 0000000..9da8465
4616--- /dev/null
4617+++ b/m4/lock.m4
4618@@ -0,0 +1,37 @@
4619+# lock.m4 serial 10 (gettext-0.18)
4620+dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
4621+dnl This file is free software; the Free Software Foundation
4622+dnl gives unlimited permission to copy and/or distribute it,
4623+dnl with or without modifications, as long as this notice is preserved.
4624+
4625+dnl From Bruno Haible.
4626+
4627+AC_DEFUN([gl_LOCK],
4628+[
4629+ AC_REQUIRE([gl_THREADLIB])
4630+ if test "$gl_threads_api" = posix; then
4631+ # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
4632+ # pthread_rwlock_* functions.
4633+ AC_CHECK_TYPE([pthread_rwlock_t],
4634+ [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1],
4635+ [Define if the POSIX multithreading library has read/write locks.])],
4636+ [],
4637+ [#include <pthread.h>])
4638+ # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
4639+ AC_TRY_COMPILE([#include <pthread.h>],
4640+ [#if __FreeBSD__ == 4
4641+error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
4642+#else
4643+int x = (int)PTHREAD_MUTEX_RECURSIVE;
4644+return !x;
4645+#endif],
4646+ [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1],
4647+ [Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE.])])
4648+ fi
4649+ gl_PREREQ_LOCK
4650+])
4651+
4652+# Prerequisites of lib/lock.c.
4653+AC_DEFUN([gl_PREREQ_LOCK], [
4654+ AC_REQUIRE([AC_C_INLINE])
4655+])
4656diff --git a/m4/longlong.m4 b/m4/longlong.m4
4657new file mode 100644
4658index 0000000..cca3c1a
4659--- /dev/null
4660+++ b/m4/longlong.m4
4661@@ -0,0 +1,106 @@
4662+# longlong.m4 serial 14
4663+dnl Copyright (C) 1999-2007, 2009-2010 Free Software Foundation, Inc.
4664+dnl This file is free software; the Free Software Foundation
4665+dnl gives unlimited permission to copy and/or distribute it,
4666+dnl with or without modifications, as long as this notice is preserved.
4667+
4668+dnl From Paul Eggert.
4669+
4670+# Define HAVE_LONG_LONG_INT if 'long long int' works.
4671+# This fixes a bug in Autoconf 2.61, but can be removed once we
4672+# assume 2.62 everywhere.
4673+
4674+# Note: If the type 'long long int' exists but is only 32 bits large
4675+# (as on some very old compilers), HAVE_LONG_LONG_INT will not be
4676+# defined. In this case you can treat 'long long int' like 'long int'.
4677+
4678+AC_DEFUN([AC_TYPE_LONG_LONG_INT],
4679+[
4680+ AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
4681+ [AC_LINK_IFELSE(
4682+ [_AC_TYPE_LONG_LONG_SNIPPET],
4683+ [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
4684+ dnl If cross compiling, assume the bug isn't important, since
4685+ dnl nobody cross compiles for this platform as far as we know.
4686+ AC_RUN_IFELSE(
4687+ [AC_LANG_PROGRAM(
4688+ [[@%:@include <limits.h>
4689+ @%:@ifndef LLONG_MAX
4690+ @%:@ define HALF \
4691+ (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4692+ @%:@ define LLONG_MAX (HALF - 1 + HALF)
4693+ @%:@endif]],
4694+ [[long long int n = 1;
4695+ int i;
4696+ for (i = 0; ; i++)
4697+ {
4698+ long long int m = n << i;
4699+ if (m >> i != n)
4700+ return 1;
4701+ if (LLONG_MAX / 2 < m)
4702+ break;
4703+ }
4704+ return 0;]])],
4705+ [ac_cv_type_long_long_int=yes],
4706+ [ac_cv_type_long_long_int=no],
4707+ [ac_cv_type_long_long_int=yes])],
4708+ [ac_cv_type_long_long_int=no])])
4709+ if test $ac_cv_type_long_long_int = yes; then
4710+ AC_DEFINE([HAVE_LONG_LONG_INT], [1],
4711+ [Define to 1 if the system has the type `long long int'.])
4712+ fi
4713+])
4714+
4715+# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
4716+# This fixes a bug in Autoconf 2.61, but can be removed once we
4717+# assume 2.62 everywhere.
4718+
4719+# Note: If the type 'unsigned long long int' exists but is only 32 bits
4720+# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
4721+# will not be defined. In this case you can treat 'unsigned long long int'
4722+# like 'unsigned long int'.
4723+
4724+AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
4725+[
4726+ AC_CACHE_CHECK([for unsigned long long int],
4727+ [ac_cv_type_unsigned_long_long_int],
4728+ [AC_LINK_IFELSE(
4729+ [_AC_TYPE_LONG_LONG_SNIPPET],
4730+ [ac_cv_type_unsigned_long_long_int=yes],
4731+ [ac_cv_type_unsigned_long_long_int=no])])
4732+ if test $ac_cv_type_unsigned_long_long_int = yes; then
4733+ AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
4734+ [Define to 1 if the system has the type `unsigned long long int'.])
4735+ fi
4736+])
4737+
4738+# Expands to a C program that can be used to test for simultaneous support
4739+# of 'long long' and 'unsigned long long'. We don't want to say that
4740+# 'long long' is available if 'unsigned long long' is not, or vice versa,
4741+# because too many programs rely on the symmetry between signed and unsigned
4742+# integer types (excluding 'bool').
4743+AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
4744+[
4745+ AC_LANG_PROGRAM(
4746+ [[/* For now, do not test the preprocessor; as of 2007 there are too many
4747+ implementations with broken preprocessors. Perhaps this can
4748+ be revisited in 2012. In the meantime, code should not expect
4749+ #if to work with literals wider than 32 bits. */
4750+ /* Test literals. */
4751+ long long int ll = 9223372036854775807ll;
4752+ long long int nll = -9223372036854775807LL;
4753+ unsigned long long int ull = 18446744073709551615ULL;
4754+ /* Test constant expressions. */
4755+ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4756+ ? 1 : -1)];
4757+ typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4758+ ? 1 : -1)];
4759+ int i = 63;]],
4760+ [[/* Test availability of runtime routines for shift and division. */
4761+ long long int llmax = 9223372036854775807ll;
4762+ unsigned long long int ullmax = 18446744073709551615ull;
4763+ return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4764+ | (llmax / ll) | (llmax % ll)
4765+ | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4766+ | (ullmax / ull) | (ullmax % ull));]])
4767+])
4768diff --git a/m4/nls.m4 b/m4/nls.m4
4769new file mode 100644
4770index 0000000..003704c
4771--- /dev/null
4772+++ b/m4/nls.m4
4773@@ -0,0 +1,32 @@
4774+# nls.m4 serial 5 (gettext-0.18)
4775+dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
4776+dnl Inc.
4777+dnl This file is free software; the Free Software Foundation
4778+dnl gives unlimited permission to copy and/or distribute it,
4779+dnl with or without modifications, as long as this notice is preserved.
4780+dnl
4781+dnl This file can can be used in projects which are not available under
4782+dnl the GNU General Public License or the GNU Library General Public
4783+dnl License but which still want to provide support for the GNU gettext
4784+dnl functionality.
4785+dnl Please note that the actual code of the GNU gettext library is covered
4786+dnl by the GNU Library General Public License, and the rest of the GNU
4787+dnl gettext package package is covered by the GNU General Public License.
4788+dnl They are *not* in the public domain.
4789+
4790+dnl Authors:
4791+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
4792+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
4793+
4794+AC_PREREQ([2.50])
4795+
4796+AC_DEFUN([AM_NLS],
4797+[
4798+ AC_MSG_CHECKING([whether NLS is requested])
4799+ dnl Default is enabled NLS
4800+ AC_ARG_ENABLE([nls],
4801+ [ --disable-nls do not use Native Language Support],
4802+ USE_NLS=$enableval, USE_NLS=yes)
4803+ AC_MSG_RESULT([$USE_NLS])
4804+ AC_SUBST([USE_NLS])
4805+])
4806diff --git a/m4/po.m4 b/m4/po.m4
4807new file mode 100644
4808index 0000000..47f36a4
4809--- /dev/null
4810+++ b/m4/po.m4
4811@@ -0,0 +1,449 @@
4812+# po.m4 serial 17 (gettext-0.18)
4813+dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
4814+dnl This file is free software; the Free Software Foundation
4815+dnl gives unlimited permission to copy and/or distribute it,
4816+dnl with or without modifications, as long as this notice is preserved.
4817+dnl
4818+dnl This file can can be used in projects which are not available under
4819+dnl the GNU General Public License or the GNU Library General Public
4820+dnl License but which still want to provide support for the GNU gettext
4821+dnl functionality.
4822+dnl Please note that the actual code of the GNU gettext library is covered
4823+dnl by the GNU Library General Public License, and the rest of the GNU
4824+dnl gettext package package is covered by the GNU General Public License.
4825+dnl They are *not* in the public domain.
4826+
4827+dnl Authors:
4828+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
4829+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
4830+
4831+AC_PREREQ([2.50])
4832+
4833+dnl Checks for all prerequisites of the po subdirectory.
4834+AC_DEFUN([AM_PO_SUBDIRS],
4835+[
4836+ AC_REQUIRE([AC_PROG_MAKE_SET])dnl
4837+ AC_REQUIRE([AC_PROG_INSTALL])dnl
4838+ AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
4839+ AC_REQUIRE([AM_NLS])dnl
4840+
4841+ dnl Release version of the gettext macros. This is used to ensure that
4842+ dnl the gettext macros and po/Makefile.in.in are in sync.
4843+ AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
4844+
4845+ dnl Perform the following tests also if --disable-nls has been given,
4846+ dnl because they are needed for "make dist" to work.
4847+
4848+ dnl Search for GNU msgfmt in the PATH.
4849+ dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
4850+ dnl The second test excludes FreeBSD msgfmt.
4851+ AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
4852+ [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
4853+ (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
4854+ :)
4855+ AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
4856+
4857+ dnl Test whether it is GNU msgfmt >= 0.15.
4858+changequote(,)dnl
4859+ case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4860+ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4861+ *) MSGFMT_015=$MSGFMT ;;
4862+ esac
4863+changequote([,])dnl
4864+ AC_SUBST([MSGFMT_015])
4865+changequote(,)dnl
4866+ case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4867+ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4868+ *) GMSGFMT_015=$GMSGFMT ;;
4869+ esac
4870+changequote([,])dnl
4871+ AC_SUBST([GMSGFMT_015])
4872+
4873+ dnl Search for GNU xgettext 0.12 or newer in the PATH.
4874+ dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
4875+ dnl The second test excludes FreeBSD xgettext.
4876+ AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
4877+ [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
4878+ (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)],
4879+ :)
4880+ dnl Remove leftover from FreeBSD xgettext call.
4881+ rm -f messages.po
4882+
4883+ dnl Test whether it is GNU xgettext >= 0.15.
4884+changequote(,)dnl
4885+ case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4886+ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4887+ *) XGETTEXT_015=$XGETTEXT ;;
4888+ esac
4889+changequote([,])dnl
4890+ AC_SUBST([XGETTEXT_015])
4891+
4892+ dnl Search for GNU msgmerge 0.11 or newer in the PATH.
4893+ AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
4894+ [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
4895+
4896+ dnl Installation directories.
4897+ dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
4898+ dnl have to define it here, so that it can be used in po/Makefile.
4899+ test -n "$localedir" || localedir='${datadir}/locale'
4900+ AC_SUBST([localedir])
4901+
4902+ dnl Support for AM_XGETTEXT_OPTION.
4903+ test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4904+ AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
4905+
4906+ AC_CONFIG_COMMANDS([po-directories], [[
4907+ for ac_file in $CONFIG_FILES; do
4908+ # Support "outfile[:infile[:infile...]]"
4909+ case "$ac_file" in
4910+ *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4911+ esac
4912+ # PO directories have a Makefile.in generated from Makefile.in.in.
4913+ case "$ac_file" in */Makefile.in)
4914+ # Adjust a relative srcdir.
4915+ ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
4916+ ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
4917+ ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
4918+ # In autoconf-2.13 it is called $ac_given_srcdir.
4919+ # In autoconf-2.50 it is called $srcdir.
4920+ test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
4921+ case "$ac_given_srcdir" in
4922+ .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
4923+ /*) top_srcdir="$ac_given_srcdir" ;;
4924+ *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
4925+ esac
4926+ # Treat a directory as a PO directory if and only if it has a
4927+ # POTFILES.in file. This allows packages to have multiple PO
4928+ # directories under different names or in different locations.
4929+ if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
4930+ rm -f "$ac_dir/POTFILES"
4931+ test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
4932+ cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
4933+ POMAKEFILEDEPS="POTFILES.in"
4934+ # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
4935+ # on $ac_dir but don't depend on user-specified configuration
4936+ # parameters.
4937+ if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
4938+ # The LINGUAS file contains the set of available languages.
4939+ if test -n "$OBSOLETE_ALL_LINGUAS"; then
4940+ test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
4941+ fi
4942+ ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
4943+ # Hide the ALL_LINGUAS assigment from automake < 1.5.
4944+ eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
4945+ POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
4946+ else
4947+ # The set of available languages was given in configure.in.
4948+ # Hide the ALL_LINGUAS assigment from automake < 1.5.
4949+ eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
4950+ fi
4951+ # Compute POFILES
4952+ # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
4953+ # Compute UPDATEPOFILES
4954+ # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
4955+ # Compute DUMMYPOFILES
4956+ # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
4957+ # Compute GMOFILES
4958+ # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
4959+ case "$ac_given_srcdir" in
4960+ .) srcdirpre= ;;
4961+ *) srcdirpre='$(srcdir)/' ;;
4962+ esac
4963+ POFILES=
4964+ UPDATEPOFILES=
4965+ DUMMYPOFILES=
4966+ GMOFILES=
4967+ for lang in $ALL_LINGUAS; do
4968+ POFILES="$POFILES $srcdirpre$lang.po"
4969+ UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
4970+ DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
4971+ GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
4972+ done
4973+ # CATALOGS depends on both $ac_dir and the user's LINGUAS
4974+ # environment variable.
4975+ INST_LINGUAS=
4976+ if test -n "$ALL_LINGUAS"; then
4977+ for presentlang in $ALL_LINGUAS; do
4978+ useit=no
4979+ if test "%UNSET%" != "$LINGUAS"; then
4980+ desiredlanguages="$LINGUAS"
4981+ else
4982+ desiredlanguages="$ALL_LINGUAS"
4983+ fi
4984+ for desiredlang in $desiredlanguages; do
4985+ # Use the presentlang catalog if desiredlang is
4986+ # a. equal to presentlang, or
4987+ # b. a variant of presentlang (because in this case,
4988+ # presentlang can be used as a fallback for messages
4989+ # which are not translated in the desiredlang catalog).
4990+ case "$desiredlang" in
4991+ "$presentlang"*) useit=yes;;
4992+ esac
4993+ done
4994+ if test $useit = yes; then
4995+ INST_LINGUAS="$INST_LINGUAS $presentlang"
4996+ fi
4997+ done
4998+ fi
4999+ CATALOGS=
5000+ if test -n "$INST_LINGUAS"; then
5001+ for lang in $INST_LINGUAS; do
5002+ CATALOGS="$CATALOGS $lang.gmo"
5003+ done
5004+ fi
5005+ test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
5006+ 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"
5007+ for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
5008+ if test -f "$f"; then
5009+ case "$f" in
5010+ *.orig | *.bak | *~) ;;
5011+ *) cat "$f" >> "$ac_dir/Makefile" ;;
5012+ esac
5013+ fi
5014+ done
5015+ fi
5016+ ;;
5017+ esac
5018+ done]],
5019+ [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
5020+ # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
5021+ # from automake < 1.5.
5022+ eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
5023+ # Capture the value of LINGUAS because we need it to compute CATALOGS.
5024+ LINGUAS="${LINGUAS-%UNSET%}"
5025+ ])
5026+])
5027+
5028+dnl Postprocesses a Makefile in a directory containing PO files.
5029+AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
5030+[
5031+ # When this code is run, in config.status, two variables have already been
5032+ # set:
5033+ # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
5034+ # - LINGUAS is the value of the environment variable LINGUAS at configure
5035+ # time.
5036+
5037+changequote(,)dnl
5038+ # Adjust a relative srcdir.
5039+ ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
5040+ ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
5041+ ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
5042+ # In autoconf-2.13 it is called $ac_given_srcdir.
5043+ # In autoconf-2.50 it is called $srcdir.
5044+ test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
5045+ case "$ac_given_srcdir" in
5046+ .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
5047+ /*) top_srcdir="$ac_given_srcdir" ;;
5048+ *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
5049+ esac
5050+
5051+ # Find a way to echo strings without interpreting backslash.
5052+ if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
5053+ gt_echo='echo'
5054+ else
5055+ if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
5056+ gt_echo='printf %s\n'
5057+ else
5058+ echo_func () {
5059+ cat <<EOT
5060+$*
5061+EOT
5062+ }
5063+ gt_echo='echo_func'
5064+ fi
5065+ fi
5066+
5067+ # A sed script that extracts the value of VARIABLE from a Makefile.
5068+ sed_x_variable='
5069+# Test if the hold space is empty.
5070+x
5071+s/P/P/
5072+x
5073+ta
5074+# Yes it was empty. Look if we have the expected variable definition.
5075+/^[ ]*VARIABLE[ ]*=/{
5076+ # Seen the first line of the variable definition.
5077+ s/^[ ]*VARIABLE[ ]*=//
5078+ ba
5079+}
5080+bd
5081+:a
5082+# Here we are processing a line from the variable definition.
5083+# Remove comment, more precisely replace it with a space.
5084+s/#.*$/ /
5085+# See if the line ends in a backslash.
5086+tb
5087+:b
5088+s/\\$//
5089+# Print the line, without the trailing backslash.
5090+p
5091+tc
5092+# There was no trailing backslash. The end of the variable definition is
5093+# reached. Clear the hold space.
5094+s/^.*$//
5095+x
5096+bd
5097+:c
5098+# A trailing backslash means that the variable definition continues in the
5099+# next line. Put a nonempty string into the hold space to indicate this.
5100+s/^.*$/P/
5101+x
5102+:d
5103+'
5104+changequote([,])dnl
5105+
5106+ # Set POTFILES to the value of the Makefile variable POTFILES.
5107+ sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
5108+ POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
5109+ # Compute POTFILES_DEPS as
5110+ # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
5111+ POTFILES_DEPS=
5112+ for file in $POTFILES; do
5113+ POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
5114+ done
5115+ POMAKEFILEDEPS=""
5116+
5117+ if test -n "$OBSOLETE_ALL_LINGUAS"; then
5118+ test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
5119+ fi
5120+ if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
5121+ # The LINGUAS file contains the set of available languages.
5122+ ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
5123+ POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
5124+ else
5125+ # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
5126+ sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
5127+ ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
5128+ fi
5129+ # Hide the ALL_LINGUAS assigment from automake < 1.5.
5130+ eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
5131+ # Compute POFILES
5132+ # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
5133+ # Compute UPDATEPOFILES
5134+ # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
5135+ # Compute DUMMYPOFILES
5136+ # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
5137+ # Compute GMOFILES
5138+ # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
5139+ # Compute PROPERTIESFILES
5140+ # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
5141+ # Compute CLASSFILES
5142+ # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
5143+ # Compute QMFILES
5144+ # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
5145+ # Compute MSGFILES
5146+ # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
5147+ # Compute RESOURCESDLLFILES
5148+ # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
5149+ case "$ac_given_srcdir" in
5150+ .) srcdirpre= ;;
5151+ *) srcdirpre='$(srcdir)/' ;;
5152+ esac
5153+ POFILES=
5154+ UPDATEPOFILES=
5155+ DUMMYPOFILES=
5156+ GMOFILES=
5157+ PROPERTIESFILES=
5158+ CLASSFILES=
5159+ QMFILES=
5160+ MSGFILES=
5161+ RESOURCESDLLFILES=
5162+ for lang in $ALL_LINGUAS; do
5163+ POFILES="$POFILES $srcdirpre$lang.po"
5164+ UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
5165+ DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
5166+ GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
5167+ PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
5168+ CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
5169+ QMFILES="$QMFILES $srcdirpre$lang.qm"
5170+ frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
5171+ MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
5172+ 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/'`
5173+ RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
5174+ done
5175+ # CATALOGS depends on both $ac_dir and the user's LINGUAS
5176+ # environment variable.
5177+ INST_LINGUAS=
5178+ if test -n "$ALL_LINGUAS"; then
5179+ for presentlang in $ALL_LINGUAS; do
5180+ useit=no
5181+ if test "%UNSET%" != "$LINGUAS"; then
5182+ desiredlanguages="$LINGUAS"
5183+ else
5184+ desiredlanguages="$ALL_LINGUAS"
5185+ fi
5186+ for desiredlang in $desiredlanguages; do
5187+ # Use the presentlang catalog if desiredlang is
5188+ # a. equal to presentlang, or
5189+ # b. a variant of presentlang (because in this case,
5190+ # presentlang can be used as a fallback for messages
5191+ # which are not translated in the desiredlang catalog).
5192+ case "$desiredlang" in
5193+ "$presentlang"*) useit=yes;;
5194+ esac
5195+ done
5196+ if test $useit = yes; then
5197+ INST_LINGUAS="$INST_LINGUAS $presentlang"
5198+ fi
5199+ done
5200+ fi
5201+ CATALOGS=
5202+ JAVACATALOGS=
5203+ QTCATALOGS=
5204+ TCLCATALOGS=
5205+ CSHARPCATALOGS=
5206+ if test -n "$INST_LINGUAS"; then
5207+ for lang in $INST_LINGUAS; do
5208+ CATALOGS="$CATALOGS $lang.gmo"
5209+ JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
5210+ QTCATALOGS="$QTCATALOGS $lang.qm"
5211+ frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
5212+ TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
5213+ 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/'`
5214+ CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
5215+ done
5216+ fi
5217+
5218+ 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"
5219+ if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
5220+ # Add dependencies that cannot be formulated as a simple suffix rule.
5221+ for lang in $ALL_LINGUAS; do
5222+ frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
5223+ cat >> "$ac_file.tmp" <<EOF
5224+$frobbedlang.msg: $lang.po
5225+ @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
5226+ \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
5227+EOF
5228+ done
5229+ fi
5230+ if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
5231+ # Add dependencies that cannot be formulated as a simple suffix rule.
5232+ for lang in $ALL_LINGUAS; do
5233+ 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/'`
5234+ cat >> "$ac_file.tmp" <<EOF
5235+$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
5236+ @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
5237+ \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
5238+EOF
5239+ done
5240+ fi
5241+ if test -n "$POMAKEFILEDEPS"; then
5242+ cat >> "$ac_file.tmp" <<EOF
5243+Makefile: $POMAKEFILEDEPS
5244+EOF
5245+ fi
5246+ mv "$ac_file.tmp" "$ac_file"
5247+])
5248+
5249+dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
5250+AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
5251+[
5252+ XGETTEXT_EXTRA_OPTIONS=
5253+])
5254+
5255+dnl Registers an option to be passed to xgettext in the po subdirectory.
5256+AC_DEFUN([AM_XGETTEXT_OPTION],
5257+[
5258+ AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
5259+ XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
5260+])
5261diff --git a/m4/printf-posix.m4 b/m4/printf-posix.m4
5262new file mode 100644
5263index 0000000..1eacf95
5264--- /dev/null
5265+++ b/m4/printf-posix.m4
5266@@ -0,0 +1,45 @@
5267+# printf-posix.m4 serial 5 (gettext-0.18)
5268+dnl Copyright (C) 2003, 2007, 2009-2010 Free Software Foundation, Inc.
5269+dnl This file is free software; the Free Software Foundation
5270+dnl gives unlimited permission to copy and/or distribute it,
5271+dnl with or without modifications, as long as this notice is preserved.
5272+
5273+dnl From Bruno Haible.
5274+dnl Test whether the printf() function supports POSIX/XSI format strings with
5275+dnl positions.
5276+
5277+AC_DEFUN([gt_PRINTF_POSIX],
5278+[
5279+ AC_REQUIRE([AC_PROG_CC])
5280+ AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
5281+ gt_cv_func_printf_posix,
5282+ [
5283+ AC_TRY_RUN([
5284+#include <stdio.h>
5285+#include <string.h>
5286+/* The string "%2$d %1$d", with dollar characters protected from the shell's
5287+ dollar expansion (possibly an autoconf bug). */
5288+static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5289+static char buf[100];
5290+int main ()
5291+{
5292+ sprintf (buf, format, 33, 55);
5293+ return (strcmp (buf, "55 33") != 0);
5294+}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
5295+ [
5296+ AC_EGREP_CPP([notposix], [
5297+#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5298+ notposix
5299+#endif
5300+ ],
5301+ [gt_cv_func_printf_posix="guessing no"],
5302+ [gt_cv_func_printf_posix="guessing yes"])
5303+ ])
5304+ ])
5305+ case $gt_cv_func_printf_posix in
5306+ *yes)
5307+ AC_DEFINE([HAVE_POSIX_PRINTF], [1],
5308+ [Define if your printf() function supports format strings with positions.])
5309+ ;;
5310+ esac
5311+])
5312diff --git a/m4/progtest.m4 b/m4/progtest.m4
5313new file mode 100644
5314index 0000000..2d804ac
5315--- /dev/null
5316+++ b/m4/progtest.m4
5317@@ -0,0 +1,92 @@
5318+# progtest.m4 serial 6 (gettext-0.18)
5319+dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc.
5320+dnl This file is free software; the Free Software Foundation
5321+dnl gives unlimited permission to copy and/or distribute it,
5322+dnl with or without modifications, as long as this notice is preserved.
5323+dnl
5324+dnl This file can can be used in projects which are not available under
5325+dnl the GNU General Public License or the GNU Library General Public
5326+dnl License but which still want to provide support for the GNU gettext
5327+dnl functionality.
5328+dnl Please note that the actual code of the GNU gettext library is covered
5329+dnl by the GNU Library General Public License, and the rest of the GNU
5330+dnl gettext package package is covered by the GNU General Public License.
5331+dnl They are *not* in the public domain.
5332+
5333+dnl Authors:
5334+dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
5335+
5336+AC_PREREQ([2.50])
5337+
5338+# Search path for a program which passes the given test.
5339+
5340+dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
5341+dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
5342+AC_DEFUN([AM_PATH_PROG_WITH_TEST],
5343+[
5344+# Prepare PATH_SEPARATOR.
5345+# The user is always right.
5346+if test "${PATH_SEPARATOR+set}" != set; then
5347+ echo "#! /bin/sh" >conf$$.sh
5348+ echo "exit 0" >>conf$$.sh
5349+ chmod +x conf$$.sh
5350+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5351+ PATH_SEPARATOR=';'
5352+ else
5353+ PATH_SEPARATOR=:
5354+ fi
5355+ rm -f conf$$.sh
5356+fi
5357+
5358+# Find out how to test for executable files. Don't use a zero-byte file,
5359+# as systems may use methods other than mode bits to determine executability.
5360+cat >conf$$.file <<_ASEOF
5361+#! /bin/sh
5362+exit 0
5363+_ASEOF
5364+chmod +x conf$$.file
5365+if test -x conf$$.file >/dev/null 2>&1; then
5366+ ac_executable_p="test -x"
5367+else
5368+ ac_executable_p="test -f"
5369+fi
5370+rm -f conf$$.file
5371+
5372+# Extract the first word of "$2", so it can be a program name with args.
5373+set dummy $2; ac_word=[$]2
5374+AC_MSG_CHECKING([for $ac_word])
5375+AC_CACHE_VAL([ac_cv_path_$1],
5376+[case "[$]$1" in
5377+ [[\\/]]* | ?:[[\\/]]*)
5378+ ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
5379+ ;;
5380+ *)
5381+ ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5382+ for ac_dir in ifelse([$5], , $PATH, [$5]); do
5383+ IFS="$ac_save_IFS"
5384+ test -z "$ac_dir" && ac_dir=.
5385+ for ac_exec_ext in '' $ac_executable_extensions; do
5386+ if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5387+ echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
5388+ if [$3]; then
5389+ ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
5390+ break 2
5391+ fi
5392+ fi
5393+ done
5394+ done
5395+ IFS="$ac_save_IFS"
5396+dnl If no 4th arg is given, leave the cache variable unset,
5397+dnl so AC_PATH_PROGS will keep looking.
5398+ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
5399+])dnl
5400+ ;;
5401+esac])dnl
5402+$1="$ac_cv_path_$1"
5403+if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
5404+ AC_MSG_RESULT([$][$1])
5405+else
5406+ AC_MSG_RESULT([no])
5407+fi
5408+AC_SUBST([$1])dnl
5409+])
5410diff --git a/m4/size_max.m4 b/m4/size_max.m4
5411new file mode 100644
5412index 0000000..ce992db
5413--- /dev/null
5414+++ b/m4/size_max.m4
5415@@ -0,0 +1,75 @@
5416+# size_max.m4 serial 9
5417+dnl Copyright (C) 2003, 2005-2006, 2008-2010 Free Software Foundation, Inc.
5418+dnl This file is free software; the Free Software Foundation
5419+dnl gives unlimited permission to copy and/or distribute it,
5420+dnl with or without modifications, as long as this notice is preserved.
5421+
5422+dnl From Bruno Haible.
5423+
5424+AC_DEFUN([gl_SIZE_MAX],
5425+[
5426+ AC_CHECK_HEADERS([stdint.h])
5427+ dnl First test whether the system already has SIZE_MAX.
5428+ AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [
5429+ gl_cv_size_max=
5430+ AC_EGREP_CPP([Found it], [
5431+#include <limits.h>
5432+#if HAVE_STDINT_H
5433+#include <stdint.h>
5434+#endif
5435+#ifdef SIZE_MAX
5436+Found it
5437+#endif
5438+], [gl_cv_size_max=yes])
5439+ if test -z "$gl_cv_size_max"; then
5440+ dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
5441+ dnl than the type 'unsigned long'. Try hard to find a definition that can
5442+ dnl be used in a preprocessor #if, i.e. doesn't contain a cast.
5443+ AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1],
5444+ [#include <stddef.h>
5445+#include <limits.h>], [size_t_bits_minus_1=])
5446+ AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)],
5447+ [#include <stddef.h>], [fits_in_uint=])
5448+ if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
5449+ if test $fits_in_uint = 1; then
5450+ dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
5451+ dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
5452+ AC_TRY_COMPILE([#include <stddef.h>
5453+ extern size_t foo;
5454+ extern unsigned long foo;
5455+ ], [], [fits_in_uint=0])
5456+ fi
5457+ dnl We cannot use 'expr' to simplify this expression, because 'expr'
5458+ dnl works only with 'long' integers in the host environment, while we
5459+ dnl might be cross-compiling from a 32-bit platform to a 64-bit platform.
5460+ if test $fits_in_uint = 1; then
5461+ gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
5462+ else
5463+ gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
5464+ fi
5465+ else
5466+ dnl Shouldn't happen, but who knows...
5467+ gl_cv_size_max='((size_t)~(size_t)0)'
5468+ fi
5469+ fi
5470+ ])
5471+ if test "$gl_cv_size_max" != yes; then
5472+ AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max],
5473+ [Define as the maximum value of type 'size_t', if the system doesn't define it.])
5474+ fi
5475+ dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after
5476+ dnl <stdint.h>. Remember that the #undef in AH_VERBATIM gets replaced with
5477+ dnl #define by AC_DEFINE_UNQUOTED.
5478+ AH_VERBATIM([SIZE_MAX],
5479+[/* Define as the maximum value of type 'size_t', if the system doesn't define
5480+ it. */
5481+#ifndef SIZE_MAX
5482+# undef SIZE_MAX
5483+#endif])
5484+])
5485+
5486+dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.
5487+dnl Remove this when we can assume autoconf >= 2.61.
5488+m4_ifdef([AC_COMPUTE_INT], [], [
5489+ AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])])
5490+])
5491diff --git a/m4/stdint_h.m4 b/m4/stdint_h.m4
5492new file mode 100644
5493index 0000000..b8e3c6c
5494--- /dev/null
5495+++ b/m4/stdint_h.m4
5496@@ -0,0 +1,26 @@
5497+# stdint_h.m4 serial 8
5498+dnl Copyright (C) 1997-2004, 2006, 2008-2010 Free Software Foundation, Inc.
5499+dnl This file is free software; the Free Software Foundation
5500+dnl gives unlimited permission to copy and/or distribute it,
5501+dnl with or without modifications, as long as this notice is preserved.
5502+
5503+dnl From Paul Eggert.
5504+
5505+# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
5506+# doesn't clash with <sys/types.h>, and declares uintmax_t.
5507+
5508+AC_DEFUN([gl_AC_HEADER_STDINT_H],
5509+[
5510+ AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h],
5511+ [AC_TRY_COMPILE(
5512+ [#include <sys/types.h>
5513+#include <stdint.h>],
5514+ [uintmax_t i = (uintmax_t) -1; return !i;],
5515+ [gl_cv_header_stdint_h=yes],
5516+ [gl_cv_header_stdint_h=no])])
5517+ if test $gl_cv_header_stdint_h = yes; then
5518+ AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1],
5519+ [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
5520+ and declares uintmax_t. ])
5521+ fi
5522+])
5523diff --git a/m4/threadlib.m4 b/m4/threadlib.m4
5524new file mode 100644
5525index 0000000..05cc4ff
5526--- /dev/null
5527+++ b/m4/threadlib.m4
5528@@ -0,0 +1,347 @@
5529+# threadlib.m4 serial 5 (gettext-0.18)
5530+dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
5531+dnl This file is free software; the Free Software Foundation
5532+dnl gives unlimited permission to copy and/or distribute it,
5533+dnl with or without modifications, as long as this notice is preserved.
5534+
5535+dnl From Bruno Haible.
5536+
5537+dnl gl_THREADLIB
5538+dnl ------------
5539+dnl Tests for a multithreading library to be used.
5540+dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS,
5541+dnl USE_PTH_THREADS, USE_WIN32_THREADS
5542+dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use
5543+dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with
5544+dnl libtool).
5545+dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for
5546+dnl programs that really need multithread functionality. The difference
5547+dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak
5548+dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread".
5549+dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for
5550+dnl multithread-safe programs.
5551+
5552+AC_DEFUN([gl_THREADLIB_EARLY],
5553+[
5554+ AC_REQUIRE([gl_THREADLIB_EARLY_BODY])
5555+])
5556+
5557+dnl The guts of gl_THREADLIB_EARLY. Needs to be expanded only once.
5558+
5559+AC_DEFUN([gl_THREADLIB_EARLY_BODY],
5560+[
5561+ dnl Ordering constraints: This macro modifies CPPFLAGS in a way that
5562+ dnl influences the result of the autoconf tests that test for *_unlocked
5563+ dnl declarations, on AIX 5 at least. Therefore it must come early.
5564+ AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl
5565+ AC_BEFORE([$0], [gl_ARGP])dnl
5566+
5567+ AC_REQUIRE([AC_CANONICAL_HOST])
5568+ dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems.
5569+ dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes
5570+ dnl AC_GNU_SOURCE.
5571+ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
5572+ [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
5573+ [AC_REQUIRE([AC_GNU_SOURCE])])
5574+ dnl Check for multithreading.
5575+ m4_divert_text([DEFAULTS], [gl_use_threads_default=])
5576+ AC_ARG_ENABLE([threads],
5577+AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API])
5578+AC_HELP_STRING([--disable-threads], [build without multithread safety]),
5579+ [gl_use_threads=$enableval],
5580+ [if test -n "$gl_use_threads_default"; then
5581+ gl_use_threads="$gl_use_threads_default"
5582+ else
5583+changequote(,)dnl
5584+ case "$host_os" in
5585+ dnl Disable multithreading by default on OSF/1, because it interferes
5586+ dnl with fork()/exec(): When msgexec is linked with -lpthread, its
5587+ dnl child process gets an endless segmentation fault inside execvp().
5588+ dnl Disable multithreading by default on Cygwin 1.5.x, because it has
5589+ dnl bugs that lead to endless loops or crashes. See
5590+ dnl <http://cygwin.com/ml/cygwin/2009-08/msg00283.html>.
5591+ osf*) gl_use_threads=no ;;
5592+ cygwin*)
5593+ case `uname -r` in
5594+ 1.[0-5].*) gl_use_threads=no ;;
5595+ *) gl_use_threads=yes ;;
5596+ esac
5597+ ;;
5598+ *) gl_use_threads=yes ;;
5599+ esac
5600+changequote([,])dnl
5601+ fi
5602+ ])
5603+ if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5604+ # For using <pthread.h>:
5605+ case "$host_os" in
5606+ osf*)
5607+ # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5608+ # groks <pthread.h>. cc also understands the flag -pthread, but
5609+ # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5610+ # 2. putting a flag into CPPFLAGS that has an effect on the linker
5611+ # causes the AC_TRY_LINK test below to succeed unexpectedly,
5612+ # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5613+ CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5614+ ;;
5615+ esac
5616+ # Some systems optimize for single-threaded programs by default, and
5617+ # need special flags to disable these optimizations. For example, the
5618+ # definition of 'errno' in <errno.h>.
5619+ case "$host_os" in
5620+ aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5621+ solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5622+ esac
5623+ fi
5624+])
5625+
5626+dnl The guts of gl_THREADLIB. Needs to be expanded only once.
5627+
5628+AC_DEFUN([gl_THREADLIB_BODY],
5629+[
5630+ AC_REQUIRE([gl_THREADLIB_EARLY_BODY])
5631+ gl_threads_api=none
5632+ LIBTHREAD=
5633+ LTLIBTHREAD=
5634+ LIBMULTITHREAD=
5635+ LTLIBMULTITHREAD=
5636+ if test "$gl_use_threads" != no; then
5637+ dnl Check whether the compiler and linker support weak declarations.
5638+ AC_CACHE_CHECK([whether imported symbols can be declared weak],
5639+ [gl_cv_have_weak],
5640+ [gl_cv_have_weak=no
5641+ dnl First, test whether the compiler accepts it syntactically.
5642+ AC_TRY_LINK([extern void xyzzy ();
5643+#pragma weak xyzzy], [xyzzy();], [gl_cv_have_weak=maybe])
5644+ if test $gl_cv_have_weak = maybe; then
5645+ dnl Second, test whether it actually works. On Cygwin 1.7.2, with
5646+ dnl gcc 4.3, symbols declared weak always evaluate to the address 0.
5647+ AC_TRY_RUN([
5648+#include <stdio.h>
5649+#pragma weak fputs
5650+int main ()
5651+{
5652+ return (fputs == NULL);
5653+}], [gl_cv_have_weak=yes], [gl_cv_have_weak=no],
5654+ [dnl When cross-compiling, assume that only ELF platforms support
5655+ dnl weak symbols.
5656+ AC_EGREP_CPP([Extensible Linking Format],
5657+ [#ifdef __ELF__
5658+ Extensible Linking Format
5659+ #endif
5660+ ],
5661+ [gl_cv_have_weak="guessing yes"],
5662+ [gl_cv_have_weak="guessing no"])
5663+ ])
5664+ fi
5665+ ])
5666+ if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5667+ # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
5668+ # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
5669+ AC_CHECK_HEADER([pthread.h],
5670+ [gl_have_pthread_h=yes], [gl_have_pthread_h=no])
5671+ if test "$gl_have_pthread_h" = yes; then
5672+ # Other possible tests:
5673+ # -lpthreads (FSU threads, PCthreads)
5674+ # -lgthreads
5675+ gl_have_pthread=
5676+ # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
5677+ # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
5678+ # the second one only in libpthread, and lock.c needs it.
5679+ AC_TRY_LINK([#include <pthread.h>],
5680+ [pthread_mutex_lock((pthread_mutex_t*)0);
5681+ pthread_mutexattr_init((pthread_mutexattr_t*)0);],
5682+ [gl_have_pthread=yes])
5683+ # Test for libpthread by looking for pthread_kill. (Not pthread_self,
5684+ # since it is defined as a macro on OSF/1.)
5685+ if test -n "$gl_have_pthread"; then
5686+ # The program links fine without libpthread. But it may actually
5687+ # need to link with libpthread in order to create multiple threads.
5688+ AC_CHECK_LIB([pthread], [pthread_kill],
5689+ [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
5690+ # On Solaris and HP-UX, most pthread functions exist also in libc.
5691+ # Therefore pthread_in_use() needs to actually try to create a
5692+ # thread: pthread_create from libc will fail, whereas
5693+ # pthread_create will actually create a thread.
5694+ case "$host_os" in
5695+ solaris* | hpux*)
5696+ AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1],
5697+ [Define if the pthread_in_use() detection is hard.])
5698+ esac
5699+ ])
5700+ else
5701+ # Some library is needed. Try libpthread and libc_r.
5702+ AC_CHECK_LIB([pthread], [pthread_kill],
5703+ [gl_have_pthread=yes
5704+ LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
5705+ LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread])
5706+ if test -z "$gl_have_pthread"; then
5707+ # For FreeBSD 4.
5708+ AC_CHECK_LIB([c_r], [pthread_kill],
5709+ [gl_have_pthread=yes
5710+ LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
5711+ LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r])
5712+ fi
5713+ fi
5714+ if test -n "$gl_have_pthread"; then
5715+ gl_threads_api=posix
5716+ AC_DEFINE([USE_POSIX_THREADS], [1],
5717+ [Define if the POSIX multithreading library can be used.])
5718+ if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
5719+ if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
5720+ AC_DEFINE([USE_POSIX_THREADS_WEAK], [1],
5721+ [Define if references to the POSIX multithreading library should be made weak.])
5722+ LIBTHREAD=
5723+ LTLIBTHREAD=
5724+ fi
5725+ fi
5726+ fi
5727+ fi
5728+ fi
5729+ if test -z "$gl_have_pthread"; then
5730+ if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
5731+ gl_have_solaristhread=
5732+ gl_save_LIBS="$LIBS"
5733+ LIBS="$LIBS -lthread"
5734+ AC_TRY_LINK([#include <thread.h>
5735+#include <synch.h>],
5736+ [thr_self();],
5737+ [gl_have_solaristhread=yes])
5738+ LIBS="$gl_save_LIBS"
5739+ if test -n "$gl_have_solaristhread"; then
5740+ gl_threads_api=solaris
5741+ LIBTHREAD=-lthread
5742+ LTLIBTHREAD=-lthread
5743+ LIBMULTITHREAD="$LIBTHREAD"
5744+ LTLIBMULTITHREAD="$LTLIBTHREAD"
5745+ AC_DEFINE([USE_SOLARIS_THREADS], [1],
5746+ [Define if the old Solaris multithreading library can be used.])
5747+ if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
5748+ AC_DEFINE([USE_SOLARIS_THREADS_WEAK], [1],
5749+ [Define if references to the old Solaris multithreading library should be made weak.])
5750+ LIBTHREAD=
5751+ LTLIBTHREAD=
5752+ fi
5753+ fi
5754+ fi
5755+ fi
5756+ if test "$gl_use_threads" = pth; then
5757+ gl_save_CPPFLAGS="$CPPFLAGS"
5758+ AC_LIB_LINKFLAGS([pth])
5759+ gl_have_pth=
5760+ gl_save_LIBS="$LIBS"
5761+ LIBS="$LIBS -lpth"
5762+ AC_TRY_LINK([#include <pth.h>], [pth_self();], [gl_have_pth=yes])
5763+ LIBS="$gl_save_LIBS"
5764+ if test -n "$gl_have_pth"; then
5765+ gl_threads_api=pth
5766+ LIBTHREAD="$LIBPTH"
5767+ LTLIBTHREAD="$LTLIBPTH"
5768+ LIBMULTITHREAD="$LIBTHREAD"
5769+ LTLIBMULTITHREAD="$LTLIBTHREAD"
5770+ AC_DEFINE([USE_PTH_THREADS], [1],
5771+ [Define if the GNU Pth multithreading library can be used.])
5772+ if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
5773+ if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
5774+ AC_DEFINE([USE_PTH_THREADS_WEAK], [1],
5775+ [Define if references to the GNU Pth multithreading library should be made weak.])
5776+ LIBTHREAD=
5777+ LTLIBTHREAD=
5778+ fi
5779+ fi
5780+ else
5781+ CPPFLAGS="$gl_save_CPPFLAGS"
5782+ fi
5783+ fi
5784+ if test -z "$gl_have_pthread"; then
5785+ if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
5786+ if { case "$host_os" in
5787+ mingw*) true;;
5788+ *) false;;
5789+ esac
5790+ }; then
5791+ gl_threads_api=win32
5792+ AC_DEFINE([USE_WIN32_THREADS], [1],
5793+ [Define if the Win32 multithreading API can be used.])
5794+ fi
5795+ fi
5796+ fi
5797+ fi
5798+ AC_MSG_CHECKING([for multithread API to use])
5799+ AC_MSG_RESULT([$gl_threads_api])
5800+ AC_SUBST([LIBTHREAD])
5801+ AC_SUBST([LTLIBTHREAD])
5802+ AC_SUBST([LIBMULTITHREAD])
5803+ AC_SUBST([LTLIBMULTITHREAD])
5804+])
5805+
5806+AC_DEFUN([gl_THREADLIB],
5807+[
5808+ AC_REQUIRE([gl_THREADLIB_EARLY])
5809+ AC_REQUIRE([gl_THREADLIB_BODY])
5810+])
5811+
5812+
5813+dnl gl_DISABLE_THREADS
5814+dnl ------------------
5815+dnl Sets the gl_THREADLIB default so that threads are not used by default.
5816+dnl The user can still override it at installation time, by using the
5817+dnl configure option '--enable-threads'.
5818+
5819+AC_DEFUN([gl_DISABLE_THREADS], [
5820+ m4_divert_text([INIT_PREPARE], [gl_use_threads_default=no])
5821+])
5822+
5823+
5824+dnl Survey of platforms:
5825+dnl
5826+dnl Platform Available Compiler Supports test-lock
5827+dnl flavours option weak result
5828+dnl --------------- --------- --------- -------- ---------
5829+dnl Linux 2.4/glibc posix -lpthread Y OK
5830+dnl
5831+dnl GNU Hurd/glibc posix
5832+dnl
5833+dnl FreeBSD 5.3 posix -lc_r Y
5834+dnl posix -lkse ? Y
5835+dnl posix -lpthread ? Y
5836+dnl posix -lthr Y
5837+dnl
5838+dnl FreeBSD 5.2 posix -lc_r Y
5839+dnl posix -lkse Y
5840+dnl posix -lthr Y
5841+dnl
5842+dnl FreeBSD 4.0,4.10 posix -lc_r Y OK
5843+dnl
5844+dnl NetBSD 1.6 --
5845+dnl
5846+dnl OpenBSD 3.4 posix -lpthread Y OK
5847+dnl
5848+dnl MacOS X 10.[123] posix -lpthread Y OK
5849+dnl
5850+dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK
5851+dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK
5852+dnl
5853+dnl HP-UX 11 posix -lpthread N (cc) OK
5854+dnl Y (gcc)
5855+dnl
5856+dnl IRIX 6.5 posix -lpthread Y 0.5
5857+dnl
5858+dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK
5859+dnl
5860+dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK
5861+dnl -lpthread (gcc) Y
5862+dnl
5863+dnl Cygwin posix -lpthread Y OK
5864+dnl
5865+dnl Any of the above pth -lpth 0.0
5866+dnl
5867+dnl Mingw win32 N OK
5868+dnl
5869+dnl BeOS 5 --
5870+dnl
5871+dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is
5872+dnl turned off:
5873+dnl OK if all three tests terminate OK,
5874+dnl 0.5 if the first test terminates OK but the second one loops endlessly,
5875+dnl 0.0 if the first test already loops endlessly.
5876diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4
5877new file mode 100644
5878index 0000000..03b51bc
5879--- /dev/null
5880+++ b/m4/uintmax_t.m4
5881@@ -0,0 +1,30 @@
5882+# uintmax_t.m4 serial 12
5883+dnl Copyright (C) 1997-2004, 2007-2010 Free Software Foundation, Inc.
5884+dnl This file is free software; the Free Software Foundation
5885+dnl gives unlimited permission to copy and/or distribute it,
5886+dnl with or without modifications, as long as this notice is preserved.
5887+
5888+dnl From Paul Eggert.
5889+
5890+AC_PREREQ([2.13])
5891+
5892+# Define uintmax_t to 'unsigned long' or 'unsigned long long'
5893+# if it is not already defined in <stdint.h> or <inttypes.h>.
5894+
5895+AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
5896+[
5897+ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
5898+ AC_REQUIRE([gl_AC_HEADER_STDINT_H])
5899+ if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5900+ AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
5901+ test $ac_cv_type_unsigned_long_long_int = yes \
5902+ && ac_type='unsigned long long' \
5903+ || ac_type='unsigned long'
5904+ AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
5905+ [Define to unsigned long or unsigned long long
5906+ if <stdint.h> and <inttypes.h> don't define.])
5907+ else
5908+ AC_DEFINE([HAVE_UINTMAX_T], [1],
5909+ [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
5910+ fi
5911+])
5912diff --git a/m4/visibility.m4 b/m4/visibility.m4
5913new file mode 100644
5914index 0000000..077c476
5915--- /dev/null
5916+++ b/m4/visibility.m4
5917@@ -0,0 +1,74 @@
5918+# visibility.m4 serial 3 (gettext-0.18)
5919+dnl Copyright (C) 2005, 2008-2010 Free Software Foundation, Inc.
5920+dnl This file is free software; the Free Software Foundation
5921+dnl gives unlimited permission to copy and/or distribute it,
5922+dnl with or without modifications, as long as this notice is preserved.
5923+
5924+dnl From Bruno Haible.
5925+
5926+dnl Tests whether the compiler supports the command-line option
5927+dnl -fvisibility=hidden and the function and variable attributes
5928+dnl __attribute__((__visibility__("hidden"))) and
5929+dnl __attribute__((__visibility__("default"))).
5930+dnl Does *not* test for __visibility__("protected") - which has tricky
5931+dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on
5932+dnl MacOS X.
5933+dnl Does *not* test for __visibility__("internal") - which has processor
5934+dnl dependent semantics.
5935+dnl Does *not* test for #pragma GCC visibility push(hidden) - which is
5936+dnl "really only recommended for legacy code".
5937+dnl Set the variable CFLAG_VISIBILITY.
5938+dnl Defines and sets the variable HAVE_VISIBILITY.
5939+
5940+AC_DEFUN([gl_VISIBILITY],
5941+[
5942+ AC_REQUIRE([AC_PROG_CC])
5943+ CFLAG_VISIBILITY=
5944+ HAVE_VISIBILITY=0
5945+ if test -n "$GCC"; then
5946+ dnl First, check whether -Werror can be added to the command line, or
5947+ dnl whether it leads to an error because of some other option that the
5948+ dnl user has put into $CC $CFLAGS $CPPFLAGS.
5949+ AC_MSG_CHECKING([whether the -Werror option is usable])
5950+ AC_CACHE_VAL([gl_cv_cc_vis_werror], [
5951+ gl_save_CFLAGS="$CFLAGS"
5952+ CFLAGS="$CFLAGS -Werror"
5953+ AC_TRY_COMPILE([], [],
5954+ [gl_cv_cc_vis_werror=yes],
5955+ [gl_cv_cc_vis_werror=no])
5956+ CFLAGS="$gl_save_CFLAGS"])
5957+ AC_MSG_RESULT([$gl_cv_cc_vis_werror])
5958+ dnl Now check whether visibility declarations are supported.
5959+ AC_MSG_CHECKING([for simple visibility declarations])
5960+ AC_CACHE_VAL([gl_cv_cc_visibility], [
5961+ gl_save_CFLAGS="$CFLAGS"
5962+ CFLAGS="$CFLAGS -fvisibility=hidden"
5963+ dnl We use the option -Werror and a function dummyfunc, because on some
5964+ dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
5965+ dnl "visibility attribute not supported in this configuration; ignored"
5966+ dnl at the first function definition in every compilation unit, and we
5967+ dnl don't want to use the option in this case.
5968+ if test $gl_cv_cc_vis_werror = yes; then
5969+ CFLAGS="$CFLAGS -Werror"
5970+ fi
5971+ AC_TRY_COMPILE(
5972+ [extern __attribute__((__visibility__("hidden"))) int hiddenvar;
5973+ extern __attribute__((__visibility__("default"))) int exportedvar;
5974+ extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
5975+ extern __attribute__((__visibility__("default"))) int exportedfunc (void);
5976+ void dummyfunc (void) {}],
5977+ [],
5978+ [gl_cv_cc_visibility=yes],
5979+ [gl_cv_cc_visibility=no])
5980+ CFLAGS="$gl_save_CFLAGS"])
5981+ AC_MSG_RESULT([$gl_cv_cc_visibility])
5982+ if test $gl_cv_cc_visibility = yes; then
5983+ CFLAG_VISIBILITY="-fvisibility=hidden"
5984+ HAVE_VISIBILITY=1
5985+ fi
5986+ fi
5987+ AC_SUBST([CFLAG_VISIBILITY])
5988+ AC_SUBST([HAVE_VISIBILITY])
5989+ AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
5990+ [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])
5991+])
5992diff --git a/m4/wchar_t.m4 b/m4/wchar_t.m4
5993new file mode 100644
5994index 0000000..ed804e6
5995--- /dev/null
5996+++ b/m4/wchar_t.m4
5997@@ -0,0 +1,20 @@
5998+# wchar_t.m4 serial 3 (gettext-0.18)
5999+dnl Copyright (C) 2002-2003, 2008-2010 Free Software Foundation, Inc.
6000+dnl This file is free software; the Free Software Foundation
6001+dnl gives unlimited permission to copy and/or distribute it,
6002+dnl with or without modifications, as long as this notice is preserved.
6003+
6004+dnl From Bruno Haible.
6005+dnl Test whether <stddef.h> has the 'wchar_t' type.
6006+dnl Prerequisite: AC_PROG_CC
6007+
6008+AC_DEFUN([gt_TYPE_WCHAR_T],
6009+[
6010+ AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t],
6011+ [AC_TRY_COMPILE([#include <stddef.h>
6012+ wchar_t foo = (wchar_t)'\0';], ,
6013+ [gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no])])
6014+ if test $gt_cv_c_wchar_t = yes; then
6015+ AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.])
6016+ fi
6017+])
6018diff --git a/m4/wint_t.m4 b/m4/wint_t.m4
6019new file mode 100644
6020index 0000000..a6c7d15
6021--- /dev/null
6022+++ b/m4/wint_t.m4
6023@@ -0,0 +1,28 @@
6024+# wint_t.m4 serial 4 (gettext-0.18)
6025+dnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc.
6026+dnl This file is free software; the Free Software Foundation
6027+dnl gives unlimited permission to copy and/or distribute it,
6028+dnl with or without modifications, as long as this notice is preserved.
6029+
6030+dnl From Bruno Haible.
6031+dnl Test whether <wchar.h> has the 'wint_t' type.
6032+dnl Prerequisite: AC_PROG_CC
6033+
6034+AC_DEFUN([gt_TYPE_WINT_T],
6035+[
6036+ AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
6037+ [AC_TRY_COMPILE([
6038+/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6039+ <wchar.h>.
6040+ BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
6041+ before <wchar.h>. */
6042+#include <stddef.h>
6043+#include <stdio.h>
6044+#include <time.h>
6045+#include <wchar.h>
6046+ wint_t foo = (wchar_t)'\0';], ,
6047+ [gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no])])
6048+ if test $gt_cv_c_wint_t = yes; then
6049+ AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.])
6050+ fi
6051+])
6052diff --git a/m4/xsize.m4 b/m4/xsize.m4
6053new file mode 100644
6054index 0000000..b653693
6055--- /dev/null
6056+++ b/m4/xsize.m4
6057@@ -0,0 +1,13 @@
6058+# xsize.m4 serial 4
6059+dnl Copyright (C) 2003-2004, 2008-2010 Free Software Foundation, Inc.
6060+dnl This file is free software; the Free Software Foundation
6061+dnl gives unlimited permission to copy and/or distribute it,
6062+dnl with or without modifications, as long as this notice is preserved.
6063+
6064+AC_DEFUN([gl_XSIZE],
6065+[
6066+ dnl Prerequisites of lib/xsize.h.
6067+ AC_REQUIRE([gl_SIZE_MAX])
6068+ AC_REQUIRE([AC_C_INLINE])
6069+ AC_CHECK_HEADERS([stdint.h])
6070+])
6071diff --git a/po/Makefile.in.in b/po/Makefile.in.in
6072new file mode 100644
6073index 0000000..83d8838
6074--- /dev/null
6075+++ b/po/Makefile.in.in
6076@@ -0,0 +1,444 @@
6077+# Makefile for PO directory in any package using GNU gettext.
6078+# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
6079+#
6080+# This file can be copied and used freely without restrictions. It can
6081+# be used in projects which are not available under the GNU General Public
6082+# License but which still want to provide support for the GNU gettext
6083+# functionality.
6084+# Please note that the actual code of GNU gettext is covered by the GNU
6085+# General Public License and is *not* in the public domain.
6086+#
6087+# Origin: gettext-0.18
6088+GETTEXT_MACRO_VERSION = 0.18
6089+
6090+PACKAGE = @PACKAGE@
6091+VERSION = @VERSION@
6092+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
6093+
6094+SHELL = /bin/sh
6095+@SET_MAKE@
6096+
6097+srcdir = @srcdir@
6098+top_srcdir = @top_srcdir@
6099+VPATH = @srcdir@
6100+
6101+prefix = @prefix@
6102+exec_prefix = @exec_prefix@
6103+datarootdir = @datarootdir@
6104+datadir = @datadir@
6105+localedir = @localedir@
6106+gettextsrcdir = $(datadir)/gettext/po
6107+
6108+INSTALL = @INSTALL@
6109+INSTALL_DATA = @INSTALL_DATA@
6110+
6111+# We use $(mkdir_p).
6112+# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
6113+# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
6114+# @install_sh@ does not start with $(SHELL), so we add it.
6115+# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
6116+# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
6117+# versions, $(mkinstalldirs) and $(install_sh) are unused.
6118+mkinstalldirs = $(SHELL) @install_sh@ -d
6119+install_sh = $(SHELL) @install_sh@
6120+MKDIR_P = @MKDIR_P@
6121+mkdir_p = @mkdir_p@
6122+
6123+GMSGFMT_ = @GMSGFMT@
6124+GMSGFMT_no = @GMSGFMT@
6125+GMSGFMT_yes = @GMSGFMT_015@
6126+GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
6127+MSGFMT_ = @MSGFMT@
6128+MSGFMT_no = @MSGFMT@
6129+MSGFMT_yes = @MSGFMT_015@
6130+MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
6131+XGETTEXT_ = @XGETTEXT@
6132+XGETTEXT_no = @XGETTEXT@
6133+XGETTEXT_yes = @XGETTEXT_015@
6134+XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
6135+MSGMERGE = msgmerge
6136+MSGMERGE_UPDATE = @MSGMERGE@ --update
6137+MSGINIT = msginit
6138+MSGCONV = msgconv
6139+MSGFILTER = msgfilter
6140+
6141+POFILES = @POFILES@
6142+GMOFILES = @GMOFILES@
6143+UPDATEPOFILES = @UPDATEPOFILES@
6144+DUMMYPOFILES = @DUMMYPOFILES@
6145+DISTFILES.common = Makefile.in.in remove-potcdate.sin \
6146+$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
6147+DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
6148+$(POFILES) $(GMOFILES) \
6149+$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
6150+
6151+POTFILES = \
6152+
6153+CATALOGS = @CATALOGS@
6154+
6155+# Makevars gets inserted here. (Don't remove this line!)
6156+
6157+.SUFFIXES:
6158+.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
6159+
6160+.po.mo:
6161+ @echo "$(MSGFMT) -c -o $@ $<"; \
6162+ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
6163+
6164+.po.gmo:
6165+ @lang=`echo $* | sed -e 's,.*/,,'`; \
6166+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
6167+ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
6168+ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
6169+
6170+.sin.sed:
6171+ sed -e '/^#/d' $< > t-$@
6172+ mv t-$@ $@
6173+
6174+
6175+all: check-macro-version all-@USE_NLS@
6176+
6177+all-yes: stamp-po
6178+all-no:
6179+
6180+# Ensure that the gettext macros and this Makefile.in.in are in sync.
6181+check-macro-version:
6182+ @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
6183+ || { 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; \
6184+ exit 1; \
6185+ }
6186+
6187+# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
6188+# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
6189+# we don't want to bother translators with empty POT files). We assume that
6190+# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
6191+# In this case, stamp-po is a nop (i.e. a phony target).
6192+
6193+# stamp-po is a timestamp denoting the last time at which the CATALOGS have
6194+# been loosely updated. Its purpose is that when a developer or translator
6195+# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
6196+# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
6197+# invocations of "make" will do nothing. This timestamp would not be necessary
6198+# if updating the $(CATALOGS) would always touch them; however, the rule for
6199+# $(POFILES) has been designed to not touch files that don't need to be
6200+# changed.
6201+stamp-po: $(srcdir)/$(DOMAIN).pot
6202+ test ! -f $(srcdir)/$(DOMAIN).pot || \
6203+ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
6204+ @test ! -f $(srcdir)/$(DOMAIN).pot || { \
6205+ echo "touch stamp-po" && \
6206+ echo timestamp > stamp-poT && \
6207+ mv stamp-poT stamp-po; \
6208+ }
6209+
6210+# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
6211+# otherwise packages like GCC can not be built if only parts of the source
6212+# have been downloaded.
6213+
6214+# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
6215+# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
6216+$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
6217+ if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
6218+ package_gnu='GNU '; \
6219+ else \
6220+ package_gnu=''; \
6221+ fi; \
6222+ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
6223+ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
6224+ else \
6225+ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
6226+ fi; \
6227+ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
6228+ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
6229+ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
6230+ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
6231+ --files-from=$(srcdir)/POTFILES.in \
6232+ --copyright-holder='$(COPYRIGHT_HOLDER)' \
6233+ --msgid-bugs-address="$$msgid_bugs_address" \
6234+ ;; \
6235+ *) \
6236+ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
6237+ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
6238+ --files-from=$(srcdir)/POTFILES.in \
6239+ --copyright-holder='$(COPYRIGHT_HOLDER)' \
6240+ --package-name="$${package_gnu}@PACKAGE@" \
6241+ --package-version='@VERSION@' \
6242+ --msgid-bugs-address="$$msgid_bugs_address" \
6243+ ;; \
6244+ esac
6245+ test ! -f $(DOMAIN).po || { \
6246+ if test -f $(srcdir)/$(DOMAIN).pot; then \
6247+ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
6248+ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
6249+ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
6250+ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
6251+ else \
6252+ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
6253+ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
6254+ fi; \
6255+ else \
6256+ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
6257+ fi; \
6258+ }
6259+
6260+# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
6261+# every "make" invocation, only create it when it is missing.
6262+# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
6263+$(srcdir)/$(DOMAIN).pot:
6264+ $(MAKE) $(DOMAIN).pot-update
6265+
6266+# This target rebuilds a PO file if $(DOMAIN).pot has changed.
6267+# Note that a PO file is not touched if it doesn't need to be changed.
6268+$(POFILES): $(srcdir)/$(DOMAIN).pot
6269+ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
6270+ if test -f "$(srcdir)/$${lang}.po"; then \
6271+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
6272+ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
6273+ cd $(srcdir) \
6274+ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
6275+ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
6276+ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
6277+ *) \
6278+ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
6279+ esac; \
6280+ }; \
6281+ else \
6282+ $(MAKE) $${lang}.po-create; \
6283+ fi
6284+
6285+
6286+install: install-exec install-data
6287+install-exec:
6288+install-data: install-data-@USE_NLS@
6289+ if test "$(PACKAGE)" = "gettext-tools"; then \
6290+ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
6291+ for file in $(DISTFILES.common) Makevars.template; do \
6292+ $(INSTALL_DATA) $(srcdir)/$$file \
6293+ $(DESTDIR)$(gettextsrcdir)/$$file; \
6294+ done; \
6295+ for file in Makevars; do \
6296+ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
6297+ done; \
6298+ else \
6299+ : ; \
6300+ fi
6301+install-data-no: all
6302+install-data-yes: all
6303+ @catalogs='$(CATALOGS)'; \
6304+ for cat in $$catalogs; do \
6305+ cat=`basename $$cat`; \
6306+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
6307+ dir=$(localedir)/$$lang/LC_MESSAGES; \
6308+ $(mkdir_p) $(DESTDIR)$$dir; \
6309+ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
6310+ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
6311+ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
6312+ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
6313+ if test -n "$$lc"; then \
6314+ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
6315+ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
6316+ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
6317+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
6318+ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
6319+ for file in *; do \
6320+ if test -f $$file; then \
6321+ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
6322+ fi; \
6323+ done); \
6324+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
6325+ else \
6326+ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
6327+ :; \
6328+ else \
6329+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
6330+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
6331+ fi; \
6332+ fi; \
6333+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
6334+ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
6335+ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
6336+ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
6337+ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
6338+ fi; \
6339+ done; \
6340+ done
6341+
6342+install-strip: install
6343+
6344+installdirs: installdirs-exec installdirs-data
6345+installdirs-exec:
6346+installdirs-data: installdirs-data-@USE_NLS@
6347+ if test "$(PACKAGE)" = "gettext-tools"; then \
6348+ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
6349+ else \
6350+ : ; \
6351+ fi
6352+installdirs-data-no:
6353+installdirs-data-yes:
6354+ @catalogs='$(CATALOGS)'; \
6355+ for cat in $$catalogs; do \
6356+ cat=`basename $$cat`; \
6357+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
6358+ dir=$(localedir)/$$lang/LC_MESSAGES; \
6359+ $(mkdir_p) $(DESTDIR)$$dir; \
6360+ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
6361+ if test -n "$$lc"; then \
6362+ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
6363+ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
6364+ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
6365+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
6366+ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
6367+ for file in *; do \
6368+ if test -f $$file; then \
6369+ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
6370+ fi; \
6371+ done); \
6372+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
6373+ else \
6374+ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
6375+ :; \
6376+ else \
6377+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
6378+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
6379+ fi; \
6380+ fi; \
6381+ fi; \
6382+ done; \
6383+ done
6384+
6385+# Define this as empty until I found a useful application.
6386+installcheck:
6387+
6388+uninstall: uninstall-exec uninstall-data
6389+uninstall-exec:
6390+uninstall-data: uninstall-data-@USE_NLS@
6391+ if test "$(PACKAGE)" = "gettext-tools"; then \
6392+ for file in $(DISTFILES.common) Makevars.template; do \
6393+ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
6394+ done; \
6395+ else \
6396+ : ; \
6397+ fi
6398+uninstall-data-no:
6399+uninstall-data-yes:
6400+ catalogs='$(CATALOGS)'; \
6401+ for cat in $$catalogs; do \
6402+ cat=`basename $$cat`; \
6403+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
6404+ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
6405+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
6406+ done; \
6407+ done
6408+
6409+check: all
6410+
6411+info dvi ps pdf html tags TAGS ctags CTAGS ID:
6412+
6413+mostlyclean:
6414+ rm -f remove-potcdate.sed
6415+ rm -f stamp-poT
6416+ rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
6417+ rm -fr *.o
6418+
6419+clean: mostlyclean
6420+
6421+distclean: clean
6422+ rm -f Makefile Makefile.in POTFILES *.mo
6423+
6424+maintainer-clean: distclean
6425+ @echo "This command is intended for maintainers to use;"
6426+ @echo "it deletes files that may require special tools to rebuild."
6427+ rm -f stamp-po $(GMOFILES)
6428+
6429+distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
6430+dist distdir:
6431+ $(MAKE) update-po
6432+ @$(MAKE) dist2
6433+# This is a separate target because 'update-po' must be executed before.
6434+dist2: stamp-po $(DISTFILES)
6435+ dists="$(DISTFILES)"; \
6436+ if test "$(PACKAGE)" = "gettext-tools"; then \
6437+ dists="$$dists Makevars.template"; \
6438+ fi; \
6439+ if test -f $(srcdir)/$(DOMAIN).pot; then \
6440+ dists="$$dists $(DOMAIN).pot stamp-po"; \
6441+ fi; \
6442+ if test -f $(srcdir)/ChangeLog; then \
6443+ dists="$$dists ChangeLog"; \
6444+ fi; \
6445+ for i in 0 1 2 3 4 5 6 7 8 9; do \
6446+ if test -f $(srcdir)/ChangeLog.$$i; then \
6447+ dists="$$dists ChangeLog.$$i"; \
6448+ fi; \
6449+ done; \
6450+ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
6451+ for file in $$dists; do \
6452+ if test -f $$file; then \
6453+ cp -p $$file $(distdir) || exit 1; \
6454+ else \
6455+ cp -p $(srcdir)/$$file $(distdir) || exit 1; \
6456+ fi; \
6457+ done
6458+
6459+update-po: Makefile
6460+ $(MAKE) $(DOMAIN).pot-update
6461+ test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
6462+ $(MAKE) update-gmo
6463+
6464+# General rule for creating PO files.
6465+
6466+.nop.po-create:
6467+ @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
6468+ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
6469+ exit 1
6470+
6471+# General rule for updating PO files.
6472+
6473+.nop.po-update:
6474+ @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
6475+ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
6476+ tmpdir=`pwd`; \
6477+ echo "$$lang:"; \
6478+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
6479+ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
6480+ cd $(srcdir); \
6481+ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
6482+ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
6483+ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
6484+ *) \
6485+ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
6486+ esac; \
6487+ }; then \
6488+ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
6489+ rm -f $$tmpdir/$$lang.new.po; \
6490+ else \
6491+ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
6492+ :; \
6493+ else \
6494+ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
6495+ exit 1; \
6496+ fi; \
6497+ fi; \
6498+ else \
6499+ echo "msgmerge for $$lang.po failed!" 1>&2; \
6500+ rm -f $$tmpdir/$$lang.new.po; \
6501+ fi
6502+
6503+$(DUMMYPOFILES):
6504+
6505+update-gmo: Makefile $(GMOFILES)
6506+ @:
6507+
6508+# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
6509+# because execution permission bits may not work on the current file system.
6510+# Use @SHELL@, which is the shell determined by autoconf for the use by its
6511+# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
6512+Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
6513+ cd $(top_builddir) \
6514+ && @SHELL@ ./config.status $(subdir)/$@.in po-directories
6515+
6516+force:
6517+
6518+# Tell versions [3.59,3.63) of GNU make not to export all variables.
6519+# Otherwise a system limit (for SysV at least) may be exceeded.
6520+.NOEXPORT:
6521diff --git a/po/Makevars.template b/po/Makevars.template
6522new file mode 100644
6523index 0000000..32692ab
6524--- /dev/null
6525+++ b/po/Makevars.template
6526@@ -0,0 +1,41 @@
6527+# Makefile variables for PO directory in any package using GNU gettext.
6528+
6529+# Usually the message domain is the same as the package name.
6530+DOMAIN = $(PACKAGE)
6531+
6532+# These two variables depend on the location of this directory.
6533+subdir = po
6534+top_builddir = ..
6535+
6536+# These options get passed to xgettext.
6537+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
6538+
6539+# This is the copyright holder that gets inserted into the header of the
6540+# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
6541+# package. (Note that the msgstr strings, extracted from the package's
6542+# sources, belong to the copyright holder of the package.) Translators are
6543+# expected to transfer the copyright for their translations to this person
6544+# or entity, or to disclaim their copyright. The empty string stands for
6545+# the public domain; in this case the translators are expected to disclaim
6546+# their copyright.
6547+COPYRIGHT_HOLDER = Free Software Foundation, Inc.
6548+
6549+# This is the email address or URL to which the translators shall report
6550+# bugs in the untranslated strings:
6551+# - Strings which are not entire sentences, see the maintainer guidelines
6552+# in the GNU gettext documentation, section 'Preparing Strings'.
6553+# - Strings which use unclear terms or require additional context to be
6554+# understood.
6555+# - Strings which make invalid assumptions about notation of date, time or
6556+# money.
6557+# - Pluralisation problems.
6558+# - Incorrect English spelling.
6559+# - Incorrect formatting.
6560+# It can be your email address, or a mailing list address where translators
6561+# can write to without being subscribed, or the URL of a web page through
6562+# which the translators can contact you.
6563+MSGID_BUGS_ADDRESS =
6564+
6565+# This is the list of locale categories, beyond LC_MESSAGES, for which the
6566+# message catalogs shall be used. It is usually empty.
6567+EXTRA_LOCALE_CATEGORIES =
6568diff --git a/po/Rules-quot b/po/Rules-quot
6569new file mode 100644
6570index 0000000..af52487
6571--- /dev/null
6572+++ b/po/Rules-quot
6573@@ -0,0 +1,47 @@
6574+# Special Makefile rules for English message catalogs with quotation marks.
6575+
6576+DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
6577+
6578+.SUFFIXES: .insert-header .po-update-en
6579+
6580+en@quot.po-create:
6581+ $(MAKE) en@quot.po-update
6582+en@boldquot.po-create:
6583+ $(MAKE) en@boldquot.po-update
6584+
6585+en@quot.po-update: en@quot.po-update-en
6586+en@boldquot.po-update: en@boldquot.po-update-en
6587+
6588+.insert-header.po-update-en:
6589+ @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
6590+ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
6591+ tmpdir=`pwd`; \
6592+ echo "$$lang:"; \
6593+ ll=`echo $$lang | sed -e 's/@.*//'`; \
6594+ LC_ALL=C; export LC_ALL; \
6595+ cd $(srcdir); \
6596+ 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 \
6597+ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
6598+ rm -f $$tmpdir/$$lang.new.po; \
6599+ else \
6600+ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
6601+ :; \
6602+ else \
6603+ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
6604+ exit 1; \
6605+ fi; \
6606+ fi; \
6607+ else \
6608+ echo "creation of $$lang.po failed!" 1>&2; \
6609+ rm -f $$tmpdir/$$lang.new.po; \
6610+ fi
6611+
6612+en@quot.insert-header: insert-header.sin
6613+ sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
6614+
6615+en@boldquot.insert-header: insert-header.sin
6616+ sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
6617+
6618+mostlyclean: mostlyclean-quot
6619+mostlyclean-quot:
6620+ rm -f *.insert-header
6621diff --git a/po/boldquot.sed b/po/boldquot.sed
6622new file mode 100644
6623index 0000000..4b937aa
6624--- /dev/null
6625+++ b/po/boldquot.sed
6626@@ -0,0 +1,10 @@
6627+s/"\([^"]*\)"/“\1”/g
6628+s/`\([^`']*\)'/‘\1’/g
6629+s/ '\([^`']*\)' / ‘\1’ /g
6630+s/ '\([^`']*\)'$/ ‘\1’/g
6631+s/^'\([^`']*\)' /‘\1’ /g
6632+s/“”/""/g
6633+s/“/“/g
6634+s/”/”/g
6635+s/‘/‘/g
6636+s/’/’/g
6637diff --git a/po/en@boldquot.header b/po/en@boldquot.header
6638new file mode 100644
6639index 0000000..fedb6a0
6640--- /dev/null
6641+++ b/po/en@boldquot.header
6642@@ -0,0 +1,25 @@
6643+# All this catalog "translates" are quotation characters.
6644+# The msgids must be ASCII and therefore cannot contain real quotation
6645+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
6646+# and double quote (0x22). These substitutes look strange; see
6647+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
6648+#
6649+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
6650+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
6651+# It also translates pairs of apostrophe (0x27) to
6652+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
6653+# and pairs of quotation mark (0x22) to
6654+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
6655+#
6656+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
6657+# When output to an ISO-8859-1 terminal, the single quotation marks are
6658+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
6659+# grave/acute accent (by libiconv), and the double quotation marks are
6660+# transliterated to 0x22.
6661+# When output to an ASCII terminal, the single quotation marks are
6662+# transliterated to apostrophes, and the double quotation marks are
6663+# transliterated to 0x22.
6664+#
6665+# This catalog furthermore displays the text between the quotation marks in
6666+# bold face, assuming the VT100/XTerm escape sequences.
6667+#
6668diff --git a/po/en@quot.header b/po/en@quot.header
6669new file mode 100644
6670index 0000000..a9647fc
6671--- /dev/null
6672+++ b/po/en@quot.header
6673@@ -0,0 +1,22 @@
6674+# All this catalog "translates" are quotation characters.
6675+# The msgids must be ASCII and therefore cannot contain real quotation
6676+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
6677+# and double quote (0x22). These substitutes look strange; see
6678+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
6679+#
6680+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
6681+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
6682+# It also translates pairs of apostrophe (0x27) to
6683+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
6684+# and pairs of quotation mark (0x22) to
6685+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
6686+#
6687+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
6688+# When output to an ISO-8859-1 terminal, the single quotation marks are
6689+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
6690+# grave/acute accent (by libiconv), and the double quotation marks are
6691+# transliterated to 0x22.
6692+# When output to an ASCII terminal, the single quotation marks are
6693+# transliterated to apostrophes, and the double quotation marks are
6694+# transliterated to 0x22.
6695+#
6696diff --git a/po/insert-header.sin b/po/insert-header.sin
6697new file mode 100644
6698index 0000000..b26de01
6699--- /dev/null
6700+++ b/po/insert-header.sin
6701@@ -0,0 +1,23 @@
6702+# Sed script that inserts the file called HEADER before the header entry.
6703+#
6704+# At each occurrence of a line starting with "msgid ", we execute the following
6705+# commands. At the first occurrence, insert the file. At the following
6706+# occurrences, do nothing. The distinction between the first and the following
6707+# occurrences is achieved by looking at the hold space.
6708+/^msgid /{
6709+x
6710+# Test if the hold space is empty.
6711+s/m/m/
6712+ta
6713+# Yes it was empty. First occurrence. Read the file.
6714+r HEADER
6715+# Output the file's contents by reading the next line. But don't lose the
6716+# current line while doing this.
6717+g
6718+N
6719+bb
6720+:a
6721+# The hold space was nonempty. Following occurrences. Do nothing.
6722+x
6723+:b
6724+}
6725diff --git a/po/quot.sed b/po/quot.sed
6726new file mode 100644
6727index 0000000..0122c46
6728--- /dev/null
6729+++ b/po/quot.sed
6730@@ -0,0 +1,6 @@
6731+s/"\([^"]*\)"/“\1”/g
6732+s/`\([^`']*\)'/‘\1’/g
6733+s/ '\([^`']*\)' / ‘\1’ /g
6734+s/ '\([^`']*\)'$/ ‘\1’/g
6735+s/^'\([^`']*\)' /‘\1’ /g
6736+s/“”/""/g
6737diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin
6738new file mode 100644
6739index 0000000..2436c49
6740--- /dev/null
6741+++ b/po/remove-potcdate.sin
6742@@ -0,0 +1,19 @@
6743+# Sed script that remove the POT-Creation-Date line in the header entry
6744+# from a POT file.
6745+#
6746+# The distinction between the first and the following occurrences of the
6747+# pattern is achieved by looking at the hold space.
6748+/^"POT-Creation-Date: .*"$/{
6749+x
6750+# Test if the hold space is empty.
6751+s/P/P/
6752+ta
6753+# Yes it was empty. First occurrence. Remove the line.
6754+g
6755+d
6756+bb
6757+:a
6758+# The hold space was nonempty. Following occurrences. Do nothing.
6759+x
6760+:b
6761+}
6762--
67631.9.1
6764