4a336a01eecc61101c7cba54c9210f760b3811dd
[platform/adaptation/ap_samsung/libomxil-e3250-v4l2.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.65])
5 AC_INIT([libomxil-e3250], [0.1])
6 AM_INIT_AUTOMAKE([tar-ustar])
7 #AC_CONFIG_HEADERS([config.h])
8
9 # Set to 'm4' the directory where the extra autoconf macros are stored
10 AC_CONFIG_MACRO_DIR([m4])
11
12 AC_CONFIG_FILES([
13     omxil-e3250-v4l2.pc
14     srp.pc
15     Makefile
16     exynos4/Makefile
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
24     exynos/Makefile
25     exynos/libv4l2/Makefile
26     exynos/libcsc/Makefile
27     openmax/Makefile
28     openmax/osal/Makefile
29     openmax/core/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
44 ])
45
46 # Checks for programs.
47 AC_PROG_CC
48 AM_PROG_AS
49
50 # Check for libtool
51 AM_PROG_LIBTOOL
52
53 # Checks for libraries.
54
55 # Check for pthread
56 AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([pthread is required])])
57
58 # Check for libdl
59 AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([libdl is required])])
60
61 # Checks for header files.
62 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
63
64 # Checks for typedefs, structures, and compiler characteristics.
65 AC_C_INLINE
66 AC_TYPE_SIZE_T
67 AC_TYPE_SSIZE_T
68
69 # Checks for library functions.
70 AC_FUNC_MALLOC
71 AC_FUNC_MMAP
72 AC_FUNC_REALLOC
73 AC_CHECK_FUNCS([gettimeofday memmove memset munmap])
74
75 AC_DEFINE([SLP_PLATFORM])
76 AC_DEFINE([USE_IMMEDIATE_DISPLAY])
77
78 dnl use dlog ------------------------------------------------------------------
79 AC_ARG_ENABLE(dlog, AC_HELP_STRING([--enable-dlog], [using dlog]),
80         [
81           case "${enableval}" in
82            yes) USE_DLOG=yes ;;
83            no)  USE_DLOG=no ;;
84            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-dlog) ;;
85           esac
86         ],[USE_DLOG=no])
87
88 if test "x$USE_DLOG" = "xyes"; then
89         PKG_CHECK_MODULES(DLOG, dlog)
90         AC_SUBST(DLOG_CFLAGS)
91         AC_SUBST(DLOG_LIBS)
92 fi
93 AM_CONDITIONAL(USE_DLOG, test "x$USE_DLOG" = "xyes")
94 dnl end -----------------------------------------------------------------------
95
96 dnl use mm-ta ------------------------------------------------------------------
97 AC_ARG_ENABLE(mm-ta, AC_HELP_STRING([--enable-mm-ta], [using mm-ta]),
98         [
99           case "${enableval}" in
100            yes) USE_MMTA=yes ;;
101            no)  USE_MMTA=no ;;
102            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-mm-ta) ;;
103           esac
104         ],[USE_MMTA=no])
105
106 if test "x$USE_MMTA" = "xyes"; then
107         PKG_CHECK_MODULES(MMTA, mm-ta)
108         AC_SUBST(MMTA_CFLAGS)
109         AC_SUBST(MMTA_LIBS)
110 fi
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]),
114         [
115          case "${enableval}" in
116           yes) EXYNOS_3250=yes ;;
117           no)  EXYNOS_3250=no ;;
118           *)   AC_MSG_ERROR(bad value ${enableval} for --enable-exynos3250) ;;
119          esac
120         ],
121         [EXYNOS_3250=no])
122 AM_CONDITIONAL([EXYNOS_3250], [test "x$EXYNOS_3250" = "xyes"])
123
124 AC_ARG_ENABLE(s3dsupport, AC_HELP_STRING([--enable-s3dsupport], [use s3d support]),
125         [
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) ;;
130           esac
131         ],
132         [BOARD_USE_S3D_SUPPORT=no])
133 AM_CONDITIONAL([BOARD_USE_S3D_SUPPORT], [test "x$BOARD_USE_S3D_SUPPORT" = "xyes"])
134
135 AC_ARG_ENABLE(mfcfps, AC_HELP_STRING([--enable-mfc-fps], [use mfc fps]),
136         [
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) ;;
141           esac
142         ],
143         [BOARD_USE_MFC_FPS=no])
144 AM_CONDITIONAL([BOARD_USE_MFC_FPS], [test "x$BOARD_USE_MFC_FPS" = "xyes"])
145
146 AC_ARG_ENABLE(blockmodeprocess, AC_HELP_STRING([--enable-nonblock-mode-process], [non-block mode process]),
147         [
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) ;;
152           esac
153         ],
154         [BOARD_NONBLOCK_MODE_PROCESS=yes])
155 AM_CONDITIONAL([BOARD_NONBLOCK_MODE_PROCESS], [test "x$BOARD_NONBLOCK_MODE_PROCESS" = "xyes"])
156
157 AC_ARG_ENABLE(anb, AC_HELP_STRING([--enable-anb], [use anb]),
158         [
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) ;;
163           esac
164         ],
165         [BOARD_USE_ANB=no])
166 AM_CONDITIONAL([BOARD_USE_ANB], [test "x$BOARD_USE_ANB" = "xyes"])
167
168 AC_ARG_ENABLE(metadatabuffertype, AC_HELP_STRING([--enable-metadata-buffertype], [use metadata buffertype]),
169         [
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) ;;
174           esac
175         ],
176         [BOARD_USE_METADATABUFFERTYPE=no])
177 AM_CONDITIONAL([BOARD_USE_METADATABUFFERTYPE], [test "x$BOARD_USE_METADATABUFFERTYPE" = "xyes"])
178
179 AC_ARG_ENABLE(storemetadata, AC_HELP_STRING([--enable-store-metadata], [use store metadata]),
180         [
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) ;;
185           esac
186         ],
187         [BOARD_USE_STOREMETADATA=no])
188 AM_CONDITIONAL([BOARD_USE_STOREMETADATA], [test "x$BOARD_USE_STOREMETADATA" = "xyes"])
189
190 AC_ARG_ENABLE(dmabuf, AC_HELP_STRING([--enable-use-dmabuf], [use dma buf]),
191         [
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) ;;
196           esac
197         ],
198         [BOARD_USE_DMA_BUF=no])
199 AM_CONDITIONAL([BOARD_USE_DMA_BUF], [test "x$BOARD_USE_DMA_BUF" = "xyes"])
200
201 AC_ARG_ENABLE(drm, AC_HELP_STRING([--enable-use-drm], [use drm]),
202         [
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) ;;
207           esac
208         ],
209         [BOARD_USE_DRM=no])
210 AM_CONDITIONAL([BOARD_USE_DRM], [test "x$BOARD_USE_DRM" = "xyes"])
211
212 AC_OUTPUT