• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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]),
34   [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"])
43
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 \
61        libdebug/Makefile \
62        libdrmutils/Makefile \
63        sdm/libs/utils/Makefile \
64        sdm/libs/core/Makefile
65        ])
66AC_OUTPUT
67