You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
842 B

  1. # codeset.m4 serial 5 (gettext-0.18.2)
  2. dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016 Free Software Foundation,
  3. dnl Inc.
  4. dnl This file is free software; the Free Software Foundation
  5. dnl gives unlimited permission to copy and/or distribute it,
  6. dnl with or without modifications, as long as this notice is preserved.
  7. dnl From Bruno Haible.
  8. AC_DEFUN([AM_LANGINFO_CODESET],
  9. [
  10. AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
  11. [AC_LINK_IFELSE(
  12. [AC_LANG_PROGRAM(
  13. [[#include <langinfo.h>]],
  14. [[char* cs = nl_langinfo(CODESET); return !cs;]])],
  15. [am_cv_langinfo_codeset=yes],
  16. [am_cv_langinfo_codeset=no])
  17. ])
  18. if test $am_cv_langinfo_codeset = yes; then
  19. AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
  20. [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
  21. fi
  22. ])