Remove stale lines of non-existing tests.
Properly kill processes holding CFEngine locks (Redmine #2330)

Backport Mikhail's abf7f75e from master.
Cut off a couple of zeros so we don't overflow on 32-bit.
Properly implement fake nanosleep in unit test
Properly calculate sleep time in ProcessWaitUntil{Stopped,Exited}

Backport of Mikhail's fc5ae177.
Solaris and AIX implementation of process information gathering

(Redmine #2330)

Backport of Mikhail's 77320b6c.
Work around procfs.h refusing to compile in 32-bit LFS environment
Renamed process.h to process_lib.h due to conflict on windows
AIX missing strrstr() and mkdtemp()
Unbashify the autogen script
Temporarily remove test due to AIX incompatibility
INFINITY undefined on Solaris 8
gethostname() has non-standard declaration on Solaris 8-9.
typo
Our testall script is no longer sh-compatible.
Find appropriate grep on weird platforms
Replace date +%s in testall with more widely compatible code (Mantis #1254)

In order to calculate the total run time of acceptance tests, the
testall script needs the UNIX seconds - a time() call - of the start
and end times of the test runs. It currently uses the command
"date +%s" to get these times.

Many older OS platforms - such as HP-UX 11.11, Solaris 8 and 9, and
others - do not support the "%s" format for the date command.

This patch creates a unix_seconds() subroutine which uses the modern
"date +%s" command if available, falls back to a Perl "print time()"
call, and failing that it falls back to pulling the octal date out of
a pax-created cpio header for an empty temporary file and converting
it to decimal using "bc."

This code will work on every POSIX-compliant platform (since the
pax/cpio/bc approach is strictly POSIX) as well as any platorm that
has a copy of Perl in the path.

Conflicts:
	tests/acceptance/testall
Old unix compatibility.
CFENGINE_TEST_OVERRIDE_WORKDIR is exported

and acceptance tests work as they should, without reading system directories.
Merge pull request #480 from jimis/3.3.x

Backport Mikhail's abf7f75 from master