iconv_h.m4 1.3 KB

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