summaryrefslogtreecommitdiff
path: root/packages/console-tools/console-tools-0.3.2/config/codeset.m4
blob: 863c9cfa7eda612048b7256f84f5ef13827b9a45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#serial AM1

dnl From Bruno Haible.

AC_DEFUN([AM_LANGINFO_CODESET],
[
  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
    [AC_TRY_LINK([#include <langinfo.h>],
      [char* cs = nl_langinfo(CODESET);],
      am_cv_langinfo_codeset=yes,
      am_cv_langinfo_codeset=no)
    ])
  if test $am_cv_langinfo_codeset = yes; then
    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
  fi
])