<div dir="ltr">I'm writing a C++ program that uses LLVM, and trying to build it with autotools. Thanks to Diego Novillo, there is an M4 macro that detects llvm-config: <a href="https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4">https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4</a><div><br></div><div>How do I use it? Given that I've written a basic <a href="http://configure.ac">configure.ac</a> that can compile a basic C++ program, how do I modify it to make use of the macro? And should the macro be copied into the project directory as a separate file or pasted into <a href="http://configure.ac">configure.ac</a>? I tried a Google search for how to include a macro from <a href="http://configure.ac">configure.ac</a> but I'm not clear on what the results mean.</div></div>