Corrected invalid return values of audio effect APIs
[platform/core/multimedia/libmm-player.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
5 AC_INIT([libmm-player],[0.0.1])
6 AC_CONFIG_SRCDIR([src/mm_player_priv.c])
7 AC_CONFIG_HEADER([config.h])
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
9
10 # Checks for programs.
11 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
12 AC_PROG_CC
13
14 AC_PROG_LIBTOOL
15
16 AC_FUNC_MMAP
17 AC_FUNC_REALLOC
18 AC_FUNC_SELECT_ARGTYPES
19 AC_FUNC_STAT
20 AC_FUNC_VPRINTF
21 AC_HEADER_STDBOOL
22 AC_HEADER_STDC
23 AC_HEADER_TIME
24 AC_PROG_GCC_TRADITIONAL
25
26 # Checks for libraries.
27
28 # Checks for header files.
29 AC_HEADER_STDC
30 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h syslog.h unistd.h])
31
32 # Checks for typedefs, structures, and compiler characteristics.
33 AC_HEADER_STDBOOL
34 AC_C_CONST
35 AC_TYPE_INT64_T
36 AC_HEADER_TIME
37
38 # Checks for library functions.
39 AC_FUNC_MALLOC
40 AC_FUNC_MEMCMP
41 AC_FUNC_STAT
42 AC_CHECK_FUNCS([gettimeofday memset strchr strstr])
43
44 PKG_CHECK_MODULES(MMTA, mm-ta)
45 AC_SUBST(MMTA_CFLAGS)
46 AC_SUBST(MMTA_LIBS)
47
48 PKG_CHECK_MODULES(MMCOMMON,mm-common)
49 AC_SUBST(MMCOMMON_CFLAGS)
50 AC_SUBST(MMCOMMON_LIBS)
51
52 PKG_CHECK_MODULES(MMSOUND,mm-sound)
53 AC_SUBST(MMSOUND_CFLAGS)
54 AC_SUBST(MMSOUND_LIBS)
55
56 PKG_CHECK_MODULES(GLIB, glib-2.0)
57 AC_SUBST(GLIB_CFLAGS)
58 AC_SUBST(GLIB_LIBS)
59
60 PKG_CHECK_MODULES(GST, gstreamer-0.10 >= 0.10)
61 AC_SUBST(GST_CFLAGS)
62 AC_SUBST(GST_LIBS)
63
64 PKG_CHECK_MODULES(GST_PLUGIN_BASE, gstreamer-plugins-base-0.10 >= 0.10)
65 AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
66 AC_SUBST(GST_PLUGIN_BASE_LIBS)
67
68 PKG_CHECK_MODULES(GST_INTERFACE, gstreamer-interfaces-0.10 >= 0.10)
69 AC_SUBST(GST_INTERFACE_CFLAGS)
70 AC_SUBST(GST_LIBS)
71
72 PKG_CHECK_MODULES(GST_APP, gstreamer-app-0.10 >= 0.10)
73 AC_SUBST(GST_APP_CFLAGS)
74 AC_SUBST(GST_APP_LIBS)
75
76 PKG_CHECK_MODULES(MMSESSION, mm-session)
77 AC_SUBST(MMSESSION_CFLAGS)
78 AC_SUBST(MMSESSION_LIBS)
79
80 PKG_CHECK_MODULES(MMUTIL, mmutil-imgp)
81 AC_SUBST(MMUTIL_CFLAGS)
82 AC_SUBST(MMUTIL_LIBS)
83
84 PKG_CHECK_MODULES(AUDIOSESSIONMGR, audio-session-mgr)
85 AC_SUBST(AUDIOSESSIONMGR_CFLAGS)
86 AC_SUBST(AUDIOSESSIONMGR_LIBS)
87
88 PKG_CHECK_MODULES(ICU, icu-i18n)
89 AC_SUBST(ICU_CFLAGS)
90 AC_SUBST(ICU_LIBS)
91
92 PKG_CHECK_MODULES(INIPARSER, iniparser)
93 AC_SUBST(INIPARSER_CFLAGS)
94 AC_SUBST(INIPARSER_LIBS)
95
96 PKG_CHECK_MODULES(VCONF, vconf)
97 AC_SUBST(VCONF_CFLAGS)
98 AC_SUBST(VCONF_LIBS)
99
100 AC_CONFIG_FILES([Makefile
101                  src/Makefile
102                  mm-player.pc
103 ])
104 AC_OUTPUT