$OpenBSD: patch-configure_ac,v 1.1 2014/01/09 12:06:18 stsp Exp $
--- configure.ac.orig	Tue Jan  7 13:28:50 2014
+++ configure.ac	Tue Jan  7 13:29:52 2014
@@ -28,8 +28,8 @@ if test "$disable_libusb_1_0" = "no"; then
   ifdef([PKG_CHECK_MODULES],
         [PKG_CHECK_MODULES(LIBUSB_1_0, [ libusb-1.0 >= 1.0.0 ], have_libusb_1_0=yes, have_libusb_1_0=no)],
         [have_libusb_1_0=yes
-  LIBUSB_1_0_CFLAGS=-I/usr/include/libusb-1.0
-  LIBUSB_1_0_LIBS=-lusb-1.0])
+  LIBUSB_1_0_CFLAGS="`pkg-config --cflags libusb-1.0`"
+  LIBUSB_1_0_LIBS="`pkg-config --libs libusb-1.0`"])
   if test "$have_libusb_1_0" = "yes"; then
     AS_ECHO("using libusb_1.0");
     CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS"
