root / gr-fcd / configure.ac @ 7361ce25
History | View | Annotate | Download (3.1 kB)
| 1 | 7361ce25 | Alexandru Csete | dnl |
|---|---|---|---|
| 2 | 7361ce25 | Alexandru Csete | dnl Copyright 2004,2005,2007,2008,2009,2010 Free Software Foundation, Inc. |
| 3 | 7361ce25 | Alexandru Csete | dnl |
| 4 | 7361ce25 | Alexandru Csete | dnl This file is part of GNU Radio |
| 5 | 7361ce25 | Alexandru Csete | dnl |
| 6 | 7361ce25 | Alexandru Csete | dnl GNU Radio is free software; you can redistribute it and/or modify |
| 7 | 7361ce25 | Alexandru Csete | dnl it under the terms of the GNU General Public License as published by |
| 8 | 7361ce25 | Alexandru Csete | dnl the Free Software Foundation; either version 3, or (at your option) |
| 9 | 7361ce25 | Alexandru Csete | dnl any later version. |
| 10 | 7361ce25 | Alexandru Csete | dnl |
| 11 | 7361ce25 | Alexandru Csete | dnl GNU Radio is distributed in the hope that it will be useful, |
| 12 | 7361ce25 | Alexandru Csete | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | 7361ce25 | Alexandru Csete | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | 7361ce25 | Alexandru Csete | dnl GNU General Public License for more details. |
| 15 | 7361ce25 | Alexandru Csete | dnl |
| 16 | 7361ce25 | Alexandru Csete | dnl You should have received a copy of the GNU General Public License |
| 17 | 7361ce25 | Alexandru Csete | dnl along with GNU Radio; see the file COPYING. If not, write to |
| 18 | 7361ce25 | Alexandru Csete | dnl the Free Software Foundation, Inc., 51 Franklin Street, |
| 19 | 7361ce25 | Alexandru Csete | dnl Boston, MA 02110-1301, USA. |
| 20 | 7361ce25 | Alexandru Csete | dnl |
| 21 | 7361ce25 | Alexandru Csete | |
| 22 | 7361ce25 | Alexandru Csete | |
| 23 | 7361ce25 | Alexandru Csete | AC_INIT |
| 24 | 7361ce25 | Alexandru Csete | AC_PREREQ(2.57) |
| 25 | 7361ce25 | Alexandru Csete | AC_CONFIG_AUX_DIR([.]) |
| 26 | 7361ce25 | Alexandru Csete | |
| 27 | 7361ce25 | Alexandru Csete | dnl Set the prefix to the default when --prefix is not specified. |
| 28 | 7361ce25 | Alexandru Csete | dnl This is critical for variable substitutions in the configure. |
| 29 | 7361ce25 | Alexandru Csete | if test "${prefix}" = "NONE"; then
|
| 30 | 7361ce25 | Alexandru Csete | prefix=${ac_default_prefix}
|
| 31 | 7361ce25 | Alexandru Csete | fi |
| 32 | 7361ce25 | Alexandru Csete | |
| 33 | 7361ce25 | Alexandru Csete | AC_CANONICAL_BUILD |
| 34 | 7361ce25 | Alexandru Csete | AC_CANONICAL_HOST |
| 35 | 7361ce25 | Alexandru Csete | AC_CANONICAL_TARGET |
| 36 | 7361ce25 | Alexandru Csete | |
| 37 | 7361ce25 | Alexandru Csete | GR_VERSION |
| 38 | 7361ce25 | Alexandru Csete | dnl ustar required to have pathnames > 99 chars |
| 39 | 7361ce25 | Alexandru Csete | _AM_SET_OPTION([tar-ustar]) |
| 40 | 7361ce25 | Alexandru Csete | AM_INIT_AUTOMAKE(gnuradio-fcd,$RELEASE) |
| 41 | 7361ce25 | Alexandru Csete | |
| 42 | 7361ce25 | Alexandru Csete | dnl This is kind of non-standard, but it sure shortens up this file :-) |
| 43 | 7361ce25 | Alexandru Csete | m4_include([config/gr_standalone.m4]) |
| 44 | 7361ce25 | Alexandru Csete | GR_STANDALONE |
| 45 | 7361ce25 | Alexandru Csete | |
| 46 | 7361ce25 | Alexandru Csete | dnl Check for libusb-1.0 |
| 47 | 7361ce25 | Alexandru Csete | PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0) |
| 48 | 7361ce25 | Alexandru Csete | LIBS="$LIBS $LIBUSB_LIBS" |
| 49 | 7361ce25 | Alexandru Csete | CPPFLAGS="$CPPFLAGS $LIBUSB_CPPFLAGS" |
| 50 | 7361ce25 | Alexandru Csete | |
| 51 | 7361ce25 | Alexandru Csete | dnl Check for any libraries you need |
| 52 | 7361ce25 | Alexandru Csete | dnl AC_CHECK_LIBRARY |
| 53 | 7361ce25 | Alexandru Csete | |
| 54 | 7361ce25 | Alexandru Csete | dnl Check for header files you need |
| 55 | 7361ce25 | Alexandru Csete | dnl AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h unistd.h) |
| 56 | 7361ce25 | Alexandru Csete | dnl AC_CHECK_HEADERS(sys/mman.h) |
| 57 | 7361ce25 | Alexandru Csete | |
| 58 | 7361ce25 | Alexandru Csete | dnl Checks for library functions. |
| 59 | 7361ce25 | Alexandru Csete | dnl AC_CHECK_FUNCS([]) |
| 60 | 7361ce25 | Alexandru Csete | |
| 61 | 7361ce25 | Alexandru Csete | dnl We pick up the boost cppflags, cxxflags and thread lib via GNURADIO_CORE |
| 62 | 7361ce25 | Alexandru Csete | dnl |
| 63 | 7361ce25 | Alexandru Csete | dnl If you need additional boost libraries, you'll need to |
| 64 | 7361ce25 | Alexandru Csete | dnl uncomment AX_BOOST_BASE, plus some of the following: |
| 65 | 7361ce25 | Alexandru Csete | dnl |
| 66 | 7361ce25 | Alexandru Csete | dnl calls AC_SUBST(BOOST_CPPFLAGS), AC_SUBST(BOOST_LDFLAGS) and defines HAVE_BOOST |
| 67 | 7361ce25 | Alexandru Csete | AX_BOOST_BASE([1.35]) |
| 68 | 7361ce25 | Alexandru Csete | dnl |
| 69 | 7361ce25 | Alexandru Csete | dnl All the rest of these call AC_SUBST(BOOST_<foo>_LIB) and define HAVE_BOOST_<foo> |
| 70 | 7361ce25 | Alexandru Csete | dnl |
| 71 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_DATE_TIME |
| 72 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_FILESYSTEM |
| 73 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_IOSTREAMS |
| 74 | 7361ce25 | Alexandru Csete | AX_BOOST_PROGRAM_OPTIONS |
| 75 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_REGEX |
| 76 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_SERIALIZATION |
| 77 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_SIGNALS |
| 78 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_SYSTEM |
| 79 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_TEST_EXEC_MONITOR |
| 80 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_UNIT_TEST_FRAMEWORK |
| 81 | 7361ce25 | Alexandru Csete | dnl AX_BOOST_WSERIALIZATION |
| 82 | 7361ce25 | Alexandru Csete | |
| 83 | 7361ce25 | Alexandru Csete | dnl Doxygen used to create API docs |
| 84 | 7361ce25 | Alexandru Csete | GR_CHECK_DOXYGEN |
| 85 | 7361ce25 | Alexandru Csete | |
| 86 | 7361ce25 | Alexandru Csete | MACOSX="no" |
| 87 | 7361ce25 | Alexandru Csete | WINDOWS="no" |
| 88 | 7361ce25 | Alexandru Csete | |
| 89 | 7361ce25 | Alexandru Csete | echo $target |
| 90 | 7361ce25 | Alexandru Csete | |
| 91 | 7361ce25 | Alexandru Csete | case "$target" in |
| 92 | 7361ce25 | Alexandru Csete | *-*-darwin*) |
| 93 | 7361ce25 | Alexandru Csete | echo "Setting Mac OS X build" |
| 94 | 7361ce25 | Alexandru Csete | MACOSX="yes" |
| 95 | 7361ce25 | Alexandru Csete | ;; |
| 96 | 7361ce25 | Alexandru Csete | *-*-win*) |
| 97 | 7361ce25 | Alexandru Csete | echo "Setting Windows build" |
| 98 | 7361ce25 | Alexandru Csete | WINDOWS="yes" |
| 99 | 7361ce25 | Alexandru Csete | ;; |
| 100 | 7361ce25 | Alexandru Csete | esac |
| 101 | 7361ce25 | Alexandru Csete | |
| 102 | 7361ce25 | Alexandru Csete | AM_CONDITIONAL([MACOSX], [ test $MACOSX = "yes" ]) |
| 103 | 7361ce25 | Alexandru Csete | AM_CONDITIONAL([WINDOWS], [ test $WINDOWS = "yes" ]) |
| 104 | 7361ce25 | Alexandru Csete | |
| 105 | 7361ce25 | Alexandru Csete | |
| 106 | 7361ce25 | Alexandru Csete | AC_CONFIG_FILES([\ |
| 107 | 7361ce25 | Alexandru Csete | Makefile \ |
| 108 | 7361ce25 | Alexandru Csete | gnuradio-fcd.pc \ |
| 109 | 7361ce25 | Alexandru Csete | apps/Makefile \ |
| 110 | 7361ce25 | Alexandru Csete | config/Makefile \ |
| 111 | 7361ce25 | Alexandru Csete | grc/Makefile \ |
| 112 | 7361ce25 | Alexandru Csete | lib/Makefile \ |
| 113 | 7361ce25 | Alexandru Csete | python/Makefile \ |
| 114 | 7361ce25 | Alexandru Csete | swig/Makefile \ |
| 115 | 7361ce25 | Alexandru Csete | doc/Makefile \ |
| 116 | 7361ce25 | Alexandru Csete | doc/Doxyfile \ |
| 117 | 7361ce25 | Alexandru Csete | ]) |
| 118 | 7361ce25 | Alexandru Csete | |
| 119 | 7361ce25 | Alexandru Csete | AC_OUTPUT |
| 120 | 7361ce25 | Alexandru Csete | |
| 121 | 7361ce25 | Alexandru Csete | echo Configured gnuradio-fcd release $RELEASE for build. |