virt_phy: implement GSMTAP_CHANNEL_VOICE
[osmocom-bb.git] / src / host / virt_phy / configure.ac
blobfbff2c111d1e3fa09d00d8b14a580db39922661c
1 dnl Process this file with autoconf to produce a configure script
2 AC_INIT([virtphy], 0.0.0)
3 AM_CONFIG_HEADER([config.h])
4 AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects])
6 dnl kernel style compile messages
7 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9 dnl checks for programs
10 AC_PROG_MAKE_SET
11 AC_PROG_CC
12 AC_PROG_INSTALL
14 dnl checks for libraries
15 dnl TODO: insert libosmocore version with GSMTAP_CHANNEL_VOICE: PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.4.0)
16 dnl       (at time of writing not released yet)
17 PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore)
18 PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm)
20 dnl checks for header files
21 AC_HEADER_STDC
23 dnl Checks for typedefs, structures and compiler characteristics
25 AC_ARG_ENABLE(sanitize,
26         [AS_HELP_STRING(
27                 [--enable-sanitize],
28                 [Compile with address sanitizer enabled],
29         )], [sanitize=$enableval], [sanitize="no"])
30 if test x"$sanitize" = x"yes"
31 then
32         CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined"
33         CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
36 AC_CONFIG_FILES([
37  Makefile
38  include/Makefile
39  src/Makefile
41 AC_OUTPUT