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])
12 PKG_CHECK_MODULES(MM_COMMON, mm-common)
13 AC_SUBST(MM_COMMON_CFLAGS)
14 AC_SUBST(MM_COMMON_LIBS)
21 exynos4/libcodec/Makefile
22 exynos4/libcodec/audio/Makefile
23 exynos4/libcodec/audio/alp/Makefile
24 exynos4/libcodec/video/Makefile
25 exynos4/libcodec/video/v4l2/Makefile
26 exynos4/libion_exynos/Makefile
27 exynos4/libswconverter/Makefile
29 exynos/libv4l2/Makefile
30 exynos/libcsc/Makefile
34 openmax/component/Makefile
35 openmax/component/common/Makefile
36 openmax/component/audio/Makefile
37 openmax/component/audio/dec/Makefile
38 openmax/component/audio/dec/mp3/Makefile
39 openmax/component/video/Makefile
40 openmax/component/video/dec/Makefile
41 openmax/component/video/dec/h264/Makefile
42 openmax/component/video/dec/mpeg2/Makefile
43 openmax/component/video/dec/mpeg4/Makefile
44 openmax/component/video/dec/vc1/Makefile
45 openmax/component/video/enc/Makefile
46 openmax/component/video/enc/h264/Makefile
47 openmax/component/video/enc/mpeg4/Makefile
50 # Checks for programs.
57 # Checks for libraries.
60 AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([pthread is required])])
63 AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([libdl is required])])
65 # Checks for header files.
66 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
68 # Checks for typedefs, structures, and compiler characteristics.
73 # Checks for library functions.
77 AC_CHECK_FUNCS([gettimeofday memmove memset munmap])
79 AC_DEFINE([TIZEN_FEATURE_E3250])
80 AC_DEFINE([USE_IMMEDIATE_DISPLAY])
82 dnl use dlog ------------------------------------------------------------------
83 AC_ARG_ENABLE(dlog, AC_HELP_STRING([--enable-dlog], [using dlog]),
85 case "${enableval}" in
88 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dlog) ;;
92 if test "x$USE_DLOG" = "xyes"; then
93 PKG_CHECK_MODULES(DLOG, dlog)
97 AM_CONDITIONAL(USE_DLOG, test "x$USE_DLOG" = "xyes")
98 dnl end -----------------------------------------------------------------------
100 AC_ARG_ENABLE([exynos3250], AC_HELP_STRING([--enable-exynos3250], [Enable exynos3250 specific code]),
102 case "${enableval}" in
103 yes) EXYNOS_3250=yes ;;
104 no) EXYNOS_3250=no ;;
105 *) AC_MSG_ERROR(bad value ${enableval} for --enable-exynos3250) ;;
109 AM_CONDITIONAL([EXYNOS_3250], [test "x$EXYNOS_3250" = "xyes"])
111 AC_ARG_ENABLE(s3dsupport, AC_HELP_STRING([--enable-s3dsupport], [use s3d support]),
113 case "${enableval}" in
114 yes) BOARD_USE_S3D_SUPPORT=yes ;;
115 no) BOARD_USE_S3D_SUPPORT=no ;;
116 *) AC_MSG_ERROR(bad value ${enableval} for --enable-s3dsupport) ;;
119 [BOARD_USE_S3D_SUPPORT=no])
120 AM_CONDITIONAL([BOARD_USE_S3D_SUPPORT], [test "x$BOARD_USE_S3D_SUPPORT" = "xyes"])
122 AC_ARG_ENABLE(mfcfps, AC_HELP_STRING([--enable-mfc-fps], [use mfc fps]),
124 case "${enableval}" in
125 yes) BOARD_USE_MFC_FPS=yes ;;
126 no) BOARD_USE_MFC_FPS=no ;;
127 *) AC_MSG_ERROR(bad value ${enableval} for --enable-mfc-fps) ;;
130 [BOARD_USE_MFC_FPS=no])
131 AM_CONDITIONAL([BOARD_USE_MFC_FPS], [test "x$BOARD_USE_MFC_FPS" = "xyes"])
133 AC_ARG_ENABLE(blockmodeprocess, AC_HELP_STRING([--enable-nonblock-mode-process], [non-block mode process]),
135 case "${enableval}" in
136 yes) BOARD_NONBLOCK_MODE_PROCESS=yes ;;
137 no) BOARD_NONBLOCK_MODE_PROCESS=no ;;
138 *) AC_MSG_ERROR(bad value ${enableval} for --enable-nonblock-mode-process) ;;
141 [BOARD_NONBLOCK_MODE_PROCESS=yes])
142 AM_CONDITIONAL([BOARD_NONBLOCK_MODE_PROCESS], [test "x$BOARD_NONBLOCK_MODE_PROCESS" = "xyes"])
144 AC_ARG_ENABLE(anb, AC_HELP_STRING([--enable-anb], [use anb]),
146 case "${enableval}" in
147 yes) BOARD_USE_ANB=yes ;;
148 no) BOARD_USE_ANB=no ;;
149 *) AC_MSG_ERROR(bad value ${enableval} for --enable-anb) ;;
153 AM_CONDITIONAL([BOARD_USE_ANB], [test "x$BOARD_USE_ANB" = "xyes"])
155 AC_ARG_ENABLE(metadatabuffertype, AC_HELP_STRING([--enable-metadata-buffertype], [use metadata buffertype]),
157 case "${enableval}" in
158 yes) BOARD_USE_METADATABUFFERTYPE=yes ;;
159 no) BOARD_USE_METADATABUFFERTYPE=no ;;
160 *) AC_MSG_ERROR(bad value ${enableval} for --enable-metadata-buffertype) ;;
163 [BOARD_USE_METADATABUFFERTYPE=no])
164 AM_CONDITIONAL([BOARD_USE_METADATABUFFERTYPE], [test "x$BOARD_USE_METADATABUFFERTYPE" = "xyes"])
166 AC_ARG_ENABLE(storemetadata, AC_HELP_STRING([--enable-store-metadata], [use store metadata]),
168 case "${enableval}" in
169 yes) BOARD_USE_STOREMETADATA=yes ;;
170 no) BOARD_USE_STOREMETADATA=no ;;
171 *) AC_MSG_ERROR(bad value ${enableval} for --enable-store-metadata) ;;
174 [BOARD_USE_STOREMETADATA=no])
175 AM_CONDITIONAL([BOARD_USE_STOREMETADATA], [test "x$BOARD_USE_STOREMETADATA" = "xyes"])
177 AC_ARG_ENABLE(dmabuf, AC_HELP_STRING([--enable-use-dmabuf], [use dma buf]),
179 case "${enableval}" in
180 yes) BOARD_USE_DMA_BUF=yes ;;
181 no) BOARD_USE_DMA_BUF=no ;;
182 *) AC_MSG_ERROR(bad value ${enableval} for --enable-use-dambuf) ;;
185 [BOARD_USE_DMA_BUF=no])
186 AM_CONDITIONAL([BOARD_USE_DMA_BUF], [test "x$BOARD_USE_DMA_BUF" = "xyes"])
188 AC_ARG_ENABLE(drm, AC_HELP_STRING([--enable-use-drm], [use drm]),
190 case "${enableval}" in
191 yes) BOARD_USE_DRM=yes ;;
192 no) BOARD_USE_DRM=no ;;
193 *) AC_MSG_ERROR(bad value ${enableval} for --enable-use-drm) ;;
197 AM_CONDITIONAL([BOARD_USE_DRM], [test "x$BOARD_USE_DRM" = "xyes"])
199 AC_ARG_ENABLE(neon, AC_HELP_STRING([--enable-neon], [neon]),
201 case "${enableval}" in
202 yes) BOARD_USE_NEON=yes ;;
203 no) BOARD_USE_NEON=no ;;
204 *) AC_MSG_ERROR(bad value ${enableval} for --enable-neon) ;;
208 AM_CONDITIONAL([BOARD_USE_NEON], [test "x$BOARD_USE_NEON" = "xyes"])