13
0
livetrax/libs/glibmm2/scripts/c_std.m4
David Robillard 47a41c0d4d Fix building.
git-svn-id: svn://localhost/ardour2/trunk@2791 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-12-18 07:20:02 +00:00

44 lines
1.1 KiB
Plaintext

cv_c_std_time_t_is_not_int32
## GLIBMM_CXX_HAS_NAMESPACE_STD()
##
## Test whether libstdc++ declares namespace std. For safety,
## also check whether several randomly selected STL symbols
## are available in namespace std.
##
## On success, #define GLIBMM_HAVE_NAMESPACE_STD to 1.
##
AC_DEFUN([GLIBMM_C_STD_TIME_T_IS_NOT_INT32],
[
AC_CACHE_CHECK(
[whether time_t is not equivalent to gint32, meaning that it can be used for a method overload],
[gtkmm_cv_c_std_time_t_is_not_int32],
[
AC_TRY_COMPILE(
[
#include <time.h>
],[
typedef signed int gint32;
class Test
{
void something(gint32 val)
{}
void something(time_t val)
{}
};
],
[gtkmm_cv_c_std_time_t_is_not_int32="yes"],
[gtkmm_cv_c_std_time_t_is_not_int32="no"]
)
])
if test "x${gtkmm_cv_c_std_time_t_is_not_int32}" = "xyes"; then
{
AC_DEFINE([GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32],[1], [Defined when time_t is not equivalent to gint32, meaning that it can be used for a method overload])
}
fi
])