comparison configure @ 37125:1236e38abf90

Add clock_gettime() detection in configure.
author iive
date Tue, 10 Jun 2014 13:37:20 +0000
parents a36b0cb6090a
children 2069a5bd4304
comparison
equal deleted inserted replaced
37124:a36b0cb6090a 37125:1236e38abf90
4172 statement_check_broken stddef.h sys/time.h 'struct timeval tv; gettimeofday(&tv, NULL)' || 4172 statement_check_broken stddef.h sys/time.h 'struct timeval tv; gettimeofday(&tv, NULL)' ||
4173 { gettimeofday=no ; def_gettimeofday='#undef HAVE_GETTIMEOFDAY' ; } 4173 { gettimeofday=no ; def_gettimeofday='#undef HAVE_GETTIMEOFDAY' ; }
4174 echores "$gettimeofday" 4174 echores "$gettimeofday"
4175 4175
4176 4176
4177 echocheck "clock_gettime()"
4178 clock_gettime=no
4179 def_clock_gettime='#undef HAVE_CLOCK_GETTIME'
4180 statement_check_broken stddef.h time.h 'struct timespec tp; clock_gettime(CLOCK_MONOTONIC, &tp)' -lrt &&
4181 { clock_gettime=yes ; def_clock_gettime='#define HAVE_CLOCK_GETTIME 1' ; extra_ldflags="$extra_ldflags -lrt" ; }
4182 echores "$clock_gettime"
4183
4184
4177 echocheck "glob()" 4185 echocheck "glob()"
4178 # glob_win disables a Windows-specific glob() replacement. 4186 # glob_win disables a Windows-specific glob() replacement.
4179 glob=yes 4187 glob=yes
4180 glob_win=yes 4188 glob_win=yes
4181 def_glob='#define HAVE_GLOB 1' 4189 def_glob='#define HAVE_GLOB 1'
8833 8841
8834 8842
8835 /* system functions */ 8843 /* system functions */
8836 $def_gethostbyname2 8844 $def_gethostbyname2
8837 $def_gettimeofday 8845 $def_gettimeofday
8846 $def_clock_gettime
8838 $def_glob 8847 $def_glob
8839 $def_langinfo 8848 $def_langinfo
8840 $def_map_memalign 8849 $def_map_memalign
8841 $def_memalign 8850 $def_memalign
8842 $def_nanosleep 8851 $def_nanosleep