| | | | |
| Offset 0, 0 lines modified | Offset 1, 405 lines modified |
| | 1 | #·gettext.m4·serial·78·(gettext-0.22.4) |
| | 2 | dnl·Copyright·(C)·1995-2014,·2016,·2018-2023·Free·Software·Foundation,·Inc. |
| | 3 | dnl·This·file·is·free·software;·the·Free·Software·Foundation |
| | 4 | dnl·gives·unlimited·permission·to·copy·and/or·distribute·it, |
| | 5 | dnl·with·or·without·modifications,·as·long·as·this·notice·is·preserved. |
| | 6 | dnl |
| | 7 | dnl·This·file·can·be·used·in·projects·which·are·not·available·under |
| | 8 | dnl·the·GNU·General·Public·License·or·the·GNU·Lesser·General·Public |
| | 9 | dnl·License·but·which·still·want·to·provide·support·for·the·GNU·gettext |
| | 10 | dnl·functionality. |
| | 11 | dnl·Please·note·that·the·actual·code·of·the·GNU·gettext·library·is·covered |
| | 12 | dnl·by·the·GNU·Lesser·General·Public·License,·and·the·rest·of·the·GNU |
| | 13 | dnl·gettext·package·is·covered·by·the·GNU·General·Public·License. |
| | 14 | dnl·They·are·*not*·in·the·public·domain. |
| | |
| | 15 | dnl·Authors: |
| | 16 | dnl···Ulrich·Drepper·<drepper@cygnus.com>,·1995-2000. |
| | 17 | dnl···Bruno·Haible·<haible@clisp.cons.org>,·2000-2006,·2008-2010. |
| | |
| | 18 | dnl·Macro·to·add·for·using·GNU·gettext. |
| | |
| | 19 | dnl·Usage:·AM_GNU_GETTEXT([INTLSYMBOL],·[NEEDSYMBOL],·[INTLDIR]). |
| | 20 | dnl·INTLSYMBOL·must·be·one·of·'external',·'use-libtool',·'here'. |
| | 21 | dnl····INTLSYMBOL·should·be·'external'·for·packages·other·than·GNU·gettext. |
| | 22 | dnl····It·should·be·'use-libtool'·for·the·packages·'gettext-runtime'·and |
| | 23 | dnl····'gettext-tools'. |
| | 24 | dnl····It·should·be·'here'·for·the·package·'gettext-runtime/intl'. |
| | 25 | dnl····If·INTLSYMBOL·is·'here',·then·a·libtool·library |
| | 26 | dnl····$(top_builddir)/libintl.la·will·be·created·(shared·and/or·static, |
| | 27 | dnl····depending·on·--{enable,disable}-{shared,static}·and·on·the·presence·of |
| | 28 | dnl····AM-DISABLE-SHARED). |
| | 29 | dnl·If·NEEDSYMBOL·is·specified·and·is·'need-ngettext',·then·GNU·gettext |
| | 30 | dnl····implementations·(in·libc·or·libintl)·without·the·ngettext()·function |
| | 31 | dnl····will·be·ignored.··If·NEEDSYMBOL·is·specified·and·is |
| | 32 | dnl····'need-formatstring-macros',·then·GNU·gettext·implementations·that·don't |
| | 33 | dnl····support·the·ISO·C·99·<inttypes.h>·formatstring·macros·will·be·ignored. |
| | 34 | dnl·INTLDIR·is·used·to·find·the·intl·libraries.··If·empty, |
| | 35 | dnl····the·value·'$(top_builddir)/intl/'·is·used. |
| | 36 | dnl |
| | 37 | dnl·The·result·of·the·configuration·is·one·of·three·cases: |
| | 38 | dnl·1)·GNU·gettext,·as·included·in·the·intl·subdirectory,·will·be·compiled |
| | 39 | dnl····and·used. |
| | 40 | dnl····Catalog·format:·GNU·-->·install·in·$(datadir) |
| | 41 | dnl····Catalog·extension:·.mo·after·installation,·.gmo·in·source·tree |
| | 42 | dnl·2)·GNU·gettext·has·been·found·in·the·system's·C·library. |
| | 43 | dnl····Catalog·format:·GNU·-->·install·in·$(datadir) |
| | 44 | dnl····Catalog·extension:·.mo·after·installation,·.gmo·in·source·tree |
| | 45 | dnl·3)·No·internationalization,·always·use·English·msgid. |
| | 46 | dnl····Catalog·format:·none |
| | 47 | dnl····Catalog·extension:·none |
| | 48 | dnl·If·INTLSYMBOL·is·'external',·only·cases·2·and·3·can·occur. |
| | 49 | dnl·The·use·of·.gmo·is·historical·(it·was·needed·to·avoid·overwriting·the |
| | 50 | dnl·GNU·format·catalogs·when·building·on·a·platform·with·an·X/Open·gettext), |
| | 51 | dnl·but·we·keep·it·in·order·not·to·force·irrelevant·filename·changes·on·the |
| | 52 | dnl·maintainers. |
| | 53 | dnl |
| | 54 | AC_DEFUN([AM_GNU_GETTEXT], |
| | 55 | [ |
| | 56 | ··dnl·Argument·checking. |
| | 57 | ··m4_if([$1],·[],·,·[m4_if([$1],·[external],·,·[m4_if([$1],·[use-libtool],·,·[m4_if([$1],·[here],·, |
| | 58 | ····[errprint([ERROR:·invalid·first·argument·to·AM_GNU_GETTEXT |
| | 59 | ])])])])]) |
| | 60 | ··m4_if(m4_if([$1],·[],·[old])[]m4_if([$1],·[no-libtool],·[old]),·[old], |
| | 61 | ····[errprint([ERROR:·Use·of·AM_GNU_GETTEXT·without·[external]·argument·is·no·longer·supported. |
| | 62 | ])]) |
| | 63 | ··m4_if([$2],·[],·,·[m4_if([$2],·[need-ngettext],·,·[m4_if([$2],·[need-formatstring-macros],·, |
| | 64 | ····[errprint([ERROR:·invalid·second·argument·to·AM_GNU_GETTEXT |
| | 65 | ])])])]) |
| | 66 | ··define([gt_building_libintl_in_same_build_tree], |
| | 67 | ····m4_if([$1],·[use-libtool],·[yes],·[m4_if([$1],·[here],·[yes],·[no])])) |
| | 68 | ··gt_NEEDS_INIT |
| | 69 | ··AM_GNU_GETTEXT_NEED([$2]) |
| | |
| | 70 | ··AC_REQUIRE([AM_PO_SUBDIRS])dnl |
| | |
| | 71 | ··dnl·Prerequisites·of·AC_LIB_LINKFLAGS_BODY. |
| | 72 | ··AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
| | 73 | ··AC_REQUIRE([AC_LIB_RPATH]) |
| | |
| | 74 | ··dnl·Sometimes·libintl·requires·libiconv,·so·first·search·for·libiconv. |
| | 75 | ··dnl·Ideally·we·would·do·this·search·only·after·the |
| | 76 | ··dnl······if·test·"$USE_NLS"·=·"yes";·then |
| | 77 | ··dnl········if·{·eval·"gt_val=\$$gt_func_gnugettext_libc";·test·"$gt_val"·!=·"yes";·};·then |
| | 78 | ··dnl·tests.·But·if·configure.ac·invokes·AM_ICONV·after·AM_GNU_GETTEXT |
| | 79 | ··dnl·the·configure·script·would·need·to·contain·the·same·shell·code |
| | 80 | ··dnl·again,·outside·any·'if'.·There·are·two·solutions: |
| | 81 | ··dnl·-·Invoke·AM_ICONV_LINKFLAGS_BODY·here,·outside·any·'if'. |
| | 82 | ··dnl·-·Control·the·expansions·in·more·detail·using·AC_PROVIDE_IFELSE. |
| | 83 | ··dnl·Since·AC_PROVIDE_IFELSE·is·not·documented,·we·avoid·it. |
| | 84 | ··m4_if(gt_building_libintl_in_same_build_tree,·yes,·,·[ |
| | 85 | ····AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
| | 86 | ··]) |
| | |
| | 87 | ··dnl·Sometimes,·on·Mac·OS·X,·libintl·requires·linking·with·CoreFoundation. |
| | 88 | ··gt_INTL_MACOSX |
| | |
| | 89 | ··dnl·Set·USE_NLS. |
| | 90 | ··AC_REQUIRE([AM_NLS]) |
| | |
| | 91 | ··m4_if(gt_building_libintl_in_same_build_tree,·yes,·[ |
| | 92 | ····USE_INCLUDED_LIBINTL=no |
| | 93 | ··]) |
| | 94 | ··LIBINTL= |
| | 95 | ··LTLIBINTL= |
| | 96 | ··POSUB= |
| | |
| | 97 | ··dnl·Add·a·version·number·to·the·cache·macros. |
| | 98 | ··case·"·$gt_needs·"·in |
| | 99 | ····*"·need-formatstring-macros·"*)·gt_api_version=3·;; |
| | 100 | ····*"·need-ngettext·"*)·gt_api_version=2·;; |
| | 101 | ····*)·gt_api_version=1·;; |
| | 102 | ··esac |
| | 103 | ··gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| | 104 | ··gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| | |
| | 105 | ··dnl·If·we·use·NLS·figure·out·what·method |
| | 106 | ··if·test·"$USE_NLS"·=·"yes";·then |
| | 107 | ····gt_use_preinstalled_gnugettext=no |
| | 108 | ····m4_if(gt_building_libintl_in_same_build_tree,·yes,·[ |
| | 109 | ······AC_MSG_CHECKING([whether·included·gettext·is·requested]) |
| | 110 | ······AC_ARG_WITH([included-gettext], |
| | 111 | ········[··--with-included-gettext·use·the·GNU·gettext·library·included·here], |
| | 112 | ········nls_cv_force_use_gnu_gettext=$withval, |
| | 113 | ········nls_cv_force_use_gnu_gettext=no) |
| | 114 | ······AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) |
| | |
| | 115 | ······nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| | 116 | ······if·test·"$nls_cv_force_use_gnu_gettext"·!=·"yes";·then |
| | 117 | ····]) |
| | 118 | ········dnl·User·does·not·insist·on·using·GNU·NLS·library.··Figure·out·what |
| | 119 | ········dnl·to·use.··If·GNU·gettext·is·available·we·use·this.··Else·we·have |
| | 120 | ········dnl·to·fall·back·to·GNU·NLS·library. |
| | |
| | 121 | ········if·test·$gt_api_version·-ge·3;·then |
| | 122 | ··········gt_revision_test_code=' |
| | 123 | #ifndef·__GNU_GETTEXT_SUPPORTED_REVISION |
| | 124 | #define·__GNU_GETTEXT_SUPPORTED_REVISION(major)·((major)·==·0·?·0·:·-1) |
| | 125 | #endif |
| | 126 | changequote(,)dnl |
| | 127 | typedef·int·array·[2·*·(__GNU_GETTEXT_SUPPORTED_REVISION(0)·>=·1)·-·1]; |
| | 128 | changequote([,])dnl |
| | 129 | ' |
| | 130 | ········else |
| | 131 | ··········gt_revision_test_code= |
| | 132 | ········fi |
| | 133 | ········if·test·$gt_api_version·-ge·2;·then |
| | 134 | ··········gt_expression_test_code='·+·*·ngettext·("",·"",·0)' |
| | 135 | ········else |
| | 136 | ··········gt_expression_test_code= |
| | 137 | ········fi |
| | |
| | 138 | ········AC_CACHE_CHECK([for·GNU·gettext·in·libc],·[$gt_func_gnugettext_libc], |
| | 139 | ·········[AC_LINK_IFELSE( |
| | 140 | ············[AC_LANG_PROGRAM( |
| | 141 | ···············[[ |
| | 142 | #include·<libintl.h> |
| | 143 | #ifndef·__GNU_GETTEXT_SUPPORTED_REVISION |
| | 144 | extern·int·_nl_msg_cat_cntr; |
| | 145 | extern·int·*_nl_domain_bindings; |
| | 146 | #define·__GNU_GETTEXT_SYMBOL_EXPRESSION·(_nl_msg_cat_cntr·+·*_nl_domain_bindings) |
| | 147 | #else |
| | 148 | #define·__GNU_GETTEXT_SYMBOL_EXPRESSION·0 |
| | 149 | #endif |
| | 150 | $gt_revision_test_code |
| | 151 | ···············]], |
| | 152 | ···············[[ |
| | 153 | bindtextdomain·("",·""); |
| | 154 | return·*·gettext·("")$gt_expression_test_code·+·__GNU_GETTEXT_SYMBOL_EXPRESSION |
| | 155 | ···············]])], |
| | 156 | ············[eval·"$gt_func_gnugettext_libc=yes"], |
| | 157 | ············[eval·"$gt_func_gnugettext_libc=no"])]) |
| | |
| | 158 | ········if·{·eval·"gt_val=\$$gt_func_gnugettext_libc";·test·"$gt_val"·!=·"yes";·};·then |
| | 159 | ··········dnl·Sometimes·libintl·requires·libiconv,·so·first·search·for·libiconv. |
| | 160 | ··········m4_if(gt_building_libintl_in_same_build_tree,·yes,·,·[ |
| | 161 | ············AM_ICONV_LINK |
| | 162 | ··········]) |
| | 163 | ··········dnl·Search·for·libintl·and·define·LIBINTL,·LTLIBINTL·and·INCINTL |
| | 164 | ··········dnl·accordingly.·Don't·use·AC_LIB_LINKFLAGS_BODY([intl],[iconv]) |
| | 165 | ··········dnl·because·that·would·add·"-liconv"·to·LIBINTL·and·LTLIBINTL |
| | 166 | ··········dnl·even·if·libiconv·doesn't·exist. |
| | 167 | ··········AC_LIB_LINKFLAGS_BODY([intl]) |
| | 168 | ··········AC_CACHE_CHECK([for·GNU·gettext·in·libintl], |
| | 169 | ············[$gt_func_gnugettext_libintl], |
| | 170 | ···········[gt_save_CPPFLAGS="$CPPFLAGS" |
| | 171 | ············CPPFLAGS="$CPPFLAGS·$INCINTL" |
| | 172 | ············gt_save_LIBS="$LIBS" |
| | 173 | ············LIBS="$LIBS·$LIBINTL" |
| | 174 | ············dnl·Now·see·whether·libintl·exists·and·does·not·depend·on·libiconv. |
| | 175 | ············AC_LINK_IFELSE( |
| | 176 | ··············[AC_LANG_PROGRAM( |
| | 177 | ·················[[ |
| | 178 | #include·<libintl.h> |
| | 179 | #ifndef·__GNU_GETTEXT_SUPPORTED_REVISION |
| | 180 | extern·int·_nl_msg_cat_cntr; |
| | 181 | extern |
| | 182 | #ifdef·__cplusplus |
| | 183 | "C" |
| | 184 | #endif |
| | 185 | const·char·*_nl_expand_alias·(const·char·*); |
| | 186 | #define·__GNU_GETTEXT_SYMBOL_EXPRESSION·(_nl_msg_cat_cntr·+·*_nl_expand_alias·("")) |
| | 187 | #else |
| | 188 | #define·__GNU_GETTEXT_SYMBOL_EXPRESSION·0 |
| | 189 | #endif |
| | 190 | $gt_revision_test_code |
| | 191 | ·················]], |
| | 192 | ·················[[ |
| | 193 | bindtextdomain·("",·""); |
| | 194 | return·*·gettext·("")$gt_expression_test_code·+·__GNU_GETTEXT_SYMBOL_EXPRESSION |
| | 195 | ·················]])], |
| | 196 | ··············[eval·"$gt_func_gnugettext_libintl=yes"], |
| | 197 | ··············[eval·"$gt_func_gnugettext_libintl=no"]) |
| | 198 | ············dnl·Now·see·whether·libintl·exists·and·depends·on·libiconv·or·other |
| | 199 | ············dnl·OS·dependent·libraries,·specifically·on·macOS·and·AIX. |
| | 200 | ············gt_LIBINTL_EXTRA="$INTL_MACOSX_LIBS" |
| | 201 | ············AC_REQUIRE([AC_CANONICAL_HOST]) |
| | 202 | ············case·"$host_os"·in |
| | 203 | ··············aix*)·gt_LIBINTL_EXTRA="-lpthread"·;; |
| | 204 | ············esac |
| | 205 | ············if·{·eval·"gt_val=\$$gt_func_gnugettext_libintl";·test·"$gt_val"·!=·yes;·}·\ |
| | 206 | ···············&&·{·test·-n·"$LIBICONV"·||·test·-n·"$gt_LIBINTL_EXTRA";·};·then |
| | 207 | ··············LIBS="$LIBS·$LIBICONV·$gt_LIBINTL_EXTRA" |
| | 208 | ··············AC_LINK_IFELSE( |
| | 209 | ················[AC_LANG_PROGRAM( |
| | 210 | ···················[[ |
| | 211 | #include·<libintl.h> |
| | 212 | #ifndef·__GNU_GETTEXT_SUPPORTED_REVISION |
| | 213 | extern·int·_nl_msg_cat_cntr; |
| | 214 | extern |
| | 215 | #ifdef·__cplusplus |
| | 216 | "C" |
| | 217 | #endif |
| | 218 | const·char·*_nl_expand_alias·(const·char·*); |
| | 219 | #define·__GNU_GETTEXT_SYMBOL_EXPRESSION·(_nl_msg_cat_cntr·+·*_nl_expand_alias·("")) |
| | 220 | #else |
| | 221 | #define·__GNU_GETTEXT_SYMBOL_EXPRESSION·0 |
| | 222 | #endif |
| | 223 | $gt_revision_test_code |
| | 224 | ···················]], |
| | 225 | ···················[[ |
| | 226 | bindtextdomain·("",·""); |
| | 227 | return·*·gettext·("")$gt_expression_test_code·+·__GNU_GETTEXT_SYMBOL_EXPRESSION |
| | 228 | ···················]])], |
| | 229 | ················[LIBINTL="$LIBINTL·$LIBICONV·$gt_LIBINTL_EXTRA" |
| | 230 | ·················LTLIBINTL="$LTLIBINTL·$LTLIBICONV·$gt_LIBINTL_EXTRA" |
| | 231 | ·················eval·"$gt_func_gnugettext_libintl=yes" |
| | 232 | ················]) |
| | 233 | ············fi |
| | 234 | ············CPPFLAGS="$gt_save_CPPFLAGS" |
| | 235 | ············LIBS="$gt_save_LIBS"]) |
| | 236 | ········fi |
| | |
| | 237 | ········dnl·If·an·already·present·or·preinstalled·GNU·gettext()·is·found, |
| | 238 | ········dnl·use·it.··But·if·this·macro·is·used·in·GNU·gettext,·and·GNU |
| | 239 | ········dnl·gettext·is·already·preinstalled·in·libintl,·we·update·this |
| | 240 | ········dnl·libintl.··(Cf.·the·install·rule·in·intl/Makefile.in.) |
| | 241 | ········if·{·eval·"gt_val=\$$gt_func_gnugettext_libc";·test·"$gt_val"·=·"yes";·}·\ |
| | 242 | ···········||·{·{·eval·"gt_val=\$$gt_func_gnugettext_libintl";·test·"$gt_val"·=·"yes";·}·\ |
| | 243 | ················&&·test·"$PACKAGE"·!=·gettext-runtime·\ |
| | 244 | ················&&·test·"$PACKAGE"·!=·gettext-tools·\ |
| | 245 | ················&&·test·"$PACKAGE"·!=·libintl;·};·then |
| | 246 | ··········gt_use_preinstalled_gnugettext=yes |
| | 247 | ········else |
| | 248 | ··········dnl·Reset·the·values·set·by·searching·for·libintl. |
| | 249 | ··········LIBINTL= |
| | 250 | ··········LTLIBINTL= |
| | 251 | ··········INCINTL= |
| | 252 | ········fi |
| | |
| | 253 | ····m4_if(gt_building_libintl_in_same_build_tree,·yes,·[ |
| | 254 | ········if·test·"$gt_use_preinstalled_gnugettext"·!=·"yes";·then |
| | 255 | ··········dnl·GNU·gettext·is·not·found·in·the·C·library. |
| | 256 | ··········dnl·Fall·back·on·included·GNU·gettext·library. |
| | 257 | ··········nls_cv_use_gnu_gettext=yes |
| | 258 | ········fi |
| | 259 | ······fi |
| | |
| | 260 | ······if·test·"$nls_cv_use_gnu_gettext"·=·"yes";·then |
| | 261 | ········dnl·Mark·actions·used·to·generate·GNU·NLS·library. |
| | 262 | ········USE_INCLUDED_LIBINTL=yes |
| | 263 | ········LIBINTL="m4_if([$3],[],\${top_builddir}/intl,[$3])/libintl.la·$LIBICONV·$LIBTHREAD" |
| | 264 | ········LTLIBINTL="m4_if([$3],[],\${top_builddir}/intl,[$3])/libintl.la·$LTLIBICONV·$LTLIBTHREAD" |
| | 265 | ········LIBS=`echo·"·$LIBS·"·|·sed·-e·'s/·-lintl·/·/'·-e·'s/^·//'·-e·'s/·$//'` |
| | 266 | ······fi |
| | |
| | 267 | ······CATOBJEXT= |
| | 268 | ······if·test·"$gt_use_preinstalled_gnugettext"·=·"yes"·\ |
| | 269 | ·········||·test·"$nls_cv_use_gnu_gettext"·=·"yes";·then |
| | 270 | ········dnl·Mark·actions·to·use·GNU·gettext·tools. |
| | 271 | ········CATOBJEXT=.gmo |
| | 272 | ······fi |
| | 273 | ····]) |
| | |
| | 274 | ····if·test·-n·"$INTL_MACOSX_LIBS";·then |
| | 275 | ······if·test·"$gt_use_preinstalled_gnugettext"·=·"yes"·\ |
| | 276 | ·········||·test·"$nls_cv_use_gnu_gettext"·=·"yes";·then |
| | 277 | ········dnl·Some·extra·flags·are·needed·during·linking. |
| | 278 | ········LIBINTL="$LIBINTL·$INTL_MACOSX_LIBS" |
| | 279 | ········LTLIBINTL="$LTLIBINTL·$INTL_MACOSX_LIBS" |
| | 280 | ······fi |
| | 281 | ····fi |
| | |
| | 282 | ····if·test·"$gt_use_preinstalled_gnugettext"·=·"yes"·\ |
| | 283 | ·······||·test·"$nls_cv_use_gnu_gettext"·=·"yes";·then |
| | 284 | ······AC_DEFINE([ENABLE_NLS],·[1], |
| | 285 | ········[Define·to·1·if·translation·of·program·messages·to·the·user's·native·language |
| | 286 | ···is·requested.]) |
| | 287 | ····else |
| | 288 | ······USE_NLS=no |
| | 289 | ····fi |
| | 290 | ··fi |
| | |
| | 291 | ··AC_MSG_CHECKING([whether·to·use·NLS]) |
| | 292 | ··AC_MSG_RESULT([$USE_NLS]) |
| | 293 | ··if·test·"$USE_NLS"·=·"yes";·then |
| | 294 | ····AC_MSG_CHECKING([where·the·gettext·function·comes·from]) |
| | 295 | ····if·test·"$gt_use_preinstalled_gnugettext"·=·"yes";·then |
| | 296 | ······if·{·eval·"gt_val=\$$gt_func_gnugettext_libintl";·test·"$gt_val"·=·"yes";·};·then |
| | 297 | ········gt_source="external·libintl" |
| | 298 | ······else |
| | 299 | ········gt_source="libc" |
| | 300 | ······fi |
| | 301 | ····else |
| | 302 | ······gt_source="included·intl·directory" |
| | 303 | ····fi |
| | 304 | ····AC_MSG_RESULT([$gt_source]) |
| | 305 | ··fi |
| | |
| | 306 | ··if·test·"$USE_NLS"·=·"yes";·then |
| | |
| | 307 | ····if·test·"$gt_use_preinstalled_gnugettext"·=·"yes";·then |
| | 308 | ······if·{·eval·"gt_val=\$$gt_func_gnugettext_libintl";·test·"$gt_val"·=·"yes";·};·then |
| | 309 | ········AC_MSG_CHECKING([how·to·link·with·libintl]) |
| | 310 | ········AC_MSG_RESULT([$LIBINTL]) |
| | 311 | ········AC_LIB_APPENDTOVAR([CPPFLAGS],·[$INCINTL]) |
| | 312 | ······fi |
| | |
| | 313 | ······dnl·For·backward·compatibility.·Some·packages·may·be·using·this. |
| | 314 | ······AC_DEFINE([HAVE_GETTEXT],·[1], |
| | 315 | ·······[Define·if·the·GNU·gettext()·function·is·already·present·or·preinstalled.]) |
| | 316 | ······AC_DEFINE([HAVE_DCGETTEXT],·[1], |
| | 317 | ·······[Define·if·the·GNU·dcgettext()·function·is·already·present·or·preinstalled.]) |
| | 318 | ····fi |
| | |
| | 319 | ····dnl·We·need·to·process·the·po/·directory. |
| | 320 | ····POSUB=po |
| | 321 | ··fi |
| | |
| | 322 | ··m4_if(gt_building_libintl_in_same_build_tree,·yes,·[ |
| | 323 | ····dnl·Make·all·variables·we·use·known·to·autoconf. |
| | 324 | ····AC_SUBST([USE_INCLUDED_LIBINTL]) |
| | 325 | ····AC_SUBST([CATOBJEXT]) |
| | 326 | ··]) |
| | |
| | 327 | ··m4_if(gt_building_libintl_in_same_build_tree,·yes,·[],·[ |
| | 328 | ····dnl·For·backward·compatibility.·Some·Makefiles·may·be·using·this. |
| | 329 | ····INTLLIBS="$LIBINTL" |
| | 330 | ····AC_SUBST([INTLLIBS]) |
| | 331 | ··]) |
| | |
| | 332 | ··dnl·Make·all·documented·variables·known·to·autoconf. |
| | 333 | ··AC_SUBST([LIBINTL]) |
| | 334 | ··AC_SUBST([LTLIBINTL]) |
| | 335 | ··AC_SUBST([POSUB]) |
| | |
| | 336 | ··dnl·Define·localedir_c·and·localedir_c_make. |
| | 337 | ··dnl·Find·the·final·value·of·localedir. |
| | 338 | ··gt_save_prefix="${prefix}" |
| | 339 | ··gt_save_datarootdir="${datarootdir}" |
| | 340 | ··gt_save_localedir="${localedir}" |
| | 341 | ··dnl·Unfortunately,·prefix·gets·only·finally·determined·at·the·end·of |
| | 342 | ··dnl·configure. |
| | 343 | ··if·test·"X$prefix"·=·"XNONE";·then |
| | 344 | ····prefix="$ac_default_prefix" |
| | 345 | ··fi |
| | 346 | ··eval·datarootdir="$datarootdir" |
| | 347 | ··eval·localedir="$localedir" |
| | 348 | ··gl_BUILD_TO_HOST([localedir]) |
| | 349 | ··localedir="${gt_save_localedir}" |
| | 350 | ··datarootdir="${gt_save_datarootdir}" |
| | 351 | ··prefix="${gt_save_prefix}" |
| | 352 | ]) |
| | |
| | |
| | 353 | dnl·gt_NEEDS_INIT·ensures·that·the·gt_needs·variable·is·initialized. |
| | 354 | m4_define([gt_NEEDS_INIT], |
| | 355 | [ |
| | 356 | ··m4_divert_text([DEFAULTS],·[gt_needs=]) |
| | 357 | ··m4_define([gt_NEEDS_INIT],·[]) |
| | 358 | ]) |
| | |
| | |
| | 359 | dnl·Usage:·AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) |
| | 360 | AC_DEFUN([AM_GNU_GETTEXT_NEED], |
| | 361 | [ |
| | 362 | ··m4_divert_text([INIT_PREPARE],·[gt_needs="$gt_needs·$1"]) |
| | 363 | ]) |
| | |
| | |
| | 364 | dnl·Usage:·AM_GNU_GETTEXT_VERSION([gettext-version]) |
| | 365 | AC_DEFUN([AM_GNU_GETTEXT_VERSION],·[]) |
| | |
| | |
| | 366 | dnl·Usage:·AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) |
| | 367 | AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION],·[]) |