summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config
diff options
context:
space:
mode:
authorJohnathan Corgan2011-12-08 13:48:48 -0800
committerJohnathan Corgan2011-12-08 13:48:48 -0800
commit00420d32081d8252bb37142b2be19a8a7c4dc4c4 (patch)
tree12c6bf83f01ffc4eff010102090bb687a1233558 /gr-howto-write-a-block/config
parentf52be4a8f0fa203ed206d0e0afc099856eb5bd03 (diff)
downloadgnuradio-00420d32081d8252bb37142b2be19a8a7c4dc4c4.tar.gz
gnuradio-00420d32081d8252bb37142b2be19a8a7c4dc4c4.tar.bz2
gnuradio-00420d32081d8252bb37142b2be19a8a7c4dc4c4.zip
Removed autotools, gr-waveform, some cleanup
Nick Foster owes Nick Corgan a six-pack of beer!
Diffstat (limited to 'gr-howto-write-a-block/config')
-rw-r--r--gr-howto-write-a-block/config/.gitignore15
-rw-r--r--gr-howto-write-a-block/config/Makefile.am80
-rw-r--r--gr-howto-write-a-block/config/acx_pthread.m4275
-rw-r--r--gr-howto-write-a-block/config/ax_boost_base.m4334
-rw-r--r--gr-howto-write-a-block/config/ax_boost_date_time.m434
-rw-r--r--gr-howto-write-a-block/config/ax_boost_filesystem.m445
-rw-r--r--gr-howto-write-a-block/config/ax_boost_iostreams.m439
-rw-r--r--gr-howto-write-a-block/config/ax_boost_program_options.m435
-rw-r--r--gr-howto-write-a-block/config/ax_boost_python.m492
-rw-r--r--gr-howto-write-a-block/config/ax_boost_regex.m435
-rw-r--r--gr-howto-write-a-block/config/ax_boost_serialization.m438
-rw-r--r--gr-howto-write-a-block/config/ax_boost_signals.m435
-rw-r--r--gr-howto-write-a-block/config/ax_boost_system.m440
-rw-r--r--gr-howto-write-a-block/config/ax_boost_test_exec_monitor.m435
-rw-r--r--gr-howto-write-a-block/config/ax_boost_thread.m472
-rw-r--r--gr-howto-write-a-block/config/ax_boost_unit_test_framework.m436
-rw-r--r--gr-howto-write-a-block/config/ax_boost_wserialization.m446
-rw-r--r--gr-howto-write-a-block/config/bnv_have_qt.m4404
-rw-r--r--gr-howto-write-a-block/config/cppunit.m480
-rw-r--r--gr-howto-write-a-block/config/gr_check_createfilemapping.m452
-rw-r--r--gr-howto-write-a-block/config/gr_check_mc4020.m437
-rw-r--r--gr-howto-write-a-block/config/gr_check_shm_open.m429
-rw-r--r--gr-howto-write-a-block/config/gr_check_usrp.m432
-rw-r--r--gr-howto-write-a-block/config/gr_doxygen.m460
-rw-r--r--gr-howto-write-a-block/config/gr_fortran.m433
-rw-r--r--gr-howto-write-a-block/config/gr_git.m463
-rw-r--r--gr-howto-write-a-block/config/gr_gprof.m472
-rw-r--r--gr-howto-write-a-block/config/gr_guile.m465
-rw-r--r--gr-howto-write-a-block/config/gr_lib64.m485
-rw-r--r--gr-howto-write-a-block/config/gr_libgnuradio_core_extra_ldflags.m440
-rw-r--r--gr-howto-write-a-block/config/gr_no_undefined.m444
-rw-r--r--gr-howto-write-a-block/config/gr_omnithread.m452
-rw-r--r--gr-howto-write-a-block/config/gr_pwin32.m4138
-rw-r--r--gr-howto-write-a-block/config/gr_python.m4172
-rw-r--r--gr-howto-write-a-block/config/gr_require_mc4020.m433
-rw-r--r--gr-howto-write-a-block/config/gr_scripting.m438
-rw-r--r--gr-howto-write-a-block/config/gr_set_md_cpu.m4115
-rw-r--r--gr-howto-write-a-block/config/gr_standalone.m4159
-rw-r--r--gr-howto-write-a-block/config/gr_subversion.m436
-rw-r--r--gr-howto-write-a-block/config/gr_swig.m4109
-rw-r--r--gr-howto-write-a-block/config/gr_sysv_shm.m436
-rw-r--r--gr-howto-write-a-block/config/gr_version.m473
-rw-r--r--gr-howto-write-a-block/config/lf_cc.m441
-rw-r--r--gr-howto-write-a-block/config/lf_cxx.m450
-rw-r--r--gr-howto-write-a-block/config/lf_warnings.m4121
-rw-r--r--gr-howto-write-a-block/config/lf_x11.m439
-rw-r--r--gr-howto-write-a-block/config/mkstemp.m478
-rw-r--r--gr-howto-write-a-block/config/onceonly.m463
-rw-r--r--gr-howto-write-a-block/config/pkg.m4201
-rw-r--r--gr-howto-write-a-block/config/usrp_fusb_tech.m487
-rw-r--r--gr-howto-write-a-block/config/usrp_libusb.m448
-rw-r--r--gr-howto-write-a-block/config/usrp_sdcc.m475
52 files changed, 0 insertions, 4146 deletions
diff --git a/gr-howto-write-a-block/config/.gitignore b/gr-howto-write-a-block/config/.gitignore
deleted file mode 100644
index 16f775e32..000000000
--- a/gr-howto-write-a-block/config/.gitignore
+++ /dev/null
@@ -1,15 +0,0 @@
-/*.cache
-/*.la
-/*.lo
-/*.pc
-/.deps
-/.la
-/.libs
-/.lo
-/Makefile
-/Makefile.in
-/libtool.m4
-/lt~obsolete.m4
-/ltsugar.m4
-/ltversion.m4
-/ltoptions.m4
diff --git a/gr-howto-write-a-block/config/Makefile.am b/gr-howto-write-a-block/config/Makefile.am
deleted file mode 100644
index 7b7e5812e..000000000
--- a/gr-howto-write-a-block/config/Makefile.am
+++ /dev/null
@@ -1,80 +0,0 @@
-#
-# Copyright 2001,2010 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-# Install m4 macros in this directory
-m4datadir = $(datadir)/aclocal
-
-# List your m4 macros here
-m4macros = \
- acx_pthread.m4 \
- ax_boost_base.m4 \
- ax_boost_date_time.m4 \
- ax_boost_filesystem.m4 \
- ax_boost_iostreams.m4 \
- ax_boost_program_options.m4 \
- ax_boost_python.m4 \
- ax_boost_regex.m4 \
- ax_boost_serialization.m4 \
- ax_boost_signals.m4 \
- ax_boost_system.m4 \
- ax_boost_test_exec_monitor.m4 \
- ax_boost_thread.m4 \
- ax_boost_unit_test_framework.m4 \
- ax_boost_wserialization.m4 \
- bnv_have_qt.m4 \
- cppunit.m4 \
- gr_check_createfilemapping.m4 \
- gr_check_mc4020.m4 \
- gr_check_shm_open.m4 \
- gr_doxygen.m4 \
- gr_fortran.m4 \
- gr_git.m4 \
- gr_gprof.m4 \
- gr_guile.m4 \
- gr_lib64.m4 \
- gr_libgnuradio_core_extra_ldflags.m4 \
- gr_no_undefined.m4 \
- gr_omnithread.m4 \
- gr_pwin32.m4 \
- gr_python.m4 \
- gr_require_mc4020.m4 \
- gr_scripting.m4 \
- gr_set_md_cpu.m4 \
- gr_standalone.m4 \
- gr_subversion.m4 \
- gr_swig.m4 \
- gr_sysv_shm.m4 \
- gr_version.m4 \
- lf_cc.m4 \
- lf_cxx.m4 \
- lf_warnings.m4 \
- lf_x11.m4 \
- mkstemp.m4 \
- onceonly.m4 \
- pkg.m4
-
-
-# Don't install m4 macros anymore
-# m4data_DATA = $(m4macros)
-
-EXTRA_DIST = $(m4macros)
diff --git a/gr-howto-write-a-block/config/acx_pthread.m4 b/gr-howto-write-a-block/config/acx_pthread.m4
deleted file mode 100644
index eb09f5acc..000000000
--- a/gr-howto-write-a-block/config/acx_pthread.m4
+++ /dev/null
@@ -1,275 +0,0 @@
-# ===========================================================================
-# http://autoconf-archive.cryp.to/acx_pthread.html
-# ===========================================================================
-#
-# SYNOPSIS
-#
-# ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-#
-# DESCRIPTION
-#
-# This macro figures out how to build C programs using POSIX threads. It
-# sets the PTHREAD_LIBS output variable to the threads library and linker
-# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
-# flags that are needed. (The user can also force certain compiler
-# flags/libs to be tested by setting these environment variables.)
-#
-# Also sets PTHREAD_CC to any special C compiler that is needed for
-# multi-threaded programs (defaults to the value of CC otherwise). (This
-# is necessary on AIX to use the special cc_r compiler alias.)
-#
-# NOTE: You are assumed to not only compile your program with these flags,
-# but also link it with them as well. e.g. you should link with
-# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
-#
-# If you are only building threads programs, you may wish to use these
-# variables in your default LIBS, CFLAGS, and CC:
-#
-# LIBS="$PTHREAD_LIBS $LIBS"
-# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-# CC="$PTHREAD_CC"
-#
-# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
-# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
-# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
-#
-# ACTION-IF-FOUND is a list of shell commands to run if a threads library
-# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
-# is not found. If ACTION-IF-FOUND is not specified, the default action
-# will define HAVE_PTHREAD.
-#
-# Please let the authors know if this macro fails on any platform, or if
-# you have any other suggestions or comments. This macro was based on work
-# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
-# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
-# Alejandro Forero Cuervo to the autoconf macro repository. We are also
-# grateful for the helpful feedback of numerous users.
-#
-# LAST MODIFICATION
-#
-# 2008-04-12
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
-#
-# This program is free software: you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the
-# Free Software Foundation, either version 3 of the License, or (at your
-# option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-# Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-# As a special exception, the respective Autoconf Macro's copyright owner
-# gives unlimited permission to copy, distribute and modify the configure
-# scripts that are the output of Autoconf when processing the Macro. You
-# need not follow the terms of the GNU General Public License when using
-# or distributing such scripts, even though portions of the text of the
-# Macro appear in them. The GNU General Public License (GPL) does govern
-# all other use of the material that constitutes the Autoconf Macro.
-#
-# This special exception to the GPL applies to versions of the Autoconf
-# Macro released by the Autoconf Macro Archive. When you make and
-# distribute a modified version of the Autoconf Macro, you may extend this
-# special exception to the GPL to apply to your modified version as well.
-
-AC_DEFUN([ACX_PTHREAD], [
-AC_REQUIRE([AC_CANONICAL_HOST])
-AC_LANG_SAVE
-AC_LANG_C
-acx_pthread_ok=no
-
-# We used to check for pthread.h first, but this fails if pthread.h
-# requires special compiler flags (e.g. on True64 or Sequent).
-# It gets checked for in the link test anyway.
-
-# First of all, check if the user has set any of the PTHREAD_LIBS,
-# etcetera environment variables, and if threads linking works using
-# them:
-if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
- AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
- AC_MSG_RESULT($acx_pthread_ok)
- if test x"$acx_pthread_ok" = xno; then
- PTHREAD_LIBS=""
- PTHREAD_CFLAGS=""
- fi
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-fi
-
-# We must check for the threads library under a number of different
-# names; the ordering is very important because some systems
-# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
-# libraries is broken (non-POSIX).
-
-# Create a list of thread flags to try. Items starting with a "-" are
-# C compiler flags, and other items are library names, except for "none"
-# which indicates that we try without any flags at all, and "pthread-config"
-# which is a program returning the flags for the Pth emulation library.
-
-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
-
-# The ordering *is* (sometimes) important. Some notes on the
-# individual items follow:
-
-# pthreads: AIX (must check this before -lpthread)
-# none: in case threads are in libc; should be tried before -Kthread and
-# other compiler flags to prevent continual compiler warnings
-# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
-# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
-# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
-# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
-# -pthreads: Solaris/gcc
-# -mthreads: Mingw32/gcc, Lynx/gcc
-# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
-# doesn't hurt to check since this sometimes defines pthreads too;
-# also defines -D_REENTRANT)
-# ... -mt is also the pthreads flag for HP/aCC
-# pthread: Linux, etcetera
-# --thread-safe: KAI C++
-# pthread-config: use pthread-config program (for GNU Pth library)
-
-case "${host_cpu}-${host_os}" in
- *solaris*)
-
- # On Solaris (at least, for some versions), libc contains stubbed
- # (non-functional) versions of the pthreads routines, so link-based
- # tests will erroneously succeed. (We need to link with -pthreads/-mt/
- # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
- # a function called by this macro, so we could check for that, but
- # who knows whether they'll stub that too in a future libc.) So,
- # we'll just look for -pthreads and -lpthread first:
-
- acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
- ;;
-esac
-
-if test x"$acx_pthread_ok" = xno; then
-for flag in $acx_pthread_flags; do
-
- case $flag in
- none)
- AC_MSG_CHECKING([whether pthreads work without any flags])
- ;;
-
- -*)
- AC_MSG_CHECKING([whether pthreads work with $flag])
- PTHREAD_CFLAGS="$flag"
- ;;
-
- pthread-config)
- AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
- if test x"$acx_pthread_config" = xno; then continue; fi
- PTHREAD_CFLAGS="`pthread-config --cflags`"
- PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
- ;;
-
- *)
- AC_MSG_CHECKING([for the pthreads library -l$flag])
- PTHREAD_LIBS="-l$flag"
- ;;
- esac
-
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- LIBS="$PTHREAD_LIBS $LIBS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-
- # Check for various functions. We must include pthread.h,
- # since some functions may be macros. (On the Sequent, we
- # need a special flag -Kthread to make this header compile.)
- # We check for pthread_join because it is in -lpthread on IRIX
- # while pthread_create is in libc. We check for pthread_attr_init
- # due to DEC craziness with -lpthreads. We check for
- # pthread_cleanup_push because it is one of the few pthread
- # functions on Solaris that doesn't have a non-functional libc stub.
- # We try pthread_create on general principles.
- AC_TRY_LINK([#include <pthread.h>],
- [pthread_t th; pthread_join(th, 0);
- pthread_attr_init(0); pthread_cleanup_push(0, 0);
- pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
- [acx_pthread_ok=yes])
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- AC_MSG_RESULT($acx_pthread_ok)
- if test "x$acx_pthread_ok" = xyes; then
- break;
- fi
-
- PTHREAD_LIBS=""
- PTHREAD_CFLAGS=""
-done
-fi
-
-# Various other checks:
-if test "x$acx_pthread_ok" = xyes; then
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-
- # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
- AC_MSG_CHECKING([for joinable pthread attribute])
- attr_name=unknown
- for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
- AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
- [attr_name=$attr; break])
- done
- AC_MSG_RESULT($attr_name)
- if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
- AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
- [Define to necessary symbol if this constant
- uses a non-standard name on your system.])
- fi
-
- AC_MSG_CHECKING([if more special flags are required for pthreads])
- flag=no
- case "${host_cpu}-${host_os}" in
- *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
- esac
- AC_MSG_RESULT(${flag})
- if test "x$flag" != xno; then
- PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
- fi
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- # More AIX lossage: must compile with xlc_r or cc_r
- if test x"$GCC" != xyes; then
- AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
- else
- PTHREAD_CC=$CC
- fi
-else
- PTHREAD_CC="$CC"
-fi
-
-AC_SUBST(PTHREAD_LIBS)
-AC_SUBST(PTHREAD_CFLAGS)
-AC_SUBST(PTHREAD_CC)
-
-# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
-if test x"$acx_pthread_ok" = xyes; then
- ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
- :
-else
- acx_pthread_ok=no
- $2
-fi
-AC_LANG_RESTORE
-])dnl ACX_PTHREAD
diff --git a/gr-howto-write-a-block/config/ax_boost_base.m4 b/gr-howto-write-a-block/config/ax_boost_base.m4
deleted file mode 100644
index e9790227e..000000000
--- a/gr-howto-write-a-block/config/ax_boost_base.m4
+++ /dev/null
@@ -1,334 +0,0 @@
-# ===========================================================================
-# http://autoconf-archive.cryp.to/ax_boost_base.html
-# ===========================================================================
-#
-# SYNOPSIS
-#
-# AX_BOOST_BASE([MINIMUM-VERSION])
-#
-# DESCRIPTION
-#
-# Test for the Boost C++ libraries of a particular version (or newer)
-#
-# If no path to the installed boost library is given the macro searchs
-# under /usr, /usr/local, /opt and /opt/local and evaluates the
-# $BOOST_ROOT environment variable. Further documentation is available at
-# <http://randspringer.de/boost/index.html>.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS)
-#
-# And sets:
-#
-# HAVE_BOOST
-#
-# LAST MODIFICATION
-#
-# 2008-04-12
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_BASE],
-[
-AC_REQUIRE([GR_LIB64])
-AC_ARG_WITH([boost],
- AS_HELP_STRING([--with-boost@<:@=DIR@:>@],
- [use boost (default is yes) - it is possible to specify the root directory for boost (optional)]),
- [
- if test "$withval" = "no"; then
- want_boost="no"
- elif test "$withval" = "yes"; then
- want_boost="yes"
- ac_boost_path=""
- else
- want_boost="yes"
- ac_boost_path="$withval"
- fi
- ],
- [want_boost="yes"])
-
-
-AC_ARG_WITH([boost-libdir],
- AS_HELP_STRING([--with-boost-libdir=LIB_DIR],
- [Force given directory for boost libraries. Note that this
- will overwrite library path detection, so use this parameter
- only if default library detection fails and you know exactly
- where your boost libraries are located.]),
- [
- if test -d $withval
- then
- ac_boost_lib_path="$withval"
- else
- AC_MSG_ERROR(--with-boost-libdir expected directory name)
- fi
- ],
- [ac_boost_lib_path=""]
-)
-
-if test "x$want_boost" = "xyes"; then
- boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
- boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`
- boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'`
- boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'`
- boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
- if test "x$boost_lib_version_req_sub_minor" = "x" ; then
- boost_lib_version_req_sub_minor="0"
- fi
- WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
- AC_MSG_CHECKING(for boost >= $boost_lib_version_req)
- succeeded=no
-
- dnl first we check the system location for boost libraries
- dnl this location ist chosen if boost libraries are installed with the --layout=system option
- dnl or if you install boost with RPM
- if test "$ac_boost_path" != ""; then
- dnl Look first where we think they ought to be, accounting for a possible "64" suffix on lib.
- dnl If that directory doesn't exist, fall back to the default behavior
- if test -d "$ac_boost_path/lib${gr_libdir_suffix}"; then
- BOOST_LDFLAGS="-L$ac_boost_path/lib${gr_libdir_suffix}"
- else
- BOOST_LDFLAGS="-L$ac_boost_path/lib"
- fi
- BOOST_CPPFLAGS="-I$ac_boost_path/include"
- else
- for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
- if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
- dnl Look first where we think they ought to be, accounting for a possible "64" suffix on lib.
- dnl If that directory doesn't exist, fall back to the default behavior
- if test -d "$ac_boost_path_tmp/lib${gr_libdir_suffix}"; then
- BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib${gr_libdir_suffix}"
- else
- BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
- fi
- BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
- break;
- fi
- done
- fi
-
- dnl overwrite ld flags if we have required special directory with
- dnl --with-boost-libdir parameter
- if test "$ac_boost_lib_path" != ""; then
- BOOST_LDFLAGS="-L$ac_boost_lib_path"
- fi
-
- CPPFLAGS_SAVED="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
- export CPPFLAGS
-
- LDFLAGS_SAVED="$LDFLAGS"
- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
- export LDFLAGS
-
- AC_LANG_PUSH(C++)
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- @%:@include <boost/version.hpp>
- ]], [[
- #if BOOST_VERSION >= $WANT_BOOST_VERSION
- // Everything is okay
- #else
- # error Boost version is too old
- #endif
- ]])],[AC_MSG_RESULT(yes)
- succeeded=yes
- found_system=yes
- ],
- [])
- AC_LANG_POP([C++])
- CPPFLAGS="$CPPFLAGS_SAVED"
- LDFLAGS="$LDFLAGS_SAVED"
-
-
- dnl if we found no boost with system layout we search for boost libraries
- dnl built and installed without the --layout=system option
- if test "$succeeded" != "yes"; then
- _version=0
-
- if test "$ac_boost_path" != ""; then
- path_list="$ac_boost_path"
- else
- path_list="/usr /usr/local /opt /opt/local"
- fi
- for ac_boost_path in $path_list ; do
- if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
- for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
- _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's,/include/boost-,,; s,_,.,'`
- V_CHECK=`expr $_version_tmp \> $_version`
- if test "$V_CHECK" = "1" ; then
- _version=$_version_tmp
- best_path=$ac_boost_path
- fi
- done
- fi
- done
-
- VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
- BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
-
- if test "$ac_boost_lib_path" = ""; then
- dnl Look first where we think they ought to be, accounting for a possible "64" suffix on lib.
- dnl If that directory doesn't exist, fall back to the default behavior
- if test -d "$best_path/lib${gr_libdir_suffix}"; then
- BOOST_LDFLAGS="-L$best_path/lib${gr_libdir_suffix}"
- else
- BOOST_LDFLAGS="-L$best_path/lib"
- fi
- fi
-
- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
- export CPPFLAGS
- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
- export LDFLAGS
-
- AC_LANG_PUSH(C++)
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- @%:@include <boost/version.hpp>
- ]], [[
- #if BOOST_VERSION >= $WANT_BOOST_VERSION
- // Everything is okay
- #else
- # error Boost version is too old
- #endif
- ]])],[AC_MSG_RESULT(yes)
- succeeded=yes
- found_system=yes
- ],
- [])
- AC_LANG_POP([C++])
- CPPFLAGS="$CPPFLAGS_SAVED"
- LDFLAGS="$LDFLAGS_SAVED"
- fi
-
- if test "$succeeded" != "yes" ; then
- AC_MSG_RESULT([no])
- if test "$_version" = "0" ; then
- AC_MSG_ERROR([[we could not detect the boost libraries (version $boost_lib_version_req_shorten or higher).
-If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>.]])
- else
- AC_MSG_ERROR([your boost libraries seem to old (version $_version).])
- fi
- else
- AC_SUBST(BOOST_CPPFLAGS)
- AC_SUBST(BOOST_LDFLAGS)
- AC_DEFINE(HAVE_BOOST,1,[Define if the Boost headers are available])
- fi
-fi
-])
-
-dnl
-dnl Macros used by the boost items that need libraries.
-dnl
-
-dnl $1 is unit name. E.g., boost_thread
-AC_DEFUN([_AX_BOOST_CHECK_LIB],[
- _AX_BOOST_CHECK_LIB_($1,HAVE_[]m4_toupper($1),m4_toupper($1)_LIB)
-])
-
-dnl $1 is unit name. E.g., boost_thread
-dnl $2 is AC_DEFINE name. E.g., HAVE_BOOST_THREAD
-dnl $3 is lib var name. E.g., BOOST_THREAD_LIB
-AC_DEFUN([_AX_BOOST_CHECK_LIB_],[
- AC_LANG_PUSH([C++])
- AC_DEFINE($2,1,[Define if the $1 library is available])
- BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
-
- dnl See if we can find a usable library
- link_ok="no"
- if test "$ax_boost_user_lib" != ""; then
- dnl use what the user supplied
- for ax_lib in $ax_boost_user_lib $1-${ax_boost_user_lib}; do
- AC_CHECK_LIB($ax_lib, exit,
- [$3="-l$ax_lib"; AC_SUBST($3) link_ok="yes"; break])
- done
- else
- dnl Look in BOOSTLIBDIR for possible candidates
- head=$BOOSTLIBDIR/lib[]$1
- for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
- dnl echo 1: $f
- case $f in
- *\**) continue;;
- esac
- f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
- dnl echo 2: $f
- f=`echo $f | sed -e 's,\($1.*\)\.so.*$,\1,' -e 's,\($1.*\)\.a.*$,\1,' -e 's,\($1.*\)\.dll.*$,\1,' -e 's,\($1.*\)\.dylib.*$,\1,'`
- dnl echo 3: $f
-
- ax_lib=$f
- AC_CHECK_LIB($ax_lib, exit,
- [$3="-l$ax_lib"; AC_SUBST($3) link_ok="yes"; break])
- done
- fi
-
- if test "$link_ok" != "yes"; then
- AC_MSG_ERROR([Could not link against lib[$1]!])
- fi
- AC_LANG_POP([C++])
-])
-
-
-dnl $1 is unit name. E.g., boost_thread
-AC_DEFUN([_AX_BOOST_WITH],[
- _AX_BOOST_WITH_($1,m4_bpatsubst($1,_,-))
-])
-
-dnl $1 is unit name. E.g., boost_thread
-dnl $2 is hyphenated unit name. E.g., boost-thread
-AC_DEFUN([_AX_BOOST_WITH_],[
- AC_ARG_WITH([$2],
- AC_HELP_STRING([--with-$2@<:@=special-lib@:>@],
- [Use the m4_substr($1,6) library from boost. It is possible to specify a certain
- library to the linker. E.g., --with-$2=$1-gcc41-mt-1_35]),
- [
- if test "$withval" = "no"; then
- want_boost="no"
- elif test "$withval" = "yes"; then
- want_boost="yes"
- ax_boost_user_lib=""
- else
- want_boost="yes"
- ax_boost_user_lib="$withval"
- fi
- ],
- [want_boost="yes"])
-])
-
-dnl $1 is unit name. E.g., boost_thread
-dnl $2 is AC_LANG_PROGRAM argument 1
-dnl $3 is AC_LANG_PROGRAM argument 2
-dnl $4 is cv variable name. E.g., ax_cv_boost_thread
-AC_DEFUN([_AX_BOOST_CHECK_],[
- _AX_BOOST_WITH($1)
- if test "$want_boost" = "yes"; then
- AC_REQUIRE([AC_PROG_CC])
- AC_REQUIRE([AC_PROG_CXX])
- CPPFLAGS_SAVED="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
- LDFLAGS_SAVED="$LDFLAGS"
- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
- AC_CACHE_CHECK([whether the boost::m4_substr([$1],6) includes are available], [$4],
- [AC_LANG_PUSH([C++])
- AC_COMPILE_IFELSE(AC_LANG_PROGRAM([$2],[$3]),[$4]=yes,[$4]=no)
- AC_LANG_POP([C++])
- ])
- if test "$[$4]" = "yes"; then
- _AX_BOOST_CHECK_LIB([$1])
- fi
- CPPFLAGS="$CPPFLAGS_SAVED"
- LDFLAGS="$LDFLAGS_SAVED"
- fi
-])
-
-dnl $1 is unit name. E.g., boost_thread
-dnl $2 is AC_LANG_PROGRAM argument 1
-dnl $3 is AC_LANG_PROGRAM argument 2
-AC_DEFUN([_AX_BOOST_CHECK],[
- _AX_BOOST_CHECK_($1,$2,$3,ax_cv_$1)
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_date_time.m4 b/gr-howto-write-a-block/config/ax_boost_date_time.m4
deleted file mode 100644
index 7b3f0fe3d..000000000
--- a/gr-howto-write-a-block/config/ax_boost_date_time.m4
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_DATE_TIME
-#
-# DESCRIPTION
-#
-# Test for date_time library from the Boost C++ libraries.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_DATE_TIME_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_DATE_TIME
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Michael Tindal
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_DATE_TIME],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_date_time],
- [@%:@include <boost/date_time/gregorian/gregorian_types.hpp>],
- [using namespace boost::gregorian; date d(2002,Jan,10); return 0;])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_filesystem.m4 b/gr-howto-write-a-block/config/ax_boost_filesystem.m4
deleted file mode 100644
index bcb3fa44f..000000000
--- a/gr-howto-write-a-block/config/ax_boost_filesystem.m4
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_FILESYSTEM
-#
-# DESCRIPTION
-#
-# Test for Filesystem library from the Boost C++ libraries. The macro
-# requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_FILESYSTEM_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_FILESYSTEM
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Michael Tindal
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_FILESYSTEM],
-[
- AC_REQUIRE([AX_BOOST_BASE])
-
- dnl depends on boost_system
- AC_REQUIRE([AX_BOOST_SYSTEM])
- axbf_LDFLAGS_SAVED=$LDFLAGS
- LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LIB"
-
- _AX_BOOST_CHECK([boost_filesystem],
- [@%:@include <boost/filesystem/path.hpp>],
- [using namespace boost::filesystem;
- path my_path( "foo/bar/data.txt" );
- return 0;])
-
- LDFLAGS=$axbf_LDFLAGS_SAVED
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_iostreams.m4 b/gr-howto-write-a-block/config/ax_boost_iostreams.m4
deleted file mode 100644
index 181b1e752..000000000
--- a/gr-howto-write-a-block/config/ax_boost_iostreams.m4
+++ /dev/null
@@ -1,39 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_IOSTREAMS
-#
-# DESCRIPTION
-#
-# Test for IOStreams library from the Boost C++ libraries. The macro
-# requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_IOSTREAMS_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_IOSTREAMS
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_IOSTREAMS],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_iostreams],
- [@%:@include <boost/iostreams/filtering_stream.hpp>
- @%:@include <boost/range/iterator_range.hpp>],
- [std::string input = "Hello World!";
- namespace io = boost::iostreams;
- io::filtering_istream in(boost::make_iterator_range(input));
- return 0;])
-
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_program_options.m4 b/gr-howto-write-a-block/config/ax_boost_program_options.m4
deleted file mode 100644
index 3829373be..000000000
--- a/gr-howto-write-a-block/config/ax_boost_program_options.m4
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_PROGRAM_OPTIONS
-#
-# DESCRIPTION
-#
-# Test for program options library from the Boost C++ libraries. The macro
-# requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_PROGRAM_OPTIONS
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_program_options],
- [@%:@include <boost/program_options.hpp>],
- [boost::program_options::options_description generic("Generic options");
- return 0;])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_python.m4 b/gr-howto-write-a-block/config/ax_boost_python.m4
deleted file mode 100644
index 3c6c666f7..000000000
--- a/gr-howto-write-a-block/config/ax_boost_python.m4
+++ /dev/null
@@ -1,92 +0,0 @@
-# ===========================================================================
-# http://autoconf-archive.cryp.to/ax_boost_python.html
-# ===========================================================================
-#
-# SYNOPSIS
-#
-# AX_BOOST_PYTHON
-#
-# DESCRIPTION
-#
-# This macro checks to see if the Boost.Python library is installed. It
-# also attempts to guess the currect library name using several attempts.
-# It tries to build the library name using a user supplied name or suffix
-# and then just the raw library.
-#
-# If the library is found, HAVE_BOOST_PYTHON is defined and
-# BOOST_PYTHON_LIB is set to the name of the library.
-#
-# This macro calls AC_SUBST(BOOST_PYTHON_LIB).
-#
-# In order to ensure that the Python headers are specified on the include
-# path, this macro requires AX_PYTHON to be called.
-#
-# LAST MODIFICATION
-#
-# 2008-04-12
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Michael Tindal
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the
-# Free Software Foundation; either version 2 of the License, or (at your
-# option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-# Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-# As a special exception, the respective Autoconf Macro's copyright owner
-# gives unlimited permission to copy, distribute and modify the configure
-# scripts that are the output of Autoconf when processing the Macro. You
-# need not follow the terms of the GNU General Public License when using
-# or distributing such scripts, even though portions of the text of the
-# Macro appear in them. The GNU General Public License (GPL) does govern
-# all other use of the material that constitutes the Autoconf Macro.
-#
-# This special exception to the GPL applies to versions of the Autoconf
-# Macro released by the Autoconf Macro Archive. When you make and
-# distribute a modified version of the Autoconf Macro, you may extend this
-# special exception to the GPL to apply to your modified version as well.
-
-AC_DEFUN([AX_BOOST_PYTHON],
-[AC_REQUIRE([AX_PYTHON])dnl
-AC_CACHE_CHECK(whether the Boost::Python library is available,
-ac_cv_boost_python,
-[AC_LANG_SAVE
- AC_LANG_CPLUSPLUS
- CPPFLAGS_SAVE=$CPPFLAGS
- if test x$PYTHON_INCLUDE_DIR != x; then
- CPPFLAGS=-I$PYTHON_INCLUDE_DIR $CPPFLAGS
- fi
- AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[
- #include <boost/python/module.hpp>
- using namespace boost::python;
- BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }]],
- [[return 0;]]),
- ac_cv_boost_python=yes, ac_cv_boost_python=no)
- AC_LANG_RESTORE
- CPPFLAGS=$CPPFLAGS_SAVE
-])
-if test "$ac_cv_boost_python" = "yes"; then
- AC_LANG_PUSH([C++])
- AC_DEFINE(HAVE_BOOST_PYTHON,,[define if the Boost::Python library is available])
- ax_python_lib=boost_python
- AC_ARG_WITH([boost-python],AS_HELP_STRING([--with-boost-python],[specify the boost python library or suffix to use]),
- [if test "x$with_boost_python" != "xno"; then
- ax_python_lib=$with_boost_python
- ax_boost_python_lib=boost_python-$with_boost_python
- fi])
- for ax_lib in $ax_python_lib $ax_boost_python_lib boost_python; do
- AC_CHECK_LIB($ax_lib, exit, [BOOST_PYTHON_LIB=$ax_lib break])
- done
- AC_SUBST(BOOST_PYTHON_LIB)
- AC_LANG_POP([C++])
-fi
-])dnl
diff --git a/gr-howto-write-a-block/config/ax_boost_regex.m4 b/gr-howto-write-a-block/config/ax_boost_regex.m4
deleted file mode 100644
index 32b531369..000000000
--- a/gr-howto-write-a-block/config/ax_boost_regex.m4
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_REGEX
-#
-# DESCRIPTION
-#
-# Test for Regex library from the Boost C++ libraries. The macro requires
-# a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_REGEX_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_REGEX
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Michael Tindal
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_REGEX],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_regex],
- [@%:@include <boost/regex.hpp>],
- [boost::regex r(); return 0;])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_serialization.m4 b/gr-howto-write-a-block/config/ax_boost_serialization.m4
deleted file mode 100644
index 78c950078..000000000
--- a/gr-howto-write-a-block/config/ax_boost_serialization.m4
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_SERIALIZATION
-#
-# DESCRIPTION
-#
-# Test for Serialization library from the Boost C++ libraries. The macro
-# requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_SERIALIZATION_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_SERIALIZATION
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_SERIALIZATION],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_serialization],
- [@%:@include <fstream>
- @%:@include <boost/archive/text_oarchive.hpp>
- @%:@include <boost/archive/text_iarchive.hpp>],
- [std::ofstream ofs("filename");
- boost::archive::text_oarchive oa(ofs);
- return 0;])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_signals.m4 b/gr-howto-write-a-block/config/ax_boost_signals.m4
deleted file mode 100644
index 3c4971748..000000000
--- a/gr-howto-write-a-block/config/ax_boost_signals.m4
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_SIGNALS
-#
-# DESCRIPTION
-#
-# Test for Signals library from the Boost C++ libraries. The macro
-# requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_SIGNALS_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_SIGNALS
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Michael Tindal
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_SIGNALS],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_signals],
- [@%:@include <boost/signal.hpp>],
- [boost::signal<void ()> sig; return 0;])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_system.m4 b/gr-howto-write-a-block/config/ax_boost_system.m4
deleted file mode 100644
index cb73f2577..000000000
--- a/gr-howto-write-a-block/config/ax_boost_system.m4
+++ /dev/null
@@ -1,40 +0,0 @@
-# ===========================================================================
-# started with this: http://autoconf-archive.cryp.to/ax_boost_system.html,
-# virtually nothing left
-# ===========================================================================
-#
-# SYNOPSIS
-#
-# AX_BOOST_SYSTEM
-#
-# DESCRIPTION
-#
-# Test for System library from the Boost C++ libraries. The macro requires
-# a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_SYSTEM_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_SYSTEM
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Michael Tindal
-# Copyright (c) 2008 Daniel Casimiro <dan.casimiro@gmail.com>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_SYSTEM],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_system],
- [@%:@include <boost/system/error_code.hpp>],
- [boost::system::system_category])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_test_exec_monitor.m4 b/gr-howto-write-a-block/config/ax_boost_test_exec_monitor.m4
deleted file mode 100644
index 2c30c0b4a..000000000
--- a/gr-howto-write-a-block/config/ax_boost_test_exec_monitor.m4
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_TEST_EXEC_MONITOR
-#
-# DESCRIPTION
-#
-# Test for Test_Exec_Monitor library from the Boost C++ libraries. The
-# macro requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_TEST_EXEC_MONITOR_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_TEST_EXEC_MONITOR
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Dodji Seketeli <dodji@seketeli.org>
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_TEST_EXEC_MONITOR],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_test_exec_monitor],
- [@%:@include <boost/test/test_tools.hpp>],
- [int i=1 ; BOOST_REQUIRE(i==1); ; return 0;])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_thread.m4 b/gr-howto-write-a-block/config/ax_boost_thread.m4
deleted file mode 100644
index 4df23224a..000000000
--- a/gr-howto-write-a-block/config/ax_boost_thread.m4
+++ /dev/null
@@ -1,72 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_THREAD
-#
-# DESCRIPTION
-#
-# Test for Thread library from the Boost C++ libraries.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_THREAD_LIB)
-# AC_SUBST(BOOST_CXXFLAGS)
-#
-# And sets:
-#
-# HAVE_BOOST_THREAD
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Michael Tindal
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-
-AC_DEFUN([AX_BOOST_THREAD],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- AC_REQUIRE([ACX_PTHREAD])
- _AX_BOOST_WITH([boost_thread])
-
- if test "$want_boost" = "yes"; then
- AC_REQUIRE([AC_PROG_CC])
- AC_REQUIRE([AC_PROG_CXX])
- AC_REQUIRE([AC_CANONICAL_HOST])
-
- CPPFLAGS_SAVED="$CPPFLAGS"
- LDFLAGS_SAVED="$LDFLAGS"
- CXXFLAGS_SAVED="$CXXFLAGS"
-
- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS $PTHREAD_LIBS"
- CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
-
- AC_CACHE_CHECK(whether the boost::thread includes are available,
- ax_cv_boost_thread,
- [AC_LANG_PUSH([C++])
- AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]],
- [[boost::thread_group thrds;
- return 0;]]),
- ax_cv_boost_thread=yes, ax_cv_boost_thread=no)
- AC_LANG_POP([C++])
- ])
-
- if test "$ax_cv_boost_thread" = "yes"; then
- BOOST_CXXFLAGS="$PTHREAD_CFLAGS"
- AC_SUBST(BOOST_CXXFLAGS)
- _AX_BOOST_CHECK_LIB([boost_thread])
- if test "$link_ok" = "yes" && test -n "$PTHREAD_LIBS"; then
- BOOST_THREAD_LIB="$BOOST_THREAD_LIB $PTHREAD_LIBS"
- fi
- fi
-
- CPPFLAGS="$CPPFLAGS_SAVED"
- LDFLAGS="$LDFLAGS_SAVED"
- CXXFLAGS="$CXXFLAGS_SAVED"
- fi
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_unit_test_framework.m4 b/gr-howto-write-a-block/config/ax_boost_unit_test_framework.m4
deleted file mode 100644
index 73affccfd..000000000
--- a/gr-howto-write-a-block/config/ax_boost_unit_test_framework.m4
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_UNIT_TEST_FRAMEWORK
-#
-# DESCRIPTION
-#
-# Test for Unit_Test_Framework library from the Boost C++ libraries. The
-# macro requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_UNIT_TEST_FRAMEWORK_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_UNIT_TEST_FRAMEWORK
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_UNIT_TEST_FRAMEWORK],
-[
- AC_REQUIRE([AX_BOOST_BASE])
- _AX_BOOST_CHECK([boost_unit_test_framework],
- [@%:@include <boost/test/unit_test.hpp>],
- [using boost::unit_test::test_suite;
- test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" );
- return 0;])
-])
diff --git a/gr-howto-write-a-block/config/ax_boost_wserialization.m4 b/gr-howto-write-a-block/config/ax_boost_wserialization.m4
deleted file mode 100644
index f384988cb..000000000
--- a/gr-howto-write-a-block/config/ax_boost_wserialization.m4
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# SYNOPSIS
-#
-# AX_BOOST_WSERIALIZATION
-#
-# DESCRIPTION
-#
-# Test for WSerialization library from the Boost C++ libraries. The macro
-# requires a preceding call to AX_BOOST_BASE.
-#
-# This macro calls:
-#
-# AC_SUBST(BOOST_WSERIALIZATION_LIB)
-#
-# And sets:
-#
-# HAVE_BOOST_WSERIALIZATION
-#
-# COPYLEFT
-#
-# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
-# Copyright (c) 2008 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved.
-
-AC_DEFUN([AX_BOOST_WSERIALIZATION],
-[
- AC_REQUIRE([AX_BOOST_BASE])
-
- dnl depends on BOOST_SERIALIZATION
- AC_REQUIRE([AX_BOOST_SERIALIZATION])
- axbws_LDFLAGS_SAVED=$LDFLAGS
- LDFLAGS="$LDFLAGS $BOOST_SERIALIZATION_LIB"
-
- _AX_BOOST_CHECK([boost_wserialization],
- [@%:@include <fstream>
- @%:@include <boost/archive/text_oarchive.hpp>
- @%:@include <boost/archive/text_iarchive.hpp>],
- [std::ofstream ofs("filename");
- boost::archive::text_oarchive oa(ofs);
- return 0;])
-
- LDFLAGS=$axbf_LDFLAGS_SAVED
-])
diff --git a/gr-howto-write-a-block/config/bnv_have_qt.m4 b/gr-howto-write-a-block/config/bnv_have_qt.m4
deleted file mode 100644
index 1469bfbfd..000000000
--- a/gr-howto-write-a-block/config/bnv_have_qt.m4
+++ /dev/null
@@ -1,404 +0,0 @@
-dnl Available from the GNU Autoconf Macro Archive at:
-dnl http://www.gnu.org/software/ac-archive/htmldoc/bnv_have_qt.html
-dnl
-AC_DEFUN([BNV_HAVE_QT],
-[
- dnl THANKS! This code includes bug fixes by:
- dnl Tim McClarren.
-
- AC_REQUIRE([AC_PROG_CXX])
- AC_REQUIRE([AC_PATH_X])
- AC_REQUIRE([AC_PATH_XTRA])
-
- AC_MSG_CHECKING(for Qt)
-
- AC_ARG_WITH([Qt-dir],
- [ --with-Qt-dir=DIR DIR is equal to \$QTDIR if you have followed the
- installation instructions of Trolltech. Header
- files are in DIR/include, binary utilities are
- in DIR/bin and the library is in DIR/lib])
- AC_ARG_WITH([Qt-include-dir],
- [ --with-Qt-include-dir=DIR
- Qt header files are in DIR])
- AC_ARG_WITH([Qt-bin-dir],
- [ --with-Qt-bin-dir=DIR Qt utilities such as moc and uic are in DIR])
- AC_ARG_WITH([Qt-lib-dir],
- [ --with-Qt-lib-dir=DIR The Qt library is in DIR])
- AC_ARG_WITH([Qt-lib],
- [ --with-Qt-lib=LIB Use -lLIB to link with the Qt library])
- if test x"$with_Qt_dir" = x"no" ||
- test x"$with_Qt_include-dir" = x"no" ||
- test x"$with_Qt_bin_dir" = x"no" ||
- test x"$with_Qt_lib_dir" = x"no" ||
- test x"$with_Qt_lib" = x"no"; then
- # user disabled Qt. Leave cache alone.
- have_qt="User disabled Qt."
- else
- # "yes" is a bogus option
- if test x"$with_Qt_dir" = xyes; then
- with_Qt_dir=
- fi
- if test x"$with_Qt_include_dir" = xyes; then
- with_Qt_include_dir=
- fi
- if test x"$with_Qt_bin_dir" = xyes; then
- with_Qt_bin_dir=
- fi
- if test x"$with_Qt_lib_dir" = xyes; then
- with_Qt_lib_dir=
- fi
- if test x"$with_Qt_lib" = xyes; then
- with_Qt_lib=
- fi
- # No Qt unless we discover otherwise
- have_qt=no
- # Check whether we are requested to link with a specific version
- if test x"$with_Qt_lib" != x; then
- bnv_qt_lib="$with_Qt_lib"
- fi
- # Check whether we were supplied with an answer already
- if test x"$with_Qt_dir" != x; then
- have_qt=yes
- bnv_qt_dir="$with_Qt_dir"
- bnv_qt_include_dir="$with_Qt_dir/include"
- bnv_qt_bin_dir="$with_Qt_dir/bin"
- bnv_qt_lib_dir="$with_Qt_dir/lib"
- # Only search for the lib if the user did not define one already
- if test x"$bnv_qt_lib" = x; then
- bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
- sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`"
- fi
- bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
- else
- # Use cached value or do search, starting with suggestions from
- # the command line
- AC_CACHE_VAL(bnv_cv_have_qt,
- [
- # We are not given a solution and there is no cached value.
- bnv_qt_dir=NO
- bnv_qt_include_dir=NO
- bnv_qt_lib_dir=NO
- if test x"$bnv_qt_lib" = x; then
- bnv_qt_lib=NO
- fi
- BNV_PATH_QT_DIRECT
- if test "$bnv_qt_dir" = NO ||
- test "$bnv_qt_include_dir" = NO ||
- test "$bnv_qt_lib_dir" = NO ||
- test "$bnv_qt_lib" = NO; then
- # Problem with finding complete Qt. Cache the known absence of Qt.
- bnv_cv_have_qt="have_qt=no"
- else
- # Record where we found Qt for the cache.
- bnv_cv_have_qt="have_qt=yes \
- bnv_qt_dir=$bnv_qt_dir \
- bnv_qt_include_dir=$bnv_qt_include_dir \
- bnv_qt_bin_dir=$bnv_qt_bin_dir \
- bnv_qt_LIBS=\"$bnv_qt_LIBS\""
- fi
- ])dnl
- eval "$bnv_cv_have_qt"
- fi # all $bnv_qt_* are set
- fi # $have_qt reflects the system status
- if test x"$have_qt" = xyes; then
- QT_CXXFLAGS="-I$bnv_qt_include_dir"
- QT_DIR="$bnv_qt_dir"
- QT_LIBS="$bnv_qt_LIBS"
- # If bnv_qt_dir is defined, utilities are expected to be in the
- # bin subdirectory
- if test x"$bnv_qt_dir" != x; then
- if test -x "$bnv_qt_dir/bin/uic"; then
- QT_UIC="$bnv_qt_dir/bin/uic"
- else
- # Old versions of Qt don't have uic
- QT_UIC=
- fi
- QT_MOC="$bnv_qt_dir/bin/moc"
- else
- # Or maybe we are told where to look for the utilities
- if test x"$bnv_qt_bin_dir" != x; then
- if test -x "$bnv_qt_bin_dir/uic"; then
- QT_UIC="$bnv_qt_bin_dir/uic"
- else
- # Old versions of Qt don't have uic
- QT_UIC=
- fi
- QT_MOC="$bnv_qt_bin_dir/moc"
- else
- # Last possibility is that they are in $PATH
- QT_UIC="`which uic`"
- QT_MOC="`which moc`"
- fi
- fi
- # All variables are defined, report the result
- AC_MSG_RESULT([$have_qt:
- QT_CXXFLAGS=$QT_CXXFLAGS
- QT_DIR=$QT_DIR
- QT_LIBS=$QT_LIBS
- QT_UIC=$QT_UIC
- QT_MOC=$QT_MOC])
- else
- # Qt was not found
- QT_CXXFLAGS=
- QT_DIR=
- QT_LIBS=
- QT_UIC=
- QT_MOC=
- AC_MSG_RESULT($have_qt)
- fi
- AC_SUBST(QT_CXXFLAGS)
- AC_SUBST(QT_DIR)
- AC_SUBST(QT_LIBS)
- AC_SUBST(QT_UIC)
- AC_SUBST(QT_MOC)
-
- #### Being paranoid:
- if test x"$have_qt" = xyes; then
- AC_MSG_CHECKING(correct functioning of Qt installation)
- AC_CACHE_VAL(bnv_cv_qt_test_result,
- [
- cat > bnv_qt_test.h << EOF
-#include <qobject.h>
-class Test : public QObject
-{
-Q_OBJECT
-public:
- Test() {}
- ~Test() {}
-public slots:
- void receive() {}
-signals:
- void send();
-};
-EOF
-
- cat > bnv_qt_main.$ac_ext << EOF
-#include "bnv_qt_test.h"
-#include <qapplication.h>
-int main( int argc, char **argv )
-{
- QApplication app( argc, argv );
- Test t;
- QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) );
-}
-EOF
-
- bnv_cv_qt_test_result="failure"
- bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>bnv_qt_test_1.out"
- AC_TRY_EVAL(bnv_try_1)
- bnv_err_1=`grep -v '^ *+' bnv_qt_test_1.out | grep -v "^bnv_qt_test.h\$"`
- if test x"$bnv_err_1" != x; then
- echo "$bnv_err_1" >&AC_FD_CC
- echo "configure: could not run $QT_MOC on:" >&AC_FD_CC
- cat bnv_qt_test.h >&AC_FD_CC
- else
- bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>bnv_qt_test_2.out"
- AC_TRY_EVAL(bnv_try_2)
- bnv_err_2=`grep -v '^ *+' bnv_qt_test_2.out | grep -v "^bnv_qt_test.{$ac_ext}\$"`
- if test x"$bnv_err_2" != x; then
- echo "$bnv_err_2" >&AC_FD_CC
- echo "configure: could not compile:" >&AC_FD_CC
- cat bnv_qt_test.$ac_ext >&AC_FD_CC
- else
- bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>bnv_qt_test_3.out"
- AC_TRY_EVAL(bnv_try_3)
- bnv_err_3=`grep -v '^ *+' bnv_qt_test_3.out | grep -v "^bnv_qt_main.{$ac_ext}\$"`
- if test x"$bnv_err_3" != x; then
- echo "$bnv_err_3" >&AC_FD_CC
- echo "configure: could not compile:" >&AC_FD_CC
- cat bnv_qt_main.$ac_ext >&AC_FD_CC
- else
- bnv_try_4="$CXX $QT_LIBS $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o >/dev/null 2>bnv_qt_test_4.out"
- AC_TRY_EVAL(bnv_try_4)
- bnv_err_4=`grep -v '^ *+' bnv_qt_test_4.out`
- if test x"$bnv_err_4" != x; then
- echo "$bnv_err_4" >&AC_FD_CC
- else
- bnv_cv_qt_test_result="success"
- fi
- fi
- fi
- fi
- ])dnl AC_CACHE_VAL bnv_cv_qt_test_result
- AC_MSG_RESULT([$bnv_cv_qt_test_result]);
- if test x"$bnv_cv_qt_test_result" = "xfailure"; then
- # working Qt was not found
- QT_CXXFLAGS=
- QT_DIR=
- QT_LIBS=
- QT_UIC=
- QT_MOC=
- have_qt=no
- AC_MSG_WARN([Failed to find matching components of a complete
- Qt installation. Try using more options,
- see ./configure --help.])
- fi
-
- rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \
- bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main \
- bnv_qt_test_1.out bnv_qt_test_2.out bnv_qt_test_3.out bnv_qt_test_4.out
- fi
-])
-
-dnl Internal subroutine of BNV_HAVE_QT
-dnl Set bnv_qt_dir bnv_qt_include_dir bnv_qt_bin_dir bnv_qt_lib_dir bnv_qt_lib
-dnl Copyright 2001 Bastiaan N. Veelo <Bastiaan.N.Veelo@immtek.ntnu.no>
-AC_DEFUN([BNV_PATH_QT_DIRECT],
-[
- ## Binary utilities ##
- if test x"$with_Qt_bin_dir" != x; then
- bnv_qt_bin_dir=$with_Qt_bin_dir
- fi
- ## Look for header files ##
- if test x"$with_Qt_include_dir" != x; then
- bnv_qt_include_dir="$with_Qt_include_dir"
- else
- # The following header file is expected to define QT_VERSION.
- qt_direct_test_header=qglobal.h
- # Look for the header file in a standard set of common directories.
- bnv_include_path_list="
- /usr/include
- `ls -dr /usr/include/qt* 2>/dev/null`
- `ls -dr /usr/lib/qt*/include 2>/dev/null`
- `ls -dr /usr/local/qt*/include 2>/dev/null`
- `ls -dr /opt/qt*/include 2>/dev/null`
- "
- for bnv_dir in $bnv_include_path_list; do
- if test -r "$bnv_dir/$qt_direct_test_header"; then
- bnv_dirs="$bnv_dirs $bnv_dir"
- fi
- done
- # Now look for the newest in this list
- bnv_prev_ver=0
- for bnv_dir in $bnv_dirs; do
- bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//`
- if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then
- bnv_qt_include_dir=$bnv_dir
- bnv_prev_ver=$bnv_this_ver
- fi
- done
- fi dnl Found header files.
-
- # Are these headers located in a traditional Trolltech installation?
- # That would be $bnv_qt_include_dir stripped from its last element:
- bnv_possible_qt_dir=`dirname $bnv_qt_include_dir`
- if test -x $bnv_possible_qt_dir/bin/moc &&
- ls $bnv_possible_qt_dir/lib/libqt* > /dev/null; then
- # Then the rest is a piece of cake
- bnv_qt_dir=$bnv_possible_qt_dir
- bnv_qt_bin_dir="$bnv_qt_dir/bin"
- bnv_qt_lib_dir="$bnv_qt_dir/lib"
- # Only look for lib if the user did not supply it already
- if test x"$bnv_qt_lib" = xNO; then
- bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
- sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`"
- fi
- bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
- else
- # There is no valid definition for $QTDIR as Trolltech likes to see it
- bnv_qt_dir=
- ## Look for Qt library ##
- if test x"$with_Qt_lib_dir" != x; then
- bnv_qt_lib_dir="$with_Qt_lib_dir"
- # Only look for lib if the user did not supply it already
- if test x"$bnv_qt_lib" = xNO; then
- bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
- sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`"
- fi
- bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
- else
- # Normally, when there is no traditional Trolltech installation,
- # the library is installed in a place where the linker finds it
- # automatically.
- # If the user did not define the library name, try with qt
- if test x"$bnv_qt_lib" = xNO; then
- bnv_qt_lib=qt
- fi
- qt_direct_test_header=qapplication.h
- qt_direct_test_main="
- int argc;
- char ** argv;
- QApplication app(argc,argv);
- "
- # See if we find the library without any special options.
- # Don't add top $LIBS permanently yet
- bnv_save_LIBS="$LIBS"
- LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
- bnv_qt_LIBS="$LIBS"
- bnv_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="-I$bnv_qt_include_dir"
- AC_TRY_LINK([#include <$qt_direct_test_header>],
- $qt_direct_test_main,
- [
- # Success.
- # We can link with no special library directory.
- bnv_qt_lib_dir=
- ], [
- # That did not work. Try the multi-threaded version
- echo "Non-critical error, please neglect the above." >&AC_FD_CC
- bnv_qt_lib=qt-mt
- LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
- AC_TRY_LINK([#include <$qt_direct_test_header>],
- $qt_direct_test_main,
- [
- # Success.
- # We can link with no special library directory.
- bnv_qt_lib_dir=
- ], [
- # That did not work. Try the OpenGL version
- echo "Non-critical error, please neglect the above." >&AC_FD_CC
- bnv_qt_lib=qt-gl
- LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
- AC_TRY_LINK([#include <$qt_direct_test_header>],
- $qt_direct_test_main,
- [
- # Succes.
- # We can link with no special library directory.
- bnv_qt_lib_dir=
- ], [
- # That did not work. Maybe a library version I don't know about?
- echo "Non-critical error, please neglect the above." >&AC_FD_CC
- # Look for some Qt lib in a standard set of common directories.
- bnv_dir_list="
- `echo $bnv_qt_includes | sed ss/includess`
- /lib
- /usr/lib
- /usr/local/lib
- /opt/lib
- `ls -dr /usr/lib/qt* 2>/dev/null`
- `ls -dr /usr/local/qt* 2>/dev/null`
- `ls -dr /opt/qt* 2>/dev/null`
- "
- for bnv_dir in $bnv_dir_list; do
- if ls $bnv_dir/libqt*; then
- # Gamble that it's the first one...
- bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p |
- sed s@$bnv_dir/lib@@ | sed s/[.].*//`"
- bnv_qt_lib_dir="$bnv_dir"
- break
- fi
- done
- # Try with that one
- LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
- AC_TRY_LINK([#include <$qt_direct_test_header>],
- $qt_direct_test_main,
- [
- # Succes.
- # We can link with no special library directory.
- bnv_qt_lib_dir=
- ], [
- # Leave bnv_qt_lib_dir defined
- ])
- ])
- ])
- ])
- if test x"$bnv_qt_lib_dir" != x; then
- bnv_qt_LIBS="-l$bnv_qt_lib_dir $LIBS"
- else
- bnv_qt_LIBS="$LIBS"
- fi
- LIBS="$bnv_save_LIBS"
- CXXFLAGS="$bnv_save_CXXFLAGS"
- fi dnl $with_Qt_lib_dir was not given
- fi dnl Done setting up for non-traditional Trolltech installation
-])
diff --git a/gr-howto-write-a-block/config/cppunit.m4 b/gr-howto-write-a-block/config/cppunit.m4
deleted file mode 100644
index 0991d51ec..000000000
--- a/gr-howto-write-a-block/config/cppunit.m4
+++ /dev/null
@@ -1,80 +0,0 @@
-dnl
-dnl AM_PATH_CPPUNIT(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl
-AC_DEFUN([AM_PATH_CPPUNIT],
-[
-
-AC_ARG_WITH(cppunit-prefix,[ --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)],
- cppunit_config_prefix="$withval", cppunit_config_prefix="")
-AC_ARG_WITH(cppunit-exec-prefix,[ --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)],
- cppunit_config_exec_prefix="$withval", cppunit_config_exec_prefix="")
-
- if test x$cppunit_config_exec_prefix != x ; then
- cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
- if test x${CPPUNIT_CONFIG+set} != xset ; then
- CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
- fi
- fi
- if test x$cppunit_config_prefix != x ; then
- cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
- if test x${CPPUNIT_CONFIG+set} != xset ; then
- CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
- fi
- fi
-
- AC_PATH_PROG(CPPUNIT_CONFIG, cppunit-config, no)
- cppunit_version_min=$1
-
- AC_MSG_CHECKING(for Cppunit - version >= $cppunit_version_min)
- no_cppunit=""
- if test "$CPPUNIT_CONFIG" = "no" ; then
- no_cppunit=yes
- else
- CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
- CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
- cppunit_version=`$CPPUNIT_CONFIG --version`
-
- cppunit_major_version=`echo $cppunit_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- cppunit_minor_version=`echo $cppunit_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- cppunit_micro_version=`echo $cppunit_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-
- cppunit_major_min=`echo $cppunit_version_min | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- cppunit_minor_min=`echo $cppunit_version_min | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- cppunit_micro_min=`echo $cppunit_version_min | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-
- cppunit_version_proper=`expr \
- $cppunit_major_version \> $cppunit_major_min \| \
- $cppunit_major_version \= $cppunit_major_min \& \
- $cppunit_minor_version \> $cppunit_minor_min \| \
- $cppunit_major_version \= $cppunit_major_min \& \
- $cppunit_minor_version \= $cppunit_minor_min \& \
- $cppunit_micro_version \>= $cppunit_micro_min `
-
- if test "$cppunit_version_proper" = "1" ; then
- AC_MSG_RESULT([$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version])
- else
- AC_MSG_RESULT(no)
- no_cppunit=yes
- fi
- fi
-
- if test "x$no_cppunit" = x ; then
- ifelse([$2], , :, [$2])
- else
- CPPUNIT_CFLAGS=""
- CPPUNIT_LIBS=""
- ifelse([$3], , :, [$3])
- fi
-
- AC_SUBST(CPPUNIT_CFLAGS)
- AC_SUBST(CPPUNIT_LIBS)
-])
-
-
-
diff --git a/gr-howto-write-a-block/config/gr_check_createfilemapping.m4 b/gr-howto-write-a-block/config/gr_check_createfilemapping.m4
deleted file mode 100644
index 5f9b4a49a..000000000
--- a/gr-howto-write-a-block/config/gr_check_createfilemapping.m4
+++ /dev/null
@@ -1,52 +0,0 @@
-dnl
-dnl Copyright 2005 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-
-dnl AC_DEFUN([GR_CHECK_CREATEFILEMAPPING],
-dnl [
-dnl AC_CHECK_FUNCS([CreateFileMapping])
-dnl ])
-
-AC_DEFUN([GR_CHECK_CREATEFILEMAPPING],[
- AC_MSG_CHECKING([for CreateFileMapping function])
- AC_COMPILE_IFELSE([
-#include <windows.h>
-int main (int argc, char **argv)
-{
- HANDLE handle;
- int size;
- char seg_name[[1024]];
- handle = CreateFileMapping(
- INVALID_HANDLE_VALUE, // use paging file
- NULL, // default security
- PAGE_READWRITE, // read/write access
- 0, // max. object size
- size, // buffer size
- seg_name); // name of mapping object
- return 0;
-}
-],[HAVE_CREATEFILEMAPPING=yes
- AC_DEFINE(HAVE_CREATEFILEMAPPING,[1],[Define if you have the CreateFilemapping function(win32).])],
- [HAVE_CREATEFILEMAPPING=no])
-
- AC_MSG_RESULT($HAVE_CREATEFILEMAPPING)
- AM_CONDITIONAL(HAVE_CREATEFILEMAPPING, test x$HAVE_CREATEFILEMAPPING = xyes)
-])
-
-
diff --git a/gr-howto-write-a-block/config/gr_check_mc4020.m4 b/gr-howto-write-a-block/config/gr_check_mc4020.m4
deleted file mode 100644
index 28987c26b..000000000
--- a/gr-howto-write-a-block/config/gr_check_mc4020.m4
+++ /dev/null
@@ -1,37 +0,0 @@
-dnl
-dnl Copyright 2003 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-AC_DEFUN([GR_CHECK_MC4020],[
- AC_MSG_CHECKING([for mc4020 A/D driver include file])
- AC_COMPILE_IFELSE([
-#include <mc4020.h>
-int main (int argc, char **argv)
-{
- return 0;
-}
-],[HAVE_MC4020=yes
- AC_DEFINE(HAVE_MC4020,[1],[Define if you have a Measurement Computing PCI-DAS4020/12 A/D])],
- [HAVE_MC4020=no])
-
- AC_MSG_RESULT($HAVE_MC4020)
- AM_CONDITIONAL(HAVE_MC4020, test x$HAVE_MC4020 = xyes)
-])
-
diff --git a/gr-howto-write-a-block/config/gr_check_shm_open.m4 b/gr-howto-write-a-block/config/gr_check_shm_open.m4
deleted file mode 100644
index 83d260b9b..000000000
--- a/gr-howto-write-a-block/config/gr_check_shm_open.m4
+++ /dev/null
@@ -1,29 +0,0 @@
-dnl
-dnl Copyright 2003 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-
-AC_DEFUN([GR_CHECK_SHM_OPEN],
-[
- SHM_OPEN_LIBS=""
- save_LIBS="$LIBS"
- AC_SEARCH_LIBS([shm_open], [rt], [SHM_OPEN_LIBS="$LIBS"])
- AC_CHECK_FUNCS([shm_open])
- LIBS="$save_LIBS"
- AC_SUBST(SHM_OPEN_LIBS)
-])
diff --git a/gr-howto-write-a-block/config/gr_check_usrp.m4 b/gr-howto-write-a-block/config/gr_check_usrp.m4
deleted file mode 100644
index 12a5d1c05..000000000
--- a/gr-howto-write-a-block/config/gr_check_usrp.m4
+++ /dev/null
@@ -1,32 +0,0 @@
-dnl
-dnl Copyright 2003 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-dnl Check for Universal Software Radio Peripheral
-
-AC_DEFUN([GR_CHECK_USRP],[
- PKG_CHECK_MODULES(USRP, usrp >= 0.2,
- [HAVE_USRP=yes
- AC_DEFINE(HAVE_USRP,[1],[Define if you have a USRP])],
- [HAVE_USRP=no])
-
- AM_CONDITIONAL(HAVE_USRP, test x$HAVE_USRP = xyes)
-])
-
diff --git a/gr-howto-write-a-block/config/gr_doxygen.m4 b/gr-howto-write-a-block/config/gr_doxygen.m4
deleted file mode 100644
index 15ece8b12..000000000
--- a/gr-howto-write-a-block/config/gr_doxygen.m4
+++ /dev/null
@@ -1,60 +0,0 @@
-dnl
-dnl Copyright 2003,2005 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-AC_DEFUN([GR_CHECK_DOXYGEN],[
- AC_ARG_ENABLE(doxygen,
- AC_HELP_STRING([--enable-doxygen],
- [enable documentation generation with doxygen (no)]))
- AC_ARG_ENABLE(dot, AC_HELP_STRING([--enable-dot],[use 'dot' to generate graphs in doxygen (auto)]))
-
- if test "x$enable_doxygen" = xyes; then
- AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
- if test x$DOXYGEN = x; then
- if test "x$enable_doxygen" = xyes; then
- AC_MSG_ERROR([could not find doxygen])
- fi
- enable_doc=no
- generate_docs=
- else
- enable_doc=yes
- generate_docs=docs
- AC_PATH_PROG(DOT, dot, , $PATH)
- fi
- else
- enable_doc=no
- fi
-
- AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
-
- if test x$DOT = x; then
- if test "x$enable_dot" = xyes; then
- AC_MSG_ERROR([could not find dot])
- fi
- enable_dot=no
- else
- enable_dot=yes
- fi
- AC_SUBST(enable_dot)
- AC_SUBST(enable_xml_docs, YES)
- AC_SUBST(enable_html_docs, YES)
- AC_SUBST(enable_latex_docs, NO)
- AC_SUBST(generate_docs)
-])
diff --git a/gr-howto-write-a-block/config/gr_fortran.m4 b/gr-howto-write-a-block/config/gr_fortran.m4
deleted file mode 100644
index 033ef0307..000000000
--- a/gr-howto-write-a-block/config/gr_fortran.m4
+++ /dev/null
@@ -1,33 +0,0 @@
-dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-
-AC_DEFUN([GR_FORTRAN],[
- dnl if you want to generate a different table of interpolator taps, you need fortran.
- dnl we default to off, since almost no one wants to do this.
- AC_ARG_ENABLE(fortran, AC_HELP_STRING([--enable-fortran],[enable fortran (no)]),
- [], [enable_fortran=no])
- AM_CONDITIONAL(ENABLE_FORTRAN, test "x$enable_fortran" = xyes)
-
- if test "x$enable_fortran" = xyes
- then
- AC_PROG_F77
- AC_F77_LIBRARY_LDFLAGS
- fi
- AC_PROG_CC dnl bug fix to restore $ac_ext
-])
diff --git a/gr-howto-write-a-block/config/gr_git.m4 b/gr-howto-write-a-block/config/gr_git.m4
deleted file mode 100644
index c4f1ea0c0..000000000
--- a/gr-howto-write-a-block/config/gr_git.m4
+++ /dev/null
@@ -1,63 +0,0 @@
-dnl Copyright 2009,2010 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-
-
-AC_DEFUN([GR_GIT],[
- dnl Identify git binary
- AC_PATH_PROG([GIT],[git])
-
- dnl If it exists, get either 'git describe' or fallback to current commit
- if test x$GIT != x ; then
- AC_MSG_CHECKING([existence of git version control directory])
- if test -d $srcdir/.git ; then
- AC_MSG_RESULT([ok])
- AC_MSG_CHECKING([git description of current commit])
- if (cd $srcdir && $GIT describe >/dev/null 2>&1); then
- GIT_DESCRIBE=`cd $srcdir && $GIT describe --abbrev=8 --long`
- # Release candidate tags create an extra -rcX field
- case $GIT_DESCRIBE in
- *-*-*-*)
- GIT_TAG=`echo $GIT_DESCRIBE | cut -f -2 -d '-'`
- GIT_SEQNO=`echo $GIT_DESCRIBE | cut -f 3 -d '-'`
- GIT_COMMIT=`echo $GIT_DESCRIBE | cut -f 4 -d '-' | cut -f 2- -d 'g'`
- ;;
- *-*-*)
- GIT_TAG=`echo $GIT_DESCRIBE | cut -f 1 -d '-'`
- GIT_SEQNO=`echo $GIT_DESCRIBE | cut -f 2 -d '-'`
- GIT_COMMIT=`echo $GIT_DESCRIBE | cut -f 3 -d '-' | cut -f 2- -d 'g'`
- ;;
- esac
-
- AC_MSG_RESULT([$GIT_DESCRIBE])
- else
- AC_MSG_RESULT([no tag in history, using current commit])
- GIT_TAG=''
- GIT_SEQNO=''
- GIT_COMMIT=`cd $srcdir && $GIT describe --always --abbrev=8`
- fi
- else
- AC_MSG_RESULT([not found])
- fi
-
- AC_SUBST([GIT_DESCRIBE])
- AC_SUBST([GIT_TAG])
- AC_SUBST([GIT_SEQNO])
- AC_SUBST([GIT_COMMIT])
- fi
-])
diff --git a/gr-howto-write-a-block/config/gr_gprof.m4 b/gr-howto-write-a-block/config/gr_gprof.m4
deleted file mode 100644
index 20bacf363..000000000
--- a/gr-howto-write-a-block/config/gr_gprof.m4
+++ /dev/null
@@ -1,72 +0,0 @@
-dnl
-dnl Copyright 2002 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-dnl FIXME probably need to add linker flag too...
-
-AC_DEFUN([GR_SET_GPROF],[
- dnl Check for --with-gprof
- AC_MSG_CHECKING([whether user wants gprof])
- AC_ARG_WITH(gprof,
- [ --with-gprof Turn on gprof profiling],
- [], [ with_gprof=no ])
- AC_MSG_RESULT($with_gprof)
-
- dnl gprof profiling flags for the two main compilers
- cc_profiling_flags="-pg"
- cxx_profiling_flags="-pg"
- ld_profiling_flags="-pg"
- if test $with_gprof = yes
- then
- if test -n "${CC}"
- then
- LF_CHECK_CC_FLAG($cc_profiling_flags)
- fi
- if test -n "${CXX}"
- then
- LF_CHECK_CXX_FLAG($cxx_profiling_flags)
- fi
- fi
-])
-
-AC_DEFUN([GR_SET_PROF],[
- dnl Check for --with-prof
- AC_MSG_CHECKING([whether user wants prof])
- AC_ARG_WITH(prof,
- [ --with-prof Turn on prof profiling],
- [], [ with_prof=no ])
- AC_MSG_RESULT($with_prof)
-
- dnl prof profiling flags for the two main compilers
- cc_profiling_flags="-p"
- cxx_profiling_flags="-p"
- ld_profiling_flags="-p"
- if test $with_prof = yes
- then
- if test -n "${CC}"
- then
- LF_CHECK_CC_FLAG($cc_profiling_flags)
- fi
- if test -n "${CXX}"
- then
- LF_CHECK_CXX_FLAG($cxx_profiling_flags)
- fi
- fi
-])
diff --git a/gr-howto-write-a-block/config/gr_guile.m4 b/gr-howto-write-a-block/config/gr_guile.m4
deleted file mode 100644
index 1f0793944..000000000
--- a/gr-howto-write-a-block/config/gr_guile.m4
+++ /dev/null
@@ -1,65 +0,0 @@
-dnl
-dnl Copyright 2003,2004,2005 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-# GUILE_DEVEL()
-#
-# Checks for Guile and tries to get the include path to 'Guile.h'.
-# It sets the $(GUILE_CPPFLAGS), $(GUILE_LDFLAGS) and $(guiledir) output variables,
-#
-AC_DEFUN([GUILE_DEVEL],[
- dnl see if GUILE is installed
- AC_PATH_PROG(GUILE, guile)
- dnl get the config program
- AC_PATH_PROG(GUILE_CONFIG, guile-config)
- if test x${GUILE_CONFIG} != x; then
- GUILE_CFLAGS="`${GUILE_CONFIG} compile`"
- GUILE_LIBS="`${GUILE_CONFIG} link`"
- GUILE_PKLIBDIR="`${GUILE_CONFIG} info pkglibdir`"
- GUILE_PKDATADIR="`${GUILE_CONFIG} info pkgdatadir`/site"
- else
- GUILE_CFLAGS=""
- GUILE_PKLIBDIR=""
- GUILE_LIBS="Wl,-Bsymbolic-functions -lguile -lgmp -lcrypt"
- fi
- AC_SUBST(GUILE_CFLAGS)
- AC_SUBST(GUILE_PKLIBDIR)
- AC_SUBST(GUILE_PKDATADIR)
- AC_SUBST(GUILE_LIBS)
-])
-
-# GUILE_CHECK_MODULE
-#
-# Determines if a particular Guile module can be imported
-#
-# $1 - module name
-# $2 - module description
-# $3 - action if found
-# $4 - action if not found
-# $5 - test command
-
-AC_DEFUN([GUILE_CHECK_MODULE],[
- AC_MSG_CHECKING([for $2])
- dnl ########################################
- dnl # import and test checking
- dnl ########################################
- dnl if test x${enable_guile} = xyes; then
- dnl fi
-])
diff --git a/gr-howto-write-a-block/config/gr_lib64.m4 b/gr-howto-write-a-block/config/gr_lib64.m4
deleted file mode 100644
index 751f774b4..000000000
--- a/gr-howto-write-a-block/config/gr_lib64.m4
+++ /dev/null
@@ -1,85 +0,0 @@
-dnl
-dnl Copyright 2005,2008 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-dnl GR_LIB64()
-dnl
-dnl Checks to see if we're on a x86_64 or powerpc64 machine, and if so, determine
-dnl if libdir should end in "64" or not.
-dnl
-dnl Sets gr_libdir_suffix to "" or "64" and calls AC_SUBST(gr_libdir_suffix)
-dnl May append "64" to libdir.
-dnl
-dnl The current heuristic is:
-dnl if the host_cpu isn't x86_64 or powerpc64, then ""
-dnl if the host_os isn't linux, then ""
-dnl if we're cross-compiling, ask the linker, by way of the selected compiler
-dnl if we're x86_64 and there's a /lib64 and it's not a symlink, then "64", else ""
-dnl else ask the compiler
-dnl
-AC_DEFUN([GR_LIB64],[
- AC_REQUIRE([AC_CANONICAL_HOST])
- AC_REQUIRE([AC_PROG_CXX])
-
- AC_MSG_CHECKING([gr_libdir_suffix])
- gr_libdir_suffix=""
- AC_SUBST(gr_libdir_suffix)
-
- case "$host_os" in
- linux*) is_linux=yes ;;
- *) is_linux=no ;;
- esac
-
- if test "$is_linux" = no || test "$host_cpu" != "x86_64" && test "$host_cpu" != "powerpc64"; then
- gr_libdir_suffix=""
- elif test "$cross_compiling" = yes; then
- _GR_LIB64_ASK_COMPILER
- elif test "$host_cpu" = "x86_64"; then
- if test -d /lib64 && test ! -L /lib64; then
- gr_libdir_suffix=64
- fi
- else
- _GR_LIB64_ASK_COMPILER
- fi
- AC_MSG_RESULT([$gr_libdir_suffix])
-
-
- AC_MSG_CHECKING([whether to append 64 to libdir])
- t=${libdir##*/lib}
- if test "$t" != 64 && test "$gr_libdir_suffix" = "64"; then
- libdir=${libdir}64
- AC_MSG_RESULT([yes. Setting libdir to $libdir])
- else
- AC_MSG_RESULT([no])
- fi
-])
-
-dnl If we're using g++, extract the first SEARCH_DIR("...") entry from the linker script
-dnl and see if it contains a suffix after the final .../lib part of the path.
-dnl (This works because the linker script varies depending on whether we're generating
-dnl 32-bit or 64-bit executables)
-dnl
-AC_DEFUN([_GR_LIB64_ASK_COMPILER],[
- if test "$ac_cv_cxx_compiler_gnu" = "yes";
- then
- gr_libdir_suffix=`$CXX -Wl,--verbose 2>/dev/null | sed -n -e '/SEARCH_DIR/{s/;.*$//; s,^.*/,,; s/".*$//; s/^lib//; p}'`
- fi
-])
-
diff --git a/gr-howto-write-a-block/config/gr_libgnuradio_core_extra_ldflags.m4 b/gr-howto-write-a-block/config/gr_libgnuradio_core_extra_ldflags.m4
deleted file mode 100644
index 43f872c04..000000000
--- a/gr-howto-write-a-block/config/gr_libgnuradio_core_extra_ldflags.m4
+++ /dev/null
@@ -1,40 +0,0 @@
-# Check for (MinGW)win32 extra ld options. -*- Autoconf -*-
-
-# Copyright 2003,2004,2005 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-
-dnl
-AC_DEFUN([GR_LIBGNURADIO_CORE_EXTRA_LDFLAGS], [
-AC_REQUIRE([AC_PROG_LD])
-# on Mingw32 extra LDFLAGS are required to ease global variable linking
-LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
-
-AC_MSG_CHECKING([whether $LD accepts --enable-runtime-pseudo-reloc])
-if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
-then
- # libtool requires the quotes
- LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-
-AC_SUBST(LIBGNURADIO_CORE_EXTRA_LDFLAGS)
-
-])
diff --git a/gr-howto-write-a-block/config/gr_no_undefined.m4 b/gr-howto-write-a-block/config/gr_no_undefined.m4
deleted file mode 100644
index c8d745d5f..000000000
--- a/gr-howto-write-a-block/config/gr_no_undefined.m4
+++ /dev/null
@@ -1,44 +0,0 @@
-dnl
-dnl Copyright 2005 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-# GR_NO_UNDEFINED()
-#
-# Detemine whether we need to use the -no-undefined linker flag
-# when building shared libraries.
-# Sets NO_UNDEFINED to "" or "-no-undefined"
-#
-# As far as I can tell, we need -no-undefined only when building
-# windows DLLs. This occurs when using MinGW and Cygwin.
-#
-# For now, we stub this out.
-
-AC_DEFUN([GR_NO_UNDEFINED],[
- AC_REQUIRE([AC_CANONICAL_HOST])
- no_undefined=""
- case "${host_os}" in
- *mingw* | *cygwin*)
-
- # on MinGW/Cygwin extra LDFLAGS are required
- no_undefined="-no-undefined"
- ;;
- esac
- AC_SUBST(NO_UNDEFINED,[$no_undefined])
-])
diff --git a/gr-howto-write-a-block/config/gr_omnithread.m4 b/gr-howto-write-a-block/config/gr_omnithread.m4
deleted file mode 100644
index 054f07824..000000000
--- a/gr-howto-write-a-block/config/gr_omnithread.m4
+++ /dev/null
@@ -1,52 +0,0 @@
-# Check for Omnithread (pthread/NT) thread support. -*- Autoconf -*-
-
-# Copyright 2003,2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Boston, MA
-# 02110-1301, USA.
-
-AC_DEFUN([GR_OMNITHREAD],
-[
- # Check first for POSIX
- ACX_PTHREAD(
- [ AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])
- ot_posix="yes"
- DEFINES="$DEFINES -DOMNITHREAD_POSIX=1"
- ],[
- # If no POSIX support found, then check for NT threads
- AC_MSG_CHECKING([for NT threads])
-
- AC_LINK_IFELSE([
- #include <windows.h>
- #include <winbase.h>
- int main() { InitializeCriticalSection(NULL); return 0; }
- ],
- [
- ot_nt="yes"
- DEFINES="$DEFINES -DOMNITHREAD_NT=1"
- ],
- [AC_MSG_FAILURE([GNU Radio requires POSIX threads. pthreads not found.])]
- )
- AC_MSG_RESULT(yes)
- ])
- AM_CONDITIONAL(OMNITHREAD_POSIX, test "x$ot_posix" = xyes)
- AM_CONDITIONAL(OMNITHREAD_NT, test "x$ot_nt" = xyes)
-
- save_LIBS="$LIBS"
- AC_SEARCH_LIBS([clock_gettime], [rt], [PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"])
- AC_CHECK_FUNCS([clock_gettime gettimeofday nanosleep])
- LIBS="$save_LIBS"
-])
-
diff --git a/gr-howto-write-a-block/config/gr_pwin32.m4 b/gr-howto-write-a-block/config/gr_pwin32.m4
deleted file mode 100644
index 6b27b439f..000000000
--- a/gr-howto-write-a-block/config/gr_pwin32.m4
+++ /dev/null
@@ -1,138 +0,0 @@
-# Check for (mingw)win32 POSIX replacements. -*- Autoconf -*-
-
-# Copyright 2003,2004,2005,2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-
-
-AC_DEFUN([GR_PWIN32],
-[
-AC_REQUIRE([AC_HEADER_TIME])
-AC_CHECK_HEADERS([sys/types.h fcntl.h io.h])
-AC_CHECK_HEADERS([windows.h])
-AC_CHECK_HEADERS([winioctl.h winbase.h], [], [], [
- #if HAVE_WINDOWS_H
- #include <windows.h>
- #endif
-])
-
-AC_CHECK_FUNCS([getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction])
-AC_CHECK_TYPES([struct timezone, struct timespec, ssize_t],[],[],[
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- #if TIME_WITH_SYS_TIME
- # include <sys/time.h>
- # include <time.h>
- #else
- # if HAVE_SYS_TIME_H
- # include <sys/time.h>
- # else
- # include <time.h>
- # endif
- #endif
-])
-
-dnl Checks for replacements
-AC_REPLACE_FUNCS([getopt usleep gettimeofday])
-
-
-AC_MSG_CHECKING(for Sleep)
-AC_TRY_LINK([ #include <windows.h>
- #include <winbase.h>
- ], [ Sleep(0); ],
- [AC_DEFINE(HAVE_SSLEEP,1,[Define to 1 if you have win32 Sleep])
- AC_MSG_RESULT(yes)],
- AC_MSG_RESULT(no)
- )
-
-AH_BOTTOM(
-[
-/* Define missing prototypes, implemented in replacement lib */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef HAVE_GETOPT
-int getopt (int argc, char * const argv[], const char * optstring);
-extern char * optarg;
-extern int optind, opterr, optopt;
-#endif
-
-#ifndef HAVE_USLEEP
-int usleep(unsigned long usec); /* SUSv2 */
-#endif
-
-#ifndef HAVE_NANOSLEEP
-#ifndef HAVE_STRUCT_TIMESPEC
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h> /* need time_t */
-#endif
-struct timespec {
- time_t tv_sec;
- long tv_nsec;
-};
-#endif
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-static inline int nanosleep(const struct timespec *req, struct timespec *rem) { return usleep(req->tv_sec*1000000+req->tv_nsec/1000); }
-#endif
-
-#if defined(HAVE_SSLEEP) && !defined(HAVE_SLEEP)
-#ifdef HAVE_WINBASE_H
-#include <windows.h>
-#include <winbase.h>
-#endif
-/* TODO: what about SleepEx? */
-static inline unsigned int sleep (unsigned int nb_sec) { Sleep(nb_sec*1000); return 0; }
-#endif
-
-#ifndef HAVE_GETTIMEOFDAY
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-#ifndef HAVE_STRUCT_TIMEZONE
-struct timezone {
- int tz_minuteswest;
- int tz_dsttime;
-};
-#endif
-int gettimeofday(struct timeval *tv, struct timezone *tz);
-#endif
-
-#if !defined(HAVE_RANDOM) && defined(HAVE_RAND)
-#include <stdlib.h>
-static inline long int random (void) { return rand(); }
-#endif
-
-#if !defined(HAVE_SRANDOM) && defined(HAVE_SRAND)
-static inline void srandom (unsigned int seed) { srand(seed); }
-#endif
-
-#ifndef HAVE_SSIZE_T
-typedef size_t ssize_t;
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-])
-
-
-])
diff --git a/gr-howto-write-a-block/config/gr_python.m4 b/gr-howto-write-a-block/config/gr_python.m4
deleted file mode 100644
index 43ccfc015..000000000
--- a/gr-howto-write-a-block/config/gr_python.m4
+++ /dev/null
@@ -1,172 +0,0 @@
-dnl
-dnl Copyright 2003,2004,2005 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-# PYTHON_DEVEL()
-#
-# Checks for Python and tries to get the include path to 'Python.h'.
-# It sets the $(PYTHON_CPPFLAGS), $(PYTHON_LDFLAGS) and $(pythondir) output variables,
-#
-AC_DEFUN([PYTHON_DEVEL],[
- AC_REQUIRE([AM_PATH_PYTHON])
- AC_REQUIRE([AC_CANONICAL_HOST])
-
- AC_ARG_WITH(pythondir,
- AC_HELP_STRING([--with-pythondir=DIR],
- [python installation directory (cross-compiling) [[default=$prefix/lib/python2.5/site-packages]]]),
- [with_pythondir=${withval}],[with_pythondir=${prefix}/lib/python2.5/site-packages])
-
- # if we're cross-compiling, asking the host python about any of
- # this is completely useless...
-
- if test x$cross_compiling != xno
- then
- pythondir=$with_pythondir
- pyexecdir=$with_pythondir
- AC_SUBST(PYTHON_CPPFLAGS)
- AC_SUBST(PYTHON_LDFLAGS)
- else
-
- # For Fedora Core 5 and 6, see ticket:39 in Trac
- if test -f '/etc/redhat-release'; then
- if (echo $pyexecdir | grep -q lib64); then
- pythondir="$pyexecdir"
- fi
- fi
-
- # Check for Python include path
- AC_MSG_CHECKING([for Python include path])
- if test -z "$PYTHON" ; then
- AC_MSG_ERROR([cannot find Python path])
- fi
-
- # ask distutils which include path we should use
- python_cmd='
-import distutils.sysconfig
-import os
-path = distutils.sysconfig.get_python_inc(plat_specific=False)
-if os.sep == "\\":
- path = path.replace("\\", "/")
-print path
-'
- python_path=`$PYTHON -c "$python_cmd"`
- AC_MSG_RESULT([$python_path])
- if test -z "$python_path" ; then
- AC_MSG_ERROR([cannot find Python include path])
- fi
-
- AC_SUBST(PYTHON_CPPFLAGS,[-I$python_path])
-
- # Check for Python headers usability
- python_save_CPPFLAGS=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
- AC_CHECK_HEADERS([Python.h], [],
- [AC_MSG_ERROR([cannot find usable Python headers])])
- CPPFLAGS="$python_save_CPPFLAGS"
-
- # Only set this on mingw and cygwin hosts, (only implemented
- # for mingw host, for crosscompiling you need to trick this)
-
- PYTHON_LDFLAGS=""
- case $host_os in
- *mingw* | *cygwin* )
- AC_MSG_CHECKING([for Python LDFLAGS])
-
- python_cmd='
-import distutils.sysconfig
-import os
-path = distutils.sysconfig.get_config_var("LIBPL")
-if path == None:
- path = distutils.sysconfig.PREFIX + "/libs"
-if os.sep == "\\":
- path = path.replace("\\", "/")
-print path
-'
- python_stdlib_path=`$PYTHON -c "$python_cmd"`
-
- python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
- libpython_name="python$PYTHON_VERSION"
-
- # Standard install of python for win32 has libpython24.a
- # instead of libpython2.4.a so we check for the library
- # without the dot in the version number.
-
- python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
- if test -n "$python_stdlib_filename" ; then
- libpython_name="python$python_version_nodot"
- fi
-
- PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
- AC_MSG_RESULT($PYTHON_LDFLAGS)
- # Replace all backslashes in PYTHON Paths with forward slashes
- pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
- pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
- pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
- pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
- ;;
- esac
-
- case $host_os in
- *mingw* )
- # Python 2.5 requires ".pyd" instead of ".dll" for extensions
- PYTHON_LDFLAGS="-shrext .pyd ${PYTHON_LDFLAGS}"
- esac
-
- AC_SUBST(PYTHON_LDFLAGS)
- fi
-])
-
-# PYTHON_CHECK_MODULE
-#
-# Determines if a particular Python module can be imported
-#
-# $1 - module name
-# $2 - module description
-# $3 - action if found
-# $4 - action if not found
-# $5 - test command
-
-AC_DEFUN([PYTHON_CHECK_MODULE],[
- AC_MSG_CHECKING([for $2])
- dnl ########################################
- dnl # import and test checking
- dnl ########################################
- if test "$5"; then
- python_cmd='
-try:
- import $1
- assert $5
-except: exit(1)'
- dnl ########################################
- dnl # import checking only
- dnl ########################################
- else
- python_cmd='
-try: import $1
-except: exit(1)'
- fi
- if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
- AC_MSG_RESULT([no])
- $4
- else
- AC_MSG_RESULT([yes])
- $3
- fi
-])
diff --git a/gr-howto-write-a-block/config/gr_require_mc4020.m4 b/gr-howto-write-a-block/config/gr_require_mc4020.m4
deleted file mode 100644
index 90774fd33..000000000
--- a/gr-howto-write-a-block/config/gr_require_mc4020.m4
+++ /dev/null
@@ -1,33 +0,0 @@
-dnl
-dnl Copyright 2003,2004 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-AC_DEFUN([GR_REQUIRE_MC4020],[
- AC_MSG_CHECKING([for mc4020 A/D driver include file])
- AC_COMPILE_IFELSE([
-#include <mc4020.h>
-int main (int argc, char **argv)
-{
- return 0;
-}
-],[AC_MSG_RESULT([yes])],
- [AC_MSG_RESULT([no])
- AC_MSG_ERROR([mc4020.h not found.])])
-])
diff --git a/gr-howto-write-a-block/config/gr_scripting.m4 b/gr-howto-write-a-block/config/gr_scripting.m4
deleted file mode 100644
index 866b7e017..000000000
--- a/gr-howto-write-a-block/config/gr_scripting.m4
+++ /dev/null
@@ -1,38 +0,0 @@
-dnl
-dnl Copyright 2003 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-AC_DEFUN([GR_SCRIPTING],[
- AC_REQUIRE([AC_PROG_LN_S])
- AC_REQUIRE([AC_PROG_CXX])
- AC_REQUIRE([AC_PROG_LIBTOOL])
-
- SWIG_PROG(1.3.31)
- SWIG_ENABLE_CXX
- dnl We need python at build time, as it's used as for utilities. If python
- dnl isn't enabled, then we don't want the SWIG support for python.
- AC_REQUIRE([AM_PATH_PYTHON])
- if test x${enable_python} = xyes; then
- SWIG_PYTHON
- fi
- if test x${enable_guile} = xyes; then
- SWIG_GUILE
- fi
-])
diff --git a/gr-howto-write-a-block/config/gr_set_md_cpu.m4 b/gr-howto-write-a-block/config/gr_set_md_cpu.m4
deleted file mode 100644
index cb5fb5aac..000000000
--- a/gr-howto-write-a-block/config/gr_set_md_cpu.m4
+++ /dev/null
@@ -1,115 +0,0 @@
-dnl
-dnl Copyright 2003,2008,2009 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-AC_DEFUN([_TRY_ADD_ALTIVEC],
-[
- LF_CHECK_CC_FLAG([-mabi=altivec -maltivec])
- LF_CHECK_CXX_FLAG([-mabi=altivec -maltivec])
-])
-
-AC_DEFUN([_FIND_ARM_ISA],
-[
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
- [[#ifndef __ARM_ARCH_5__
- #error "Not armv5"
- #endif
- ]])],
- [is_armv5=yes],
- [is_armv5=no])
-
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
- [[#ifndef __ARM_ARCH_7A__
- #error "Not armv7-a"
- #endif
- ]])],
- [is_armv7_a=yes],
- [is_armv7_a=no])
-
-])
-
-AC_DEFUN([GR_SET_MD_CPU],[
- AC_REQUIRE([AC_CANONICAL_HOST])
- AC_ARG_WITH(md-cpu,
- AC_HELP_STRING([--with-md-cpu=ARCH],[set machine dependent speedups (auto)]),
- [cf_with_md_cpu="$withval"],
- [
- dnl see if the user has specified --host or --build, via 'cross_compiling'
- if test "$cross_compiling" != no; then
- dnl when cross-compiling, because the user specified it either via
- dnl --target or --build, just keep the user's specs & hope for the best.
- cf_with_md_cpu="$host_cpu"
- else
- dnl when the user didn't specify --target or --build, on Darwin 10
- dnl (OSX 10.6.0 and .1) and GNU libtoool 2.2.6, 'configure' doesn't
- dnl figure out the CPU type correctly, so do it by hand here using
- dnl the sizeof (void*): if 4 then use i386, and otherwise use x86_64.
- case "$host_os" in
- *darwin*10*)
- AC_CHECK_SIZEOF(void*)
- if test "$ac_cv_sizeof_voidp" = 4; then
- cf_with_md_cpu="i386"
- else
- cf_with_md_cpu="x86_64"
- fi
- ;;
- *)
- cf_with_md_cpu="$host_cpu"
- ;;
- esac
- fi
- ])
- case "$cf_with_md_cpu" in
- x86 | i[[3-7]]86) MD_CPU=x86 MD_SUBCPU=x86 ;;
- x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;;
- powerpc*) MD_CPU=powerpc ;;
- arm*)
- _FIND_ARM_ISA
- if test $is_armv5 = yes; then MD_CPU=armv5;
- elif test $is_armv7_a = yes; then MD_CPU=armv7_a;
- else MD_CPU=generic; fi
- ;;
- *) MD_CPU=generic ;;
- esac
-
- AC_ARG_ENABLE(altivec,
- AC_HELP_STRING([--enable-altivec],[enable altivec on PowerPC (yes)]),
- [ if test $MD_CPU = powerpc; then
- case "$enableval" in
- (no) MD_CPU=generic ;;
- (yes) _TRY_ADD_ALTIVEC ;;
- (*) AC_MSG_ERROR([Invalid argument ($enableval) to --enable-altivec]) ;;
- esac
- fi],
- [ if test $MD_CPU = powerpc; then _TRY_ADD_ALTIVEC fi])
-
-
- AC_MSG_CHECKING([for machine dependent speedups])
- AC_MSG_RESULT($MD_CPU)
- AC_SUBST(MD_CPU)
- AC_SUBST(MD_SUBCPU)
-
- AM_CONDITIONAL(MD_CPU_x86, test "$MD_CPU" = "x86")
- AM_CONDITIONAL(MD_SUBCPU_x86_64, test "$MD_SUBCPU" = "x86_64")
- AM_CONDITIONAL(MD_CPU_powerpc, test "$MD_CPU" = "powerpc")
- AM_CONDITIONAL(MD_CPU_armv5, test "$MD_CPU" = "armv5")
- AM_CONDITIONAL(MD_CPU_armv7_a, test "$MD_CPU" = "armv7_a")
- AM_CONDITIONAL(MD_CPU_generic, test "$MD_CPU" = "generic")
-])
diff --git a/gr-howto-write-a-block/config/gr_standalone.m4 b/gr-howto-write-a-block/config/gr_standalone.m4
deleted file mode 100644
index beb98204c..000000000
--- a/gr-howto-write-a-block/config/gr_standalone.m4
+++ /dev/null
@@ -1,159 +0,0 @@
-dnl
-dnl Copyright 2008,2009,2010 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License along
-dnl with this program; if not, write to the Free Software Foundation, Inc.,
-dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-dnl
-
-dnl
-dnl GR_STANDALONE([package],[version])
-dnl
-dnl Handles the bulk of the configure.ac work for an out-of-tree build
-dnl
-dnl N.B., this is an m4_define because if it were an AC_DEFUN it would
-dnl get called too late to be useful.
-
-m4_define([GR_STANDALONE],
-[
- AC_CONFIG_SRCDIR([config/gr_standalone.m4])
- AM_CONFIG_HEADER(config.h)
-
- dnl Remember if the user explicity set CXXFLAGS
- if test -n "${CXXFLAGS}"; then
- user_set_cxxflags=yes
- fi
-
- LF_CONFIGURE_CC
- LF_CONFIGURE_CXX
- GR_LIB64 dnl check for lib64 suffix after choosing compilers
-
- dnl The three macros above are known to override CXXFLAGS if the user
- dnl didn't specify them. Though I'm sure somebody thought this was
- dnl a good idea, it makes it hard to use other than -g -O2 when compiling
- dnl selected files. Thus we "undo" the damage here...
- dnl
- dnl If the user specified CXXFLAGS, we use them. Otherwise when compiling
- dnl the output of swig use use -O1 if we're using g++.
- dnl See Makefile.common for the rest of the magic.
- if test "$user_set_cxxflags" != yes; then
- autoconf_default_CXXFLAGS="$CXXFLAGS"
- if test "$GXX" = yes; then
- case "$host_cpu" in
- powerpc*)
- dnl "-O1" is broken on the PPC for some reason
- dnl (at least as of g++ 4.1.1)
- swig_CXXFLAGS="-g1 -O2 -Wno-strict-aliasing -Wno-parentheses"
- ;;
- *)
- swig_CXXFLAGS="-g -O1 -Wno-strict-aliasing -Wno-parentheses"
- ;;
- esac
- fi
- fi
- AC_SUBST(autoconf_default_CXXFLAGS)
- AC_SUBST(swig_CXXFLAGS)
-
- dnl add ${prefix}/lib${gr_libdir_suffix}/pkgconfig to the head of the PKG_CONFIG_PATH
- if test x${PKG_CONFIG_PATH} = x; then
- PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig
- else
- PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig:${PKG_CONFIG_PATH}
- fi
- export PKG_CONFIG_PATH
-
- LF_SET_WARNINGS
- GR_SET_GPROF
- GR_SET_PROF
- AM_PROG_AS
- AC_PROG_LN_S
- AC_PROG_MAKE_SET
- AC_PROG_INSTALL
- AC_PATH_PROG([RM_PROG], [rm])
-
- AC_LIBTOOL_WIN32_DLL
- AC_ENABLE_SHARED dnl do build shared libraries
- AC_DISABLE_STATIC dnl don't build static libraries
- m4_ifdef([LT_INIT],[LT_INIT],[AC_PROG_LIBTOOL])
- dnl GR_FORTRAN
-
- GR_NO_UNDEFINED dnl do we need the -no-undefined linker flag
- GR_SCRIPTING dnl Locate python, SWIG, etc
-
- dnl Checks for header files.
- AC_HEADER_STDC
-
- dnl Checks for typedefs, structures, and compiler characteristics.
- AC_C_CONST
- AC_C_INLINE
- AC_TYPE_SIZE_T
- AC_HEADER_TIME
- AC_C_BIGENDIAN
-
- dnl Check for Mingw support
- GR_PWIN32
-
- AC_CHECK_PROG([XMLTO],[xmlto],[yes],[])
- AM_CONDITIONAL([HAS_XMLTO], [test x$XMLTO = xyes])
-
- PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 3)
- LIBS="$LIBS $GNURADIO_CORE_LIBS"
-
- gnuradio_core_GUILE_LOAD_PATH="`pkg-config --variable=guile_load_path gnuradio-core`"
- gnuradio_core_LIBDIRPATH="`pkg-config --variable=libdir gnuradio-core`"
- AC_SUBST(gnuradio_core_GUILE_LOAD_PATH)
- AC_SUBST(gnuradio_core_LIBDIRPATH)
-
- dnl Allow user to choose whether to generate SWIG/Python
- dnl Default is enabled
- AC_ARG_ENABLE([python],
- [AS_HELP_STRING([--enable-python],
- [generate SWIG/Python components (default is yes)])],
- [case "${enableval}" in
- yes) enable_python=yes ;;
- no) enable_python=no ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-python]) ;;
- esac],
- [enable_python=yes]
- )
- AM_CONDITIONAL([PYTHON], [test x$enable_python = xyes])
-
- dnl Allow user to choose whether to generate SWIG/Guile
- dnl Default is disabled
- AC_ARG_ENABLE([guile],
- [AS_HELP_STRING([--enable-guile],
- [generate SWIG/Guile components (default is no)])],
- [case "${enableval}" in
- yes) enable_guile=yes ;;
- no) enable_guile=no ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-guile]) ;;
- esac],
- [enable_guile=no]
- )
- AM_CONDITIONAL([GUILE], [test x$enable_guile = xyes])
-
- dnl see if GUILE is installed
- if test x${enable_guile} == xyes; then
- AC_PATH_PROG(GUILE,guile)
- fi
-
- dnl Define where to look for cppunit includes and libs
- dnl sets CPPUNIT_CFLAGS and CPPUNIT_LIBS
- dnl Try using pkg-config first, then fall back to cppunit-config.
- PKG_CHECK_EXISTS(cppunit,
- [PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.9.14)],
- [AM_PATH_CPPUNIT([1.9.14],[],
- [AC_MSG_ERROR([GNU Radio requires cppunit. Stop])])])
-])
diff --git a/gr-howto-write-a-block/config/gr_subversion.m4 b/gr-howto-write-a-block/config/gr_subversion.m4
deleted file mode 100644
index 849d7a9f6..000000000
--- a/gr-howto-write-a-block/config/gr_subversion.m4
+++ /dev/null
@@ -1,36 +0,0 @@
-dnl
-dnl Copyright 2007 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-# GR_SUBVERSION()
-#
-# Test for presence of subversion, and create variables for
-# current repository version and last changed date.
-
-AC_DEFUN([GR_SUBVERSION],[
- AC_PATH_PROG([SVN],[svn])
- if test "$SVN" != "" -a -d .svn ; then
- SVNVERSION=`$SVN info . | grep '^Revision' | cut -f 2- -d ' '`
- SVNDATE=`$SVN info . | grep 'Last Changed Date' | cut -f 4-6 -d ' '`
- fi
-
- AC_SUBST(SVNVERSION)
- AC_SUBST(SVNDATE)
-])
diff --git a/gr-howto-write-a-block/config/gr_swig.m4 b/gr-howto-write-a-block/config/gr_swig.m4
deleted file mode 100644
index dcc2e72dc..000000000
--- a/gr-howto-write-a-block/config/gr_swig.m4
+++ /dev/null
@@ -1,109 +0,0 @@
-dnl
-dnl Copyright 2003 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-# SWIG_PROG([required-version])
-#
-# Checks for the SWIG program. If found you can (and should) call SWIG via $(SWIG).
-# You can use the optional first argument to check if the version of the available SWIG
-# is greater or equal to the value of the argument. It should have the format:
-# N[.N[.N]] (N is a number between 0 and 999. Only the first N is mandatory.)
-AC_DEFUN([SWIG_PROG],[
- AC_REQUIRE([AC_PROG_MAKE_SET])
- AC_CHECK_PROG(SWIG,swig,[`which swig`])
- if test -z "$SWIG" ; then
- AC_MSG_ERROR([Cannot find 'swig' program. SWIG version >= $1 required])
- SWIG=false
- elif test -n "$1" ; then
- AC_MSG_CHECKING([for SWIG version])
- swig_version=`$SWIG -version 2>&1 | \
- awk '/^SWIG Version [[0-9]+\.[0-9]+\.[0-9]]+.*$/ { split($[3],a,"[[^.0-9]]"); print a[[1]] }'`
- AC_MSG_RESULT([$swig_version])
- if test -n "$swig_version" ; then
- swig_version=`echo $swig_version | \
- awk '{ split($[1],a,"\."); print [a[1]*1000000+a[2]*1000+a[3]] }' 2>/dev/null`
- swig_required_version=`echo $1 | \
- awk '{ split($[1],a,"\."); print [a[1]*1000000+a[2]*1000+a[3]] }' 2>/dev/null`
- if test $swig_required_version -gt $swig_version ; then
- AC_MSG_ERROR([SWIG version >= $1 required])
- fi
- else
- AC_MSG_ERROR([cannot determine SWIG version])
- fi
- fi
-])
-
-# SWIG_ENABLE_CXX()
-#
-# Enable swig C++ support. This effects all invocations of $(SWIG).
-AC_DEFUN([SWIG_ENABLE_CXX],[
- AC_REQUIRE([SWIG_PROG])
- AC_REQUIRE([AC_PROG_CXX])
- if test "$SWIG" != "false" ; then
- SWIG="$SWIG -c++"
- fi
-])
-
-# SWIG_PYTHON([use-shadow-classes])
-#
-# Checks for Python and provides the $(SWIG_PYTHON_CPPFLAGS),
-# $(SWIG_PYTHON_LIB) and $(SWIG_PYTHON_OPT) output variables.
-# $(SWIG_PYTHON_OPT) contains all necessary swig options to generate
-# code for Python. If you need multi module support use
-# $(SWIG_PYTHON_LIB) (provided by the SWIG_MULTI_MODULE_SUPPORT()
-# macro) to link against the appropriate library. It contains the
-# SWIG Python runtime library that is needed by the type check system
-# for example.
-
-AC_DEFUN([SWIG_PYTHON],[
- AC_REQUIRE([SWIG_PROG])
- AC_REQUIRE([PYTHON_DEVEL])
- if test "$SWIG" != "false" ; then
- AC_SUBST(SWIG_PYTHON_LIB,[-lswigpy])
-dnl test ! "x$1" = "xno" && swig_shadow=" -shadow" || swig_shadow=""
-dnl AC_SUBST(SWIG_PYTHON_OPT,[-python$swig_shadow])
- AC_SUBST(SWIG_PYTHON_OPT,[-python])
- fi
- AC_SUBST(SWIG_PYTHON_CPPFLAGS,[$PYTHON_CPPFLAGS])
-])
-
-AC_DEFUN([SWIG_TCL],[
- AC_REQUIRE([SWIG_PROG])
- AC_REQUIRE([TCL_DEVEL])
- if test "$SWIG" != "false" ; then
- AC_SUBST(SWIG_TCL_LIB,[-ltcl])
-dnl test ! "x$1" = "xno" && swig_shadow=" -shadow" || swig_shadow=""
-dnl AC_SUBST(SWIG_PYTHON_OPT,[-python$swig_shadow])
- AC_SUBST(SWIG_TCL_OPT,[-tcl])
- fi
- AC_SUBST(SWIG_TCL_CPPFLAGS,[$TCL_CPPFLAGS])
-])
-
-AC_DEFUN([SWIG_GUILE],[
- AC_REQUIRE([SWIG_PROG])
- AC_REQUIRE([GUILE_DEVEL])
- if test "$SWIG" != "false" ; then
- AC_SUBST(SWIG_GUILE_LIB,[-lguile])
-dnl test ! "x$1" = "xno" && swig_shadow=" -shadow" || swig_shadow=""
-dnl AC_SUBST(SWIG_PYTHON_OPT,[-python$swig_shadow])
- AC_SUBST(SWIG_GUILE_OPT,[-guile])
- fi
- AC_SUBST(SWIG_GUILE_CPPFLAGS,[$GUILE_CPPFLAGS])
-])
diff --git a/gr-howto-write-a-block/config/gr_sysv_shm.m4 b/gr-howto-write-a-block/config/gr_sysv_shm.m4
deleted file mode 100644
index db5c8351e..000000000
--- a/gr-howto-write-a-block/config/gr_sysv_shm.m4
+++ /dev/null
@@ -1,36 +0,0 @@
-# Check for IPC System V shm support. -*- Autoconf -*-
-
-# Copyright 2003 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Boston, MA
-# 02110-1301, USA.
-
-AC_DEFUN([GR_SYSV_SHM],
-[
- AC_LANG_SAVE
- AC_LANG_C
-
- AC_CHECK_HEADERS([sys/ipc.h sys/shm.h])
-
- save_LIBS="$LIBS"
- AC_SEARCH_LIBS(shmat, [cygipc ipc],
- [ IPC_LIBS="$LIBS" ],
- [ AC_MSG_WARN([SystemV IPC support not found. ]) ]
- )
- LIBS="$save_LIBS"
-
- AC_LANG_RESTORE
- AC_SUBST(IPC_LIBS)
-])
diff --git a/gr-howto-write-a-block/config/gr_version.m4 b/gr-howto-write-a-block/config/gr_version.m4
deleted file mode 100644
index a7a202238..000000000
--- a/gr-howto-write-a-block/config/gr_version.m4
+++ /dev/null
@@ -1,73 +0,0 @@
-dnl Copyright 2009,2010 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-
-AC_DEFUN([GR_VERSION],[
- dnl Computed version based on version.sh
- dnl Does not force recompile on rev change
- dnl
- dnl Source the variables describing the release version
- dnl
- dnl MAJOR_VERSION Major release generation (2.x, 3.x, etc.)
- dnl API_COMPAT API compatibility version (3.2.x, 3.3.x, etc.)
- dnl MINOR_VERSION Minor release version (3.3.0, 3.3.1, etc.)
- dnl MAINT_VERSION Pure bugfix additions to make maintenance release
- dnl
- dnl The last two fields can have 'git' instead of a number to indicate
- dnl that this branch is between versions.
- . $srcdir/version.sh
-
- dnl Get git version if available
- GR_GIT
-
- dnl Test if we should use git version
- if test "$MINOR_VERSION" == "git"; then
- dnl RELEASE: 3.3git-xxx-gxxxxxxxx
- dnl DOCVER: 3.3git
- dnl LIBVER: 3.3git
- RELEASE=$GIT_DESCRIBE
- DOCVER=$MAJOR_VERSION.$API_COMPAT$MINOR_VERSION
- LIBVER=$MAJOR_VERSION.$API_COMPAT$MINOR_VERSION
- else
- if test "$MAINT_VERSION" == "git" ; then
- dnl RELEASE: 3.3.1git-xxx-gxxxxxxxx
- dnl DOCVER: 3.3.1git
- dnl LIBVER: 3.3.1git
- RELEASE=$GIT_DESCRIBE
- DOCVER=$MAJOR_VERSION.$API_COMPAT.$MINOR_VERSION$MAINT_VERSION
- LIBVER=$MAJOR_VERSION.$API_COMPAT.$MINOR_VERSION$MAINT_VERSION
- else
- dnl This is a numbered release.
- dnl RELEASE: 3.3.1{.x}
- dnl DOCVER: 3.3.1{.x}
- dnl LIBVER: 3.3.1{.x}
- RELEASE=$MAJOR_VERSION.$API_COMPAT.$MINOR_VERSION
- if test "$MAINT_VERSION" != "0"; then
- RELEASE=$RELEASE.$MAINT_VERSION
- fi
-
- DOCVER=$RELEASE
- LIBVER=$RELEASE
- fi
- fi
-
- AC_MSG_NOTICE([GNU Radio Release $RELEASE])
- AC_SUBST(RELEASE)
- AC_SUBST(DOCVER)
- AC_SUBST(LIBVER)
-])
diff --git a/gr-howto-write-a-block/config/lf_cc.m4 b/gr-howto-write-a-block/config/lf_cc.m4
deleted file mode 100644
index b75e1a4c5..000000000
--- a/gr-howto-write-a-block/config/lf_cc.m4
+++ /dev/null
@@ -1,41 +0,0 @@
-dnl Autoconf support for C++
-dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301, USA.
-dnl
-dnl As a special exception to the GNU General Public License, if you
-dnl distribute this file as part of a program that contains a configuration
-dnl script generated by Autoconf, you may include it under the same
-dnl distribution terms that you use for the rest of that program.
-
-# -------------------------------------------------------------------------
-# Use this macro to configure your C compiler
-# When called the macro does the following things:
-# 1. It finds an appropriate C compiler.
-# If you passed the flag --with-cc=foo then it uses that
-# particular compiler
-# 2. Check whether the compiler works.
-# 3. Checks whether the compiler accepts the -g
-# -------------------------------------------------------------------------
-
-AC_DEFUN([LF_CONFIGURE_CC],[
- dnl Sing the song
- AC_REQUIRE([AC_PROG_CC])dnl
- AC_REQUIRE([AC_PROG_CPP])dnl
- AC_REQUIRE([AC_AIX])dnl
- AC_REQUIRE([AC_ISC_POSIX])dnl
- AC_REQUIRE([AC_HEADER_STDC])dnl
-])
-
diff --git a/gr-howto-write-a-block/config/lf_cxx.m4 b/gr-howto-write-a-block/config/lf_cxx.m4
deleted file mode 100644
index 7cce5f8a4..000000000
--- a/gr-howto-write-a-block/config/lf_cxx.m4
+++ /dev/null
@@ -1,50 +0,0 @@
-dnl Autoconf support for C++
-dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301, USA.
-dnl
-dnl As a special exception to the GNU General Public License, if you
-dnl distribute this file as part of a program that contains a configuration
-dnl script generated by Autoconf, you may include it under the same
-dnl distribution terms that you use for the rest of that program.
-
-# -----------------------------------------------------------------
-# This macro should be called to configure your C++ compiler.
-# When called, the macro does the following things:
-# 1. It finds an appropriate C++ compiler
-# If you passed the flag --with-cxx=foo, then it uses that
-# particular compiler
-# 2. Checks whether the compiler accepts the -g
-# ------------------------------------------------------------------
-
-AC_DEFUN([LF_CONFIGURE_CXX],[
- AC_REQUIRE([AC_PROG_CXX])dnl
- AC_REQUIRE([AC_PROG_CXXCPP])dnl
- LF_CXX_PORTABILITY
-])
-
-# -----------------------------------------------------------------------
-# This macro tests the C++ compiler for various portability problem.
-# -----------------------------------------------------------------------
-
-
-AC_DEFUN([LF_CXX_PORTABILITY],[
-
- dnl
- dnl Check for common C++ portability problems
- dnl
-
-])
-
diff --git a/gr-howto-write-a-block/config/lf_warnings.m4 b/gr-howto-write-a-block/config/lf_warnings.m4
deleted file mode 100644
index d40c77f14..000000000
--- a/gr-howto-write-a-block/config/lf_warnings.m4
+++ /dev/null
@@ -1,121 +0,0 @@
-dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
-dnl Copyright (C) 2009 Free Software Foundation, Inc.
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301, USA.
-dnl
-dnl As a special exception to the GNU General Public License, if you
-dnl distribute this file as part of a program that contains a configuration
-dnl script generated by Autoconf, you may include it under the same
-dnl distribution terms that you use for the rest of that program.
-
-# --------------------------------------------------------------------------
-# Check whether the C++ compiler accepts a certain flag
-# If it does it adds the flag to lf_CXXFLAGS
-# If it does not then it returns an error to lf_ok
-# Usage:
-# LF_CHECK_CXX_FLAG(-flag1 -flag2 -flag3 ...)
-# -------------------------------------------------------------------------
-
-AC_DEFUN([LF_CHECK_CXX_FLAG],[
- echo 'void f(){}' > conftest.cc
- for i in $1
- do
- AC_MSG_CHECKING([whether $CXX accepts $i])
- if test -z "`${CXX} $i -c conftest.cc 2>&1`"
- then
- lf_CXXFLAGS="${lf_CXXFLAGS} $i"
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
- done
- rm -f conftest.cc conftest.o
- AC_SUBST(lf_CXXFLAGS)
-])
-
-# --------------------------------------------------------------------------
-# Check whether the C compiler accepts a certain flag
-# If it does it adds the flag to lf_CFLAGS
-# If it does not then it returns an error to lf_ok
-# Usage:
-# LF_CHECK_CC_FLAG(-flag1 -flag2 -flag3 ...)
-# -------------------------------------------------------------------------
-
-AC_DEFUN([LF_CHECK_CC_FLAG],[
- echo 'void f(){}' > conftest.c
- for i in $1
- do
- AC_MSG_CHECKING([whether $CC accepts $i])
- if test -z "`${CC} $i -c conftest.c 2>&1`"
- then
- lf_CFLAGS="${lf_CFLAGS} $i"
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
- done
- rm -f conftest.c conftest.o
- AC_SUBST(lf_CFLAGS)
-])
-
-# --------------------------------------------------------------------------
-# Check whether the Fortran compiler accepts a certain flag
-# If it does it adds the flag to lf_FFLAGS
-# If it does not then it returns an error to lf_ok
-# Usage:
-# LF_CHECK_F77_FLAG(-flag1 -flag2 -flag3 ...)
-# -------------------------------------------------------------------------
-
-AC_DEFUN([LF_CHECK_F77_FLAG],[
- cat << EOF > conftest.f
-c....:++++++++++++++++++++++++
- PROGRAM MAIN
- PRINT*,'Hello World!'
- END
-EOF
- for i in $1
- do
- AC_MSG_CHECKING([whether $F77 accepts $i])
- if test -z "`${F77} $i -c conftest.f 2>&1`"
- then
- lf_FFLAGS="${lf_FFLAGS} $i"
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
- done
- rm -f conftest.f conftest.o
- AC_SUBST(lf_FFLAGS)
-])
-
-# ----------------------------------------------------------------------
-# Enable compiler warnings.
-# Call this command AFTER you have configured ALL your compilers.
-# ----------------------------------------------------------------------
-
-AC_DEFUN([LF_SET_WARNINGS],[
- dnl Warnings for the two main compilers
- dnl add -Wextra when you're got time to fix a bunch of them ;-)
- cc_warning_flags="-Wall -Werror-implicit-function-declaration"
- cxx_warning_flags="-Wall -Woverloaded-virtual"
- if test -n "${CC}"
- then
- LF_CHECK_CC_FLAG($cc_warning_flags)
- fi
- if test -n "${CXX}"
- then
- LF_CHECK_CXX_FLAG($cxx_warning_flags)
- fi
-])
diff --git a/gr-howto-write-a-block/config/lf_x11.m4 b/gr-howto-write-a-block/config/lf_x11.m4
deleted file mode 100644
index 460cd605f..000000000
--- a/gr-howto-write-a-block/config/lf_x11.m4
+++ /dev/null
@@ -1,39 +0,0 @@
-dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301, USA.
-dnl
-dnl As a special exception to the GNU General Public License, if you
-dnl distribute this file as part of a program that contains a configuration
-dnl script generated by Autoconf, you may include it under the same
-dnl distribution terms that you use for the rest of that program.
-
-
-#-----------------------------------------------------------------------
-# This macro searches for Xlib and when it finds it it adds the
-# appropriate flags to CXXFLAGS and export the link sequence to
-# the variable XLIB.
-# In your configure.in file add:
-# LF_PATH_XLIB
-# In your Makefile.am add
-# program_LDADD = .... $(XLIB)
-#------------------------------------------------------------------------
-
-AC_DEFUN([LF_PATH_XLIB],[
- AC_PATH_XTRA
- CXXFLAGS="$CXXFLAGS $X_CFLAGS"
- XLIB="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
- AC_SUBST(XLIB)
-])
-
diff --git a/gr-howto-write-a-block/config/mkstemp.m4 b/gr-howto-write-a-block/config/mkstemp.m4
deleted file mode 100644
index 2d1fbee9b..000000000
--- a/gr-howto-write-a-block/config/mkstemp.m4
+++ /dev/null
@@ -1,78 +0,0 @@
-#serial 4
-
-# On some hosts (e.g., HP-UX 10.20, SunOS 4.1.4, Solaris 2.5.1), mkstemp has a
-# silly limit that it can create no more than 26 files from a given template.
-# Other systems lack mkstemp altogether.
-# On OSF1/Tru64 V4.0F, the system-provided mkstemp function can create
-# only 32 files per process.
-# On systems like the above, arrange to use the replacement function.
-AC_DEFUN([UTILS_FUNC_MKSTEMP],
-[dnl
- AC_REPLACE_FUNCS(mkstemp)
- if test $ac_cv_func_mkstemp = no; then
- utils_cv_func_mkstemp_limitations=yes
- else
- AC_CACHE_CHECK([for mkstemp limitations],
- utils_cv_func_mkstemp_limitations,
- [
- AC_TRY_RUN([
-# include <stdlib.h>
- int main ()
- {
- int i;
- for (i = 0; i < 70; i++)
- {
- char template[] = "conftestXXXXXX";
- int fd = mkstemp (template);
- if (fd == -1)
- exit (1);
- close (fd);
- }
- exit (0);
- }
- ],
- utils_cv_func_mkstemp_limitations=no,
- utils_cv_func_mkstemp_limitations=yes,
- utils_cv_func_mkstemp_limitations=yes
- )
- ]
- )
- fi
-
- if test $utils_cv_func_mkstemp_limitations = yes; then
- AC_LIBOBJ(mkstemp)
- AC_LIBOBJ(tempname)
- AC_DEFINE(mkstemp, rpl_mkstemp,
- [Define to rpl_mkstemp if the replacement function should be used.])
- gl_PREREQ_MKSTEMP
- jm_PREREQ_TEMPNAME
- fi
-])
-
-# Prerequisites of lib/mkstemp.c.
-AC_DEFUN([gl_PREREQ_MKSTEMP],
-[
- AH_BOTTOM(
- [
- #ifndef HAVE_MKSTEMP
- #ifdef __cplusplus
- extern "C" {
- #endif
- int rpl_mkstemp (char *templ);
- #ifdef __cplusplus
- }
- #endif
- #endif
- ])
-])
-
-# Prerequisites of lib/tempname.c.
-AC_DEFUN([jm_PREREQ_TEMPNAME],
-[
- AC_REQUIRE([AC_HEADER_STAT])
- AC_CHECK_HEADERS_ONCE(fcntl.h sys/time.h unistd.h)
- AC_CHECK_HEADERS(stdint.h)
- AC_CHECK_FUNCS(__secure_getenv gettimeofday lstat)
- AC_CHECK_DECLS_ONCE(getenv)
- # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
-])
diff --git a/gr-howto-write-a-block/config/onceonly.m4 b/gr-howto-write-a-block/config/onceonly.m4
deleted file mode 100644
index f6fec37cb..000000000
--- a/gr-howto-write-a-block/config/onceonly.m4
+++ /dev/null
@@ -1,63 +0,0 @@
-# onceonly.m4 serial 3
-dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-dnl This file is free software, distributed under the terms of the GNU
-dnl General Public License. As a special exception to the GNU General
-dnl Public License, this file may be distributed as part of a program
-dnl that contains a configuration script generated by Autoconf, under
-dnl the same distribution terms as the rest of that program.
-
-dnl This file defines some "once only" variants of standard autoconf macros.
-dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS
-dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS
-dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS
-dnl AC_REQUIRE([AC_HEADER_STDC]) like AC_HEADER_STDC
-dnl The advantage is that the check for each of the headers/functions/decls
-dnl will be put only once into the 'configure' file. It keeps the size of
-dnl the 'configure' file down, and avoids redundant output when 'configure'
-dnl is run.
-dnl The drawback is that the checks cannot be conditionalized. If you write
-dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi
-dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to
-dnl empty, and the check will be inserted before the body of the AC_DEFUNed
-dnl function.
-
-dnl Autoconf version 2.57 or newer is recommended.
-AC_PREREQ(2.54)
-
-# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of
-# AC_CHECK_HEADERS(HEADER1 HEADER2 ...).
-AC_DEFUN([AC_CHECK_HEADERS_ONCE], [
- :
- AC_FOREACH([gl_HEADER_NAME], [$1], [
- AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(defn([gl_HEADER_NAME]),
- [-./], [___])), [
- AC_CHECK_HEADERS(gl_HEADER_NAME)
- ])
- AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME,
- [-./], [___])))
- ])
-])
-
-# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of
-# AC_CHECK_FUNCS(FUNC1 FUNC2 ...).
-AC_DEFUN([AC_CHECK_FUNCS_ONCE], [
- :
- AC_FOREACH([gl_FUNC_NAME], [$1], [
- AC_DEFUN([gl_CHECK_FUNC_]defn([gl_FUNC_NAME]), [
- AC_CHECK_FUNCS(defn([gl_FUNC_NAME]))
- ])
- AC_REQUIRE([gl_CHECK_FUNC_]defn([gl_FUNC_NAME]))
- ])
-])
-
-# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of
-# AC_CHECK_DECLS(DECL1, DECL2, ...).
-AC_DEFUN([AC_CHECK_DECLS_ONCE], [
- :
- AC_FOREACH([gl_DECL_NAME], [$1], [
- AC_DEFUN([gl_CHECK_DECL_]defn([gl_DECL_NAME]), [
- AC_CHECK_DECLS(defn([gl_DECL_NAME]))
- ])
- AC_REQUIRE([gl_CHECK_DECL_]defn([gl_DECL_NAME]))
- ])
-])
diff --git a/gr-howto-write-a-block/config/pkg.m4 b/gr-howto-write-a-block/config/pkg.m4
deleted file mode 100644
index 2d4d96109..000000000
--- a/gr-howto-write-a-block/config/pkg.m4
+++ /dev/null
@@ -1,201 +0,0 @@
-# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
-#
-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
-# Copyright © 2008 Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
-# ----------------------------------
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
-fi
-if test -n "$PKG_CONFIG"; then
- _pkg_min_version=m4_default([$1], [0.18])
- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- PKG_CONFIG=""
- fi
-
-fi[]dnl
-])# PKG_PROG_PKG_CONFIG
-
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-#
-# Check to see whether a particular set of modules exists. Similar
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
-#
-#
-# Similar to PKG_CHECK_MODULES, make sure that the first instance of
-# this or PKG_CHECK_MODULES is called, or make sure to call
-# PKG_CHECK_EXISTS manually
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_EXISTS],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-if test -n "$PKG_CONFIG" && \
- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
- m4_ifval([$2], [$2], [:])
-m4_ifvaln([$3], [else
- $3])dnl
-fi])
-
-
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
-# ---------------------------------------------
-m4_define([_PKG_CONFIG],
-[if test -n "$PKG_CONFIG"; then
- if test -n "$$1"; then
- pkg_cv_[]$1="$$1"
- else
- PKG_CHECK_EXISTS([$3],
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
- [pkg_failed=yes])
- fi
-else
- pkg_failed=untried
-fi[]dnl
-])# _PKG_CONFIG
-
-# _PKG_SHORT_ERRORS_SUPPORTED
-# -----------------------------
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi[]dnl
-])# _PKG_SHORT_ERRORS_SUPPORTED
-
-
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-# [ACTION-IF-NOT-FOUND])
-#
-# E.g.,
-# PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
-# defines:
-#
-# GSTUFF_LIBS
-# GSTUFF_CFLAGS
-# GSTUFF_INCLUDEDIR
-# GSTUFF_CPPFLAGS # the -I, -D and -U's out of CFLAGS
-#
-# see pkg-config man page also defines GSTUFF_PKG_ERRORS on error
-#
-# Note that if there is a possibility the first call to
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
-#
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_MODULES],[
-AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_INCLUDEDIR], [includedir for $1, overriding pkg-config])dnl
-
-pkg_failed=no
-AC_MSG_CHECKING([for $1])
-
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
-
-if test x$cross_compiling = xyes
-then
- dnl _PKG_CONFIG([$1][_LIBS], [libs-only-l --static], [$2])
- _PKG_CONFIG([$1][_LIBS], [libs --static], [$2])
- dnl prune out any -L/lib or -L/usr/lib since they're pointing to the wrong filesystem root
- _pkg_tmp=
- for flag in [$]pkg_cv_[$1][_LIBS]; do
- case $flag in
- (-L/lib* | -L/usr/lib* ) ;; # ignore
- (*) _pkg_tmp="$_pkg_tmp $flag" ;;
- esac
- done
- pkg_cv_[$1][_LIBS]="$_pkg_tmp"
-else
- _PKG_CONFIG([$1][_LIBS], [libs --static], [$2])
-fi
-
-_PKG_CONFIG([$1][_INCLUDEDIR], [variable=includedir], [$2])
-
-
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
-and $1[]_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.])
-
-if test $pkg_failed = yes; then
- _PKG_SHORT_ERRORS_SUPPORTED
- if test $_pkg_short_errors_supported = yes; then
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
- else
- $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
-
- ifelse([$4], , [AC_MSG_ERROR(dnl
-[Package requirements ($2) were not met:
-
-$$1_PKG_ERRORS
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-_PKG_TEXT
-])],
- [AC_MSG_RESULT([no])
- $4])
-elif test $pkg_failed = untried; then
- ifelse([$4], , [AC_MSG_FAILURE(dnl
-[The pkg-config script could not be found or is too old. Make sure it
-is in your PATH or set the PKG_CONFIG environment variable to the full
-path to pkg-config.
-
-_PKG_TEXT
-
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
- [$4])
-else
- $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
- $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
- $1[]_INCLUDEDIR=$pkg_cv_[]$1[]_INCLUDEDIR
-
- $1[]_CPPFLAGS=""
- for flag in $$1[]_CFLAGS; do
- case $flag in
- -I* | -D* | -U*) $1[]_CPPFLAGS="$$1[]_CPPFLAGS $flag" ;;
- esac
- done
- pkg_cv_[]$1[]_CPPFLAGS=$$1[]_CPPFLAGS
- AC_SUBST($1[]_CPPFLAGS)
-
- AC_MSG_RESULT([yes])
- ifelse([$3], , :, [$3])
-fi[]dnl
-])# PKG_CHECK_MODULES
diff --git a/gr-howto-write-a-block/config/usrp_fusb_tech.m4 b/gr-howto-write-a-block/config/usrp_fusb_tech.m4
deleted file mode 100644
index b99cf2432..000000000
--- a/gr-howto-write-a-block/config/usrp_fusb_tech.m4
+++ /dev/null
@@ -1,87 +0,0 @@
-dnl
-dnl Copyright 2003,2008,2009 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-dnl
-
-# $1 is $enable_usrp:
-# yes : do these tests
-# no : do not do these tests
-# "" : do these tests
-
-AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[
- req_libusb1=no
- USE_LIBUSB1=0
- AC_ARG_WITH([fusb-tech],
- AC_HELP_STRING([--with-fusb-tech=OS],
- [Set fast USB technique (default=auto)]),
- [cf_with_fusb_tech="$withval"],
- [cf_with_fusb_tech="$host_os"])
- if test [x]$1 != xno; then
- case "$cf_with_fusb_tech" in
- libusb1*)
- FUSB_TECH=libusb1
- req_libusb1=yes
- USE_LIBUSB1=1
- ;;
- linux*)
- AC_CHECK_HEADER([linux/usbdevice_fs.h],
- [x_have_usbdevice_fs_h=yes],
- [x_have_usbdevice_fs_h=no])
- if test x${x_have_usbdevice_fs_h} = xyes; then
- FUSB_TECH=linux
- else
- FUSB_TECH=generic
- fi
- ;;
- darwin*)
- FUSB_TECH=darwin
- ;;
- cygwin*|win*|mingw*)
- FUSB_TECH=win32
- ;;
- *bsd*)
- AC_MSG_CHECKING([for RA/WB])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <dev/usb/usb.h>]],
- [[struct usb_bulk_ra_wb_opt o;
- ioctl(0, USB_SET_BULK_RA, &o);]])],
- [FUSB_TECH=ra_wb],
- [FUSB_TECH=generic])
- ;;
- *)
- FUSB_TECH=generic
- ;;
- esac
-
- AC_MSG_CHECKING([for fast usb technique to use])
- AC_MSG_RESULT($FUSB_TECH)
- AC_SUBST(FUSB_TECH)
- fi
-
- AM_CONDITIONAL(FUSB_TECH_darwin, test x$FUSB_TECH = xdarwin)
- AM_CONDITIONAL(FUSB_TECH_win32, test x$FUSB_TECH = xwin32)
- AM_CONDITIONAL(FUSB_TECH_generic, test x$FUSB_TECH = xgeneric)
- AM_CONDITIONAL(FUSB_TECH_linux, test x$FUSB_TECH = xlinux)
- AM_CONDITIONAL(FUSB_TECH_libusb1, test x$FUSB_TECH = xlibusb1)
- AM_CONDITIONAL(FUSB_TECH_ra_wb, test x$FUSB_TECH = xra_wb)
-
- AC_SUBST(USE_LIBUSB1)
- AC_CONFIG_FILES([\
- usrp/host/include/usrp/libusb_types.h \
- ])
-])
diff --git a/gr-howto-write-a-block/config/usrp_libusb.m4 b/gr-howto-write-a-block/config/usrp_libusb.m4
deleted file mode 100644
index cb3130c87..000000000
--- a/gr-howto-write-a-block/config/usrp_libusb.m4
+++ /dev/null
@@ -1,48 +0,0 @@
-dnl Copyright 2003,2008 Free Software Foundation, Inc.
-dnl
-dnl This file is part of GNU Radio
-dnl
-dnl GNU Radio is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3, or (at your option)
-dnl any later version.
-dnl
-dnl GNU Radio is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with GNU Radio; see the file COPYING. If not, write to
-dnl the Free Software Foundation, Inc., 51 Franklin Street,
-dnl Boston, MA 02110-1301, USA.
-
-AC_DEFUN([USRP_LIBUSB], [
- libusbok=yes
- PKG_CHECK_MODULES(USB, libusb, [], [
- AC_LANG_PUSH(C)
-
- AC_CHECK_HEADERS([usb.h], [], [libusbok=no; AC_MSG_RESULT([USRP requires libusb. usb.h not found. See http://libusb.sf.net])])
-
- save_LIBS="$LIBS"
- case "$host_os" in
- darwin*)
- LIBS="$LIBS -lIOKit"
- ;;
- *) ;;
- esac
-
- AC_SEARCH_LIBS(usb_bulk_write, [usb], [USB_LIBS="$LIBS"], [libusbok=no; AC_MSG_RESULT([USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net])])
-
- LIBS="$save_LIBS"
-
- AC_LANG_POP
- ])
-
- if test x$libusbok = xyes; then
- AC_SUBST(USB_LIBS)
- ifelse([$1], , :, [$1])
- else
- ifelse([$2], , :, [$2])
- fi
-])
diff --git a/gr-howto-write-a-block/config/usrp_sdcc.m4 b/gr-howto-write-a-block/config/usrp_sdcc.m4
deleted file mode 100644
index 86f6429e5..000000000
--- a/gr-howto-write-a-block/config/usrp_sdcc.m4
+++ /dev/null
@@ -1,75 +0,0 @@
-# Check for sdcc support. -*- Autoconf -*-
-
-# Copyright 2004 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Boston, MA
-# 02110-1301, USA.
-
-AC_DEFUN([USRP_SDCC],
-[
- sdccok=yes
- AC_CHECK_PROG(XCC, sdcc, sdcc -mmcs51 --no-xinit-opt,no)
- AC_CHECK_PROG(XAS, asx8051, asx8051 -plosgff,no)
-
- if test "$XCC" = "no" -o "$XAS" = "no" ; then
- AC_MSG_RESULT([USRP requires sdcc. sdcc not found. See http://sdcc.sf.net])
- sdccok=no
- else
- sdcc_version_min=$1
-
- sdcc_version=`sdcc --version 2>&1 | \
- sed 's/\(SDCC.* \)\([[0-9]]*\.[[0-9]]*\.[[0-9]]*\)\( .*$\)/\2/'`
-
- AC_MSG_CHECKING([sdcc_version "$sdcc_version"])
-
- sdcc_major_version=`echo $sdcc_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- sdcc_minor_version=`echo $sdcc_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- sdcc_micro_version=`echo $sdcc_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-
- sdcc_major_min=`echo $sdcc_version_min | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- sdcc_minor_min=`echo $sdcc_version_min | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- sdcc_micro_min=`echo $sdcc_version_min | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-
- sdcc_version_proper=`expr \
- "$sdcc_major_version" \> "$sdcc_major_min" \| \
- "$sdcc_major_version" \= "$sdcc_major_min" \& \
- "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
- "$sdcc_major_version" \= "$sdcc_major_min" \& \
- "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
- "$sdcc_micro_version" \>= "$sdcc_micro_min" `
-
- if test "$sdcc_version_proper" = "1" ; then
- AC_MSG_RESULT([$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version])
- else
- sdccok=no
- AC_MSG_RESULT([USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net])
- fi
-
- AC_SUBST(XCC)
- AC_SUBST(XAS)
- fi
-
- if test $sdccok = yes; then
- ifelse([$2], , :, [$2])
- else
- ifelse([$3], , :, [$3])
- fi
-])