1
# We check two things: where the include file is for cstdint. We
2
# include AC_TRY_COMPILE for all the combinations we've seen in the
3
# wild. We define one of HAVE_CSTDINT or HAVE_TR1_CSTDINT or
4
# HAVE_BOOST_CSTDINT depending
7
AC_DEFUN([AC_CXX_CSTDINT],
8
[AC_MSG_CHECKING(the location of cstdint)
12
for location in tr1/cstdint boost/cstdint cstdint; do
13
if test -z "$ac_cv_cxx_cstdint"; then
14
AC_TRY_COMPILE([#include <$location>],
16
[ac_cv_cxx_cstdint="<$location>";])
19
if test -n "$ac_cv_cxx_cstdint"; then
20
AC_DEFINE_UNQUOTED(CSTDINT_H,$ac_cv_cxx_cstdint,
21
[the location of <cstdint>])
22
AC_MSG_RESULT([$ac_cv_cxx_cstdint])
25
AC_MSG_ERROR([could not find a cstdint header. Try a newer compiler, or try installing Boost.])