2 dnl Copyright 2004,2005 Free Software Foundation, Inc.
4 dnl This file is part of GNU Radio
6 dnl GNU Radio is free software; you can redistribute it and/or modify
7 dnl it under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version 2, or (at your option)
11 dnl GNU Radio is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU General Public License for more details.
16 dnl You should have received a copy of the GNU General Public License
17 dnl along with GNU Radio; see the file COPYING. If not, write to
18 dnl the Free Software Foundation, Inc., 51 Franklin Street,
19 dnl Boston, MA 02110-1301, USA.
24 AC_CONFIG_SRCDIR([src/lib/howto.i])
25 AM_CONFIG_HEADER(config.h)
26 AC_CANONICAL_TARGET([])
27 AM_INIT_AUTOMAKE(gr-howto-write-a-block,3.0svn)
41 AC_ENABLE_SHARED dnl do build shared libraries
42 AC_DISABLE_STATIC dnl don't build static libraries
45 dnl Locate python, SWIG, etc
49 dnl Checks for libraries.
51 dnl check for threads (mandatory)
54 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
55 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
57 if test "x$CXX_FOR_BUILD" = x
61 AC_SUBST(CXX_FOR_BUILD)
63 dnl Checks for header files.
66 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h unistd.h)
67 AC_CHECK_HEADERS(sys/mman.h)
69 dnl Checks for typedefs, structures, and compiler characteristics.
75 dnl Checks for library functions.
78 dnl Check for Mingw support
81 PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 2)
82 LIBS="$LIBS $GNURADIO_CORE_LIBS"
84 dnl Define where to find boost includes
85 dnl defines BOOST_CFLAGS
86 GR_REQUIRE_BOOST_INCLUDES
88 STD_DEFINES_AND_INCLUDES="$GNURADIO_CORE_CFLAGS $BOOST_CFLAGS"
89 AC_SUBST(STD_DEFINES_AND_INCLUDES)
98 src/python/run_tests \
101 dnl run_tests is created from run_tests.in. Make it executable.
102 AC_CONFIG_COMMANDS([run_tests], [chmod +x src/python/run_tests])