Commit | Line | Data |
---|---|---|
dd7d0148 | 1 | # iconv_h.m4 serial 8 |
f0007cad | 2 | dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. |
24d56127 LC |
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. | |
6 | ||
7 | AC_DEFUN([gl_ICONV_H], | |
8 | [ | |
9 | AC_REQUIRE([gl_ICONV_H_DEFAULTS]) | |
414e4441 LC |
10 | |
11 | dnl Execute this unconditionally, because ICONV_H may be set by other | |
12 | dnl modules, after this code is executed. | |
24d56127 LC |
13 | gl_CHECK_NEXT_HEADERS([iconv.h]) |
14 | ]) | |
15 | ||
16 | dnl Unconditionally enables the replacement of <iconv.h>. | |
17 | AC_DEFUN([gl_REPLACE_ICONV_H], | |
18 | [ | |
19 | AC_REQUIRE([gl_ICONV_H_DEFAULTS]) | |
20 | ICONV_H='iconv.h' | |
dd7d0148 | 21 | AM_CONDITIONAL([GL_GENERATE_ICONV_H], [test -n "$ICONV_H"]) |
24d56127 LC |
22 | ]) |
23 | ||
24 | AC_DEFUN([gl_ICONV_MODULE_INDICATOR], | |
25 | [ | |
26 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | |
27 | AC_REQUIRE([gl_ICONV_H_DEFAULTS]) | |
a927b6c1 | 28 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) |
24d56127 LC |
29 | ]) |
30 | ||
31 | AC_DEFUN([gl_ICONV_H_DEFAULTS], | |
32 | [ | |
0f00f2c3 | 33 | GNULIB_ICONV=0; AC_SUBST([GNULIB_ICONV]) |
24d56127 | 34 | dnl Assume proper GNU behavior unless another module says otherwise. |
0f00f2c3 | 35 | ICONV_CONST=; AC_SUBST([ICONV_CONST]) |
24d56127 LC |
36 | REPLACE_ICONV=0; AC_SUBST([REPLACE_ICONV]) |
37 | REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN]) | |
38 | REPLACE_ICONV_UTF=0; AC_SUBST([REPLACE_ICONV_UTF]) | |
39 | ICONV_H=''; AC_SUBST([ICONV_H]) | |
dd7d0148 | 40 | AM_CONDITIONAL([GL_GENERATE_ICONV_H], [test -n "$ICONV_H"]) |
24d56127 | 41 | ]) |