[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting the 'sysconfdir'
From: |
Noah Misch |
Subject: |
Re: Getting the 'sysconfdir' |
Date: |
Mon, 4 Jun 2007 13:24:33 -0700 |
User-agent: |
Mutt/1.5.9i |
On Mon, Jun 04, 2007 at 10:04:04PM +0200, Jason Curl wrote:
> From previous posts to automake, it appears the best way to manage my
> configuration files is using $(sysconfdir)
>
> So in my configure.ac I have the following that my program can use to
> find out where the configuration directory was configured to pull in the
> default when the user doesn't provide an alternative.
>
> AC_DEFINE_UNQUOTE(SYSCONFDIR, [$sysconfdir], [Configuration directory])
>
> What doesn't work, $sysconfdir = ${prefix}/etc as default. This means I
> need to recursively substitute until I have a complete path. How can I
> do this?
See `info Autoconf FAQ defining' for some ways to handle this.