blob: c9de5213f4d17692f758abf315818450b5eb16de [file] [log] [blame]
Rajavenu Kyatham038ee092016-08-19 17:41:53 +05301# -*- 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
8AC_PREREQ(2.61)
9# Initialize the display package version 1.0.0
10AC_INIT([display],1.0.0)
11# Does not strictly follow GNU Coding standards
12AM_INIT_AUTOMAKE([foreign])
13# Disables auto rebuilding of configure, Makefile.ins
14AM_MAINTAINER_MODE
15# defines some macros variable to be included by source
16AC_CONFIG_HEADERS([config.h])
17AC_CONFIG_MACRO_DIR([m4])
18AC_SUBST([COMMON_CFLAGS], [-Wall -Werror -Wno-sign-conversion -Wconversion -DDEBUG_CALC_FPS])
19AC_SUBST([AM_CPPFLAGS], [--std=c++11])
20
21AC_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
27if test "x$with_core_includes" != "xno"; then
28 CFLAGS="${CFLAGS} -I${core_incdir}"
29fi
30
31AC_ARG_WITH(sanitized-headers,
32 AS_HELP_STRING([--with-sanitized-headers=DIR],
33 [Specify the location of the sanitized Linux headers]),
Lihui Wene63a80b2018-08-03 20:03:24 +080034 [CPPFLAGS="$CPPFLAGS -I$withval"])
35
36AC_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
42AM_CONDITIONAL([ENABLE_SDMHALDRM], [test "x${enable_sdmhaldrm}" = "xyes"])
Rajavenu Kyatham038ee092016-08-19 17:41:53 +053043
44# Checks for programs.
45AC_PROG_CC
46AM_PROG_CC_C_O
47AC_PROG_CXX
48AC_PROG_LIBTOOL
49AC_PROG_AWK
50AC_PROG_CPP
51AC_PROG_INSTALL
52AC_PROG_LN_S
53AC_PROG_MAKE_SET
54
55AC_SUBST([CFLAGS])
56AC_SUBST([CC])
57AC_CONFIG_FILES([ \
58 Makefile \
59 libqservice/Makefile \
60 libqdutils/Makefile \
Lihui Wene63a80b2018-08-03 20:03:24 +080061 libdebug/Makefile \
62 libdrmutils/Makefile \
Rajavenu Kyatham038ee092016-08-19 17:41:53 +053063 sdm/libs/utils/Makefile \
64 sdm/libs/core/Makefile
65 ])
Naseer Ahmed2ef13fc2017-07-18 19:19:08 -040066AC_OUTPUT