summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSathishkumar2013-07-30 00:50:14 -0500
committerSaurabh Bipin Chandra2013-08-27 16:12:42 -0500
commitf71e00630af23f1dd7d2a0df87d9b5b524c823a8 (patch)
tree956d57896e212423862da2031aabaa50ba2d7f01 /configure.ac
parent17668bcb5a1f7f9db2ba225b1825bc55365c3e66 (diff)
downloadhardware-ti-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.tar.gz
hardware-ti-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.tar.xz
hardware-ti-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.zip
[GLP] Libdce linux implementation
make install & libdce.c issue fix 1. make install has been fixed. libdce.h will be installed in /usr/include, libdce.so files in /usr/lib and libdce.pc in /usr/lib/pkgconfig on using --prefix=/usr. By default the prefix is /usr/local. 2. init and deinit calls are removed from libdce.h 3. dce_set_fd and dce_get_fd calls are implemented in libdce.c 4. configure.ac checks for libmmrpc and makefile.am modified to link with libmmrpc. configure.ac and makefile.am modified 1. Codec_engine,xdctolls,framework_components,ipc,xdctools and xdaias paths needs to be exported. Configure.ac checks for the exported paths. 2. Makefile.am is modified to have the exported paths in the include directories list for the compiler. Modifications done after review 1. Comments added in memplugin_linux.c. White spaces removed manually and cleaned up libdce.c, memplugin.h. dce_priv.h is modified to have File and line number in the logs. linux/dce.h file is removed. Libdce modifications for linux Linux Specific libdce functionality added. 1. memplugin calls specific to linux are added in memplugin_linux.c 2. Error and debug logs implementation for linux in dce_priv.h 3. xll and wayland specific files are moved to linux folder Change-Id: Ib41e6a52d902376cdabbb939dee7585944720d92 Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com> Signed-off-by: Sathishkumar <x0203598@ti.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac148
1 files changed, 148 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..72430cb
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,148 @@
1AC_PREREQ(2.52)
2
3dnl initialize autoconf
4AC_INIT([libdce], [1.0.0], [http://www.ti.com])
5
6dnl define PACKAGE_VERSION_* variables
7dnl AS_VERSION
8
9dnl can autoconf find the source ?
10AC_CONFIG_SRCDIR([libdce.c])
11
12dnl set the autotools aux directory
13AC_CONFIG_AUX_DIR([config])
14
15dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
16AM_MAINTAINER_MODE
17
18dnl sets host_*, target_ variables
19AC_CANONICAL_SYSTEM
20
21dnl initialize automake
22AM_INIT_AUTOMAKE([foreign])
23
24dnl use pretty build output with automake >= 1.11
25m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
26 [AM_DEFAULT_VERBOSITY=1
27 AC_SUBST(AM_DEFAULT_VERBOSITY)])
28
29dnl find a compiler
30AC_PROG_CC
31AM_PROG_AS
32AM_PROG_LIBTOOL
33
34dnl *** autotools stuff ***
35dnl allow for different autotools
36dnl AS_AUTOTOOLS_ALTERNATE
37
38dnl *** checks for platform ***
39AC_DEFINE_UNQUOTED(CPU_`echo $target_cpu | tr a-z- A-Z_`,[1])
40AC_DEFINE_UNQUOTED(OS_` echo $target_os | tr a-z- A-Z_`,[1])
41
42dnl *** checks for programs ***
43AC_PROG_INSTALL
44
45dnl Check for pkgconfig first
46AC_CHECK_PROG([HAVE_PKGCONFIG], [pkg-config], [yes], [no])
47
48dnl *** checks for libraries ***
49dnl Check for libdrm
50PKG_CHECK_MODULES(DRM, libdrm libdrm_omap)
51
52dnl *** checks for libraries ***
53dnl Check for libmmrpc
54PKG_CHECK_MODULES(MMRPC, libmmrpc)
55
56dnl Check for X11/libdri2
57PKG_CHECK_MODULES(X11, x11 dri2, [HAVE_X11=yes], [HAVE_X11=no])
58if test "x$HAVE_X11" = "xyes"; then
59 AC_DEFINE(HAVE_X11, 1, [Have X11 support])
60else
61 AC_MSG_WARN([Building without X11 support])
62fi
63AM_CONDITIONAL(ENABLE_X11, [test "x$HAVE_X11" = xyes])
64
65dnl Check for wayland
66PKG_CHECK_MODULES(WAYLAND, wayland-client >= 0.95.0, [HAVE_WAYLAND=yes], [HAVE_WAYLAND=no])
67if test "x$HAVE_WAYLAND" = "xyes"; then
68 AC_DEFINE(HAVE_WAYLAND, 1, [Have Wayland support])
69else
70 AC_MSG_WARN([Building without Wayland support])
71fi
72AM_CONDITIONAL(ENABLE_WAYLAND, [test "x$HAVE_WAYLAND" = xyes])
73
74dnl *** checks for header files ***
75dnl check if we have ANSI C header files
76AC_HEADER_STDC
77
78dnl *** checks for types/defines ***
79
80dnl *** checks for structures ***
81
82dnl *** checks for compiler characteristics ***
83
84dnl *** checks for library functions ***
85
86dnl *** checks for dependancy libraries ***
87
88dnl *** set variables based on configure arguments ***
89
90
91if test "$CODEC_ENGINE" != "" ; then
92 AC_MSG_NOTICE([Checking component : CODEC_ENGINE])
93 AC_CHECK_FILES(["$CODEC_ENGINE"],,[AC_MSG_ERROR(["$CODEC_ENGINE" not found Set path variable CODEC_ENGINE])])
94 AC_SUBST(CODEC_ENGINE)
95else
96 AC_MSG_ERROR([Set path variable CODEC_ENGINE])
97fi
98
99if test "$FRAMEWORK_COMPONENTS" != "" ; then
100 AC_MSG_NOTICE([Checking component : FRAMEWORK_COMPONENTS])
101 AC_CHECK_FILES(["$FRAMEWORK_COMPONENTS"],,[AC_MSG_ERROR(["$FRAMEWORK_COMPONENTS" not found Set path variable FRAMEWORK_COMPONENTS])])
102 AC_SUBST(FRAMEWORK_COMPONENTS)
103else
104 AC_MSG_ERROR([Set path variable FRAMEWORK_COMPONENTS])
105fi
106
107if test "$IVAHD_CODECS" != "" ; then
108 AC_MSG_NOTICE([Checking component : IVAHD_CODECS])
109 AC_CHECK_FILES(["$IVAHD_CODECS"],,[AC_MSG_ERROR(["$IVAHD_CODECS" not fou nd Set path variable IVAHD_CODECS])])
110 AC_SUBST(IVAHD_CODECS)
111else
112 AC_MSG_ERROR([Set path variable IVAHD_CODECS])
113fi
114
115if test "$XDAIAS" != "" ; then
116 AC_MSG_NOTICE([Checking component : XDAIAS])
117 AC_CHECK_FILES(["$XDAIAS"],,[AC_MSG_ERROR(["$XDAIAS" not found Set path variable XDAIAS])])
118 AC_SUBST(XDAIAS)
119else
120 AC_MSG_ERROR([Set path variable XDAIAS])
121fi
122
123if test "$XDCTOOLS" != "" ; then
124 AC_MSG_NOTICE([Checking component : XDCTOOLS])
125 AC_CHECK_FILES(["$XDCTOOLS"],,[AC_MSG_ERROR(["$XDCTOOLS" not found Set path variable XDCTOOLS])])
126 AC_SUBST(XDCTOOLS)
127else
128 AC_MSG_ERROR([Set path variable XDCTOOLS])
129fi
130
131if test "$IPC" != "" ; then
132 AC_MSG_NOTICE([Checking component : IPC])
133 AC_CHECK_FILES(["$IPC"],,[AC_MSG_ERROR(["$IPC" not found Set path variable IPC])])
134 AC_SUBST(IPC)
135else
136 AC_MSG_ERROR([Set path variable IPC])
137fi
138
139
140
141
142
143
144AC_CONFIG_FILES([
145libdce.pc
146Makefile
147])
148AC_OUTPUT