In this case I'm the one who has to write configure.ac and Makefile.am so I need to find out what the answers need to be. But I see what you're saying, that it's at least theoretically possible to do the whole job on the ./configure command line. That would make said command line a bit long and unwieldy, having to invoke the full path to llvm-config twice (once to get compiler flags, once to get linker flags). Is there a way to abbreviate this, by putting something into configure.ac or Makefile.am or otherwise? On Thu, Mar 24, 2016 at 4:33 PM, Gavin Smith <gavinsmith0123@xxxxxxxxx> wrote: > On 24 March 2016 at 15:05, Russell Wallace <russell.wallace@xxxxxxxxx> > wrote: > > I'm writing a C++ program that needs to compile and link with LLVM, and > > trying to figure out how to build it with autotools. > > > > The good news is, llvm-config will supply the relevant compiler and > linker > > flags. > > Is llvm-config hardcoded into configure.ac or Makefile.am, or is > configure being invoked like "./configure CC=llvm "CFLAGS=`llvm-config > --cflags`" or whatever it is? If it's the latter it should be easy to > give the path to the correct llvm-config. > _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf