add --enable-generate-man-pages configure switch (default: enabled)

This forces generation of man pages, even if cached ones exists. This
"fixes" a typical release tarball nit. While it is hackish, the
benefit is clear given the history of failed tarball releases since
we changed the cached man page handling. It was just too easy to get
that wrong.
cosmetic: fix some gcc --pedantic messages
Merge remote-tracking branch 'github/v7-stable-th-coverity' into v7-stable
Merge branch 'v7-stable' of git+ssh://git.adiscon.com/git/rsyslog into v7-stable
regression fix: invalid ptr was passed

happend by merging patches this morning, never released
testbench: do no longer rely in some text on specific hostname
testbench: another shot at dynamically checking HOSTNAME property
add file missing in last commit
testbench: change some control files to use dynamic hostname
testbench regression: some other tests failed due to new HOSTNAME logic
bugfix: make dist failed when GUARDTIME or LIBGCRYPT feature was disabled
Merge branch 'v7-stable' of https://github.com/rsyslog/rsyslog into v7-stable
fix compiler warnings on some platforms
imptcp: fix printf format type
bugfix: plug a memleak in imuxsock

Error: RESOURCE_LEAK (CWE-772):
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:584: alloc_arg: "ratelimitNew(ratelimit_t **, char *, char *)" allocates memory that is stored into "rl".
rsyslog-7.4.10/runtime/ratelimit.c:290:2: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)".
rsyslog-7.4.10/runtime/ratelimit.c:290:2: var_assign: Assigning: "pThis" = "calloc(1UL, 96UL)".
rsyslog-7.4.10/runtime/ratelimit.c:304:2: var_assign: Assigning: "*ppThis" = "pThis".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:585: noescape: Resource "rl" is not freed or pointed-to in function "ratelimitSetLinuxLike(ratelimit_t *, unsigned short, unsigned short)".
rsyslog-7.4.10/runtime/ratelimit.c:312:36: noescape: "ratelimitSetLinuxLike(ratelimit_t *, unsigned short, unsigned short)" does not free or save its pointer parameter "ratelimit".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:586: noescape: Resource "rl" is not freed or pointed-to in function "ratelimitSetSeverity(ratelimit_t *, intTiny)".
rsyslog-7.4.10/runtime/ratelimit.c:345:35: noescape: "ratelimitSetSeverity(ratelimit_t *, intTiny)" does not free or save its pointer parameter "ratelimit".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:599: leaked_storage: Variable "rl" going out of scope leaks the storage it points to.
bugfix: plug memleaks and refactor the SubmitMsg function

Error: RESOURCE_LEAK (CWE-772):
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:797: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:797: var_assign: Assigning: "pmsgbuf" = storage returned from "malloc(lenRcv + 4096)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:822: noescape: Resource "pmsgbuf" is not freed or pointed-to in function "memcpy(void * restrict, void const * restrict, size_t)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:823: noescape: Resource "pmsgbuf + lenRcv" is not freed or pointed-to in function "memcpy(void * restrict, void const * restrict, size_t)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:828: noescape: Resource "pmsgbuf + toffs" is not freed or pointed-to in function "memcpy(void * restrict, void const * restrict, size_t)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:851: var_assign: Assigning: "pRcv" = "pmsgbuf".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:858: noescape: Resource "(char *)pRcv" is not freed or pointed-to in function "MsgSetRawMsg(msg_t *, char *, size_t)".
rsyslog-7.4.10/runtime/msg.c:2403:39: noescape: "MsgSetRawMsg(msg_t *, char *, size_t)" does not free or save its pointer parameter "pszRawMsg".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:928: leaked_storage: Variable "pmsgbuf" going out of scope leaks the storage it points to.
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:928: leaked_storage: Returning without freeing "pRcv" leaks the storage that it points to.

Error: RESOURCE_LEAK (CWE-772):
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:797: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:797: var_assign: Assigning: "pmsgbuf" = storage returned from "malloc(lenRcv + 4096)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:928: leaked_storage: Variable "pmsgbuf" going out of scope leaks the storage it points to.
bugfix: check return value of malloc()

Error: NULL_RETURNS (CWE-476):
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:1336: returned_null: Function "malloc(size_t)" returns null (checked 140 out of 168 times).
rsyslog-7.4.10/action.c:1197: example_checked: Example 1: "malloc(batchNumMsgs(pBatch) * 1UL)" has its value checked in "(active = malloc(batchNumMsgs(pBatch) * 1UL)) == NULL".
rsyslog-7.4.10/grammar/lexer.l:302: example_checked: Example 2: "malloc(40UL)" has its value checked in "(bs = malloc(40UL)) == NULL".
rsyslog-7.4.10/grammar/rainerscript.c:2483: example_checked: Example 3: "malloc(8UL)" has its value checked in "(ar->arr = malloc(8UL)) == NULL".
rsyslog-7.4.10/plugins/imklog/bsd.c:221: example_checked: Example 4: "malloc(1UL * (iMaxLine + 1))" has its value checked in "(pRcv = (uchar *)malloc(1UL * (iMaxLine + 1))) == NULL".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:968: example_checked: Example 5: "malloc(1UL * (iMaxLine + 1))" has its value checked in "(pRcv = (uchar *)malloc(1UL * (iMaxLine + 1))) == NULL".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:1336: var_assigned: Assigning: "pReadfds" = null return value from "malloc(size_t)".
rsyslog-7.4.10/plugins/imuxsock/imuxsock.c:1355: dereference: Dereferencing a pointer that might be null "pReadfds" when calling "memset(void *, int, size_t)".
Remove redundant return
bugfix: correct array boundaries check

Error: OVERRUN (CWE-119):
rsyslog-7.4.10/plugins/mmcount/mmcount.c:264: cond_at_most: Checking "pMsg->iSeverity <= 8" implies that the value of "pMsg->iSeverity" may be up to 8 on the true branch.
rsyslog-7.4.10/plugins/mmcount/mmcount.c:265: overrun-local: Overrunning array "pData->severity" of 8 4-byte elements at element index 8 (byte offset 32) using index "pMsg->iSeverity" (which evaluates to 8).
bugfix: plug a memleak in mmsnmptrapd

Error: RESOURCE_LEAK (CWE-772):
rsyslog-7.4.10/plugins/mmsnmptrapd/mmsnmptrapd.c:292: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
rsyslog-7.4.10/plugins/mmsnmptrapd/mmsnmptrapd.c:292: var_assign: Assigning: "node" = storage returned from "malloc(24UL)".
rsyslog-7.4.10/plugins/mmsnmptrapd/mmsnmptrapd.c:303: leaked_storage: Variable "node" going out of scope leaks the storage it points to.