1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
dnl @synopsis AC_C_INT64_T
dnl
dnl Provides a test for the existance of the int64_t type and
dnl defines HAVE_INT64_T if it is found. Adapted from AC_C_LONG_LONG by
dnl Caolan McNamara <caolan@skynet.ie>
dnl
dnl @version $Id: AC_C_INT64_T.m4 9222 2003-03-11 17:21:15Z nleclercq $
dnl @author Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
dnl
AC_DEFUN([AC_C_INT64_T],
[AC_CACHE_CHECK(for int64_t, ac_cv_c_int64_t,
[AC_TRY_COMPILE([#include <stdint.h>],[int64_t i;], ac_cv_c_int64_t=yes, ac_cv_c_int64_t=no)
])
if test $ac_cv_c_int64_t = yes; then
AC_DEFINE(HAVE_INT64_T,,[define if the compiler has int64_t])
AC_DEFINE(HAVE_STDINT_H,,[define if you have the <stdint.h> header file.])
fi
])
|