Added an option for configure '--with-logdir=>directory>'. When not specified it is the same as 'WORKDIR'.
This came up when building the debian package. We need to change the location of the logfiles.  For testing we can override it with
an environment variable 'CFENGINE_TEST_OVERRIDE_LOGDIR' and also defined 'sys.logdir', eg:

body common control
{
    bundlesequence => { test };
}

bundle agent test
{
    reports:
            any::
                "$(sys.workdir)";
                "$(sys.logdir)";
}
Also change logidr --with-workdir is specified
Merge pull request #1004 from basvandervlies/loggdir_configurable

Added an option for configure '--with-logdir=>directory>'.