diff options
| author | Paul Eggert | 2011-02-04 21:07:22 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-04 21:07:22 -0800 |
| commit | d67985d3f98bdf075c7fa8eaa05529a9c49771e1 (patch) | |
| tree | f55f1f0bc36a232fd1307bee15b2a67c6d396997 /m4 | |
| parent | ec72bf63aea256f08eaab0f09929dbd327a57178 (diff) | |
| download | emacs-d67985d3f98bdf075c7fa8eaa05529a9c49771e1.tar.gz emacs-d67985d3f98bdf075c7fa8eaa05529a9c49771e1.zip | |
sync from gnulib to remove HAVE_STDBOOL_H
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/stdbool.m4 | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/m4/stdbool.m4 b/m4/stdbool.m4 index df10486d0a8..838cf0f4679 100644 --- a/m4/stdbool.m4 +++ b/m4/stdbool.m4 | |||
| @@ -5,13 +5,13 @@ dnl This file is free software; the Free Software Foundation | |||
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | 7 | ||
| 8 | #serial 3 | 8 | #serial 4 |
| 9 | 9 | ||
| 10 | # Prepare for substituting <stdbool.h> if it is not supported. | 10 | # Prepare for substituting <stdbool.h> if it is not supported. |
| 11 | 11 | ||
| 12 | AC_DEFUN([AM_STDBOOL_H], | 12 | AC_DEFUN([AM_STDBOOL_H], |
| 13 | [ | 13 | [ |
| 14 | AC_REQUIRE([AC_HEADER_STDBOOL]) | 14 | AC_REQUIRE([AC_CHECK_HEADER_STDBOOL]) |
| 15 | 15 | ||
| 16 | # Define two additional variables used in the Makefile substitution. | 16 | # Define two additional variables used in the Makefile substitution. |
| 17 | 17 | ||
| @@ -33,11 +33,9 @@ AC_DEFUN([AM_STDBOOL_H], | |||
| 33 | # AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future. | 33 | # AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future. |
| 34 | AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H]) | 34 | AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H]) |
| 35 | 35 | ||
| 36 | # This version of the macro is needed in autoconf <= 2.67. Autoconf has | 36 | # This version of the macro is needed in autoconf <= 2.68. |
| 37 | # it built in since 2.60, but we want the tweaks from the 2.68 version | ||
| 38 | # to avoid rejecting xlc and clang due to relying on extensions. | ||
| 39 | 37 | ||
| 40 | AC_DEFUN([AC_HEADER_STDBOOL], | 38 | AC_DEFUN([AC_CHECK_HEADER_STDBOOL], |
| 41 | [AC_CACHE_CHECK([for stdbool.h that conforms to C99], | 39 | [AC_CACHE_CHECK([for stdbool.h that conforms to C99], |
| 42 | [ac_cv_header_stdbool_h], | 40 | [ac_cv_header_stdbool_h], |
| 43 | [AC_COMPILE_IFELSE( | 41 | [AC_COMPILE_IFELSE( |
| @@ -98,6 +96,4 @@ AC_DEFUN([AC_HEADER_STDBOOL], | |||
| 98 | [ac_cv_header_stdbool_h=yes], | 96 | [ac_cv_header_stdbool_h=yes], |
| 99 | [ac_cv_header_stdbool_h=no])]) | 97 | [ac_cv_header_stdbool_h=no])]) |
| 100 | AC_CHECK_TYPES([_Bool]) | 98 | AC_CHECK_TYPES([_Bool]) |
| 101 | if test $ac_cv_header_stdbool_h = yes; then | 99 | ]) |
| 102 | AC_DEFINE([HAVE_STDBOOL_H], [1], [Define to 1 if stdbool.h conforms to C99.]) | ||
| 103 | fi]) | ||