Hi -
While hacking on pmwebapi today (yey, it can enumerate metrics now!),
I came across an apparently designed-in limitation of the autoconf
system used in pcp. It is that unprivileged developers appear unable
to install the entire build under some random user directory for
testing: a lot of paths get hard-coded to /var or /etc or whatnot,
despite configure's --prefix option. (I opened BZ921 about this.)
Would you welcome improving this, so that pcp's pcp.conf files etc.
all start to respect --prefix, and the various tools become willing to
run out of any particular installation tree? Among other things, this
would involve being able to bypass stuff like this in configure.in:
pcp_var_dir=`eval echo $localstatedir`
pcp_var_dir=`eval echo $pcp_var_dir`
if test -z "`echo $pcp_var_dir | sed 's;/.*\$;;'`"
then
if test $target_os = mingw
then
pcp_var_dir=
elif test -d /var/lib
then
pcp_var_dir=/var/lib/pcp
elif test -d /var
then
pcp_var_dir=/var/pcp
elif test -d /usr/local
then
pcp_var_dir=/usr/local/pcp
else
pcp_var_dir=/usr
fi
fi
- FChE
|