2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libomxil-e3250], [0.1])
6 AM_INIT_AUTOMAKE([tar-ustar])
7 #AC_CONFIG_HEADERS([config.h])
9 # Set to 'm4' the directory where the extra autoconf macros are stored
10 AC_CONFIG_MACRO_DIR([m4])
17 exynos4/libcodec/Makefile
18 exynos4/libcodec/audio/Makefile
19 exynos4/libcodec/audio/alp/Makefile
20 exynos4/libcodec/video/Makefile
21 exynos4/libcodec/video/v4l2/Makefile
22 exynos4/libion_exynos/Makefile
23 exynos4/libswconverter/Makefile
25 exynos/libv4l2/Makefile
26 exynos/libcsc/Makefile
30 openmax/component/Makefile
31 openmax/component/common/Makefile
32 openmax/component/audio/Makefile
33 openmax/component/audio/dec/Makefile
34 openmax/component/audio/dec/mp3/Makefile
35 openmax/component/video/Makefile
36 openmax/component/video/dec/Makefile
37 openmax/component/video/dec/h264/Makefile
38 openmax/component/video/dec/mpeg2/Makefile
39 openmax/component/video/dec/mpeg4/Makefile
40 openmax/component/video/dec/vc1/Makefile
41 openmax/component/video/enc/Makefile
42 openmax/component/video/enc/h264/Makefile
43 openmax/component/video/enc/mpeg4/Makefile
46 # Checks for programs.
53 # Checks for libraries.
56 AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([pthread is required])])
59 AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([libdl is required])])
61 # Checks for header files.
62 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
64 # Checks for typedefs, structures, and compiler characteristics.
69 # Checks for library functions.
73 AC_CHECK_FUNCS([gettimeofday memmove memset munmap])
75 AC_DEFINE([SLP_PLATFORM])
76 AC_DEFINE([USE_IMMEDIATE_DISPLAY])
78 dnl use dlog ------------------------------------------------------------------
79 AC_ARG_ENABLE(dlog, AC_HELP_STRING([--enable-dlog], [using dlog]),
81 case "${enableval}" in
84 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dlog) ;;
88 if test "x$USE_DLOG" = "xyes"; then
89 PKG_CHECK_MODULES(DLOG, dlog)
93 AM_CONDITIONAL(USE_DLOG, test "x$USE_DLOG" = "xyes")
94 dnl end -----------------------------------------------------------------------
96 dnl use mm-ta ------------------------------------------------------------------
97 AC_ARG_ENABLE(mm-ta, AC_HELP_STRING([--enable-mm-ta], [using mm-ta]),
99 case "${enableval}" in
102 *) AC_MSG_ERROR(bad value ${enableval} for --enable-mm-ta) ;;
106 if test "x$USE_MMTA" = "xyes"; then
107 PKG_CHECK_MODULES(MMTA, mm-ta)
108 AC_SUBST(MMTA_CFLAGS)
111 AM_CONDITIONAL(USE_MMTA, test "x$USE_MMTA" = "xyes")
112 dnl end -----------------------------------------------------------------------
113 AC_ARG_ENABLE([exynos3250], AC_HELP_STRING([--enable-exynos3250], [Enable exynos3250 specific code]),
115 case "${enableval}" in
116 yes) EXYNOS_3250=yes ;;
117 no) EXYNOS_3250=no ;;
118 *) AC_MSG_ERROR(bad value ${enableval} for --enable-exynos3250) ;;
122 AM_CONDITIONAL([EXYNOS_3250], [test "x$EXYNOS_3250" = "xyes"])
124 AC_ARG_ENABLE(s3dsupport, AC_HELP_STRING([--enable-s3dsupport], [use s3d support]),
126 case "${enableval}" in
127 yes) BOARD_USE_S3D_SUPPORT=yes ;;
128 no) BOARD_USE_S3D_SUPPORT=no ;;
129 *) AC_MSG_ERROR(bad value ${enableval} for --enable-s3dsupport) ;;
132 [BOARD_USE_S3D_SUPPORT=no])
133 AM_CONDITIONAL([BOARD_USE_S3D_SUPPORT], [test "x$BOARD_USE_S3D_SUPPORT" = "xyes"])
135 AC_ARG_ENABLE(mfcfps, AC_HELP_STRING([--enable-mfc-fps], [use mfc fps]),
137 case "${enableval}" in
138 yes) BOARD_USE_MFC_FPS=yes ;;
139 no) BOARD_USE_MFC_FPS=no ;;
140 *) AC_MSG_ERROR(bad value ${enableval} for --enable-mfc-fps) ;;
143 [BOARD_USE_MFC_FPS=no])
144 AM_CONDITIONAL([BOARD_USE_MFC_FPS], [test "x$BOARD_USE_MFC_FPS" = "xyes"])
146 AC_ARG_ENABLE(blockmodeprocess, AC_HELP_STRING([--enable-nonblock-mode-process], [non-block mode process]),
148 case "${enableval}" in
149 yes) BOARD_NONBLOCK_MODE_PROCESS=yes ;;
150 no) BOARD_NONBLOCK_MODE_PROCESS=no ;;
151 *) AC_MSG_ERROR(bad value ${enableval} for --enable-nonblock-mode-process) ;;
154 [BOARD_NONBLOCK_MODE_PROCESS=yes])
155 AM_CONDITIONAL([BOARD_NONBLOCK_MODE_PROCESS], [test "x$BOARD_NONBLOCK_MODE_PROCESS" = "xyes"])
157 AC_ARG_ENABLE(anb, AC_HELP_STRING([--enable-anb], [use anb]),
159 case "${enableval}" in
160 yes) BOARD_USE_ANB=yes ;;
161 no) BOARD_USE_ANB=no ;;
162 *) AC_MSG_ERROR(bad value ${enableval} for --enable-anb) ;;
166 AM_CONDITIONAL([BOARD_USE_ANB], [test "x$BOARD_USE_ANB" = "xyes"])
168 AC_ARG_ENABLE(metadatabuffertype, AC_HELP_STRING([--enable-metadata-buffertype], [use metadata buffertype]),
170 case "${enableval}" in
171 yes) BOARD_USE_METADATABUFFERTYPE=yes ;;
172 no) BOARD_USE_METADATABUFFERTYPE=no ;;
173 *) AC_MSG_ERROR(bad value ${enableval} for --enable-metadata-buffertype) ;;
176 [BOARD_USE_METADATABUFFERTYPE=no])
177 AM_CONDITIONAL([BOARD_USE_METADATABUFFERTYPE], [test "x$BOARD_USE_METADATABUFFERTYPE" = "xyes"])
179 AC_ARG_ENABLE(storemetadata, AC_HELP_STRING([--enable-store-metadata], [use store metadata]),
181 case "${enableval}" in
182 yes) BOARD_USE_STOREMETADATA=yes ;;
183 no) BOARD_USE_STOREMETADATA=no ;;
184 *) AC_MSG_ERROR(bad value ${enableval} for --enable-store-metadata) ;;
187 [BOARD_USE_STOREMETADATA=no])
188 AM_CONDITIONAL([BOARD_USE_STOREMETADATA], [test "x$BOARD_USE_STOREMETADATA" = "xyes"])
190 AC_ARG_ENABLE(dmabuf, AC_HELP_STRING([--enable-use-dmabuf], [use dma buf]),
192 case "${enableval}" in
193 yes) BOARD_USE_DMA_BUF=yes ;;
194 no) BOARD_USE_DMA_BUF=no ;;
195 *) AC_MSG_ERROR(bad value ${enableval} for --enable-use-dambuf) ;;
198 [BOARD_USE_DMA_BUF=no])
199 AM_CONDITIONAL([BOARD_USE_DMA_BUF], [test "x$BOARD_USE_DMA_BUF" = "xyes"])
201 AC_ARG_ENABLE(drm, AC_HELP_STRING([--enable-use-drm], [use drm]),
203 case "${enableval}" in
204 yes) BOARD_USE_DRM=yes ;;
205 no) BOARD_USE_DRM=no ;;
206 *) AC_MSG_ERROR(bad value ${enableval} for --enable-use-drm) ;;
210 AM_CONDITIONAL([BOARD_USE_DRM], [test "x$BOARD_USE_DRM" = "xyes"])