@@ -419,7 +419,7 @@ AC_CHECK_SIZEOF(pid_t)
419419# Check for type alignments
420420#
421421
422- OPAL_C_GET_ALIGNMENT(_Bool , OPAL_ALIGNMENT_BOOL)
422+ OPAL_C_GET_ALIGNMENT(bool , OPAL_ALIGNMENT_BOOL)
423423OPAL_C_GET_ALIGNMENT(int8_t, OPAL_ALIGNMENT_INT8)
424424OPAL_C_GET_ALIGNMENT(int16_t, OPAL_ALIGNMENT_INT16)
425425OPAL_C_GET_ALIGNMENT(int32_t, OPAL_ALIGNMENT_INT32)
460460OPAL_C_GET_ALIGNMENT(void * , OPAL_ALIGNMENT_VOID_P)
461461OPAL_C_GET_ALIGNMENT(size_t, OPAL_ALIGNMENT_SIZE_T)
462462
463- #
464- # Does the C compiler native support "bool"? (i.e., without
465- # <stdbool.h> or any other help)
466- #
467-
468- OPAL_VAR_SCOPE_PUSH([MSG])
469- AC_MSG_CHECKING(for C bool type)
470- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
471- AC_INCLUDES_DEFAULT],
472- [[bool bar, foo = true ; bar = foo; ]])],
473- [OPAL_NEED_C_BOOL= 0 MSG= yes],[OPAL_NEED_C_BOOL= 1 MSG= no])
474- AC_DEFINE_UNQUOTED(OPAL_NEED_C_BOOL, $OPAL_NEED_C_BOOL ,
475- [Whether the C compiler supports " bool" without any other help (such as < stdbool.h> )])
476- AC_MSG_RESULT([$MSG ])
477- AC_CHECK_SIZEOF(_Bool)
478- OPAL_VAR_SCOPE_POP
479-
480463#
481464# Check for other compiler characteristics
482465#
@@ -636,37 +619,6 @@ AC_CHECK_HEADERS([net/if.h], [], [],
636619# endif
637620])
638621
639- # Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
640- # have both Portland and GNU installed; using pgcc will find GNU's
641- # <stdbool.h>, which all it does -- by standard -- is define "bool" to
642- # "_Bool" [see
643- # http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html],
644- # and Portland has no idea what to do with _Bool).
645-
646- # So first figure out if we have <stdbool.h> (i.e., check the value of
647- # the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS,
648- # above). If we do have it, then check to see if it actually works.
649- # Define OPAL_USE_STDBOOL_H as approrpaite.
650- AC_CHECK_HEADERS([stdbool.h], [have_stdbool_h= 1], [have_stdbool_h= 0])
651- OPAL_VAR_SCOPE_PUSH([MSG])
652- AC_MSG_CHECKING([if < stdbool.h> works])
653- if test " $have_stdbool_h " = " 1" ; then
654- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
655- AC_INCLUDES_DEFAULT[
656- # if HAVE_STDBOOL_H
657- # include <stdbool.h>
658- # endif]],
659- [[bool bar, foo = true ; bar = foo; ]])],
660- [OPAL_USE_STDBOOL_H= 1 MSG= yes],[OPAL_USE_STDBOOL_H= 0 MSG= no])
661- else
662- OPAL_USE_STDBOOL_H= 0
663- MSG= " no (do not have <stdbool.h>)"
664- fi
665- AC_DEFINE_UNQUOTED(OPAL_USE_STDBOOL_H, $OPAL_USE_STDBOOL_H ,
666- [Whether to use < stdbool.h> or not])
667- AC_MSG_RESULT([$MSG ])
668- OPAL_VAR_SCOPE_POP
669-
670622# checkpoint results
671623AC_CACHE_SAVE
672624
0 commit comments