2 # Copyright 2008 Free Software Foundation, Inc.
4 # This file is part of GNU Radio
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 PKG_CHECK_MODULES(GCELL, gcell >= 3.1, [],
24 [passed=no; AC_MSG_RESULT([gcell not found])])
25 PKG_CHECK_MODULES(GCELL_SPU, gcell_spu >= 3.1, [],
26 [passed=no; AC_MSG_RESULT([gcell_spu not found])])
28 GCELL_EMBEDSPU_LIBTOOL=
29 if test $passed = yes; then
30 GCELL_EMBEDSPU_LIBTOOL=`$PKG_CONFIG --variable=gcell_embedspu_libtool gcell 2>/dev/null`
31 AC_DEFINE(HAVE_GCELL,[1],[Define if you have gcell installed])
33 AC_SUBST([GCELL_EMBEDSPU_LIBTOOL])
35 AM_CONDITIONAL([HAVE_GCELL], [test "$passed" = "yes"])