diff options
author | Josh Blum <josh@joshknows.com> | 2010-01-27 00:19:55 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-01-27 00:19:55 -0800 |
commit | fc1bffcfd9761c1f60cf322bb58e7f9c8096a5c0 (patch) | |
tree | 9a926b084f836c6dba9fe8eafe0c583b4c780b5a /configure.ac | |
parent | a98e387578a3aceb15e2bcce4a9cc54d78c30dda (diff) | |
download | uhd-fc1bffcfd9761c1f60cf322bb58e7f9c8096a5c0.tar.gz uhd-fc1bffcfd9761c1f60cf322bb58e7f9c8096a5c0.tar.bz2 uhd-fc1bffcfd9761c1f60cf322bb58e7f9c8096a5c0.zip |
Added boost system (needed with asio) and date time (will need for threading/sleeping).
Added to dboard interface to get clock rates.
Added OTHERS properties and some documentation type notes.
Added more TODOs to the utils.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac index f2ccce656..925505745 100644 --- a/configure.ac +++ b/configure.ac @@ -19,19 +19,12 @@ LT_INIT ## Check Boost ################################################## AC_DEFUN([UHD_CHECK_BOOST],[$1 - AC_LANG_PUSH([C++]) - AC_COMPILE_IFELSE(AC_LANG_PROGRAM( - [[@%:@include <boost/static_assert.hpp>]], - [[ - #ifdef $2 - BOOST_STATIC_ASSERT(true); - #else - BOOST_STATIC_ASSERT(false); - #endif - return 0; - ]] - ), [$3], [$4]) - AC_LANG_POP([C++]) + AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[[ + #ifndef $2 + fail + #endif + return 0; + ]]), [$3], [$4]) ]) UHD_CHECK_BOOST( @@ -43,6 +36,18 @@ UHD_CHECK_BOOST( [], [AC_MSG_ERROR("cannot find boost asio")] ) UHD_CHECK_BOOST( + [AX_BOOST_DATE_TIME], [HAVE_BOOST_DATE_TIME], + [], [AC_MSG_ERROR("cannot find boost date time")] +) +UHD_CHECK_BOOST( + [AX_BOOST_PROGRAM_OPTIONS], [HAVE_BOOST_PROGRAM_OPTIONS], + [], [AC_MSG_ERROR("cannot find boost program options")] +) +UHD_CHECK_BOOST( + [AX_BOOST_SYSTEM], [HAVE_BOOST_SYSTEM], + [], [AC_MSG_ERROR("cannot find boost system")] +) +UHD_CHECK_BOOST( [AX_BOOST_THREAD], [HAVE_BOOST_THREAD], [], [AC_MSG_ERROR("cannot find boost thread")] ) |