X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure.ac;h=7eb4628d7fbfa6bf84f6595b51762b710ca7ea9e;hb=8633dfb3c90dd00abd97ddfe6653d56d94ad997e;hp=c00af332d9e3264098e38632569365bb9ffe8cbf;hpb=0f8915455b045c2bff6b4c9dd220912ab450af47;p=platform%2Fupstream%2Flibusb.git diff --git a/configure.ac b/configure.ac index c00af33..7eb4628 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,16 @@ case $backend in linux) AC_DEFINE(OS_LINUX, 1, [Linux backend]) AC_SUBST(OS_LINUX) + AC_ARG_ENABLE([usd], + [AC_HELP_STRING([--enable-usd], [Use USB security daemon to obtain dev node fds [default=no]])], + [], [enable_usd="no"]) + if test "x$enable_usd" = "xyes"; then + PKG_CHECK_MODULES([USD], [capi-system-usbhost-usd]) + AC_DEFINE(USE_USD, 1, [Use USB security daemon to obtain dev node fds]) + fi + + AC_SUBST(USE_USD) + AC_SEARCH_LIBS(clock_gettime, rt, [], [], -pthread) AC_ARG_ENABLE([udev], [AC_HELP_STRING([--enable-udev], [use udev for device enumeration and hotplug support (recommended) [default=yes]])], @@ -213,6 +223,7 @@ AM_CONDITIONAL(THREADS_POSIX, test "x$threads" = xposix) AM_CONDITIONAL(CREATE_IMPORT_LIB, test "x$create_import_lib" = "xyes") AM_CONDITIONAL(USE_UDEV, test "x$enable_udev" = xyes) AM_CONDITIONAL(USE_USBDK, test "x$enable_usbdk" = xyes) +AM_CONDITIONAL(USE_USD, test "x$enable_usd" = xyes) if test "$threads" = posix; then AC_DEFINE(THREADS_POSIX, 1, [Use POSIX Threads]) fi