Blame m4/codeset.m4

Packit Service 85e8c2
# codeset.m4 serial 4 (gettext-0.18)
Packit Service 85e8c2
dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
Packit Service 85e8c2
dnl This file is free software; the Free Software Foundation
Packit Service 85e8c2
dnl gives unlimited permission to copy and/or distribute it,
Packit Service 85e8c2
dnl with or without modifications, as long as this notice is preserved.
Packit Service 85e8c2
Packit Service 85e8c2
dnl From Bruno Haible.
Packit Service 85e8c2
Packit Service 85e8c2
AC_DEFUN([AM_LANGINFO_CODESET],
Packit Service 85e8c2
[
Packit Service 85e8c2
  AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
Packit Service 85e8c2
    [AC_TRY_LINK([#include <langinfo.h>],
Packit Service 85e8c2
      [char* cs = nl_langinfo(CODESET); return !cs;],
Packit Service 85e8c2
      [am_cv_langinfo_codeset=yes],
Packit Service 85e8c2
      [am_cv_langinfo_codeset=no])
Packit Service 85e8c2
    ])
Packit Service 85e8c2
  if test $am_cv_langinfo_codeset = yes; then
Packit Service 85e8c2
    AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
Packit Service 85e8c2
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
Packit Service 85e8c2
  fi
Packit Service 85e8c2
])