1 dnl Copyright 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.
23 GRC_CHECK_DEPENDENCY(grc, gr-wxgui)
25 AC_CHECK_PROG(XDG_UTILS, xdg-mime, true, false)
26 AM_CONDITIONAL(XDG_UTILS, $XDG_UTILS)
28 dnl ########################################
29 dnl # test python dependencies
30 dnl ########################################
31 if test $passed = yes; then
32 if ! ${PYTHON} -c 'import Cheetah'; then
33 AC_MSG_RESULT([grc requires the Python Cheetah templates installed, not found.])
36 if ! ${PYTHON} -c 'import pygtk'; then
37 AC_MSG_RESULT([grc requires Python GTK wrappers installed, not found.])
40 if ! ${PYTHON} -c 'import lxml'; then
41 AC_MSG_RESULT([grc requires libxml2 and libxslt wrappers (lxml), not found.])
46 dnl ########################################
47 dnl # platform dependency pythonw
48 dnl ########################################
49 dnl FIXME: move this test to Python config m4
50 if test `${PYTHON} -c "import sys; print sys.platform"` = 'darwin'; then
58 grc/src/grc_gnuradio/Makefile \
59 grc/src/grc_gnuradio/wxgui/Makefile \
60 grc/src/grc_gnuradio/blks2/Makefile \
61 grc/src/grc_gnuradio/usrp/Makefile \
63 grc/src/platforms/Makefile \
64 grc/src/platforms/base/Makefile \
65 grc/src/platforms/python/Makefile \
66 grc/src/platforms/python/utils/Makefile \
67 grc/src/platforms/gui/Makefile \
68 grc/src/utils/Makefile \
69 grc/src/gui/Makefile \
70 grc/examples/Makefile \
71 grc/examples/xmlrpc/Makefile \
72 grc/examples/usrp/Makefile \
73 grc/examples/audio/Makefile \
74 grc/examples/simple/Makefile \
77 grc/data/platforms/Makefile \
78 grc/data/platforms/base/Makefile \
79 grc/data/platforms/python/Makefile \
80 grc/data/platforms/python/blocks/Makefile \
81 grc/scripts/Makefile \
82 grc/freedesktop/Makefile \
85 GRC_BUILD_CONDITIONAL(grc)