--- embedaddon/arping/configure 2016/10/18 13:16:10 1.1.1.3 +++ embedaddon/arping/configure 2017/01/23 14:36:33 1.1.1.3.2.1 @@ -625,8 +625,6 @@ ac_includes_default="\ ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS -HAVE_CLOCK_MONOTONIC_FALSE -HAVE_CLOCK_MONOTONIC_TRUE LIBOBJS EGREP GREP @@ -5144,56 +5142,27 @@ fi # check for CLOCK_MONOTONIC -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5 -$as_echo_n "checking for CLOCK_MONOTONIC... " >&6; } -if ${ac_cv_have_clock_monotonic+:} false; then : - $as_echo_n "(cached) " >&6 -else +#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 - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -int main() { -struct timespec ts; -exit(!!clock_gettime(CLOCK_MONOTONIC, &ts)); -} - -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_have_clock_monotonic="yes" -else - ac_cv_have_clock_monotonic="no" - -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_monotonic" >&5 -$as_echo "$ac_cv_have_clock_monotonic" >&6; } - if test x$ac_cv_have_clock_monotonic = xyes; then - HAVE_CLOCK_MONOTONIC_TRUE= - HAVE_CLOCK_MONOTONIC_FALSE='#' -else - HAVE_CLOCK_MONOTONIC_TRUE='#' - HAVE_CLOCK_MONOTONIC_FALSE= -fi - -if test x$ac_cv_have_clock_monotonic = xyes; then - $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h -fi +#fi ac_config_files="$ac_config_files Makefile" @@ -5328,10 +5297,6 @@ Usually this means the macro was only invoked conditio fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${HAVE_CLOCK_MONOTONIC_TRUE}" && test -z "${HAVE_CLOCK_MONOTONIC_FALSE}"; then - as_fn_error $? "conditional \"HAVE_CLOCK_MONOTONIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi