Commit 7aced8e3 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Make sure long long is exactly 8 bytes when using the logger

parent 0c16dc1c
......@@ -92,6 +92,12 @@ AC_ARG_ENABLE([logger],
if test "$with_logger" = "yes"; then
AC_DEFINE([WITH_LOGGER], 1, [logger enabled])
# The logger requires that long long is a 64bit type, let's
# check that.
AC_CHECK_SIZEOF([long long int])
if test "$ac_cv_sizeof_long_long_int" != "8"; then
AC_MSG_ERROR([The particle logger requires that 'long long int' has size 8 bytes])
AM_CONDITIONAL([HAVELOGGER],[test $with_logger = "yes"])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment