bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_CHECK_SIZEOF


From: Stepan Kasal
Subject: Re: AC_CHECK_SIZEOF
Date: Thu, 12 Apr 2007 16:23:42 +0200
User-agent: Mutt/1.4.2.1i

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

[Prev in Thread] Current Thread [Next in Thread]