~ubuntu-branches/ubuntu/precise/gnuradio/precise

« back to all changes in this revision

Viewing changes to config/grc_gr_wxgui.m4

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
 
1
dnl Copyright 2001,2002,2003,2004,2005,2006,2008 Free Software Foundation, Inc.
2
2
dnl 
3
3
dnl This file is part of GNU Radio
4
4
dnl 
18
18
dnl Boston, MA 02110-1301, USA.
19
19
 
20
20
AC_DEFUN([GRC_GR_WXGUI],[
21
 
    GRC_ENABLE([gr-wxgui])
 
21
    GRC_ENABLE(gr-wxgui)
 
22
    GRC_WITH(gr-wxgui)
 
23
 
 
24
    dnl Don't do gr-wxgui if gnuradio-core skipped
 
25
    GRC_CHECK_DEPENDENCY(gr-wxgui, gnuradio-core)
 
26
 
 
27
    dnl If execution gets to here, $passed will be:
 
28
    dnl   with : if the --with code didn't error out
 
29
    dnl   yes  : if the --enable code passed muster and all dependencies are met
 
30
    dnl   no   : otherwise
 
31
    if test $passed = yes; then
 
32
        PYTHON_CHECK_MODULE([wx],[Python wxWidgets wrappers >= 2.8],[],[passed=no],[wx.version().split()[[0]] >= "2.8"])
 
33
        PYTHON_CHECK_MODULE([numpy],[Numeric Python extensions],[],[passed=no])
 
34
    fi
22
35
 
23
36
    AC_CONFIG_FILES([ \
24
 
          gr-wxgui/Makefile \
25
 
          gr-wxgui/src/Makefile \
26
 
          gr-wxgui/src/python/Makefile \
 
37
        gr-wxgui/Makefile \
 
38
        gr-wxgui/gr-wxgui.pc \
 
39
        gr-wxgui/src/Makefile \
 
40
        gr-wxgui/src/python/Makefile \
 
41
        gr-wxgui/src/python/plotter/Makefile \
27
42
    ])
28
43
 
29
 
    if ${PYTHON} -c 'import wx'; then
30
 
        passed=yes
31
 
    else
32
 
        passed=no
33
 
    fi
34
 
    
35
 
    GRC_BUILD_CONDITIONAL([gr-wxgui])
 
44
    GRC_BUILD_CONDITIONAL(gr-wxgui)
36
45
])