mc-stdckdint.m4 759 B

1234567891011121314151617181920212223
  1. dnl
  2. dnl Check <stdckdint.h> that is like C23.
  3. dnl
  4. AC_DEFUN([mc_CHECK_HEADER_STDCKDINT],
  5. [
  6. AC_CHECK_HEADERS_ONCE([stdckdint.h])
  7. if test $ac_cv_header_stdckdint_h = yes; then
  8. GL_GENERATE_STDCKDINT_H=false
  9. else
  10. GL_GENERATE_STDCKDINT_H=true
  11. fi
  12. gl_CONDITIONAL_HEADER([stdckdint.h])
  13. dnl We need the following in order to create <stdckdint.h> when the system
  14. dnl doesn't have one that works with the given compiler.
  15. if test "$GL_GENERATE_STDCKDINT_H" = "true"; then
  16. sed -e 1h -e '1s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,' -e s,bool,gboolean, -e 1G \
  17. $ac_abs_confdir/lib/stdckdint.in.h > $ac_abs_confdir/lib/stdckdint.h
  18. else
  19. rm -f "$ac_abs_confdir/lib/stdckdint.h"
  20. fi
  21. ])