Hello Paul,

_AC_CHECK_TYPE_NEW now contains:

: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])
: #ifdef __cplusplus
: typedef $1 ac__type_new_;
: #endif
: ],
: [#ifdef __cplusplus
: if ((ac__type_new_ *) 0)
:   return 0;
: if (sizeof (ac__type_new_))
:   return 0;
: #else
: if (sizeof ($1))
:   return 0;
: #endif
: ])],
:   [AC_COMPILE_IFELSE(
:      [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])],
:         [if (sizeof (($1)))
:           return 0;])],
:      [],
:      [AS_VAR_SET([ac_Type], [yes])])])

Couldn't the C++ check be simplified by removing
        if ((ac__type_new_ *) 0) return 0;
?

Why does not the  "sizeof (ac__type_new_)"  suffice?

Thanks in advance for your explanation,
        Stepan


Reply via email to