| 1 |
# stdbit_h.m4 |
| 2 |
# serial 2 |
| 3 |
dnl Copyright 2024-2025 Free Software Foundation, Inc. |
| 4 |
dnl This file is free software; the Free Software Foundation |
| 5 |
dnl gives unlimited permission to copy and/or distribute it, |
| 6 |
dnl with or without modifications, as long as this notice is preserved. |
| 7 |
dnl This file is offered as-is, without any warranty. |
| 8 |
|
| 9 |
dnl A placeholder for <stdbit.h>, for platforms that have issues. |
| 10 |
|
| 11 |
AC_DEFUN_ONCE([gl_STDBIT_H], |
| 12 |
[ |
| 13 |
AC_REQUIRE([gl_BIGENDIAN]) |
| 14 |
|
| 15 |
AC_CHECK_HEADERS_ONCE([stdbit.h]) |
| 16 |
if test $ac_cv_header_stdbit_h = yes; then |
| 17 |
GL_GENERATE_STDBIT_H=false |
| 18 |
else |
| 19 |
GL_GENERATE_STDBIT_H=true |
| 20 |
fi |
| 21 |
|
| 22 |
dnl We don't use gl_MODULE_INDICATOR_INIT_VARIABLE here, because stdbit.in.h |
| 23 |
dnl does not use #include_next. |
| 24 |
GL_STDC_LEADING_ZEROS=0; AC_SUBST([GL_STDC_LEADING_ZEROS]) |
| 25 |
GL_STDC_LEADING_ONES=0; AC_SUBST([GL_STDC_LEADING_ONES]) |
| 26 |
GL_STDC_TRAILING_ZEROS=0; AC_SUBST([GL_STDC_TRAILING_ZEROS]) |
| 27 |
GL_STDC_TRAILING_ONES=0; AC_SUBST([GL_STDC_TRAILING_ONES]) |
| 28 |
GL_STDC_FIRST_LEADING_ZERO=0; AC_SUBST([GL_STDC_FIRST_LEADING_ZERO]) |
| 29 |
GL_STDC_FIRST_LEADING_ONE=0; AC_SUBST([GL_STDC_FIRST_LEADING_ONE]) |
| 30 |
GL_STDC_FIRST_TRAILING_ZERO=0; AC_SUBST([GL_STDC_FIRST_TRAILING_ZERO]) |
| 31 |
GL_STDC_FIRST_TRAILING_ONE=0; AC_SUBST([GL_STDC_FIRST_TRAILING_ONE]) |
| 32 |
GL_STDC_COUNT_ZEROS=0; AC_SUBST([GL_STDC_COUNT_ZEROS]) |
| 33 |
GL_STDC_COUNT_ONES=0; AC_SUBST([GL_STDC_COUNT_ONES]) |
| 34 |
GL_STDC_HAS_SINGLE_BIT=0; AC_SUBST([GL_STDC_HAS_SINGLE_BIT]) |
| 35 |
GL_STDC_BIT_WIDTH=0; AC_SUBST([GL_STDC_BIT_WIDTH]) |
| 36 |
GL_STDC_BIT_FLOOR=0; AC_SUBST([GL_STDC_BIT_FLOOR]) |
| 37 |
GL_STDC_BIT_CEIL=0; AC_SUBST([GL_STDC_BIT_CEIL]) |
| 38 |
]) |