[autobuild] clock_gettime() -lrt with glibc < 2.17
commit4d920466f7a8163adb3de2862b48c53b24a9a915
authorGlenn Strauss <gstrauss@gluelogic.com>
Mon, 18 Jul 2016 18:24:39 +0000 (18 14:24 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Tue, 19 Jul 2016 03:24:42 +0000 (18 23:24 -0400)
treeca0c2cc0b991f35563de67b91fd03f438e1b6509
parenta3ec906ef97fae05291f335210d66ae4b7260d4a
[autobuild] clock_gettime() -lrt with glibc < 2.17

clock_gettime() needs -lrt with glibc < 2.17,
and possibly other platforms

On systems without clock_gettime (-cough- Mac OSX -cough-),
use gettimeofday() (deprecated in POSIX.1-2008) which is slightly
lower precision, but reasonably fast in execution.  References:
http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x
http://stackoverflow.com/questions/11680461/monotonic-clock-on-osx
https://discussions.apple.com/thread/6023936?tstart=0
configure.ac
src/connections.c
src/log.c
src/log.h
src/mod_accesslog.c