configure.ac
changeset 1040 d2527675cdd5
parent 945 a5907351e13e
child 1080 088a61306930
equal deleted inserted replaced
1039:2881a83d084f 1040:d2527675cdd5
   486 if test "x${eoe}" = "x1"; then
   486 if test "x${eoe}" = "x1"; then
   487     AC_DEFINE([EC_EOE], [1], [EoE support enabled])
   487     AC_DEFINE([EC_EOE], [1], [EoE support enabled])
   488 fi
   488 fi
   489 AM_CONDITIONAL(ENABLE_EOE, test "x$eoe" = "x1")
   489 AM_CONDITIONAL(ENABLE_EOE, test "x$eoe" = "x1")
   490 AC_SUBST(ENABLE_EOE,[$eoe])
   490 AC_SUBST(ENABLE_EOE,[$eoe])
       
   491 
       
   492 #------------------------------------------------------------------------------
       
   493 # CPU timestamp counter support
       
   494 #------------------------------------------------------------------------------
       
   495 
       
   496 AC_ARG_ENABLE([cycles],
       
   497     AS_HELP_STRING([--enable-cycles],
       
   498                    [Use CPU timestamp counter (default: no)]),
       
   499     [
       
   500         case "${enableval}" in
       
   501             yes) cycles=1
       
   502                 ;;
       
   503             no) cycles=0
       
   504                 ;;
       
   505             *) AC_MSG_ERROR([Invalid value for --enable-cycles])
       
   506                 ;;
       
   507         esac
       
   508     ],
       
   509     [cycles=0]
       
   510 )
       
   511 
       
   512 if test "x${cycles}" = "x1"; then
       
   513     AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
       
   514 fi
   491 
   515 
   492 #------------------------------------------------------------------------------
   516 #------------------------------------------------------------------------------
   493 
   517 
   494 AC_CONFIG_FILES([
   518 AC_CONFIG_FILES([
   495         Doxyfile
   519         Doxyfile