autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Site configuration files and configure defaults


From: Eric Blake
Subject: Re: Site configuration files and configure defaults
Date: Mon, 12 May 2008 06:58:04 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Tim Post on 5/10/2008 8:34 PM:
| I have been trying to find a way to change sysconfdir to just be
| ${sysconfdir}, not ${prefix}/${sysconfdir}. I'd like to set that as a
| configure default for my program.

Sorry, but that goes against GNU Coding Standards, so autoconf itself
doesn't really permit changing this default in your configure.ac.

|
| I see that this is easy to change with site configuration files on the
| part of the user,

Yes, that is the recommended approach - if you are installing into a FHS
tree, the manual even gives the formula for this at the end of this section:

http://www.gnu.org/software/autoconf/manual/html_node/Site-Defaults.html#Site-Defaults

| but I don't see a way to change the configure
| defaults.

And for good reason.  Not everyone installs into the FHS layout, and
removing ${prefix} from the default for ${sysconfdir} will break
installation when a user does './configure --prefix=$HOME'.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgoPtwACgkQ84KuGfSFAYBEqgCgkTNldvEpvytYhbdYtUOffxAQ
anMAoKHD9FqPOoN2SWYo5mwJzWHGuuI3
=pE69
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]