Rajavenu Kyatham | 038ee09 | 2016-08-19 17:41:53 +0530 | [diff] [blame] | 1 | # -*- Autoconf -*- |
| 2 | # configure.ac -- Autoconf script for sdm |
| 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.61) |
| 9 | # Initialize the display package version 1.0.0 |
| 10 | AC_INIT([display],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 | AC_CONFIG_MACRO_DIR([m4]) |
| 18 | AC_SUBST([COMMON_CFLAGS], [-Wall -Werror -Wno-sign-conversion -Wconversion -DDEBUG_CALC_FPS]) |
| 19 | AC_SUBST([AM_CPPFLAGS], [--std=c++11]) |
| 20 | |
| 21 | AC_ARG_WITH([core_includes], |
| 22 | AC_HELP_STRING([--with-core-includes=@<:@dir@:>@], |
| 23 | [Specify the location of the core headers]), |
| 24 | [core_incdir=$withval], |
| 25 | with_core_includes=no) |
| 26 | |
| 27 | if test "x$with_core_includes" != "xno"; then |
| 28 | CFLAGS="${CFLAGS} -I${core_incdir}" |
| 29 | fi |
| 30 | |
| 31 | AC_ARG_WITH(sanitized-headers, |
| 32 | AS_HELP_STRING([--with-sanitized-headers=DIR], |
| 33 | [Specify the location of the sanitized Linux headers]), |
Lihui Wen | e63a80b | 2018-08-03 20:03:24 +0800 | [diff] [blame] | 34 | [CPPFLAGS="$CPPFLAGS -I$withval"]) |
| 35 | |
| 36 | AC_ARG_ENABLE([sdmhaldrm], |
| 37 | AC_HELP_STRING([--enable-sdmhaldrm], |
| 38 | [enable sdmhaldrm, build display-hal-linux with sdmhaldrm]), |
| 39 | [enable_sdmhaldrm="${enableval}"], |
| 40 | enable_sdmhaldrm=no) |
| 41 | |
| 42 | AM_CONDITIONAL([ENABLE_SDMHALDRM], [test "x${enable_sdmhaldrm}" = "xyes"]) |
Rajavenu Kyatham | 038ee09 | 2016-08-19 17:41:53 +0530 | [diff] [blame] | 43 | |
| 44 | # Checks for programs. |
| 45 | AC_PROG_CC |
| 46 | AM_PROG_CC_C_O |
| 47 | AC_PROG_CXX |
| 48 | AC_PROG_LIBTOOL |
| 49 | AC_PROG_AWK |
| 50 | AC_PROG_CPP |
| 51 | AC_PROG_INSTALL |
| 52 | AC_PROG_LN_S |
| 53 | AC_PROG_MAKE_SET |
| 54 | |
| 55 | AC_SUBST([CFLAGS]) |
| 56 | AC_SUBST([CC]) |
| 57 | AC_CONFIG_FILES([ \ |
| 58 | Makefile \ |
| 59 | libqservice/Makefile \ |
| 60 | libqdutils/Makefile \ |
Lihui Wen | e63a80b | 2018-08-03 20:03:24 +0800 | [diff] [blame] | 61 | libdebug/Makefile \ |
| 62 | libdrmutils/Makefile \ |
Rajavenu Kyatham | 038ee09 | 2016-08-19 17:41:53 +0530 | [diff] [blame] | 63 | sdm/libs/utils/Makefile \ |
| 64 | sdm/libs/core/Makefile |
| 65 | ]) |
Naseer Ahmed | 2ef13fc | 2017-07-18 19:19:08 -0400 | [diff] [blame] | 66 | AC_OUTPUT |