when linking against libclang-cpp, check linking of LLVM libs
commit01606ccbc1918fbb5dc1e7aad71771930f2fe328
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 31 Mar 2023 20:40:30 +0000 (31 22:40 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 1 Apr 2023 15:33:07 +0000 (1 17:33 +0200)
tree0df5e7def9b3e685ee03de2c671197ed88a1c990
parenta1e1ae65230700ea07c6d7037031b5e009838183
when linking against libclang-cpp, check linking of LLVM libs

Apparently, the LLVM libraries may already be linked into libclang-cpp,
in which case linking against the LLVM libraries again may cause
errors about options being registered more than once.
Check whether the LLVM libraries should be linked in as well.
Fail if libclang-cpp cannot be used with or without the LLVM libraries.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
m4/ax_detect_clang.m4