diff --git a/configure.ac b/configure.ac index 997ac86967a13f6dd9dc9d95610177b4b4a91383..c0bb9e7a2b6fae10e998a76a5cf833575a3283ec 100644 --- a/configure.ac +++ b/configure.ac @@ -226,18 +226,6 @@ if test "$enable_debugging_checks" = "yes"; then AC_DEFINE([SWIFT_DEBUG_CHECKS],1,[Enable expensive debugging]) fi -# Check if debugging interactions is switched on. -AC_ARG_ENABLE([debug-interactions], - [AS_HELP_STRING([--enable-debug-interactions], - [Activate interaction debugging @<:@yes/no@:>@] - )], - [enable_debug_interactions="$enableval"], - [enable_debug_interactions="no"] -) -if test "$enable_debug_interactions" = "yes"; then - AC_DEFINE([DEBUG_INTERACTIONS_SPH],1,[Enable interaction debugging]) -fi - # Check whether we want to default to naive cell interactions AC_ARG_ENABLE([naive-interactions], [AS_HELP_STRING([--enable-naive-interactions], @@ -681,6 +669,22 @@ case "$with_hydro" in ;; esac +# Check if debugging interactions is switched on. +AC_ARG_ENABLE([debug-interactions], + [AS_HELP_STRING([--enable-debug-interactions], + [Activate interaction debugging @<:@yes/no@:>@] + )], + [enable_debug_interactions="$enableval"], + [enable_debug_interactions="no"] +) +if test "$enable_debug_interactions" = "yes"; then + if test "$with_hydro" = "gadget2"; then + AC_DEFINE([DEBUG_INTERACTIONS_SPH],1,[Enable interaction debugging]) + else + [enable_debug_interactions="no (only available for gadget2 hydro scheme)"] + fi +fi + # SPH Kernel function AC_ARG_WITH([kernel], [AS_HELP_STRING([--with-kernel=<kernel>],