Commit 02406e56 authored by Darek Stojaczyk's avatar Darek Stojaczyk Committed by Jim Harris
Browse files

configure: fail --enable-log-bt if it's not available

parent 5cb18040
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -520,6 +520,15 @@ if [[ "${CONFIG[ISCSI_INITIATOR]}" = "y" ]]; then
	fi
fi

if [[ "${CONFIG[LOG_BACKTRACE]}" = "y" ]]; then
	if ! echo -e '#include <libunwind.h>\nint main(void) { return 0; }\n' \
		| $BUILD_CMD -lunwind - 2>/dev/null; then
		echo --enable-log-bt requires libunwind.
		echo Please install then re-run this script.
		exit 1
	fi
fi

if [[ "${CONFIG[OCF]}" = "y" ]]; then
	# If OCF_PATH is a file, assume it is a library and use it to compile with
	if [ -f ${CONFIG[OCF_PATH]} ]; then