root/gnuradio/branches/releases/3.1/gr-howto-write-a-block/configure.ac

Revision 9391 (checked in by jcorgan, 5 months ago)

Updates to use libtool 2.2 to bootstrap distribution tarballs

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
Line 
1 dnl
2 dnl  Copyright 2004,2005,2006,2007,2008 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 AC_INIT
23 AC_PREREQ(2.57)
24 AC_CONFIG_SRCDIR([src/lib/howto.i])
25 AM_CONFIG_HEADER(config.h)
26 AC_CANONICAL_TARGET([])
27 AC_CONFIG_AUX_DIR([.])
28 AM_INIT_AUTOMAKE(gr-howto-write-a-block,3.1.3)
29
30 GR_X86_64
31 dnl LF_CONFIGURE_CC
32 LF_CONFIGURE_CXX
33 LF_SET_WARNINGS
34 GR_SET_GPROF
35 GR_SET_PROF
36 AM_PROG_AS
37 AC_PROG_LN_S
38 AC_PROG_MAKE_SET
39 AC_PROG_INSTALL
40 AC_PATH_PROG([RM_PROG], [rm])
41
42 AC_LIBTOOL_WIN32_DLL
43 AC_ENABLE_SHARED        dnl do build shared libraries
44 AC_DISABLE_STATIC       dnl don't build static libraries
45 m4_ifdef([LT_INIT],[LT_INIT],[AC_PROG_LIBTOOL])
46
47 dnl Locate python, SWIG, etc
48 GR_NO_UNDEFINED
49 GR_SCRIPTING
50
51 dnl Checks for libraries.
52
53 dnl check for threads (mandatory)
54 GR_OMNITHREAD
55
56 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
57 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
58
59 if test "x$CXX_FOR_BUILD" = x
60 then
61   CXX_FOR_BUILD=${CXX}
62 fi
63 AC_SUBST(CXX_FOR_BUILD)
64
65 dnl Checks for header files.
66 AC_HEADER_STDC
67 AC_HEADER_SYS_WAIT
68 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h unistd.h)
69 AC_CHECK_HEADERS(sys/mman.h)
70
71 dnl Checks for typedefs, structures, and compiler characteristics.
72 AC_C_CONST
73 AC_C_INLINE
74 AC_TYPE_SIZE_T
75 AC_HEADER_TIME
76
77 dnl Checks for library functions.
78 AC_CHECK_FUNCS([])
79
80 dnl Check for Mingw support
81 GR_PWIN32
82
83 PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 3)
84 LIBS="$LIBS $GNURADIO_CORE_LIBS"
85
86 dnl Define where to find boost includes
87 dnl defines BOOST_CFLAGS
88 GR_REQUIRE_BOOST_INCLUDES
89
90 STD_DEFINES_AND_INCLUDES="$GNURADIO_CORE_CFLAGS $BOOST_CFLAGS"
91 AC_SUBST(STD_DEFINES_AND_INCLUDES)
92  
93 AC_CONFIG_FILES([\
94           Makefile \
95           config/Makefile \
96           doc/Makefile \
97           src/Makefile \
98           src/lib/Makefile \
99           src/python/Makefile \
100           src/python/run_tests \
101         ])
102
103 dnl run_tests is created from run_tests.in.  Make it executable.
104 AC_CONFIG_COMMANDS([run_tests], [chmod +x src/python/run_tests])
105
106 AC_OUTPUT
Note: See TracBrowser for help on using the browser.