exit 1
fi
-set -e
+set -eu
if [ "${V-}" = "2" ]; then set -x; fi
[[ -d ${0%/*} ]] && cd "${0%/*}"/../
)
# disable building documentation by default
-[ -z "$enable_documentation" ] && export enable_documentation=no
+[ -z "${enable_documentation-}" ] && export enable_documentation=no
# shellcheck disable=SC2086
-./configure --enable-test $CONFIGURE_ARG
+./configure --enable-test ${CONFIGURE_ARG-}
# treat warnings as error
# shellcheck disable=SC2086
-CFLAGS="-Wextra -Werror" make TEST_RUN_ID="${TEST_RUN_ID:=$1}" TESTS="${TESTS:=$2}" V="${V:=1}" $MAKEFLAGS ${TARGETS:=all install check}
+CFLAGS="-Wextra -Werror" make TEST_RUN_ID="${TEST_RUN_ID:=$1}" TESTS="${TESTS:=$2}" V="${V:=1}" ${MAKEFLAGS-} ${TARGETS:=all install check}