]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Log LLVM library version in configure output.
authorThomas Munro <tmunro@postgresql.org>
Sun, 22 Oct 2023 01:17:00 +0000 (14:17 +1300)
committerThomas Munro <tmunro@postgresql.org>
Sun, 22 Oct 2023 01:35:00 +0000 (14:35 +1300)
When scanning build farm results, it's useful to be able to see which
version is in use.  For the Meson build system, this information was
already displayed.

Back-patch to all supported branches.

Discussion: https://postgr.es/m/4022690.1697852728%40sss.pgh.pa.us

config/llvm.m4
configure

index d5ddee3e6df09a814776c8c103207fa98a6c4c68..5104328971364a7a7c8168ed972aa936e4a4a4ca 100644 (file)
@@ -28,6 +28,7 @@ AC_DEFUN([PGAC_LLVM_SUPPORT],
   if echo $pgac_llvm_version | $AWK -F '.' '{ if ([$]1 >= 4 || ([$]1 == 3 && [$]2 >= 9)) exit 1; else exit 0;}';then
     AC_MSG_ERROR([$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required])
   fi
+  AC_MSG_NOTICE([using llvm $pgac_llvm_version])
 
   # need clang to create some bitcode files
   AC_ARG_VAR(CLANG, [path to clang compiler to generate bitcode])
index f74c9e65f073715ba492106347c93052fe961447..a62f1290126de16f2dd86392c2c0f0ada5d0d44a 100755 (executable)
--- a/configure
+++ b/configure
@@ -4893,6 +4893,8 @@ fi
   if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
     as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
   fi
+  { $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5
+$as_echo "$as_me: using llvm $pgac_llvm_version" >&6;}
 
   # need clang to create some bitcode files