From 02406e56542badb7512991a15bd92d649e92491c Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Wed, 8 May 2019 17:35:23 +0200 Subject: [PATCH] configure: fail --enable-log-bt if it's not available Change-Id: Id8c5eca81124f06b62087bd64fb8a20ae8c69d28 Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453710 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure b/configure index 27cab7090..083101ae5 100755 --- a/configure +++ b/configure @@ -520,6 +520,15 @@ if [[ "${CONFIG[ISCSI_INITIATOR]}" = "y" ]]; then fi fi +if [[ "${CONFIG[LOG_BACKTRACE]}" = "y" ]]; then + if ! echo -e '#include \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