configure.ac
changeset 1777 a93fc03eeb06
parent 1773 5371f3e5f6a1
child 1809 586be70ff70a
equal deleted inserted replaced
1776:65786b1d3043 1777:a93fc03eeb06
   470     [cycles=0]
   470     [cycles=0]
   471 )
   471 )
   472 
   472 
   473 if test "x${cycles}" = "x1"; then
   473 if test "x${cycles}" = "x1"; then
   474     AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
   474     AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
       
   475 fi
       
   476 
       
   477 #------------------------------------------------------------------------------
       
   478 # High-resolution timer support
       
   479 #------------------------------------------------------------------------------
       
   480 
       
   481 AC_ARG_ENABLE([hrtimer],
       
   482     AS_HELP_STRING([--enable-hrtimer],
       
   483                    [Use high-resolution timer for scheduling (default: no)]),
       
   484     [
       
   485         case "${enableval}" in
       
   486             yes) hrtimer=1
       
   487                 ;;
       
   488             no) hrtimer=0
       
   489                 ;;
       
   490             *) AC_MSG_ERROR([Invalid value for --enable-hrtimer])
       
   491                 ;;
       
   492         esac
       
   493     ],
       
   494     [hrtimer=0]
       
   495 )
       
   496 
       
   497 if test "x${hrtimer}" = "x1"; then
       
   498     AC_DEFINE([EC_USE_HRTIMER], [1], [Use hrtimer for scheduling])
   475 fi
   499 fi
   476 
   500 
   477 #------------------------------------------------------------------------------
   501 #------------------------------------------------------------------------------
   478 # Command-line tool
   502 # Command-line tool
   479 #-----------------------------------------------------------------------------
   503 #-----------------------------------------------------------------------------