X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Fusrp_fusb_tech.m4;fp=config%2Fusrp_fusb_tech.m4;h=bb1f73cf9d6978b30ec38d390b3fee8fbde27127;hb=c8ed035413582319e606104d00ab69f919ab6038;hp=789e03c22fe64a62a186252d934ed5803992f437;hpb=10a360549723bc9f64c97ed9bfa0acaaf514ac87;p=debian%2Fgnuradio diff --git a/config/usrp_fusb_tech.m4 b/config/usrp_fusb_tech.m4 index 789e03c2..bb1f73cf 100644 --- a/config/usrp_fusb_tech.m4 +++ b/config/usrp_fusb_tech.m4 @@ -41,6 +41,13 @@ AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ darwin*) FUSB_TECH=darwin ;; cygwin*|win*|mingw*) FUSB_TECH=win32 ;; + *bsd*) + AC_MSG_CHECKING([for RA/WB]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[struct usb_bulk_ra_wb_opt o; + ioctl(0, USB_SET_BULK_RA, &o);]])], + [FUSB_TECH=ra_wb], + [FUSB_TECH=generic]) ;; *) FUSB_TECH=generic ;; esac @@ -51,5 +58,6 @@ AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ AM_CONDITIONAL(FUSB_TECH_win32, test $FUSB_TECH = win32) AM_CONDITIONAL(FUSB_TECH_generic, test $FUSB_TECH = generic) AM_CONDITIONAL(FUSB_TECH_linux, test $FUSB_TECH = linux) + AM_CONDITIONAL(FUSB_TECH_ra_wb, test $FUSB_TECH = ra_wb) ])