diff options
| author | Andres Freund <andres@anarazel.de> | 2018-08-24 10:20:55 -0700 | 
|---|---|---|
| committer | Andres Freund <andres@anarazel.de> | 2018-08-24 10:21:48 -0700 | 
| commit | 24f127b0042e6bd70e3076cfe0cf13e3bc481037 (patch) | |
| tree | 4f89898e7c8305c34368ac164491f2c642b6b8af /configure | |
| parent | 7ed1db3f4625c4cb873a21c380913433820d50ce (diff) | |
LLVMJIT: LLVMGetHostCPUFeatures now is upstream, use LLMV version if available.
Noticed thanks to buildfarm animal seawasp.
Author: Andres Freund
Backpatch: v11-, where LLVM based JIT compliation was introduced.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure index 54d8994c7aa..1f31d794553 100755 --- a/configure +++ b/configure @@ -5020,6 +5020,17 @@ fi  cat >>confdefs.h <<_ACEOF  #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl  _ACEOF +ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h> +" +if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes; then : +  ac_have_decl=1 +else +  ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl +_ACEOF    ac_fn_c_check_decl "$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>  "  | 
