diff --git a/configure.ac b/configure.ac index 72450fc0195a90fdcf2903f4bc33d6b2a97f29eb..b027d5b2159ce9b63d01117f9a6f07efa39c6311 100644 --- a/configure.ac +++ b/configure.ac @@ -457,6 +457,14 @@ AC_SUBST([METIS_LIBS]) AC_SUBST([METIS_INCS]) AM_CONDITIONAL([HAVEMETIS],[test -n "$METIS_LIBS"]) +# METIS fixed width integer printing can require this, so define. Only needed +# for some non C99 compilers, i.e. C++ pre C++11. +AH_VERBATIM([__STDC_FORMAT_MACROS], + [/* Needed to get PRIxxx macros from stdint.h when not using C99 */ +#ifndef __STDC_FORMAT_MACROS +#define __STDC_FORMAT_MACROS 1 +#endif]) + # Check for grackle. have_grackle="no" AC_ARG_WITH([grackle],