1 dnl Copyright 2001,2002,2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc.
3 dnl This file is part of GNU Radio
5 dnl GNU Radio is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3, or (at your option)
10 dnl GNU Radio is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with GNU Radio; see the file COPYING. If not, write to
17 dnl the Free Software Foundation, Inc., 51 Franklin Street,
18 dnl Boston, MA 02110-1301, USA.
20 AC_DEFUN([GRC_GNURADIO_CORE],[
21 GRC_ENABLE(gnuradio-core)
23 GRC_WITH(gnuradio-core, [
24 dnl gnuradio-core has some extra defines if --with specified
25 gnuradio_core_SWIGDIRPATH="$gnuradio_core_INCLUDEDIR/swig"
26 gnuradio_core_I="$gnuradio_core_SWIGDIRPATH/gnuradio.i"
27 gnuradio_core_SWIG_INCLUDES="-I$gnuradio_core_SWIGDIRPATH"
28 gnuradio_core_PYDIRPATH=$pythondir
31 dnl Don't do gnuradio-core if gruel or omnithread skipped
32 GRC_CHECK_DEPENDENCY(gnuradio-core, gruel)
33 GRC_CHECK_DEPENDENCY(gnuradio-core, omnithread)
35 dnl If execution gets to here, $passed will be:
36 dnl with : if the --with code didn't error out
37 dnl yes : if the --enable code passed muster and all dependencies are met
39 if test $passed = yes; then
40 dnl look for fast CBLAS for GSL, but don't complain if not found
43 PKG_CHECK_MODULES(GSL, gsl >= 1.10,
44 [], dnl FIXME remove -lgslcblas from GSL_LIBS if we found a better CBLAS_LIBS above
45 [passed=no;AC_MSG_RESULT([gnuradio-core requires package gsl, not found.])])
48 if test $passed != with; then
49 dnl how and where to find INCLUDES and LA and such
50 gnuradio_core_INCLUDES="\
51 -I\${abs_top_srcdir}/gnuradio-core/src/lib/runtime \
52 -I\${abs_top_srcdir}/gnuradio-core/src/lib/general \
53 -I\${abs_top_builddir}/gnuradio-core/src/lib/general \
54 -I\${abs_top_srcdir}/gnuradio-core/src/lib/gengen \
55 -I\${abs_top_builddir}/gnuradio-core/src/lib/gengen \
56 -I\${abs_top_srcdir}/gnuradio-core/src/lib/filter \
57 -I\${abs_top_builddir}/gnuradio-core/src/lib/filter \
58 -I\${abs_top_srcdir}/gnuradio-core/src/lib/reed-solomon \
59 -I\${abs_top_srcdir}/gnuradio-core/src/lib/viterbi \
60 -I\${abs_top_srcdir}/gnuradio-core/src/lib/io \
61 -I\${abs_top_srcdir}/gnuradio-core/src/lib/g72x \
62 -I\${abs_top_srcdir}/gnuradio-core/src/lib/swig \
63 -I\${abs_top_builddir}/gnuradio-core/src/lib/swig \
66 gnuradio_core_LA="\${abs_top_builddir}/gnuradio-core/src/lib/libgnuradio-core.la"
67 gnuradio_core_I="\${abs_top_srcdir}/gnuradio-core/src/lib/swig/gnuradio.i"
68 gnuradio_core_LIBDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib:\${abs_top_builddir}/gnuradio-core/src/lib/.libs"
69 gnuradio_core_SWIGDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib/swig:\${abs_top_builddir}/gnuradio-core/src/lib/swig/.libs:\${abs_top_srcdir}/gnuradio-core/src/lib/swig"
70 gnuradio_core_PYDIRPATH="\${abs_top_srcdir}/gnuradio-core/src/python"
72 dnl kludge up initial swig dependency files
73 AC_CONFIG_COMMANDS([swig_deps], [
74 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_runtime.d
75 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_general.d
76 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_gengen.d
77 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_filter.d
78 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_io.d
82 dnl other externally-required gnuradio-core variables
83 AC_SUBST(gnuradio_core_I)
84 AC_SUBST(gnuradio_core_SWIGDIRPATH)
85 AC_SUBST(gnuradio_core_PYDIRPATH)
88 gnuradio-core/Makefile
89 gnuradio-core/gnuradio-core.pc \
90 gnuradio-core/doc/Doxyfile \
91 gnuradio-core/doc/Makefile \
92 gnuradio-core/doc/other/Makefile \
93 gnuradio-core/doc/xml-swig/Makefile \
94 gnuradio-core/src/Makefile \
95 gnuradio-core/src/gen_interpolator_taps/Makefile \
96 gnuradio-core/src/lib/Makefile \
97 gnuradio-core/src/lib/filter/Makefile \
98 gnuradio-core/src/lib/g72x/Makefile \
99 gnuradio-core/src/lib/general/Makefile \
100 gnuradio-core/src/lib/general/gr_prefix.cc \
101 gnuradio-core/src/lib/gengen/Makefile \
102 gnuradio-core/src/lib/io/Makefile \
103 gnuradio-core/src/lib/missing/Makefile \
104 gnuradio-core/src/lib/reed-solomon/Makefile \
105 gnuradio-core/src/lib/viterbi/Makefile \
106 gnuradio-core/src/lib/runtime/Makefile \
107 gnuradio-core/src/lib/swig/Makefile \
108 gnuradio-core/src/python/Makefile \
109 gnuradio-core/src/python/bin/Makefile \
110 gnuradio-core/src/python/gnuradio/Makefile \
111 gnuradio-core/src/python/gnuradio/blks2/Makefile \
112 gnuradio-core/src/python/gnuradio/blks2impl/Makefile \
113 gnuradio-core/src/python/gnuradio/gr/Makefile \
114 gnuradio-core/src/python/gnuradio/gr/run_tests \
115 gnuradio-core/src/python/gnuradio/gru/Makefile \
116 gnuradio-core/src/python/gnuradio/gruimpl/Makefile \
117 gnuradio-core/src/python/gnuradio/vocoder/Makefile \
118 gnuradio-core/src/tests/Makefile \
119 gnuradio-core/src/utils/Makefile \
122 GRC_BUILD_CONDITIONAL(gnuradio-core, [
123 dnl run_tests is created from run_tests.in. Make it executable.
124 AC_CONFIG_COMMANDS([run_tests_core],[chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests])