-dnl Copyright 2008 Free Software Foundation, Inc.
+dnl Copyright 2008,2010 Free Software Foundation, Inc.
dnl
dnl This file is part of GNU Radio
dnl
AC_DEFUN([GRC_USRP2],[
GRC_ENABLE(usrp2)
- dnl Don't do usrp if omnithread or gruel is skipped
+ dnl firmware uses a subsidiary configure.ac
+ AC_CONFIG_SUBDIRS([usrp2/firmware])
+
+ dnl Don't do usrp if gruel is skipped
GRC_CHECK_DEPENDENCY(usrp2, gruel)
- GRC_CHECK_DEPENDENCY(usrp2, omnithread)
dnl USRP2 host code only works on Linux at the moment
- AC_MSG_CHECKING([whether host_cpu is linux*])
+ AC_MSG_CHECKING([whether host_os is linux*])
case "$host_os" in
linux*)
- AC_MSG_RESULT("yes")
+ AC_MSG_RESULT([yes])
;;
*)
- AC_MSG_RESULT("no")
- echo "USRP2 requires Linux host OS, not found"
+ AC_MSG_RESULT([no])
+ AC_MSG_NOTICE([USRP2 currently requires Linux host OS, not found])
passed="no"
;;
esac
dnl yes : if the --enable code passed muster and all dependencies are met
dnl no : otherwise
if test $passed = yes; then
- dnl Only do firmware if mb-gcc can be found
- AC_CHECK_PROG([MB_GCC],[mb-gcc],[yes],[no])
- if test $MB_GCC = yes; then
- dnl Adds usrp2/firmware to $(subdirs), hierarchical build
- AC_CONFIG_SUBDIRS([usrp2/firmware])
- fi
-
dnl Needed for usrp2_socket_opener
AC_CHECK_HEADERS(arpa/inet.h byteswap.h linux/if_packet.h sys/socket.h sys/un.h)
AC_CHECK_MEMBERS([struct msghdr.msg_control,