1. Remove cynara dependency
[platform/core/multimedia/libmm-camcorder.git] / configure.ac
1 AC_PREREQ(2.52)
2
3 AC_INIT([libmm-camcorder], [0.8.0])
4 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
5 AC_CONFIG_HEADERS([config.h:config.hin])
6 AC_CONFIG_MACRO_DIR([m4])
7
8 # Checks for programs.
9 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
10 AC_PROG_CC
11 AM_PROG_CC_C_O
12 AC_C_CONST
13 dnl AC_FUNC_MALLOC
14 AC_FUNC_MMAP
15 AC_FUNC_REALLOC
16 AC_FUNC_SELECT_ARGTYPES
17 AC_FUNC_STAT
18 AC_FUNC_VPRINTF
19 AC_HEADER_STDBOOL
20 AC_HEADER_STDC
21 AC_HEADER_TIME
22 AC_PROG_GCC_TRADITIONAL
23 AC_PROG_LIBTOOL
24
25 # Checks for libraries.
26 PKG_CHECK_MODULES(GST, gstreamer-1.0 >= 1.2.0)
27 AC_SUBST(GST_CFLAGS)
28 AC_SUBST(GST_LIBS)
29
30 PKG_CHECK_MODULES(GST_PLUGIN_BASE, gstreamer-base-1.0 >= 1.2.0)
31 AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
32 AC_SUBST(GST_PLUGIN_BASE_LIBS)
33
34 PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-1.0 >= 1.2.0)
35 AC_SUBST(GST_VIDEO_CFLAGS)
36 AC_SUBST(GST_VIDEO_LIBS)
37
38 PKG_CHECK_MODULES(GST_APP, gstreamer-app-1.0 >= 1.2.0)
39 AC_SUBST(GST_APP_CFLAGS)
40 AC_SUBST(GST_APP_LIBS)
41
42 AC_ARG_ENABLE(wayland, AC_HELP_STRING([--enable-wayland], [enable wayland]),
43 [
44   case "${enableval}" in
45     yes) WAYLAND_SUPPORT=yes ;;
46     no)  WAYLAND_SUPPORT=no ;;
47     *) AC_MSG_ERROR(bad value ${enableval} for --enable-wayland) ;;
48   esac
49 ],[WAYLAND_SUPPORT=no])
50 if test "x$WAYLAND_SUPPORT" = "xyes"; then
51 PKG_CHECK_MODULES(GST_WAYLAND, gstreamer-wayland-1.0 >= 1.2.0)
52 AC_SUBST(GST_WAYLAND_CFLAGS)
53 AC_SUBST(GST_WAYLAND_LIBS)
54 fi
55 AM_CONDITIONAL([WAYLAND_SUPPORT], [test "x$WAYLAND_SUPPORT" = "xyes"])
56
57 PKG_CHECK_MODULES(MM_COMMON, mm-common)
58 AC_SUBST(MM_COMMON_CFLAGS)
59 AC_SUBST(MM_COMMON_LIBS)
60
61 PKG_CHECK_MODULES(MM_SOUND, mm-sound)
62 AC_SUBST(MM_SOUND_CFLAGS)
63 AC_SUBST(MM_SOUND_LIBS)
64
65 PKG_CHECK_MODULES(EXIF, libexif)
66 AC_SUBST(EXIF_CFLAGS)
67 AC_SUBST(EXIF_LIBS)
68
69 PKG_CHECK_MODULES(GLIB, glib-2.0)
70 AC_SUBST(GLIB_CFLAGS)
71 AC_SUBST(GLIB_LIBS)
72
73 PKG_CHECK_MODULES(GIO, gio-2.0)
74 AC_SUBST(GIO_CFLAGS)
75 AC_SUBST(GIO_LIBS)
76
77 PKG_CHECK_MODULES(MMSOUND, mm-sound)
78 AC_SUBST(MMSOUND_CFLAGS)
79 AC_SUBST(MMSOUND_LIBS)
80
81 PKG_CHECK_MODULES(MMUTIL_IMGP, mmutil-imgp)
82 AC_SUBST(MMUTIL_IMGP_CFLAGS)
83 AC_SUBST(MMUTIL_IMGP_LIBS)
84
85 PKG_CHECK_MODULES(MMUTIL_JPEG, mmutil-jpeg)
86 AC_SUBST(MMUTIL_JPEG_CFLAGS)
87 AC_SUBST(MMUTIL_JPEG_LIBS)
88
89 PKG_CHECK_MODULES(SNDFILE, sndfile)
90 AC_SUBST(SNDFILE_CFLAGS)
91 AC_SUBST(SNDFILE_LIBS)
92
93 PKG_CHECK_MODULES(VCONF, vconf)
94 AC_SUBST(VCONF_CFLAGS)
95 AC_SUBST(VCONF_LIBS)
96
97 PKG_CHECK_MODULES(SYSTEMINFO, capi-system-info)
98 AC_SUBST(SYSTEMINFO_CFLAGS)
99 AC_SUBST(SYSTEMINFO_LIBS)
100
101 PKG_CHECK_MODULES(TBM, libtbm)
102 AC_SUBST(TBM_CFLAGS)
103 AC_SUBST(TBM_LIBS)
104
105 PKG_CHECK_MODULES(STORAGE, storage)
106 AC_SUBST(STORAGE_CFLAGS)
107 AC_SUBST(STORAGE_LIBS)
108
109 # Checks for header files.
110 AC_HEADER_STDC
111 AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h])
112
113 # Checks for typedefs, structures, and compiler characteristics.
114 AC_C_CONST
115 AC_TYPE_PID_T
116 AC_TYPE_SIZE_T
117
118 # Checks for library functions.
119 AC_FUNC_ALLOCA
120 AC_FUNC_FORK
121 AC_FUNC_MALLOC
122 AC_FUNC_MEMCMP
123 AC_FUNC_SELECT_ARGTYPES
124 AC_TYPE_SIGNAL
125 AC_CHECK_FUNCS([memset select])
126 AC_CONFIG_FILES([
127 Makefile
128 src/Makefile
129 test/Makefile
130 mm-camcorder.pc
131 ])
132 AC_OUTPUT