diff options
Diffstat (limited to 'gr-fcd/configure.ac')
-rw-r--r-- | gr-fcd/configure.ac | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/gr-fcd/configure.ac b/gr-fcd/configure.ac new file mode 100644 index 000000000..f8969a472 --- /dev/null +++ b/gr-fcd/configure.ac @@ -0,0 +1,121 @@ +dnl +dnl Copyright 2004,2005,2007,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 +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_INIT +AC_PREREQ(2.57) +AC_CONFIG_AUX_DIR([.]) + +dnl Set the prefix to the default when --prefix is not specified. +dnl This is critical for variable substitutions in the configure. +if test "${prefix}" = "NONE"; then + prefix=${ac_default_prefix} +fi + +AC_CANONICAL_BUILD +AC_CANONICAL_HOST +AC_CANONICAL_TARGET + +GR_VERSION +dnl ustar required to have pathnames > 99 chars +_AM_SET_OPTION([tar-ustar]) +AM_INIT_AUTOMAKE(gnuradio-fcd,$RELEASE) + +dnl This is kind of non-standard, but it sure shortens up this file :-) +m4_include([config/gr_standalone.m4]) +GR_STANDALONE + +dnl Check for libusb-1.0 +PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0) +LIBS="$LIBS $LIBUSB_LIBS" +CPPFLAGS="$CPPFLAGS $LIBUSB_CPPFLAGS" + +dnl Check for any libraries you need +dnl AC_CHECK_LIBRARY + +dnl Check for header files you need +dnl AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h unistd.h) +dnl AC_CHECK_HEADERS(sys/mman.h) + +dnl Checks for library functions. +dnl AC_CHECK_FUNCS([]) + +dnl We pick up the boost cppflags, cxxflags and thread lib via GNURADIO_CORE +dnl +dnl If you need additional boost libraries, you'll need to +dnl uncomment AX_BOOST_BASE, plus some of the following: +dnl +dnl calls AC_SUBST(BOOST_CPPFLAGS), AC_SUBST(BOOST_LDFLAGS) and defines HAVE_BOOST +AX_BOOST_BASE([1.35]) +dnl +dnl All the rest of these call AC_SUBST(BOOST_<foo>_LIB) and define HAVE_BOOST_<foo> +dnl +dnl AX_BOOST_DATE_TIME +dnl AX_BOOST_FILESYSTEM +dnl AX_BOOST_IOSTREAMS +AX_BOOST_PROGRAM_OPTIONS +dnl AX_BOOST_REGEX +dnl AX_BOOST_SERIALIZATION +dnl AX_BOOST_SIGNALS +dnl AX_BOOST_SYSTEM +dnl AX_BOOST_TEST_EXEC_MONITOR +dnl AX_BOOST_UNIT_TEST_FRAMEWORK +dnl AX_BOOST_WSERIALIZATION + +dnl Doxygen used to create API docs +GR_CHECK_DOXYGEN + +MACOSX="no" +WINDOWS="no" + +echo $target + +case "$target" in + *-*-darwin*) + echo "Setting Mac OS X build" + MACOSX="yes" + ;; + *-*-win*) + echo "Setting Windows build" + WINDOWS="yes" + ;; +esac + +AM_CONDITIONAL([MACOSX], [ test $MACOSX = "yes" ]) +AM_CONDITIONAL([WINDOWS], [ test $WINDOWS = "yes" ]) + + +AC_CONFIG_FILES([\ + Makefile \ + gnuradio-fcd.pc \ + apps/Makefile \ + config/Makefile \ + grc/Makefile \ + lib/Makefile \ + python/Makefile \ + swig/Makefile \ + doc/Makefile \ + doc/Doxyfile \ + ]) + +AC_OUTPUT + +echo Configured gnuradio-fcd release $RELEASE for build. |