~andrewsomething/parcellite/unstable

« back to all changes in this revision

Viewing changes to m4/gettext.m4

  • Committer: Andrew Starr-Bochicchio
  • Date: 2011-09-14 21:18:06 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: a.starr.b@gmail.com-20110914211806-pwbn58qizqu39x8w
Tags: upstream-1.0.2~rc5
ImportĀ upstreamĀ versionĀ 1.0.2~rc5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# gettext.m4 serial 63 (gettext-0.18)
2
 
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
 
1
# gettext.m4 serial 60 (gettext-0.17)
 
2
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
15
15
 
16
16
dnl Authors:
17
17
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
18
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
 
18
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006.
19
19
 
20
20
dnl Macro to add for using GNU gettext.
21
21
 
60
60
  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
61
61
    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
62
62
])])])])])
63
 
  ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
64
 
    [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
65
63
  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
66
64
    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
67
65
])])])])
125
123
    gt_use_preinstalled_gnugettext=no
126
124
    ifelse(gt_included_intl, yes, [
127
125
      AC_MSG_CHECKING([whether included gettext is requested])
128
 
      AC_ARG_WITH([included-gettext],
 
126
      AC_ARG_WITH(included-gettext,
129
127
        [  --with-included-gettext use the GNU gettext library included here],
130
128
        nls_cv_force_use_gnu_gettext=$withval,
131
129
        nls_cv_force_use_gnu_gettext=no)
132
 
      AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
 
130
      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
133
131
 
134
132
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
135
133
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
269
267
 
270
268
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
271
269
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
272
 
      AC_DEFINE([ENABLE_NLS], [1],
 
270
      AC_DEFINE(ENABLE_NLS, 1,
273
271
        [Define to 1 if translation of program messages to the user's native language
274
272
   is requested.])
275
273
    else
303
301
      fi
304
302
 
305
303
      dnl For backward compatibility. Some packages may be using this.
306
 
      AC_DEFINE([HAVE_GETTEXT], [1],
 
304
      AC_DEFINE(HAVE_GETTEXT, 1,
307
305
       [Define if the GNU gettext() function is already present or preinstalled.])
308
 
      AC_DEFINE([HAVE_DCGETTEXT], [1],
 
306
      AC_DEFINE(HAVE_DCGETTEXT, 1,
309
307
       [Define if the GNU dcgettext() function is already present or preinstalled.])
310
308
    fi
311
309
 
321
319
    fi
322
320
 
323
321
    dnl Make all variables we use known to autoconf.
324
 
    AC_SUBST([BUILD_INCLUDED_LIBINTL])
325
 
    AC_SUBST([USE_INCLUDED_LIBINTL])
326
 
    AC_SUBST([CATOBJEXT])
 
322
    AC_SUBST(BUILD_INCLUDED_LIBINTL)
 
323
    AC_SUBST(USE_INCLUDED_LIBINTL)
 
324
    AC_SUBST(CATOBJEXT)
327
325
 
328
326
    dnl For backward compatibility. Some configure.ins may be using this.
329
327
    nls_cv_header_intl=
331
329
 
332
330
    dnl For backward compatibility. Some Makefiles may be using this.
333
331
    DATADIRNAME=share
334
 
    AC_SUBST([DATADIRNAME])
 
332
    AC_SUBST(DATADIRNAME)
335
333
 
336
334
    dnl For backward compatibility. Some Makefiles may be using this.
337
335
    INSTOBJEXT=.mo
338
 
    AC_SUBST([INSTOBJEXT])
 
336
    AC_SUBST(INSTOBJEXT)
339
337
 
340
338
    dnl For backward compatibility. Some Makefiles may be using this.
341
339
    GENCAT=gencat
342
 
    AC_SUBST([GENCAT])
 
340
    AC_SUBST(GENCAT)
343
341
 
344
342
    dnl For backward compatibility. Some Makefiles may be using this.
345
343
    INTLOBJS=
346
344
    if test "$USE_INCLUDED_LIBINTL" = yes; then
347
345
      INTLOBJS="\$(GETTOBJS)"
348
346
    fi
349
 
    AC_SUBST([INTLOBJS])
 
347
    AC_SUBST(INTLOBJS)
350
348
 
351
349
    dnl Enable libtool support if the surrounding package wishes it.
352
350
    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
353
 
    AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
 
351
    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
354
352
  ])
355
353
 
356
354
  dnl For backward compatibility. Some Makefiles may be using this.
357
355
  INTLLIBS="$LIBINTL"
358
 
  AC_SUBST([INTLLIBS])
 
356
  AC_SUBST(INTLLIBS)
359
357
 
360
358
  dnl Make all documented variables known to autoconf.
361
 
  AC_SUBST([LIBINTL])
362
 
  AC_SUBST([LTLIBINTL])
363
 
  AC_SUBST([POSUB])
 
359
  AC_SUBST(LIBINTL)
 
360
  AC_SUBST(LTLIBINTL)
 
361
  AC_SUBST(POSUB)
364
362
])
365
363
 
366
364