The previous code was hardcoding Mono's LLVM API version which was less than ideal. The API has been bumped twice since without this being updated.
This depends on a recent Mono LLVM version, at least https://github.com/mono/llvm/commit/
607aeaae423da73e6ddfe49af4741fa1bc5f9e78.
-lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMExecutionEngine -lLLVMMC -lLLVMCore \
-lLLVMSupport -lstdc++"
LLVM_LIBS="$LLVM_LIBS $LLVM_SYSTEM_LIBS"
- llvm_api_version=1
+
+ llvm_config_path=$with_llvm/include/llvm/Config/llvm-config.h
+ llvm_api_version=`awk '/MONO_API_VERSION/ { print $3 }' $llvm_config_path`
fi
if test "x$llvm_api_version" = "x"; then