From 9b8b24f06b10312cc87efe375c579e9e202bf99e Mon Sep 17 00:00:00 2001 From: Christopher Hogan Date: Mon, 3 Jun 2019 20:42:13 -0500 Subject: [PATCH] Only check for mpb_printf_callback if we are building with MPB (#894) --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index ed2e9541b..33bf57983 100644 --- a/configure.ac +++ b/configure.ac @@ -187,9 +187,11 @@ if test $have_mpb = maybe; then fi AM_CONDITIONAL(WITH_MPB, test "x$have_mpb" = "xyes") -# check for mpb_printf_callback -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [mpb_printf_callback = 0;])], - AC_DEFINE([HAVE_MPB_PRINTF_CALLBACK], [1], [If we have the mpb_printf_callback variable])) +if test "x$have_mpb" = "xyes"; then + # check for mpb_printf_callback + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [mpb_printf_callback = 0;])], + AC_DEFINE([HAVE_MPB_PRINTF_CALLBACK], [1], [If we have the mpb_printf_callback variable])) +fi ############################################################################## # GNU Scientific Library