Merge r6461:6464 from jcorgan/t162-staging into trunk.
[debian/gnuradio] / config / grc_gnuradio_core.m4
1 dnl Copyright 2001,2002,2003,2004,2005,2006,2007 Free Software Foundation, Inc.
2 dnl 
3 dnl This file is part of GNU Radio
4 dnl 
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)
8 dnl any later version.
9 dnl 
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.
14 dnl 
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.
19
20 AC_DEFUN([GRC_GNURADIO_CORE],[
21     GRC_ENABLE([gnuradio-core])
22
23     AC_CONFIG_FILES([ \
24         gnuradio-core/Makefile
25         gnuradio-core/gnuradio-core.pc \
26         gnuradio-core/doc/Doxyfile \
27         gnuradio-core/doc/Makefile \
28         gnuradio-core/doc/other/Makefile \
29         gnuradio-core/doc/xml/Makefile \
30         gnuradio-core/src/Makefile \
31         gnuradio-core/src/gen_interpolator_taps/Makefile \
32         gnuradio-core/src/lib/Makefile \
33         gnuradio-core/src/lib/filter/Makefile \
34         gnuradio-core/src/lib/g72x/Makefile \
35         gnuradio-core/src/lib/general/Makefile \
36         gnuradio-core/src/lib/general/gr_prefix.cc \
37         gnuradio-core/src/lib/gengen/Makefile \
38         gnuradio-core/src/lib/io/Makefile \
39         gnuradio-core/src/lib/missing/Makefile \
40         gnuradio-core/src/lib/reed-solomon/Makefile \
41         gnuradio-core/src/lib/runtime/Makefile \
42         gnuradio-core/src/lib/swig/Makefile \
43         gnuradio-core/src/python/Makefile \
44         gnuradio-core/src/python/bin/Makefile \
45         gnuradio-core/src/python/gnuradio/Makefile \
46         gnuradio-core/src/python/gnuradio/blks/Makefile \
47         gnuradio-core/src/python/gnuradio/blksimpl/Makefile \
48         gnuradio-core/src/python/gnuradio/blks2/Makefile \
49         gnuradio-core/src/python/gnuradio/blks2impl/Makefile \
50         gnuradio-core/src/python/gnuradio/gr/Makefile \
51         gnuradio-core/src/python/gnuradio/gr/run_tests \
52         gnuradio-core/src/python/gnuradio/gru/Makefile \
53         gnuradio-core/src/python/gnuradio/gruimpl/Makefile \
54         gnuradio-core/src/python/gnuradio/vocoder/Makefile \
55         gnuradio-core/src/tests/Makefile \
56         gnuradio-core/src/utils/Makefile \
57     ])
58     
59     passed=yes
60     # Don't do gnuradio-core if omnithread skipped
61     # There *has* to be a better way to check if a value is in a string
62     for dir in $skipped_dirs
63     do
64         if test x$dir = xomnithread; then
65             AC_MSG_RESULT([Component gnuradio-core requires omnithread, which is not being built.])
66             passed=no
67         fi
68     done
69
70     GRC_BUILD_CONDITIONAL([gnuradio-core],[
71         dnl run_tests is created from run_tests.in.  Make it executable.
72         AC_CONFIG_COMMANDS([run_tests_core], [chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests])
73
74         dnl kludge up initial swig dependency files
75         AC_CONFIG_COMMANDS([swig_deps], [
76                 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_runtime.d
77                 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_general.d
78                 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_gengen.d
79                 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_filter.d
80                 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_io.d
81                 ])
82     ])
83 ])