Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 1 | # -*- Autoconf -*- |
| 2 | # configure.ac -- Autoconf script for halinterface |
| 3 | # |
| 4 | |
| 5 | # Process this file with autoconf to produce a configure script. |
| 6 | |
| 7 | # Requires autoconf tool later than 2.61 |
| 8 | AC_PREREQ([2.69]) |
| 9 | # Initialize the audiohalwrapper-interface package version 1.0.0 |
| 10 | AC_INIT(audiohalwrapperinterface,1.0.0) |
| 11 | # Does not strictly follow GNU Coding standards |
| 12 | AM_INIT_AUTOMAKE([foreign]) |
| 13 | # Disables auto rebuilding of configure, Makefile.ins |
| 14 | #AM_MAINTAINER_MODE |
| 15 | # defines some macros variable to be included by source |
| 16 | AC_CONFIG_HEADERS([config.h]) |
| 17 | # defines some macros variable to be included by source |
| 18 | AC_CONFIG_MACRO_DIR([m4]) |
| 19 | |
| 20 | # Checks for programs. |
| 21 | AC_PROG_CC |
| 22 | AM_PROG_CC_C_O |
| 23 | AC_PROG_CXX |
| 24 | AC_PROG_LIBTOOL |
| 25 | AC_PROG_AWK |
| 26 | AC_PROG_CPP |
| 27 | AC_PROG_INSTALL |
| 28 | AC_PROG_LN_S |
| 29 | AC_PROG_MAKE_SET |
| 30 | PKG_PROG_PKG_CONFIG |
| 31 | |
Dhanalakshmi Siddani | 7764e3f | 2018-03-05 19:57:06 +0530 | [diff] [blame^] | 32 | AM_CONDITIONAL([SVA_AUDIO_CONCURRENCY],[test x$BOARD_SUPPORTS_SVA_AUDIO_CONCURRENCY = xtrue]) |
Sachin Mohan Gadag | 12f5884 | 2017-12-05 15:46:28 +0530 | [diff] [blame] | 33 | AC_ARG_WITH([glib], |
| 34 | AC_HELP_STRING([--with-glib], |
| 35 | [enable glib, Build against glib. Use this when building for HLOS systems which use glib])) |
| 36 | |
| 37 | if (test "x${with_glib}" = "xyes"); then |
| 38 | PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes, |
| 39 | AC_MSG_ERROR(GThread >= 2.16 is required)) |
| 40 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes, |
| 41 | AC_MSG_ERROR(GLib >= 2.16 is required)) |
| 42 | GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" |
| 43 | GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" |
| 44 | |
| 45 | AC_SUBST(GLIB_CFLAGS) |
| 46 | AC_SUBST(GLIB_LIBS) |
| 47 | fi |
| 48 | |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 49 | AC_CONFIG_FILES([ \ |
| 50 | Makefile |
| 51 | ]) |
| 52 | |
| 53 | AC_OUTPUT |