Statistics
| Branch: | Tag: | Revision:

root / config / grc_volk.m4 @ 42719e65

History | View | Annotate | Download (1.4 kB)

1 1186ab98 Tom Rondeau
dnl Copyright 2010 Free Software Foundation, Inc.
2 1186ab98 Tom Rondeau
dnl 
3 1186ab98 Tom Rondeau
dnl This file is part of GNU Radio
4 1186ab98 Tom Rondeau
dnl 
5 1186ab98 Tom Rondeau
dnl GNU Radio is free software; you can redistribute it and/or modify
6 1186ab98 Tom Rondeau
dnl it under the terms of the GNU General Public License as published by
7 1186ab98 Tom Rondeau
dnl the Free Software Foundation; either version 3, or (at your option)
8 1186ab98 Tom Rondeau
dnl any later version.
9 1186ab98 Tom Rondeau
dnl 
10 1186ab98 Tom Rondeau
dnl GNU Radio is distributed in the hope that it will be useful,
11 1186ab98 Tom Rondeau
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 1186ab98 Tom Rondeau
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 1186ab98 Tom Rondeau
dnl GNU General Public License for more details.
14 1186ab98 Tom Rondeau
dnl 
15 1186ab98 Tom Rondeau
dnl You should have received a copy of the GNU General Public License
16 1186ab98 Tom Rondeau
dnl along with GNU Radio; see the file COPYING.  If not, write to
17 1186ab98 Tom Rondeau
dnl the Free Software Foundation, Inc., 51 Franklin Street,
18 1186ab98 Tom Rondeau
dnl Boston, MA 02110-1301, USA.
19 1186ab98 Tom Rondeau
20 1186ab98 Tom Rondeau
AC_DEFUN([GRC_VOLK],[
21 1186ab98 Tom Rondeau
    GRC_ENABLE(volk)
22 1186ab98 Tom Rondeau
    GRC_WITH(volk)
23 1186ab98 Tom Rondeau
24 1186ab98 Tom Rondeau
    dnl volk uses a subsidiary configure.ac
25 1186ab98 Tom Rondeau
    AC_CONFIG_SUBDIRS([volk])
26 1186ab98 Tom Rondeau
27 1186ab98 Tom Rondeau
    dnl If execution gets to here, $passed will be:
28 1186ab98 Tom Rondeau
    dnl   with : if the --with code didn't error out
29 1186ab98 Tom Rondeau
    dnl   yes  : if the --enable code passed muster and all dependencies are met
30 1186ab98 Tom Rondeau
    dnl   no   : otherwise
31 1186ab98 Tom Rondeau
    if test $passed != with; then
32 a72fa7a1 Tom Rondeau
    	dnl how and where to find INCLUDES and LA
33 a72fa7a1 Tom Rondeau
	volk_INCLUDES="-I\${abs_top_srcdir}/volk/include"
34 a72fa7a1 Tom Rondeau
	volk_LA="\${abs_top_builddir}/volk/lib/libvolk.la \
35 a72fa7a1 Tom Rondeau
	         \${abs_top_builddir}/volk/lib/libvolk_runtime.la"
36 1186ab98 Tom Rondeau
    fi
37 1186ab98 Tom Rondeau
38 1186ab98 Tom Rondeau
    GRC_BUILD_CONDITIONAL(volk, [])
39 1186ab98 Tom Rondeau
])