aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-24 09:42:13 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-24 09:42:13 +0100
commit904e6bd37fbd25a0fc038faa436039ff24aea67d (patch)
tree7d1cf6403a7f17fbd4d3efb827b726d6f81e6e7a /configure.ac
parent01bbb73cec7724c15ecad0e841612d3b67f10522 (diff)
downloaddabmod-904e6bd37fbd25a0fc038faa436039ff24aea67d.tar.gz
dabmod-904e6bd37fbd25a0fc038faa436039ff24aea67d.tar.bz2
dabmod-904e6bd37fbd25a0fc038faa436039ff24aea67d.zip
Simplify autoconf script
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac43
1 files changed, 4 insertions, 39 deletions
diff --git a/configure.ac b/configure.ac
index 5c357ce..b0e5ce6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Her Majesty the
# Queen in Right of Canada (Communications Research Center Canada)
-# Copyright (C) 2017 Matthias P. Braendli, http://opendigitalradio.org
+# Copyright (C) 2018 Matthias P. Braendli, http://opendigitalradio.org
# This file is part of ODR-DabMod.
#
@@ -18,32 +18,21 @@
# You should have received a copy of the GNU General Public License
# along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
-AC_PREREQ(2.59)
+AC_PREREQ(2.69)
AC_INIT([ODR-DabMod], [1.1.0], [matthias.braendli@mpb.li])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
AC_CONFIG_SRCDIR([src/DabMod.cpp])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADER([config.h])
AM_SILENT_RULES([yes])
-case $target_cpu in
- x86_64)
-AC_DEFINE([__64BIT__], [], [__16BIT__, __32BIT__])
- ;;
- *)
-AC_DEFINE([__32BIT__], [], [__16BIT__, __64BIT__])
- esac
-#case $target_os in
-
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
-AC_PROG_CPP
-AC_PROG_MKDIR_P
AX_CXX_COMPILE_STDCXX_11(noext,mandatory)
@@ -149,31 +138,10 @@ AX_BOOST_BASE([1.54.0], [], AC_MSG_ERROR([BOOST 1.54 or later is required]))
AX_BOOST_SYSTEM
AX_BOOST_THREAD
-# Tests for different memory allocation debuggers.
-# Valgrind doesn't need any.
-AS_IF([test "x$enable_debug" != "xno"],
- [AS_IF([test "x$with_debug_malloc" != "xno"],
- [AS_IF([test "x$with_debug_malloc" = "xyes"],
- [AC_CHECK_LIB([duma], [malloc], [],
- [AC_CHECK_LIB([efence], [malloc])])],
- [AC_CHECK_LIB([$with_debug_malloc], [malloc])])]
- )])
-
# Checks for header files.
-AC_CHECK_HEADERS([fcntl.h limits.h memory.h netinet/in.h stdint.h stdlib.h string.h sys/time.h sys/timeb.h unistd.h])
AC_HEADER_STDC
+AC_CHECK_HEADERS([fcntl.h limits.h memory.h netinet/in.h stdint.h stdlib.h string.h sys/time.h sys/timeb.h unistd.h])
-# Checks for typedefs, structures, and compiler characteristics.
-AC_HEADER_STDBOOL
-AC_C_CONST
-AC_C_INLINE
-AC_TYPE_SIZE_T
-AC_HEADER_TIME
-AC_TYPE_UINT16_T
-AC_TYPE_UINT32_T
-AC_TYPE_UINT8_T
-AC_HEADER_TIME
-AC_MSG_CHECKING([for M_PIl])
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <math.h>]], [[double pi = M_PIl;]])],
@@ -228,9 +196,6 @@ AS_IF([test "x$enable_native" = "xyes"],
fi
])
-AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([floor memset sqrt strchr strerror strtol])
-
AC_CONFIG_FILES([Makefile])
AC_OUTPUT