2 dnl Copyright (C) 2007 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([gl_LOCALE_H],
9 AC_CACHE_CHECK([whether locale.h conforms to POSIX],
10 [gl_cv_header_working_locale_h],
11 [AC_TRY_COMPILE([#include <locale.h>
12 int x = LC_MESSAGES;], [],
13 [gl_cv_header_working_locale_h=yes],
14 [gl_cv_header_working_locale_h=no])])
15 if test $gl_cv_header_working_locale_h = yes; then
18 gl_ABSOLUTE_HEADER([locale.h])
19 ABSOLUTE_LOCALE_H=\"$gl_cv_absolute_locale_h\"
20 AC_SUBST([ABSOLUTE_LOCALE_H])