Blame m4/setlocale.m4

Packit 709fb3
# setlocale.m4 serial 4
Packit 709fb3
dnl Copyright (C) 2011-2017 Free Software Foundation, 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
AC_DEFUN([gl_FUNC_SETLOCALE],
Packit 709fb3
[
Packit 709fb3
  AC_REQUIRE([gl_LOCALE_H_DEFAULTS])
Packit 709fb3
  AC_REQUIRE([AC_CANONICAL_HOST])
Packit 709fb3
  case "$host_os" in
Packit 709fb3
    dnl On native Windows systems, setlocale(category,NULL) does not look at
Packit 709fb3
    dnl the environment variables LC_ALL, category, and LANG.
Packit 709fb3
    mingw*) REPLACE_SETLOCALE=1 ;;
Packit 709fb3
    dnl On Cygwin 1.5.x, setlocale always succeeds but setlocale(LC_CTYPE,NULL)
Packit 709fb3
    dnl is then still "C".
Packit 709fb3
    cygwin*)
Packit 709fb3
      case `uname -r` in
Packit 709fb3
        1.5.*) REPLACE_SETLOCALE=1 ;;
Packit 709fb3
      esac
Packit 709fb3
      ;;
Packit 709fb3
  esac
Packit 709fb3
])
Packit 709fb3
Packit 709fb3
# Prerequisites of lib/setlocale.c.
Packit 709fb3
AC_DEFUN([gl_PREREQ_SETLOCALE],
Packit 709fb3
[
Packit 709fb3
  :
Packit 709fb3
])