case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
*solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
*solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
# For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
# in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
# For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
# in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
#include <stdio.h>
int main(void){
double rrdnan,rrdinf,rrdc,rrdzero;
#include <stdio.h>
int main(void){
double rrdnan,rrdinf,rrdc,rrdzero;
/* The ASYNC means that we schedule the msync and return immediately.
Since we want to see if the modification time is updated upon
msync(), we have to make sure that our asynchronous request
completes before we stat below. In a real application, the
request would be completed at a random time in the future
but for this test we do not want to wait an arbitrary amount of
/* The ASYNC means that we schedule the msync and return immediately.
Since we want to see if the modification time is updated upon
msync(), we have to make sure that our asynchronous request
completes before we stat below. In a real application, the
request would be completed at a random time in the future
but for this test we do not want to wait an arbitrary amount of