X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=blobdiff_plain;f=config%2Famanda%2Fdebugging.m4;h=2ec2258edc9d7e845ad0970eb1f1b9cf91efcbe7;hp=e51a25281fdeb25729b18b389b920dcc7274a9cf;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e diff --git a/config/amanda/debugging.m4 b/config/amanda/debugging.m4 index e51a252..2ec2258 100644 --- a/config/amanda/debugging.m4 +++ b/config/amanda/debugging.m4 @@ -152,26 +152,30 @@ AC_DEFUN([AMANDA_WITH_TESTING], # SYNOPSIS # -# AMANDA_CHECK_SCRIPTS_AT_BUILD +# AMANDA_ENABLE_SYNTAX_CHECKS # # OVERVIEW # -# Handles the --disable-syntax-checks flag, which un-sets the -# CHECK_SCRIPTS_AT_BUILD automake conditional +# Handles the --enable-syntax-checks flag, which triggers syntax checks +# for most 'make' targets, but causes spurious errors in all but the most +# carefully-constructed build environments. AC_DEFUN([AMANDA_DISABLE_SYNTAX_CHECKS], [ AC_ARG_ENABLE(syntax-checks, - AS_HELP_STRING([--disable-syntax-checks], - [Do not perform syntax checks when installing]), + AS_HELP_STRING([--enable-syntax-checks], + [Perform syntax checks when installing - developers only]), [ case "$enableval" in - no) CHECK_SCRIPTS_AT_BUILD=false;; - *) CHECK_SCRIPTS_AT_BUILD=true;; + no) SYNTAX_CHECKS=false;; + *) + SYNTAX_CHECKS=true + AMANDA_MSG_WARN([--enable-syntax-checks can cause build failures and should only be used by developers]) + ;; esac ], [ - CHECK_SCRIPTS_AT_BUILD=true + SYNTAX_CHECKS=false ]) - AM_CONDITIONAL(CHECK_SCRIPTS_AT_BUILD, $CHECK_SCRIPTS_AT_BUILD) + AM_CONDITIONAL(SYNTAX_CHECKS, $SYNTAX_CHECKS) ])