Updates to udp source/sink (select(), wait, cleanup)
[debian/gnuradio] / gr-howto-write-a-block / configure.ac
1 dnl 
2 dnl  Copyright 2004,2005,2007,2008,2009 Free Software Foundation, Inc.
3 dnl  
4 dnl  This file is part of GNU Radio
5 dnl  
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)
9 dnl  any later version.
10 dnl  
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.
15 dnl  
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.
20 dnl 
21
22
23 AC_INIT
24 AC_PREREQ(2.57)
25 AC_CONFIG_AUX_DIR([.])  
26
27 AC_CANONICAL_BUILD
28 AC_CANONICAL_HOST
29 AC_CANONICAL_TARGET
30
31 GR_VERSION
32 dnl ustar required to have pathnames > 99 chars
33 _AM_SET_OPTION([tar-ustar])
34 AM_INIT_AUTOMAKE(gr-howto-write-a-block,$RELEASE)
35
36 dnl This is kind of non-standard, but it sure shortens up this file :-)
37 m4_include([config/gr_standalone.m4])
38 GR_STANDALONE
39
40 dnl Check for any libraries you need
41 dnl AC_CHECK_LIBRARY
42
43 dnl Check for header files you need
44 dnl AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h unistd.h)
45 dnl AC_CHECK_HEADERS(sys/mman.h)
46
47 dnl Checks for library functions.
48 dnl AC_CHECK_FUNCS([])
49
50 dnl We pick up the boost cppflags, cxxflags and thread lib via GNURADIO_CORE
51 dnl
52 dnl If you need additional boost libraries, you'll need to
53 dnl uncomment AX_BOOST_BASE, plus some of the following:
54 dnl
55 dnl calls AC_SUBST(BOOST_CPPFLAGS), AC_SUBST(BOOST_LDFLAGS) and defines HAVE_BOOST
56 dnl AX_BOOST_BASE([1.35])
57 dnl
58 dnl All the rest of these call AC_SUBST(BOOST_<foo>_LIB) and define HAVE_BOOST_<foo>
59 dnl
60 dnl AX_BOOST_DATE_TIME
61 dnl AX_BOOST_FILESYSTEM
62 dnl AX_BOOST_IOSTREAMS
63 dnl AX_BOOST_PROGRAM_OPTIONS
64 dnl AX_BOOST_REGEX
65 dnl AX_BOOST_SERIALIZATION
66 dnl AX_BOOST_SIGNALS
67 dnl AX_BOOST_SYSTEM
68 dnl AX_BOOST_TEST_EXEC_MONITOR
69 dnl AX_BOOST_UNIT_TEST_FRAMEWORK
70 dnl AX_BOOST_WSERIALIZATION
71
72 AC_CONFIG_FILES([\
73           Makefile \
74           apps/Makefile \
75           config/Makefile \
76           grc/Makefile \
77           lib/Makefile \
78           python/Makefile \
79           python/run_tests \
80           swig/Makefile \
81         ])
82
83 dnl run_tests is created from run_tests.in.  Make it executable.
84 AC_CONFIG_COMMANDS([run_tests], [chmod +x python/run_tests])
85
86 AC_OUTPUT
87
88 echo Configured gr-howto-write-a-block release $RELEASE for build.