From 692712cc953bb567c4b7facb5a367b3cd0e3495a Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Sat, 11 Jun 2016 16:48:58 +0200 Subject: [PATCH] configure: Move verbose_output declaration up to the beginning Macros like "find_curl" are using "verbose_output" variable but because some of them are called before we define the variable we are seeing errors like ./configure: line 13855: test: : integer expression expected This commit will fix the problem by moving the "verbose_output" declaration up to the beginning so that the variable is available for every macro. --- configure.ac | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 75178858..0f32b01b 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,22 @@ AC_SUBST(MSC_REGRESSION_DOCROOT_DIR) ### Configure Options +# Verbose output +AC_ARG_ENABLE(verbose-output, + AS_HELP_STRING([--enable-verbose-output], + [Enable more verbose configure output.]), +[ + if test "$enableval" != "no"; then + verbose_output=1 + else + verbose_output=0 + fi +], +[ + verbose_output=0 +]) + + #OS type AC_CANONICAL_HOST @@ -410,20 +426,6 @@ AC_ARG_ENABLE(errors, report_errors=1 ]) -# Verbose output -AC_ARG_ENABLE(verbose-output, - AS_HELP_STRING([--enable-verbose-output], - [Enable more verbose configure output.]), -[ - if test "$enableval" != "no"; then - verbose_output=1 - else - verbose_output=0 - fi -], -[ - verbose_output=0 -]) # Strict Compile AC_ARG_ENABLE(strict-compile,