Blame m4/iconv_h.m4

Packit Service fdd496
# iconv_h.m4 serial 8
Packit Service fdd496
dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
Packit Service fdd496
dnl This file is free software; the Free Software Foundation
Packit Service fdd496
dnl gives unlimited permission to copy and/or distribute it,
Packit Service fdd496
dnl with or without modifications, as long as this notice is preserved.
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_ICONV_H],
Packit Service fdd496
[
Packit Service fdd496
  AC_REQUIRE([gl_ICONV_H_DEFAULTS])
Packit Service fdd496
Packit Service fdd496
  dnl Execute this unconditionally, because ICONV_H may be set by other
Packit Service fdd496
  dnl modules, after this code is executed.
Packit Service fdd496
  gl_CHECK_NEXT_HEADERS([iconv.h])
Packit Service fdd496
])
Packit Service fdd496
Packit Service fdd496
dnl Unconditionally enables the replacement of <iconv.h>.
Packit Service fdd496
AC_DEFUN([gl_REPLACE_ICONV_H],
Packit Service fdd496
[
Packit Service fdd496
  AC_REQUIRE([gl_ICONV_H_DEFAULTS])
Packit Service fdd496
  ICONV_H='iconv.h'
Packit Service fdd496
  AM_CONDITIONAL([GL_GENERATE_ICONV_H], [test -n "$ICONV_H"])
Packit Service fdd496
])
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_ICONV_MODULE_INDICATOR],
Packit Service fdd496
[
Packit Service fdd496
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
Packit Service fdd496
  AC_REQUIRE([gl_ICONV_H_DEFAULTS])
Packit Service fdd496
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
Packit Service fdd496
])
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_ICONV_H_DEFAULTS],
Packit Service fdd496
[
Packit Service fdd496
  GNULIB_ICONV=0;       AC_SUBST([GNULIB_ICONV])
Packit Service fdd496
  dnl Assume proper GNU behavior unless another module says otherwise.
Packit Service fdd496
  ICONV_CONST=;         AC_SUBST([ICONV_CONST])
Packit Service fdd496
  REPLACE_ICONV=0;      AC_SUBST([REPLACE_ICONV])
Packit Service fdd496
  REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN])
Packit Service fdd496
  REPLACE_ICONV_UTF=0;  AC_SUBST([REPLACE_ICONV_UTF])
Packit Service fdd496
  ICONV_H='';           AC_SUBST([ICONV_H])
Packit Service fdd496
  AM_CONDITIONAL([GL_GENERATE_ICONV_H], [test -n "$ICONV_H"])
Packit Service fdd496
])