Blame m4/codeset.m4

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