[LLVMdev] Configuration Values

Chris Lattner sabre at nondot.org
Fri Aug 20 00:58:21 PDT 2004


On Thu, 19 Aug 2004, Reid Spencer wrote:

> So, somehow I need to get the value of the autoconf variable
> @sysconfdir@ into my program. There's a few ways to do this and since
> we're likely to eventually run into this again I'm trying to figure out
> what's best for LLVM:
>
> 0. Pass -DCONFIG_SYSCONFDIR=$(sysconfdir) on the command line.
>
> 1. Create include/Config/Values.h.in with something like:
> #define CONFIG_SYSCONFDIR "@sysconfdir@"

I would prefer #1.  This seems entirely in the spirit of our current
autoconf system (which hacks on files in include/Config).

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list