root / volk / config / lv_configure.m4 @ 5f145a32
History | View | Annotate | Download (3.2 kB)
| 1 | 23914465 | Tom Rondeau | dnl |
|---|---|---|---|
| 2 | 1186ab98 | Tom Rondeau | dnl Copyright 2010 Free Software Foundation, Inc. |
| 3 | 1186ab98 | Tom Rondeau | dnl |
| 4 | 1186ab98 | Tom Rondeau | dnl This program is free software: you can redistribute it and/or modify |
| 5 | 1186ab98 | Tom Rondeau | dnl it under the terms of the GNU General Public License as published by |
| 6 | 1186ab98 | Tom Rondeau | dnl the Free Software Foundation, either version 3 of the License, or |
| 7 | 1186ab98 | Tom Rondeau | dnl (at your option) any later version. |
| 8 | 1186ab98 | Tom Rondeau | dnl |
| 9 | 1186ab98 | Tom Rondeau | dnl This program is distributed in the hope that it will be useful, |
| 10 | 1186ab98 | Tom Rondeau | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | 1186ab98 | Tom Rondeau | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | 1186ab98 | Tom Rondeau | dnl GNU General Public License for more details. |
| 13 | 1186ab98 | Tom Rondeau | dnl |
| 14 | 1186ab98 | Tom Rondeau | dnl You should have received a copy of the GNU General Public License |
| 15 | 1186ab98 | Tom Rondeau | dnl along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 1186ab98 | Tom Rondeau | dnl |
| 17 | 1186ab98 | Tom Rondeau | |
| 18 | 23914465 | Tom Rondeau | dnl LV_CONFIGURE |
| 19 | 23914465 | Tom Rondeau | dnl |
| 20 | 23914465 | Tom Rondeau | dnl Handles the bulk of the configure.ac work for an out-of-tree build |
| 21 | 23914465 | Tom Rondeau | dnl |
| 22 | 23914465 | Tom Rondeau | dnl You must invoke: |
| 23 | 23914465 | Tom Rondeau | dnl |
| 24 | 23914465 | Tom Rondeau | dnl AC_INIT(package_name,version) |
| 25 | 23914465 | Tom Rondeau | dnl AC_PREREQ(2.57) |
| 26 | 23914465 | Tom Rondeau | dnl AC_CONFIG_AUX_DIR([.]) |
| 27 | 23914465 | Tom Rondeau | dnl |
| 28 | 23914465 | Tom Rondeau | dnl in configure.ac before LV_CONFIGURE |
| 29 | 23914465 | Tom Rondeau | dnl |
| 30 | 23914465 | Tom Rondeau | dnl |
| 31 | 23914465 | Tom Rondeau | dnl N.B., this is an m4_define because if it were an AC_DEFUN it would |
| 32 | 23914465 | Tom Rondeau | dnl get called too late to be useful. |
| 33 | 23914465 | Tom Rondeau | |
| 34 | 23914465 | Tom Rondeau | m4_define([LV_CONFIGURE], |
| 35 | 23914465 | Tom Rondeau | [ |
| 36 | 1186ab98 | Tom Rondeau | #AC_CANONICAL_BUILD |
| 37 | 1186ab98 | Tom Rondeau | #AC_CANONICAL_HOST |
| 38 | 1186ab98 | Tom Rondeau | #AC_CANONICAL_TARGET |
| 39 | 23914465 | Tom Rondeau | |
| 40 | 23914465 | Tom Rondeau | LF_CONFIGURE_CC |
| 41 | 23914465 | Tom Rondeau | LF_CONFIGURE_CXX |
| 42 | 23914465 | Tom Rondeau | GR_LIB64 dnl check for lib64 suffix after choosing compilers |
| 43 | 23914465 | Tom Rondeau | |
| 44 | 23914465 | Tom Rondeau | LV_GCC_VERSION_WORKAROUND |
| 45 | 23914465 | Tom Rondeau | dnl add ${prefix}/lib${gr_libdir_suffix}/pkgconfig to the head of the PKG_CONFIG_PATH
|
| 46 | 23914465 | Tom Rondeau | if test x${PKG_CONFIG_PATH} = x; then
|
| 47 | 23914465 | Tom Rondeau | PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig
|
| 48 | 23914465 | Tom Rondeau | else |
| 49 | 23914465 | Tom Rondeau | PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig:${PKG_CONFIG_PATH}
|
| 50 | 23914465 | Tom Rondeau | fi |
| 51 | 23914465 | Tom Rondeau | export PKG_CONFIG_PATH |
| 52 | 23914465 | Tom Rondeau | |
| 53 | 23914465 | Tom Rondeau | LF_SET_WARNINGS |
| 54 | 23914465 | Tom Rondeau | dnl GR_SET_GPROF |
| 55 | 23914465 | Tom Rondeau | dnl GR_SET_PROF |
| 56 | 23914465 | Tom Rondeau | AM_PROG_AS |
| 57 | 23914465 | Tom Rondeau | AC_PROG_LN_S |
| 58 | 23914465 | Tom Rondeau | AC_PROG_MAKE_SET |
| 59 | 23914465 | Tom Rondeau | AC_PROG_INSTALL |
| 60 | 23914465 | Tom Rondeau | AC_PATH_PROG([RM_PROG], [rm]) |
| 61 | 23914465 | Tom Rondeau | |
| 62 | 23914465 | Tom Rondeau | AC_LIBTOOL_WIN32_DLL |
| 63 | 23914465 | Tom Rondeau | AC_ENABLE_SHARED dnl do build shared libraries... important for qa |
| 64 | 23914465 | Tom Rondeau | AC_DISABLE_STATIC dnl don't build static libraries... important for qa |
| 65 | 23914465 | Tom Rondeau | m4_ifdef([LT_INIT],[LT_INIT],[AC_PROG_LIBTOOL]) |
| 66 | 23914465 | Tom Rondeau | dnl GR_FORTRAN |
| 67 | 23914465 | Tom Rondeau | |
| 68 | 23914465 | Tom Rondeau | GR_NO_UNDEFINED dnl do we need the -no-undefined linker flag |
| 69 | 23914465 | Tom Rondeau | dnl GR_SCRIPTING dnl Locate python, SWIG, etc |
| 70 | 23914465 | Tom Rondeau | |
| 71 | 23914465 | Tom Rondeau | dnl AC_ARG_WITH([python], |
| 72 | 23914465 | Tom Rondeau | dnl AC_HELP_STRING([--with-python], [Should we use python? [[default=yes]]]), |
| 73 | 23914465 | Tom Rondeau | dnl [case "$with_python" in |
| 74 | 23914465 | Tom Rondeau | dnl (no | yes) ;; |
| 75 | 23914465 | Tom Rondeau | dnl (*) AC_MSG_ERROR([Invalid argument ($with_python) to --with-python]) ;; |
| 76 | 23914465 | Tom Rondeau | dnl esac], |
| 77 | 23914465 | Tom Rondeau | dnl [with_python=yes]) |
| 78 | 23914465 | Tom Rondeau | |
| 79 | 23914465 | Tom Rondeau | dnl AM_CONDITIONAL([USE_PYTHON], [test "$with_python" = yes]) |
| 80 | 23914465 | Tom Rondeau | |
| 81 | 23914465 | Tom Rondeau | |
| 82 | 23914465 | Tom Rondeau | dnl Set the c++ compiler that we use for the build system when cross compiling |
| 83 | 23914465 | Tom Rondeau | if test "x$CXX_FOR_BUILD" = x |
| 84 | 23914465 | Tom Rondeau | then |
| 85 | 23914465 | Tom Rondeau | CXX_FOR_BUILD=${CXX}
|
| 86 | 23914465 | Tom Rondeau | fi |
| 87 | 23914465 | Tom Rondeau | AC_SUBST(CXX_FOR_BUILD) |
| 88 | 23914465 | Tom Rondeau | |
| 89 | 23914465 | Tom Rondeau | dnl Checks for header files. |
| 90 | 23914465 | Tom Rondeau | AC_HEADER_STDC |
| 91 | 23914465 | Tom Rondeau | |
| 92 | 23914465 | Tom Rondeau | dnl Checks for typedefs, structures, and compiler characteristics. |
| 93 | 23914465 | Tom Rondeau | AC_C_CONST |
| 94 | 23914465 | Tom Rondeau | AC_C_INLINE |
| 95 | 23914465 | Tom Rondeau | AC_TYPE_SIZE_T |
| 96 | 23914465 | Tom Rondeau | AC_HEADER_TIME |
| 97 | 23914465 | Tom Rondeau | AC_C_BIGENDIAN |
| 98 | 23914465 | Tom Rondeau | |
| 99 | 23914465 | Tom Rondeau | dnl Check for Mingw support |
| 100 | 23914465 | Tom Rondeau | GR_PWIN32 |
| 101 | 942e2685 | Don Ward | dnl GR_LIBGNURADIO_CORE_EXTRA_LDFLAGS |
| 102 | 23914465 | Tom Rondeau | |
| 103 | bef3db60 | Nick Foster | dnl Check for liborc |
| 104 | bef3db60 | Nick Foster | ORC_CHECK |
| 105 | bef3db60 | Nick Foster | |
| 106 | 942e2685 | Don Ward | dnl Following causes test for -lboost_unit_test_framework to fail on Cygwin |
| 107 | 942e2685 | Don Ward | dnl LDFLAGS="$LDFLAGS $LIBGNURADIO_CORE_EXTRA_LDFLAGS" |
| 108 | 23914465 | Tom Rondeau | |
| 109 | 23914465 | Tom Rondeau | AC_CHECK_PROG([XMLTO],[xmlto],[yes],[]) |
| 110 | 23914465 | Tom Rondeau | AM_CONDITIONAL([HAS_XMLTO], [test x$XMLTO = xyes]) |
| 111 | 23914465 | Tom Rondeau | |
| 112 | 23914465 | Tom Rondeau | dnl PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 3) |
| 113 | 23914465 | Tom Rondeau | dnl LIBS="$LIBS $GNURADIO_CORE_LIBS" |
| 114 | 23914465 | Tom Rondeau | ]) |