[llvm-dev] Using LLVM from Autoconf

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 23 14:14:25 PDT 2016


Ah, that does clarify things some! I'll try going from that, and if I have
more questions, I'll try the autoconf list. Thanks!

On Wed, Mar 23, 2016 at 9:11 PM, Diego Novillo <dnovillo at google.com> wrote:

> Jack's correct about moving this to autoconf at gnu.org.  However, you
> can start by cutting and pasting the configure.ac bits from the same
> github repo I pointed you to earlier today.  The actual commit that
> brought those changes may be easier to use as a template.
>
>
> https://github.com/google/autofdo/pull/30/commits/0029f4be825f851b9d99bcd19dcb34fd59f1775e
>
> On Wed, Mar 23, 2016 at 4:35 PM, Russell Wallace via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > 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: https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4
> >
> > How do I use it? Given that I've written a basic configure.ac 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 configure.ac? I tried a Google search for how to include
> a
> > macro from configure.ac but I'm not clear on what the results mean.
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > llvm-dev at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160323/fe9acc37/attachment.html>


More information about the llvm-dev mailing list