1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [0])
5 m4_define([v_mic], [0])
6 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
7 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
8 m4_define([lt_rev], m4_eval(v_maj + v_min))
9 m4_define([lt_cur], v_mic)
10 m4_define([lt_age], v_min)
11 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
12 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 AC_INIT([edje-multisense-plugin], [v_ver])
16 AC_CONFIG_SRCDIR([configure.ac])
17 AC_CONFIG_MACRO_DIR([m4])
22 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
23 AM_CONFIG_HEADER([config.h])
24 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
27 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
28 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
31 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
32 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
33 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
34 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
35 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
36 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
37 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
38 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
39 version_info="lt_rev:lt_cur:lt_age"
41 AC_SUBST(version_info)
42 AC_SUBST(release_info)
43 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
44 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
48 AC_DEFINE_UNQUOTED([SHARED_LIB_SUFFIX], ["$shrext_cmds"], [Suffix for shared objects])
52 ### Default options with respect to host
56 MODULE_ARCH="$host_os-$host_cpu"
61 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
67 requirement_edje_multisense_plugin=""
70 AC_DEFINE_UNQUOTED(MODULE_ARCH, "${MODULE_ARCH}", "Module architecture")
72 ### Checks for programs
78 # Check whether pkg-config supports Requires.private
80 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
81 pkgconfig_requires_private="Requires.private"
83 pkgconfig_requires_private="Requires"
85 AC_SUBST(pkgconfig_requires_private)
87 AC_ARG_ENABLE(gcc-werror,
88 AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]))
90 dnl Use -Wall if we have gcc.
92 if test "x$ac_cv_prog_gcc" = xyes ; then
93 CFLAGS="$CFLAGS -Wall"
95 if test x$enable_gcc_werror = "xyes" ; then
96 CFLAGS="$CFLAGS -Werror"
100 # Dependencies for the library
101 PKG_CHECK_MODULES([MINIMAL],
107 PKG_CHECK_MODULES([MULTISENSE_PLUGIN],
114 requirement_edje_multisense_plugin="ecore >= 1.7.99 mm-sound >= 1.0 ${requirement_edje_multisense_plugin}"
116 AC_DEFINE(EAPI, __attribute__ ((visibility("default"))), "Public API Visibility")
119 PKG_CHECK_MODULES(LIBREMIX, remix >= 0.2.4,
120 HAVE_LIB_REMIX="yes", HAVE_LIB_REMIX="no")
122 if test "$HAVE_LIB_REMIX" = "yes" ; then
123 AC_DEFINE([HAVE_LIB_REMIX], [], [Define if libremix version found])
124 requirement_edje_multisense_plugin="remix >= 0.2.4 ${requirement_edje_multisense_plugin}"
125 PACKAGE_PLUGIN_DIR=`pkg-config --variable=libdir remix`"/remix"
126 AC_SUBST(PACKAGE_PLUGIN_DIR)
127 AC_DEFINE_UNQUOTED(PACKAGE_PLUGIN_DIR, "$PACKAGE_PLUGIN_DIR", [Set the plugin directory for remix])
128 AC_DEFINE(__REMIX_PLUGIN__, 1, "Set to REMIX Plugin type")
130 PACKAGE_PLUGIN_DIR=""
132 AM_CONDITIONAL(HAVE_LIB_REMIX, test "x${HAVE_LIB_REMIX}" = xyes)
134 MULTISENSE_PLUGIN_CFLAGS="${MULTISENSE_PLUGIN_CFLAGS}"
135 MULTISENSE_PLUGIN_LIBS="${MULTISENSE_PLUGIN_LIBS}"
137 ### Checks for header files
138 AC_CHECK_HEADERS([locale.h])
140 ### Checks for compiler characteristics
148 MULTISENSE_PLUGIN_CFLAGS="${MULTISENSE_PLUGIN_CFLAGS} -D_WIN32_WCE=0x0420"
151 MULTISENSE_PLUGIN_CFLAGS="${MULTISENSE_PLUGIN_CFLAGS} -mwin32 -D_WIN32_WCE=0x0420"
156 ### Checks for linker characteristics
157 lt_enable_auto_import=""
160 lt_enable_auto_import="-Wl,--enable-auto-import"
163 AC_SUBST(lt_enable_auto_import)
166 ### Checks for library functions
171 AC_DEFINE([HAVE_REALPATH], [1], [Define to 1 if you have the `realpath' function.])
174 AC_CHECK_FUNCS([realpath])
178 AC_SUBST(requirement_edje_multisense_plugin)
182 src/tizen_sound_player/Makefile
185 #####################################################################
189 echo "------------------------------------------------------------------------"
190 echo "$PACKAGE $VERSION"
191 echo "------------------------------------------------------------------------"
193 echo "Configuration Options Summary:"
195 echo "Compilation............: make (or gmake)"
196 echo " CPPFLAGS.............: $CPPFLAGS"
197 echo " CFLAGS...............: $CFLAGS"
198 echo " LDFLAGS..............: $LDFLAGS"
200 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
201 echo " prefix...............: $prefix"