--- embedaddon/arping/configure.ac 2016/10/18 13:16:10 1.1.1.3 +++ embedaddon/arping/configure.ac 2017/01/23 14:36:33 1.1.1.3.2.1 @@ -89,25 +89,25 @@ fi # check for CLOCK_MONOTONIC -AC_CACHE_CHECK([for CLOCK_MONOTONIC], - ac_cv_have_clock_monotonic, [ - AC_TRY_RUN( - [ -#include -#include -int main() { -struct timespec ts; -exit(!!clock_gettime(CLOCK_MONOTONIC, &ts)); -} - ], - [ ac_cv_have_clock_monotonic="yes" ], - [ ac_cv_have_clock_monotonic="no" ] - ) -]) -AM_CONDITIONAL(HAVE_CLOCK_MONOTONIC, test x$ac_cv_have_clock_monotonic = xyes) -if test x$ac_cv_have_clock_monotonic = xyes; then +#AC_CACHE_CHECK([for CLOCK_MONOTONIC], +# ac_cv_have_clock_monotonic, [ +# AC_TRY_RUN( +# [ +##include +##include +#int main() { +#struct timespec ts; +#exit(!!clock_gettime(CLOCK_MONOTONIC, &ts)); +#} +# ], +# [ ac_cv_have_clock_monotonic="yes" ], +# [ ac_cv_have_clock_monotonic="no" ] +# ) +#]) +#AM_CONDITIONAL(HAVE_CLOCK_MONOTONIC, test x$ac_cv_have_clock_monotonic = xyes) +#if test x$ac_cv_have_clock_monotonic = xyes; then AC_DEFINE([HAVE_CLOCK_MONOTONIC], [1], [Monotonic clock]) -fi +#fi AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([src/Makefile])