src/Makefile: Link rrdcached against ALL_LIBS directly.

rrdcached uses glib and, thus, needs to be linked against the lib directly.
While some linkers work fine since librrd_th is linked against ALL_LIBS, some
other linkers don't.
Fixed various unused variable compiler warnings.
Fixed invalid type conversions.
rrd_daemon: Fixed the resolved_path argument passed to realpath().

The function expects a character pointer, not a pointer to an array of
character pointers.
Merge pull request #460 from tokkee/build

Fixed various compiler warnings
Fix #463 - account for step in xport json

Final element check changed from end to end-step
Merge pull request #464 from aelse/issue463-fix-xport-json

Fix #463 - account for step in xport json
added PREDICTPERC function
there is one still open question: should we interpolate to get the final value?
Say: if we have 8 values, and we want thd 95th percventile, then
we should actually take the 6.65th 0-based index value (=95/100*(8-1)).
with the current implementation we round, so we return actually the 100th percentile.
what we could also do is:
value=val[floor(idx)]+(idx-floor(idx))*(val[floor(idx)+1]-val[floor(idx)])
(besides some boundry checking for the explicit percentile 100)

this should get decided prior to final merging
added interpolation for percentile
Merge pull request #465 from msperl/master-predictperc

added PREDICTPERC(entil) CDEF function
that file should be called bootstrap it seems
make file locking compiletime configurable
make file locking compiletime configurable
autogen.sh is now bootstrap!
Merge branch 'master' into flock-option
Merge pull request #467 from oetiker/flock-option

Flock option
try to make coveralls work
rrdcreate: support scale suffix for heartbeat/steps/rows

This feature allows this opaque create specification:

  rrdtool create power1.rrd \
    --start 0 --step 1 \
    DS:watts:GAUGE:300:0:24000 \
    RRA:AVERAGE:0.5:1:864000 \
    RRA:AVERAGE:0.5:60:129600 \
    RRA:AVERAGE:0.5:3600:13392 \
    RRA:AVERAGE:0.5:86400:3660

to be expressed with more understandable durations:

  rrdtool create power2.rrd \
    --start 0 --step 1s \
    DS:watts:GAUGE:5m:0:24000 \
    RRA:AVERAGE:0.5:1s:10d \
    RRA:AVERAGE:0.5:1m:90d \
    RRA:AVERAGE:0.5:1h:18M \
    RRA:AVERAGE:0.5:1d:10y

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
rrdcreate: improve scale support

- Fix missed diagnostic for negative values accepted by strtoul.
- Add detailed diagnostics for parsing failures.
- Add diagnostic when duration-based RRA steps (rows) are not multiples of
  PDP interval (RRA span).
- Fix row count when PDP interval not one second.
- Extend documentation to special-function RRA example.
Merge pull request #468 from pabigot/enh-create-with-dur

rrdcreate: support scale suffix for heartbeat/steps/rows