* configure.in, cmake/ConfigureChecks.cmake: added check for setrlimit.