~ubuntu-branches/ubuntu/trusty/pitivi/trusty

« back to all changes in this revision

Viewing changes to common/m4/glib-gettext.m4

* New upstream pre-release:
  + debian/control:
    - Update dependencies.
* debian/control:
  + Update Standards-Version to 3.8.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# Macro to add for using GNU gettext.
15
15
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
16
16
#
17
 
# Modified to never use included libintl. 
 
17
# Modified to never use included libintl.
18
18
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
19
19
#
20
20
# Major rework to remove unused code
21
21
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
22
22
#
23
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
23
# Added better handling of ALL_LINGUAS from GNU gettext version
24
24
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
25
25
#
26
26
# Modified to require ngettext
32
32
AC_PREREQ(2.53)
33
33
 
34
34
dnl
35
 
dnl We go to great lengths to make sure that aclocal won't 
 
35
dnl We go to great lengths to make sure that aclocal won't
36
36
dnl try to pull in the installed version of these macros
37
37
dnl when running aclocal in the glib directory.
38
38
dnl
125
125
          gt_cv_func_ngettext_libc=yes,
126
126
          gt_cv_func_ngettext_libc=no)
127
127
        ])
128
 
  
 
128
 
129
129
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
130
130
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
131
131
                [AC_TRY_LINK([
136
136
                  gt_cv_func_dgettext_libc=no)
137
137
                ])
138
138
      fi
139
 
  
 
139
 
140
140
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
141
141
        AC_CHECK_FUNCS(bind_textdomain_codeset)
142
142
      fi
147
147
      if test "$gt_cv_func_dgettext_libc" != "yes" \
148
148
         || test "$gt_cv_func_ngettext_libc" != "yes" \
149
149
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
150
 
        
 
150
 
151
151
        AC_CHECK_LIB(intl, bindtextdomain,
152
152
            [AC_CHECK_LIB(intl, ngettext,
153
153
                    [AC_CHECK_LIB(intl, dgettext,
191
191
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
192
192
        gt_cv_have_gettext=yes
193
193
      fi
194
 
  
 
194
 
195
195
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
196
196
        INTLLIBS="-lintl $libintl_extra_libs"
197
197
      fi
198
 
  
 
198
 
199
199
      if test "$gt_cv_have_gettext" = "yes"; then
200
200
        AC_DEFINE(HAVE_GETTEXT,1,
201
201
          [Define if the GNU gettext() function is already present or preinstalled.])
224
224
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
225
225
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
226
226
                         return _nl_msg_cat_cntr],
227
 
            [CATOBJEXT=.gmo 
 
227
            [CATOBJEXT=.gmo
228
228
             DATADIRNAME=share],
229
229
            [case $host in
230
230
            *-*-solaris*)
234
234
            dnl Hence, we'd like to go with DATADIRNAME=share and
235
235
            dnl and CATOBJEXT=.gmo in this case.
236
236
            AC_CHECK_FUNC(bind_textdomain_codeset,
237
 
              [CATOBJEXT=.gmo 
 
237
              [CATOBJEXT=.gmo
238
238
               DATADIRNAME=share],
239
239
              [CATOBJEXT=.mo
240
240
               DATADIRNAME=lib])
301
301
 
302
302
# AM_GLIB_GNU_GETTEXT
303
303
# -------------------
304
 
# Do checks necessary for use of gettext. If a suitable implementation 
 
304
# Do checks necessary for use of gettext. If a suitable implementation
305
305
# of gettext is found in either in libintl or in the C library,
306
306
# it will set INTLLIBS to the libraries needed for use of gettext
307
307
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
308
308
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
309
 
# on various variables needed by the Makefile.in.in installed by 
 
309
# on various variables needed by the Makefile.in.in installed by
310
310
# glib-gettextize.
311
311
dnl
312
312
glib_DEFUN([GLIB_GNU_GETTEXT],
313
313
  [AC_REQUIRE([AC_PROG_CC])dnl
314
314
   AC_REQUIRE([AC_HEADER_STDC])dnl
315
 
   
 
315
 
316
316
   GLIB_LC_MESSAGES
317
317
   GLIB_WITH_NLS
318
318
 
415
415
])dnl
416
416
 
417
417
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
418
 
 
418
#
419
419
# Create a temporary file with TEST-FILE as its contents and pass the
420
420
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
421
421
# 0 and perform ACTION-IF-FAIL for any other exit status.