Merged r6271:6278 from jcorgan/t182 into trunk. Implements ticket:182.
[debian/gnuradio] / config / grc_gr_utils.m4
1 # Copyright 2007 Free Software Foundation, Inc.
2
3 # This file is part of GNU Radio
4
5 # GNU Radio is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
9
10 # GNU Radio is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with GNU Radio; see the file COPYING.  If not, write to
17 # the Free Software Foundation, Inc., 51 Franklin Street,
18 # Boston, MA 02110-1301, USA.
19
20 AC_DEFUN([GRC_GR_UTILS],[
21     GRC_ENABLE([gr-utils])
22
23     AC_CONFIG_FILES([ \
24         gr-utils/Makefile \
25         gr-utils/src/Makefile \
26         gr-utils/src/lib/Makefile \
27         gr-utils/src/python/Makefile \
28     ])
29
30     passed=yes
31     # Don't do gr-utils if gnuradio-core, usrp, or gr-wxgui skipped
32     # There *has* to be a better way to check if a value is in a string
33     for dir in $skipped_dirs
34     do
35         if test x$dir = xusrp; then
36             AC_MSG_RESULT([Component gr-utils requires usrp, which is not being built.])
37             passed=no
38         fi
39         if test x$dir = xgnuradio-core; then
40             AC_MSG_RESULT([Component gr-utils requires gnuradio-core, which is not being built.])
41             passed=no
42         fi
43         if test x$dir = xgr-wxgui; then
44             AC_MSG_RESULT([Component gr-utils requires gr-wxgui, which is not being built.])
45             passed=no
46         fi
47     done
48
49     GRC_BUILD_CONDITIONAL([gr-utils])
50 ])