1#!/bin/bash 2 3set -e 4 5CFLAGS="-Werror -Wall -Wdeclaration-after-statement -Wvla" 6 7if [ "$CC" = "clang" ]; then 8 CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function" 9fi 10 11CFLAGS="$CFLAGS -DNL_MORE_ASSERTS=1000" 12 13export CFLAGS 14./autogen.sh 15./configure 16make -j 5 17make -j 5 check 18