2 dnl Copyright 2004,2005,2007,2008 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 3, 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)
31 AM_INIT_AUTOMAKE(gr-howto-write-a-block,3.1.svn)
35 GR_LIB64 dnl check for lib64 suffix after choosing compilers
38 dnl add ${prefix}/lib${gr_libdir_suffix}/pkgconfig to the head of the PKG_CONFIG_PATH
39 if test x${PKG_CONFIG_PATH} = x; then
40 PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig
42 PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig:${PKG_CONFIG_PATH}
44 export PKG_CONFIG_PATH
53 AC_PATH_PROG([RM_PROG], [rm])
56 AC_ENABLE_SHARED dnl do build shared libraries
57 AC_DISABLE_STATIC dnl don't build static libraries
58 m4_ifdef([LT_INIT],[LT_INIT],[AC_PROG_LIBTOOL])
61 GR_NO_UNDEFINED dnl do we need the -no-undefined linker flag
62 GR_SCRIPTING dnl Locate python, SWIG, etc
64 AC_CHECK_PROG([XMLTO],[xmlto],[yes],[])
65 AM_CONDITIONAL([HAS_XMLTO], [test x$XMLTO = xyes])
68 dnl Checks for libraries.
70 dnl Set the c++ compiler that we use for the build system when cross compiling
71 if test "x$CXX_FOR_BUILD" = x
75 AC_SUBST(CXX_FOR_BUILD)
77 dnl Checks for header files.
80 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h unistd.h)
81 AC_CHECK_HEADERS(sys/mman.h)
83 dnl Checks for typedefs, structures, and compiler characteristics.
91 dnl Checks for library functions.
94 dnl Check for Mingw support
97 PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 3)
98 LIBS="$LIBS $GNURADIO_CORE_LIBS"
100 dnl We pick up the boost cppflags, cxxflags and thread lib via GNURADIO_CORE
102 dnl If you need additional boost libraries, you'll need to
103 dnl uncomment AX_BOOST_BASE, plus some of the following:
105 dnl calls AC_SUBST(BOOST_CPPFLAGS), AC_SUBST(BOOST_LDFLAGS) and defines HAVE_BOOST
106 dnl AX_BOOST_BASE([1.35])
108 dnl All the rest of these call AC_SUBST(BOOST_<foo>_LIB) and define HAVE_BOOST_<foo>
110 dnl AX_BOOST_DATE_TIME
111 dnl AX_BOOST_FILESYSTEM
112 dnl AX_BOOST_IOSTREAMS
113 dnl AX_BOOST_PROGRAM_OPTIONS
115 dnl AX_BOOST_SERIALIZATION
118 dnl AX_BOOST_TEST_EXEC_MONITOR
119 dnl AX_BOOST_UNIT_TEST_FRAMEWORK
120 dnl AX_BOOST_WSERIALIZATION
123 STD_DEFINES_AND_INCLUDES="$GNURADIO_CORE_CFLAGS"
124 AC_SUBST(STD_DEFINES_AND_INCLUDES)
132 src/python/Makefile \
133 src/python/run_tests \
136 dnl run_tests is created from run_tests.in. Make it executable.
137 AC_CONFIG_COMMANDS([run_tests], [chmod +x src/python/run_tests])