annotate m4/setlocale.m4 @ 16201:8250f2777afc

maint: update all copyright year number ranges Run "make update-copyright".
author Jim Meyering <meyering@redhat.com>
date Sun, 01 Jan 2012 10:04:58 +0100
parents e5a3db1759c6
children e542fd46ad6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15091
e5a3db1759c6 setlocale: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents: 14860
diff changeset
1 # setlocale.m4 serial 4
16201
8250f2777afc maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents: 15091
diff changeset
2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc.
14330
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_SETLOCALE],
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REQUIRE([gl_LOCALE_H_DEFAULTS])
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 AC_REQUIRE([AC_CANONICAL_HOST])
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 case "$host_os" in
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 dnl On native Windows systems, setlocale(category,NULL) does not look at
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 dnl the environment variables LC_ALL, category, and LANG.
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 mingw*) REPLACE_SETLOCALE=1 ;;
14860
c12e3d2438e8 setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents: 14685
diff changeset
15 dnl On Cygwin 1.5.x, setlocale always succeeds but setlocale(LC_CTYPE,NULL)
c12e3d2438e8 setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents: 14685
diff changeset
16 dnl is then still "C".
c12e3d2438e8 setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents: 14685
diff changeset
17 cygwin*)
c12e3d2438e8 setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents: 14685
diff changeset
18 case `uname -r` in
c12e3d2438e8 setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents: 14685
diff changeset
19 1.5.*) REPLACE_SETLOCALE=1 ;;
c12e3d2438e8 setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents: 14685
diff changeset
20 esac
c12e3d2438e8 setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents: 14685
diff changeset
21 ;;
14330
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 esac
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 ])
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 # Prerequisites of lib/setlocale.c.
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 AC_DEFUN([gl_PREREQ_SETLOCALE],
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 [
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 :
960b09d2f33f New module 'setlocale'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 ])