HS Files added for IVI ARM release
[adaptation/panda/libdrm.git] / packaging / 0002-Adding-changes-to-configure.ac.patch
1 From a770b7404b7611043701e56332eede3f19f4d7c5 Mon Sep 17 00:00:00 2001
2 From: Prajwal Mohan <prajwal.karur.mohan@intel.com>
3 Date: Wed, 10 Oct 2012 10:10:45 -0700
4 Subject: [PATCH 2/2] Adding changes to configure.ac
5
6 ---
7  configure.ac |   24 +++++++++++++++++++++++-
8  1 files changed, 23 insertions(+), 1 deletions(-)
9
10 diff --git a/configure.ac b/configure.ac
11 index 9506827..97f62dc 100644
12 --- a/configure.ac
13 +++ b/configure.ac
14 @@ -93,6 +93,19 @@ AC_ARG_ENABLE(exynos-experimental-api,
15               [Enable support for EXYNOS's experimental API (default: disabled)]),
16               [EXYNOS=$enableval], [EXYNOS=no])
17  
18 +AC_ARG_ENABLE(slp,
19 +             AS_HELP_STRING([--disable-slp],
20 +             [Enable support for slp's API (default: auto)]),
21 +             [SLP=$enableval], [SLP=auto])
22 +
23 +AC_ARG_VAR([bufmgr_dir], [Directory of slp-bufmgr])
24 +
25 +if test "x$bufmgr_dir" = xyes; then
26 +  AC_DEFINE_UNQUOTED(BUFMGR_DIR, "$bufmgr_dir", [Directory for the modules of slp_bufmgr])
27 +else
28 +  AC_DEFINE(BUFMGR_DIR, "/usr/lib/bufmgr", [Directory for the modules of slp_bufmgr])
29 +fi
30 +
31  dnl ===========================================================================
32  dnl check compiler flags
33  AC_DEFUN([LIBDRM_CC_TRY_FLAG], [
34 @@ -214,7 +227,7 @@ if test "x$HAVE_LIBUDEV" = xyes; then
35  fi
36  AM_CONDITIONAL(HAVE_LIBUDEV, [test "x$HAVE_LIBUDEV" = xyes])
37  
38 -if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno"; then
39 +if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno" -o "x$SLP" != "xno"; then
40      # Check for atomic intrinsics
41      AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives,
42      [
43 @@ -286,6 +299,10 @@ if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$
44      fi
45  fi
46  
47 +if test "x$SLP" != "xno"; then
48 +       AC_DEFINE(HAVE_SLP, 1, [Have slp])
49 +fi
50 +
51  if test "x$INTEL" != "xno"; then
52         PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
53  fi
54 @@ -297,6 +314,7 @@ if test "x$have_valgrind" = "xyes"; then
55         AC_DEFINE([HAVE_VALGRIND], 1, [Use valgrind intrinsics to suppress false warnings])
56  fi
57  
58 +AM_CONDITIONAL(HAVE_SLP, [test "x$SLP" != "xno"])
59  AM_CONDITIONAL(HAVE_INTEL, [test "x$INTEL" != "xno"])
60  AM_CONDITIONAL(HAVE_RADEON, [test "x$RADEON" != "xno"])
61  AM_CONDITIONAL(HAVE_NOUVEAU, [test "x$NOUVEAU" != "xno"])
62 @@ -315,6 +333,8 @@ AC_CONFIG_FILES([
63         Makefile
64         libkms/Makefile
65         libkms/libkms.pc
66 +       slp/Makefile
67 +       slp/libdrm_slp.pc
68         intel/Makefile
69         intel/libdrm_intel.pc
70         radeon/Makefile
71 @@ -346,4 +366,6 @@ echo "  Radeon API     $RADEON"
72  echo "  Nouveau API    $NOUVEAU"
73  echo "  OMAP API       $OMAP"
74  echo "  EXYNOS API     $EXYNOS"
75 +echo "  SLP API        $SLP"
76 +echo "  SLP bufmgr_dir $bufmgr_dir"
77  echo ""
78 -- 
79 1.7.3.4
80