2 dnl Copyright 2007,2008 Free Software Foundation, Inc.
4 dnl This program is free software: you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation, either version 3 of the License, or
7 dnl (at your option) any later version.
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
20 AM_CONFIG_HEADER(config.h)
21 AC_CONFIG_AUX_DIR([.])
22 AC_CONFIG_SRCDIR([lib/u2_init.c])
24 AM_INIT_AUTOMAKE(usrp2-firmware,0.0svn)
26 dnl Component specific configuration
27 dnl The order of the GR_ macros determines the order of compilation
28 dnl For -any- checks on $enable_all_components
29 dnl use the following guidelines:
30 dnl yes : --enable-all-components was specified, so error out if any
31 dnl components do not pass configuration checks.
32 dnl no : --disable-all-components was specified, so try to build the
33 dnl --enable'd components, and error out if any do not pass
34 dnl configuration checks.
35 dnl "" : this option was not specified on the command line; try to
36 dnl build all components that are not --with'd, but don't
37 dnl error out if any component does not pass configuration checks.
39 dnl For each --enable-foo component, if that flag is not specified on
40 dnl the command line, the related variable $enable_foo will be set to
41 dnl $enable_all_components .
45 [ --enable-all-components Build all configurable components (default), or stop on failed dependencies]
54 # Each component is now either to be built, was skipped, will be
55 # included from pre-installed libraries and includes, or failed
57 AC_SUBST([build_dirs], [$build_dirs])
58 AC_SUBST([skipped_dirs], [$skipped_dirs])
59 AC_SUBST([with_dirs], [$with_dirs])
61 # fix for older autotools that don't define "abs_top_YYY" by default
62 AC_SUBST(abs_top_srcdir)
63 AC_SUBST(abs_top_builddir)
65 # 'with' variables - the pre-installed libraries, includes, and paths
66 # - must always come last in the lists, so they require special
68 AC_SUBST(with_INCLUDES)
69 AC_SUBST(with_SWIG_INCLUDES)
70 AC_SUBST(with_PYDIRPATH)
71 AC_SUBST(with_SWIGDIRPATH)
72 AC_SUBST(with_LIBDIRPATH)
82 # trim usrp2 out of dirs; we only use it as a controlling dependency
87 if test $d != usrp2; then
98 for d in $skipped_dirs
100 if test $d != usrp2; then
101 if test -z "$t"; then
113 if test $d != usrp2; then
114 if test -z "$t"; then
123 if test "$build_dirs" != ""; then
125 echo "*********************************************************************"
126 echo The following GNU Radio components have been successfully configured:
128 for dir in $build_dirs
133 echo You my now run the 'make' command to build these components.
137 if test "$skipped_dirs" != ""; then
138 echo "*********************************************************************"
139 echo The following components were skipped either because you asked not
140 echo to build them or they didn\'t pass configuration checks:
142 for dir in $skipped_dirs
147 echo These components will not be built.
150 if test "$with_dirs" != ""; then
151 echo "*********************************************************************"
152 echo The following components will be included from pre-installed
153 echo libraries and includes:
155 for dir in $with_dirs
160 echo These components will not be built.