1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
dnl
dnl USRP - Universal Software Radio Peripheral
dnl
dnl Copyright (C) 2003,2004 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 2 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl
AC_INIT
AC_PREREQ(2.57)
AC_REVISION($Revision: 1.30 $)
AC_CONFIG_SRCDIR([host/lib/usrp_prims.h])
AM_CONFIG_HEADER(config.h)
AC_PREFIX_DEFAULT(/usr/local)
AC_CANONICAL_TARGET([])
AM_INIT_AUTOMAKE(usrp,0.8)
dnl disable maintainer rules: e.g., rebuilding configure, makefile.in's unless
dnl user explicitly specifies --enable-maintainer-mode
dnl AM_MAINTAINER_MODE
dnl LF_CONFIGURE_CC
LF_CONFIGURE_CXX
LF_SET_WARNINGS
GR_SET_GPROF
GR_SET_PROF
GR_PROG_AS
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_INSTALL
GR_SCRIPTING
AC_ENABLE_SHARED dnl do build shared libraries
AC_PROG_LIBTOOL
GR_SCRIPTING
dnl Checks for libraries.
dnl check for threads (mandatory)
dnl GR_OMNITHREAD
dnl
dnl CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
dnl CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h limits.h strings.h sys/ioctl.h sys/time.h sys/resource.h unistd.h])
AC_CHECK_FUNCS([getrusage])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
dnl we use these to handle possible byteswapping to and from the USRP.
AC_CHECK_HEADERS([byteswap.h])
AC_C_BIGENDIAN
dnl Checks for library functions.
USRP_LIBUSB
USRP_SET_FUSB_TECHNIQUE
dnl Check for Mingw support
GR_PWIN32
# gnulib.
UTILS_FUNC_MKSTEMP
dnl conditional build stuff
GR_CHECK_DOXYGEN
AC_CHECK_PROG([XMLTO],[xmlto],[yes],[])
AM_CONDITIONAL(HAS_XMLTO, test x$XMLTO = xyes)
dnl Define where to look for USRP includes
USRP_INCLUDES='-I$(top_srcdir)/host/lib -I$(top_srcdir)/firmware/include'
AC_SUBST(USRP_INCLUDES)
USRP_DEFINES=''
AC_SUBST(USRP_DEFINES)
DEFINES="$USRP_DEFINES"
AC_SUBST(DEFINES)
STD_DEFINES_AND_INCLUDES="$DEFINES $USRP_INCLUDES"
AC_SUBST(STD_DEFINES_AND_INCLUDES)
dnl check for firmware cross compilation tools
dnl check for SDCC 2.4.0
USRP_SDCC(2.4.0)
AC_CONFIG_FILES([Makefile \
usrp.pc \
config/Makefile \
doc/Doxyfile \
doc/Makefile \
doc/other/Makefile \
host/Makefile \
host/misc/Makefile \
host/lib/Makefile \
host/lib/std_paths.h \
host/swig/Makefile \
host/apps/Makefile \
firmware/Makefile \
firmware/include/Makefile \
firmware/lib/Makefile \
firmware/src/Makefile \
firmware/src/common/Makefile \
firmware/src/usrp0/Makefile \
firmware/src/usrp1/Makefile \
firmware/src/usrp2/Makefile \
fpga/Makefile \
fpga/rbf/Makefile \
])
AC_OUTPUT
|