annotate m4/gettext.m4 @ 17040:2b2ed538a898

update from texinfo
author Karl Berry <karl@freefriends.org>
date Mon, 13 Aug 2012 15:48:24 -0700
parents 498a2211d839
children e542fd46ad6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16935
498a2211d839 Write "Mac OS X" instead of "MacOS X".
Bruno Haible <bruno@clisp.org>
parents: 16235
diff changeset
1 # gettext.m4 serial 66 (gettext-0.18.2)
16201
8250f2777afc maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents: 14079
diff changeset
2 dnl Copyright (C) 1995-2012 Free Software Foundation, Inc.
5659
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
3 dnl This file is free software; the Free Software Foundation
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 dnl
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 dnl This file can can be used in projects which are not available under
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 dnl the GNU General Public License or the GNU Library General Public
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 dnl License but which still want to provide support for the GNU gettext
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 dnl functionality.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 dnl Please note that the actual code of the GNU gettext library is covered
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 dnl by the GNU Library General Public License, and the rest of the GNU
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 dnl gettext package package is covered by the GNU General Public License.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 dnl They are *not* in the public domain.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 dnl Authors:
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
13330
fbf6aad1d20d Update to GNU gettext 0.18.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
18 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
7330
b537fff46f2e Remove inttypes-h.m4 and its gl_HEADER_INTTYES_H macro.
Bruno Haible <bruno@clisp.org>
parents: 7006
diff changeset
19
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 dnl Macro to add for using GNU gettext.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 dnl default (if it is not specified or empty) is 'no-libtool'.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 dnl INTLSYMBOL should be 'external' for packages with no intl directory,
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 dnl If INTLSYMBOL is 'use-libtool', then a libtool library
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 dnl depending on --{enable,disable}-{shared,static} and on the presence of
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 dnl $(top_builddir)/intl/libintl.a will be created.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 dnl implementations (in libc or libintl) without the ngettext() function
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 dnl will be ignored. If NEEDSYMBOL is specified and is
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 dnl 'need-formatstring-macros', then GNU gettext implementations that don't
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 dnl INTLDIR is used to find the intl libraries. If empty,
16235
18a38c9615f0 In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents: 16201
diff changeset
38 dnl the value '$(top_builddir)/intl/' is used.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 dnl
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 dnl The result of the configuration is one of three cases:
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 dnl and used.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 dnl Catalog format: GNU --> install in $(datadir)
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 dnl Catalog extension: .mo after installation, .gmo in source tree
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 dnl 2) GNU gettext has been found in the system's C library.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 dnl Catalog format: GNU --> install in $(datadir)
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 dnl Catalog extension: .mo after installation, .gmo in source tree
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 dnl 3) No internationalization, always use English msgid.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 dnl Catalog format: none
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 dnl Catalog extension: none
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 dnl The use of .gmo is historical (it was needed to avoid overwriting the
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 dnl GNU format catalogs when building on a platform with an X/Open gettext),
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 dnl but we keep it in order not to force irrelevant filename changes on the
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 dnl maintainers.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 dnl
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 AC_DEFUN([AM_GNU_GETTEXT],
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 dnl Argument checking.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 ])])])])])
13330
fbf6aad1d20d Update to GNU gettext 0.18.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
63 ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
fbf6aad1d20d Update to GNU gettext 0.18.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
64 [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
67 ])])])])
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
68 define([gt_included_intl],
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
69 ifelse([$1], [external],
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
70 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
71 [yes]))
5700
eea92bfb3f7d Upgrade to GNU gettext 0.14.3.
Bruno Haible <bruno@clisp.org>
parents: 5659
diff changeset
72 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
73 gt_NEEDS_INIT
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
74 AM_GNU_GETTEXT_NEED([$2])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
75
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
76 AC_REQUIRE([AM_PO_SUBDIRS])dnl
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
77 ifelse(gt_included_intl, yes, [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
78 AC_REQUIRE([AM_INTL_SUBDIR])dnl
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
79 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
80
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
81 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
82 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
83 AC_REQUIRE([AC_LIB_RPATH])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
84
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
85 dnl Sometimes libintl requires libiconv, so first search for libiconv.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
86 dnl Ideally we would do this search only after the
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
87 dnl if test "$USE_NLS" = "yes"; then
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
88 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
89 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
90 dnl the configure script would need to contain the same shell code
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
91 dnl again, outside any 'if'. There are two solutions:
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
92 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
93 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
94 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
95 dnl documented, we avoid it.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
96 ifelse(gt_included_intl, yes, , [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
97 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
98 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
99
16935
498a2211d839 Write "Mac OS X" instead of "MacOS X".
Bruno Haible <bruno@clisp.org>
parents: 16235
diff changeset
100 dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
5659
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
101 gt_INTL_MACOSX
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
102
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
103 dnl Set USE_NLS.
7006
436f1f8cdf1e Update to GNU gettext 0.15.
Bruno Haible <bruno@clisp.org>
parents: 5807
diff changeset
104 AC_REQUIRE([AM_NLS])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
105
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
106 ifelse(gt_included_intl, yes, [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
107 BUILD_INCLUDED_LIBINTL=no
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
108 USE_INCLUDED_LIBINTL=no
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
109 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
110 LIBINTL=
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
111 LTLIBINTL=
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
112 POSUB=
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
113
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
114 dnl Add a version number to the cache macros.
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
115 case " $gt_needs " in
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
116 *" need-formatstring-macros "*) gt_api_version=3 ;;
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
117 *" need-ngettext "*) gt_api_version=2 ;;
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
118 *) gt_api_version=1 ;;
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
119 esac
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
120 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
121 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
122
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
123 dnl If we use NLS figure out what method
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
124 if test "$USE_NLS" = "yes"; then
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
125 gt_use_preinstalled_gnugettext=no
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
126 ifelse(gt_included_intl, yes, [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
127 AC_MSG_CHECKING([whether included gettext is requested])
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10979
diff changeset
128 AC_ARG_WITH([included-gettext],
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
129 [ --with-included-gettext use the GNU gettext library included here],
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
130 nls_cv_force_use_gnu_gettext=$withval,
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
131 nls_cv_force_use_gnu_gettext=no)
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
132 AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
133
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
134 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
135 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
136 ])
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
137 dnl User does not insist on using GNU NLS library. Figure out what
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
138 dnl to use. If GNU gettext is available we use this. Else we have
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
139 dnl to fall back to GNU NLS library.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
140
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
141 if test $gt_api_version -ge 3; then
7682
cda6a677c88b Fix bug that caused AM_GNU_GETTEXT([external], [need-formatstring-macros])
Bruno Haible <bruno@clisp.org>
parents: 7576
diff changeset
142 gt_revision_test_code='
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
143 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
144 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
145 #endif
7682
cda6a677c88b Fix bug that caused AM_GNU_GETTEXT([external], [need-formatstring-macros])
Bruno Haible <bruno@clisp.org>
parents: 7576
diff changeset
146 changequote(,)dnl
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
147 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7682
cda6a677c88b Fix bug that caused AM_GNU_GETTEXT([external], [need-formatstring-macros])
Bruno Haible <bruno@clisp.org>
parents: 7576
diff changeset
148 changequote([,])dnl
cda6a677c88b Fix bug that caused AM_GNU_GETTEXT([external], [need-formatstring-macros])
Bruno Haible <bruno@clisp.org>
parents: 7576
diff changeset
149 '
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
150 else
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
151 gt_revision_test_code=
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
152 fi
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
153 if test $gt_api_version -ge 2; then
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
154 gt_expression_test_code=' + * ngettext ("", "", 0)'
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
155 else
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
156 gt_expression_test_code=
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
157 fi
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
158
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
159 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
13578
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
160 [AC_LINK_IFELSE(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
161 [AC_LANG_PROGRAM(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
162 [[
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
163 #include <libintl.h>
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
164 $gt_revision_test_code
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
165 extern int _nl_msg_cat_cntr;
13578
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
166 extern int *_nl_domain_bindings;
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
167 ]],
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
168 [[
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
169 bindtextdomain ("", "");
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
170 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
171 ]])],
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
172 [eval "$gt_func_gnugettext_libc=yes"],
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
173 [eval "$gt_func_gnugettext_libc=no"])])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
174
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
175 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
176 dnl Sometimes libintl requires libiconv, so first search for libiconv.
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
177 ifelse(gt_included_intl, yes, , [
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
178 AM_ICONV_LINK
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
179 ])
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
180 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
181 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
182 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
183 dnl even if libiconv doesn't exist.
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
184 AC_LIB_LINKFLAGS_BODY([intl])
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
185 AC_CACHE_CHECK([for GNU gettext in libintl],
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
186 [$gt_func_gnugettext_libintl],
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
187 [gt_save_CPPFLAGS="$CPPFLAGS"
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
188 CPPFLAGS="$CPPFLAGS $INCINTL"
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
189 gt_save_LIBS="$LIBS"
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
190 LIBS="$LIBS $LIBINTL"
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
191 dnl Now see whether libintl exists and does not depend on libiconv.
13578
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
192 AC_LINK_IFELSE(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
193 [AC_LANG_PROGRAM(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
194 [[
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
195 #include <libintl.h>
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
196 $gt_revision_test_code
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
197 extern int _nl_msg_cat_cntr;
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
198 extern
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
199 #ifdef __cplusplus
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
200 "C"
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
201 #endif
13578
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
202 const char *_nl_expand_alias (const char *);
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
203 ]],
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
204 [[
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
205 bindtextdomain ("", "");
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
206 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
207 ]])],
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
208 [eval "$gt_func_gnugettext_libintl=yes"],
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
209 [eval "$gt_func_gnugettext_libintl=no"])
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
210 dnl Now see whether libintl exists and depends on libiconv.
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
211 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
212 LIBS="$LIBS $LIBICONV"
13578
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
213 AC_LINK_IFELSE(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
214 [AC_LANG_PROGRAM(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
215 [[
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
216 #include <libintl.h>
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
217 $gt_revision_test_code
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
218 extern int _nl_msg_cat_cntr;
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
219 extern
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
220 #ifdef __cplusplus
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
221 "C"
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
222 #endif
13578
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
223 const char *_nl_expand_alias (const char *);
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
224 ]],
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
225 [[
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
226 bindtextdomain ("", "");
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
227 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
228 ]])],
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
229 [LIBINTL="$LIBINTL $LIBICONV"
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
230 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
231 eval "$gt_func_gnugettext_libintl=yes"
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 13330
diff changeset
232 ])
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
233 fi
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
234 CPPFLAGS="$gt_save_CPPFLAGS"
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
235 LIBS="$gt_save_LIBS"])
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
236 fi
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
237
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
238 dnl If an already present or preinstalled GNU gettext() is found,
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
239 dnl use it. But if this macro is used in GNU gettext, and GNU
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
240 dnl gettext is already preinstalled in libintl, we update this
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
241 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
242 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
243 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
244 && test "$PACKAGE" != gettext-runtime \
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
245 && test "$PACKAGE" != gettext-tools; }; then
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
246 gt_use_preinstalled_gnugettext=yes
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
247 else
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
248 dnl Reset the values set by searching for libintl.
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
249 LIBINTL=
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
250 LTLIBINTL=
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
251 INCINTL=
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
252 fi
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
253
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
254 ifelse(gt_included_intl, yes, [
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
255 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
256 dnl GNU gettext is not found in the C library.
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
257 dnl Fall back on included GNU gettext library.
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
258 nls_cv_use_gnu_gettext=yes
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
259 fi
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
260 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
261
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
262 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
263 dnl Mark actions used to generate GNU NLS library.
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
264 BUILD_INCLUDED_LIBINTL=yes
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
265 USE_INCLUDED_LIBINTL=yes
7006
436f1f8cdf1e Update to GNU gettext 0.15.
Bruno Haible <bruno@clisp.org>
parents: 5807
diff changeset
266 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
436f1f8cdf1e Update to GNU gettext 0.15.
Bruno Haible <bruno@clisp.org>
parents: 5807
diff changeset
267 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
268 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
269 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
270
5700
eea92bfb3f7d Upgrade to GNU gettext 0.14.3.
Bruno Haible <bruno@clisp.org>
parents: 5659
diff changeset
271 CATOBJEXT=
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
272 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
273 || test "$nls_cv_use_gnu_gettext" = "yes"; then
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
274 dnl Mark actions to use GNU gettext tools.
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
275 CATOBJEXT=.gmo
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
276 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
277 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
278
5659
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
279 if test -n "$INTL_MACOSX_LIBS"; then
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
280 if test "$gt_use_preinstalled_gnugettext" = "yes" \
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
281 || test "$nls_cv_use_gnu_gettext" = "yes"; then
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
282 dnl Some extra flags are needed during linking.
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
283 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
284 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
285 fi
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
286 fi
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
287
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
288 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
289 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10979
diff changeset
290 AC_DEFINE([ENABLE_NLS], [1],
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
291 [Define to 1 if translation of program messages to the user's native language
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
292 is requested.])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
293 else
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
294 USE_NLS=no
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
295 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
296 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
297
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
298 AC_MSG_CHECKING([whether to use NLS])
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
299 AC_MSG_RESULT([$USE_NLS])
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
300 if test "$USE_NLS" = "yes"; then
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
301 AC_MSG_CHECKING([where the gettext function comes from])
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
302 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
303 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
304 gt_source="external libintl"
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
305 else
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
306 gt_source="libc"
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
307 fi
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
308 else
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
309 gt_source="included intl directory"
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
310 fi
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
311 AC_MSG_RESULT([$gt_source])
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
312 fi
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
313
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
314 if test "$USE_NLS" = "yes"; then
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
315
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
316 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
317 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
4536
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
318 AC_MSG_CHECKING([how to link with libintl])
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
319 AC_MSG_RESULT([$LIBINTL])
3358eb550c86 Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents: 4533
diff changeset
320 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
321 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
322
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
323 dnl For backward compatibility. Some packages may be using this.
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10979
diff changeset
324 AC_DEFINE([HAVE_GETTEXT], [1],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
325 [Define if the GNU gettext() function is already present or preinstalled.])
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10979
diff changeset
326 AC_DEFINE([HAVE_DCGETTEXT], [1],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
327 [Define if the GNU dcgettext() function is already present or preinstalled.])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
328 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
329
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
330 dnl We need to process the po/ directory.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
331 POSUB=po
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
332 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
333
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
334 ifelse(gt_included_intl, yes, [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
335 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
336 dnl to 'yes' because some of the testsuite requires it.
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
337 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
338 BUILD_INCLUDED_LIBINTL=yes
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
339 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
340
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
341 dnl Make all variables we use known to autoconf.
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
342 AC_SUBST([BUILD_INCLUDED_LIBINTL])
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
343 AC_SUBST([USE_INCLUDED_LIBINTL])
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
344 AC_SUBST([CATOBJEXT])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
345
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
346 dnl For backward compatibility. Some configure.ins may be using this.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
347 nls_cv_header_intl=
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
348 nls_cv_header_libgt=
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
349
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
350 dnl For backward compatibility. Some Makefiles may be using this.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
351 DATADIRNAME=share
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
352 AC_SUBST([DATADIRNAME])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
353
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
354 dnl For backward compatibility. Some Makefiles may be using this.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
355 INSTOBJEXT=.mo
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
356 AC_SUBST([INSTOBJEXT])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
357
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
358 dnl For backward compatibility. Some Makefiles may be using this.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
359 GENCAT=gencat
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
360 AC_SUBST([GENCAT])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
361
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
362 dnl For backward compatibility. Some Makefiles may be using this.
5700
eea92bfb3f7d Upgrade to GNU gettext 0.14.3.
Bruno Haible <bruno@clisp.org>
parents: 5659
diff changeset
363 INTLOBJS=
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
364 if test "$USE_INCLUDED_LIBINTL" = yes; then
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
365 INTLOBJS="\$(GETTOBJS)"
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
366 fi
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
367 AC_SUBST([INTLOBJS])
4335
3cb468809e1f Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4107
diff changeset
368
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
369 dnl Enable libtool support if the surrounding package wishes it.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
370 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
371 AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
372 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
373
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
374 dnl For backward compatibility. Some Makefiles may be using this.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
375 INTLLIBS="$LIBINTL"
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
376 AC_SUBST([INTLLIBS])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
377
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
378 dnl Make all documented variables known to autoconf.
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
379 AC_SUBST([LIBINTL])
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
380 AC_SUBST([LTLIBINTL])
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 9457
diff changeset
381 AC_SUBST([POSUB])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
382 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
383
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
384
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
385 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
386 m4_define([gt_NEEDS_INIT],
4895
6f7c9e594399 Upgrade to gettext-0.13.
Bruno Haible <bruno@clisp.org>
parents: 4536
diff changeset
387 [
7576
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
388 m4_divert_text([DEFAULTS], [gt_needs=])
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
389 m4_define([gt_NEEDS_INIT], [])
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
390 ])
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
391
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
392
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
393 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
394 AC_DEFUN([AM_GNU_GETTEXT_NEED],
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
395 [
d1f82658ae5a Upgrade to GNU gettext 0.16.
Bruno Haible <bruno@clisp.org>
parents: 7330
diff changeset
396 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
4895
6f7c9e594399 Upgrade to gettext-0.13.
Bruno Haible <bruno@clisp.org>
parents: 4536
diff changeset
397 ])
6f7c9e594399 Upgrade to gettext-0.13.
Bruno Haible <bruno@clisp.org>
parents: 4536
diff changeset
398
6f7c9e594399 Upgrade to gettext-0.13.
Bruno Haible <bruno@clisp.org>
parents: 4536
diff changeset
399
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
400 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
401 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])