1 dnl Process this file with autoconf to produce a configure script.
3 # get rid of that stupid cache mechanism
7 AM_INIT_AUTOMAKE(emotion, 0.0.1.004)
8 AM_CONFIG_HEADER(config.h)
19 if test "x${bindir}" = 'x${exec_prefix}/bin'; then
20 if test "x${exec_prefix}" = "xNONE"; then
21 if test "x${prefix}" = "xNONE"; then
22 bindir="${ac_default_prefix}/bin";
24 bindir="${prefix}/bin";
27 if test "x${prefix}" = "xNONE"; then
28 bindir="${ac_default_prefix}/bin";
30 bindir="${prefix}/bin";
35 if test "x${libdir}" = 'x${exec_prefix}/lib'; then
36 if test "x${exec_prefix}" = "xNONE"; then
37 if test "x${prefix}" = "xNONE"; then
38 libdir="${ac_default_prefix}/lib";
40 libdir="${prefix}/lib";
43 if test "x${prefix}" = "xNONE"; then
44 libdir="${ac_default_prefix}/lib";
46 libdir="${prefix}/lib";
51 dnl Set PACKAGE_DATA_DIR in config.h.
52 if test "x${datadir}" = 'x${prefix}/share'; then
53 if test "x${prefix}" = "xNONE"; then
54 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Package Data Directory])
56 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Package Data Directory])
59 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Package Data Directory])
62 dnl Set PACKAGE_BIN_DIR in config.h.
63 if test "x${bindir}" = 'xNONE'; then
64 if test "x${prefix}" = "xNONE"; then
65 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", [Install Location for Executables])
67 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Install Location for Executables])
70 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Install Location for Executables])
73 dnl Set PACKAGE_LIB_DIR in config.h.
74 if test "x${libdir}" = 'xNONE'; then
75 if test "x${prefix}" = "xNONE"; then
76 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", [Install Location for Libraries])
78 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Install Location for Libraries])
81 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Install Location for Libraries])
84 dnl Set PACKAGE_SOURCE_DIR in config.h.
85 packagesrcdir=`cd $srcdir && pwd`
86 AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source Directory])
91 VSTART=`echo $v | awk -F_ '{printf("%s", $1);}'`
92 V1=`echo $VSTART | awk -F\. '{printf("%s", $1);}'`
93 V2=`echo $VSTART | awk -F\. '{printf("%s", $2);}'`
94 V3=`echo $VSTART | awk -F\. '{printf("%s", $3);}'`
96 VEND=`echo $v | awk -F_ '{printf("%s", $2);}'`
97 if test -n "$VEND"; then
98 V4=`echo $VEND | sed s/pre//`
101 V2=$(( $V2 * 10000 ));
102 V1=$(( $V1 * 1000000 ));
103 V=$(( $V4 + $V3 + $V2 + $V1 ));
107 AC_PATH_GENERIC(eet, 0.9.10,
109 [ AC_MSG_ERROR(Eet isn't installed)]
112 AC_PATH_GENERIC(evas, 0.9.9,
114 [ AC_MSG_ERROR(Evas isn't installed)]
117 AC_PATH_GENERIC(edje, 0.5.0,
119 [ AC_MSG_ERROR(Edje isn't installed)]
122 AC_PATH_GENERIC(ecore, 0.9.9,
124 [ AC_MSG_ERROR(Ecore isn't installed)]
127 AC_PATH_GENERIC(embryo, 0.9.1,
129 [ AC_MSG_ERROR(Embryo isn't installed)]
132 AC_PATH_GENERIC(xine, 1.0.0,
137 xine_plugins=`$XINE_CONFIG --plugindir`
138 AC_SUBST(xine_plugins)
144 dnl Gstreamer version requirement
149 PKG_CHECK_MODULES(GST, \
150 gstreamer-$GST_MAJORMINOR >= $GST_REQS,
151 HAVE_GSTREAMER="yes", HAVE_GSTREAMER="no")
153 PKG_CHECK_MODULES(GSTPLUG, \
154 gstreamer-plugins-$GST_MAJORMINOR >= $GSTPLUG_REQS,
155 HAVE_GSTPLUG="yes", HAVE_GSTPLUG="no")
157 if test "${HAVE_GSTPLUG}" = "no" ; then
158 AC_MSG_WARN([You should install gstreamer plugins and gst-ffmpeg to decode properly your video and audio files])
159 GSTPLUG_MSG="no (you should install gst-plugins and gst-ffmpeg)"
167 if test "${HAVE_XINE}" = "no" && test "${HAVE_GSTREAMER}" = "no" ; then
168 AC_MSG_ERROR([Xine or Gstreamer must be installed to build emotion])
171 AM_CONDITIONAL([BUILD_XINE_MODULE], [test "$HAVE_XINE" = yes])
172 AM_CONDITIONAL([BUILD_GSTREAMER_MODULE], [test "$HAVE_GSTREAMER" = yes])
174 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
175 AC_SUBST(dlopen_libs)
177 requirements="eet evas ecore edje libxine gstreamer"
178 AC_SUBST(requirements)
186 src/modules/xine/Makefile
191 chmod +x emotion-config
195 #####################################################################
201 echo "------------------------------------------------------------------------"
202 echo "$PACKAGE $VERSION"
203 echo "------------------------------------------------------------------------"
205 echo "Configuration Options Summary:"
208 echo " Xine...............: $HAVE_XINE"
209 echo " Gstreamer..........: $HAVE_GSTREAMER"
210 echo " Gstreamer plugins..: $GSTPLUG_MSG"
212 echo " Compilation..........: make"
214 echo " Installation.........: make install"
216 echo " prefix.........: $prefix"
217 echo " binaries.......: $bindir"
218 echo " libraries......: $libdir"
219 echo " headers........: $includedir"