From: Jan Vesely Date: Fri, 12 Feb 2016 23:58:55 +0000 (-0500) Subject: configure: Bail out on llvm-config component error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04085afcbfc01841f236884eb81e12e2fabc8c31;p=mesa.git configure: Bail out on llvm-config component error Signed-off-by: Jan Vesely Reviewed-by: Nicolai Hähnle --- diff --git a/configure.ac b/configure.ac index 2750d4d56c7..57330cb55cb 100644 --- a/configure.ac +++ b/configure.ac @@ -2295,6 +2295,9 @@ dnl in LLVM_LIBS. if test "x$MESA_LLVM" != x0; then + if ! $LLVM_CONFIG --libs ${LLVM_COMPONENTS} >/dev/null; then + AC_MSG_ERROR([Calling ${LLVM_CONFIG} failed]) + fi LLVM_LIBS="`$LLVM_CONFIG --libs ${LLVM_COMPONENTS}`" dnl llvm-config may not give the right answer when llvm is a built as a