[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sat, 23 Oct 2004 11:06:10 +1000
Mozilla Thunderbird 0.8 (X11/20040918)
Stepan Kasal wrote:
On Fri, Oct 22, 2004 at 04:20:18AM +1000, Russell Shaw wrote:
I still think --enable-default-size=5.8 is best suited for your needs.
But it's only cosmetic change.
Maybe a new macro should be made for setting numerical defaults rather
than aimed at package defaults.
I don't think it's worth it. Your case seems to be quite unusual.
I'd guess that you could make the parameter configurable at runtime, in a
Perhaps like this:
1) get it from user config file
2) get it from system config file, installed with the package
3) get the hardwired default
If the package would install a default config file, you'd almost never
get to 3), so there is no need to make it settable by ./configure.
I did it like this in configure.ac:
[set default border size for negative plots (mm)]),
if test "$withval" = "yes" -o "$withval" = "no" ; then
AC_MSG_ERROR([Invalid value for excellon format: $withval],1)
AC_DEFINE_UNQUOTED([GERBTOEPS_DEFAULT_BORDER],[$border],[Default border size])
(i'm still not sure if double quotes [[...]] are the right thing or not)
In main.c, i read the environment variable, then if unused, i use the
default border from config.h.