configure.ac
changeset 1253 8a081444a89a
parent 1242 632a6b91f8e4
child 1286 88e573e033f1
equal deleted inserted replaced
1252:0b411da5fd24 1253:8a081444a89a
   366 )
   366 )
   367 
   367 
   368 if test "x${cycles}" = "x1"; then
   368 if test "x${cycles}" = "x1"; then
   369     AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
   369     AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
   370 fi
   370 fi
       
   371 
       
   372 #------------------------------------------------------------------------------
       
   373 # Command-line tool
       
   374 #-----------------------------------------------------------------------------
       
   375 
       
   376 AC_ARG_ENABLE([tool],
       
   377     AS_HELP_STRING([--enable-tool],
       
   378                    [Build command-line tool (default: yes)]),
       
   379     [
       
   380         case "${enableval}" in
       
   381             yes) tool=1
       
   382                 ;;
       
   383             no) tool=0
       
   384                 ;;
       
   385             *) AC_MSG_ERROR([Invalid value for --enable-tool])
       
   386                 ;;
       
   387         esac
       
   388     ],
       
   389     [tool=1]
       
   390 )
       
   391 
       
   392 AM_CONDITIONAL(BUILD_TOOL, test "x$tool" = "x1")
   371 
   393 
   372 #------------------------------------------------------------------------------
   394 #------------------------------------------------------------------------------
   373 # Userspace library generation
   395 # Userspace library generation
   374 #------------------------------------------------------------------------------
   396 #------------------------------------------------------------------------------
   375 
   397