Blame m4/iconv_h.m4

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