X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Fusrp_fusb_tech.m4;h=b99cf243207c43ba9210732e7346172d0c994a93;hb=ceeccd034f16f0e74cde8bad57f8975159b0d217;hp=200cb36af3bdce18210967ca2942226bc86038d5;hpb=265484bfaaaab4f83c43a53c9e0fd307e205e5c4;p=debian%2Fgnuradio diff --git a/config/usrp_fusb_tech.m4 b/config/usrp_fusb_tech.m4 index 200cb36a..b99cf243 100644 --- a/config/usrp_fusb_tech.m4 +++ b/config/usrp_fusb_tech.m4 @@ -1,5 +1,5 @@ dnl -dnl Copyright 2003,2008 Free Software Foundation, Inc. +dnl Copyright 2003,2008,2009 Free Software Foundation, Inc. dnl dnl This file is part of GNU Radio dnl @@ -26,6 +26,7 @@ dnl AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ req_libusb1=no + USE_LIBUSB1=0 AC_ARG_WITH([fusb-tech], AC_HELP_STRING([--with-fusb-tech=OS], [Set fast USB technique (default=auto)]), @@ -36,6 +37,7 @@ AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ libusb1*) FUSB_TECH=libusb1 req_libusb1=yes + USE_LIBUSB1=1 ;; linux*) AC_CHECK_HEADER([linux/usbdevice_fs.h], @@ -77,4 +79,9 @@ AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ AM_CONDITIONAL(FUSB_TECH_linux, test x$FUSB_TECH = xlinux) AM_CONDITIONAL(FUSB_TECH_libusb1, test x$FUSB_TECH = xlibusb1) AM_CONDITIONAL(FUSB_TECH_ra_wb, test x$FUSB_TECH = xra_wb) + + AC_SUBST(USE_LIBUSB1) + AC_CONFIG_FILES([\ + usrp/host/include/usrp/libusb_types.h \ + ]) ])