Blame m4/codeset.m4

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