cleanup: fix make distclean in doc

RRD*.pod were in the repository, but were always generated and were
removed by "make distclean", resulting in an unexpected response from
"git status".  Resolve this by removing them from the repository.

Also eliminate the wildcards from CLEANFILES, instead explicitly listing
all derived files.

Also add a couple files to EXTRADIST (PDF documentation and the RRD*.pod
files).

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
tests: add test for new rrdcreate feature
tests: add missed rrd_scaled_duration diagnostic
tests: add another rrdcreate scaled test
rrd_scaled_duration: refactor as utility function

Move the infrastructure supporting expression of counts and durations by
suffixed integers into librrd where it can be used by other programs.
Clean up the documentation to remove redundancies.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
rrd_fetch: improve resolution-related parameters

The interface now accepts scaled durations (e.g., 5m) for the
resolution.

A new option automatically performs the start time alignment discussed
in the documentation.
librrd.pod: fix syntax errors
Merge pull request #473 from pabigot/cleanup-distclean

cleanup: fix make distclean in doc
Merge pull request #470 from pabigot/add-test-for-rrdcreate

tests: add test for new rrdcreate feature
Merge pull request #474 from pabigot/enh-fetch-duration

Use new duration interface in rrdfetch
automake: update dist checks for recent changes

Various files have been added and removed causing the dist and distcheck
Make targets to fail.  This commit fixes dist; distcheck is improved but
is not complete because the bindings Makefile.am assumes the build is
performed in the source tree.  (Standard autotool practice now is to
require support for separated builds.)

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
autoconf: rework config file locations

If we assume somebody puts the src directory in the include file path to
CC, we don't need relative symlinks to rrd_config.h which will make
separated builds much easier to support.  Then we don't need to have the
config files in the root directory and symlinks back and forth between
there and src.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
gitignore: add for lua and ruby bindings
automake: rework for separated builds

Standard practice (including the assumptions of make distcheck) is that
the system can be built in an out-of-tree directory referencing sources
in a read-only filesystem.  The language-specific bindings build
infrastructure, particularly for perl, makes that difficult but
achievable.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
automake: full support for make check

Presence of the TESTS variable adds check as a target, but for this to
work completely all the test infrastructure needs to be part of the
distribution package, which is easiest if there's a Makefile.am in that
directory.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
gitigore: add doc files created only by make dist
make distcheck: complete updates required for support

Rework the tests so they can run in a situation where the source tests
directory is read-only.  Also fix a couple minor issues with make
distclean and make distuninstallcheck.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Merge pull request #475 from pabigot/fix-dist

Fix autotools dist support
text changes in the syntax definition

in the line of XPORT statement fixed a typo and the legend was marked optional
mods in syntax of commands added two small texts

modifications in the syntax of LINE, HRULE and VRULE commands some places
added HRULE hidden legend default behaviour
added an example for %lf