~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to glib/libcharset/codeset.m4

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#serial 2
 
1
# codeset.m4 serial AM1 (gettext-0.10.40)
 
2
dnl Copyright (C) 2000-2002 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.
2
6
 
3
7
dnl From Bruno Haible.
4
8
 
5
 
AC_DEFUN([jm_LANGINFO_CODESET],
 
9
AC_DEFUN([AM_LANGINFO_CODESET],
6
10
[
7
 
  AC_CHECK_HEADERS(langinfo.h)
8
 
  AC_CHECK_FUNCS(nl_langinfo)
9
 
 
10
 
  AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset,
 
11
  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
11
12
    [AC_TRY_LINK([#include <langinfo.h>],
12
13
      [char* cs = nl_langinfo(CODESET);],
13
 
      jm_cv_langinfo_codeset=yes,
14
 
      jm_cv_langinfo_codeset=no)
 
14
      am_cv_langinfo_codeset=yes,
 
15
      am_cv_langinfo_codeset=no)
15
16
    ])
16
 
  if test $jm_cv_langinfo_codeset = yes; then
 
17
  if test $am_cv_langinfo_codeset = yes; then
17
18
    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
18
19
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
19
20
  fi