summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-12-26 23:05:04 -0800
committerKeith Packard <keithp@keithp.com>2008-12-26 23:05:04 -0800
commit1264c3676e95427bba5d01e05c303d036a7f9eca (patch)
tree94ac4f3ad4c714798c90b7e057c153b67ca0c877 /configure.ac
parentd2d9cfd74fd66836c913c02276e09136d83b35dc (diff)
Switch to libusb-1.0 and use async interface.
The async libusb interface offers substantial performance benefits by not making each command wait for the reply. This makes talking over this interface almost reasonable. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a14c802b..3ae80522 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,7 +30,9 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
+PKG_PROG_PKG_CONFIG
+CFLAGS="-g"
WARN_CFLAGS=""
if test "x$GCC" = "xyes"; then
WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
@@ -57,6 +59,8 @@ fi
AC_MSG_RESULT([$CC_FOR_BUILD])
AC_SUBST(CC_FOR_BUILD)
+PKG_CHECK_MODULES([LIBUSB], [libusb-1.0])
+
AC_MSG_CHECKING([for suffix of executable build tools])
if test $cross_compiling = yes; then
cat >conftest.c <<\_______EOF