configure.ac: better detection of LLVM version