The --enable-option-checking=fatal option prevents ./configure from
proceeding when an unknown option is used in the ./configure step in CI.
This change will avoid adding unsupported ./configure options or options
with typo or typo in pairwise testing "# [pairwise: ...]" marker.
${CONFIGURE} \
--disable-maintainer-mode \
--enable-developer \
+ --enable-option-checking=fatal \
--with-cmocka \
--with-libxml2 \
--with-json-c \
--prefix="${BIND_INSTALL_PATH}" \
$EXTRA_CONFIGURE \
- || cat config.log
+ || (test -s config.log && cat config.log; exit 1)
.check_readline_setup: &check_readline_setup |
if [[ -n "${WITHOUT_READLINE}" ]]; then \
mkdir "pairwise-${runid}"
cd "pairwise-${runid}"
echo "${configure_switches[@]}" | tee "../pairwise-output.${runid}.txt"
- ../configure "${configure_switches[@]}" >> "../pairwise-output.${runid}.txt" 2>&1
- grep -F "WARNING: unrecognized options:" "../pairwise-output.${runid}.txt" && exit 1
+ ../configure --enable-option-checking=fatal "${configure_switches[@]}" >> "../pairwise-output.${runid}.txt" 2>&1
make "-j${BUILD_PARALLEL_JOBS:-1}" all >> "../pairwise-output.${runid}.txt" 2>&1
cd ..
rm -rf "pairwise-${runid}" "pairwise-output.${runid}.txt"