1 dnl Process this file with autoconf to produce a configure script.
3 # get rid of that stupid cache mechanism
6 AC_INIT(emotion, 0.1.0.042, enlightenment-devel@lists.sourceforge.net)
8 AC_CONFIG_SRCDIR(configure.ac)
10 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
11 AM_CONFIG_HEADER(config.h)
21 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
22 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
25 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
26 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
27 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
28 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
29 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
30 AC_SUBST(version_info)
32 PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9])
33 PKG_CHECK_MODULES(EDJE, [edje >= 0.5.0])
34 PKG_CHECK_MODULES(ECORE, [ecore >= 0.9.9 ecore-evas >= 0.9.9 ecore-job >= 0.9.9])
36 save_CPPFLAGS=$CPPFLAGS
37 CPPFLAGS="$CPPFLAGS $ECORE_CFLAGS"
38 AC_CHECK_HEADERS(Ecore_X.h Ecore_Fb.h)
39 CPPFLAGS=$save_CPPFLAGS
42 AC_HELP_STRING([--disable-vlc],[disable vlc support @<:@default=auto@:>@]),
43 [enable_vlc=$enableval],[enable_vlc=auto])
45 if test "$enable_vlc" != "no" ; then
46 PKG_CHECK_MODULES(VLC, [libvlc >= 0.9], [HAVE_VLC="yes"], [HAVE_VLC="no"])
48 if test "$enable_vlc$HAVE_VLC" = "yesno" ; then
49 AC_MSG_RESULT(vlc not found)
53 AC_HELP_STRING([--disable-xine],[disable xine support @<:@default=auto@:>@]),
54 [enable_xine=$enableval],[enable_xine=auto])
56 if test "$enable_xine" != "no" ; then
57 PKG_CHECK_MODULES(XINE, [libxine >= 1.1.1], [HAVE_XINE="yes"])
59 if test "$enable_xine$HAVE_XINE" = "yesno" ; then
60 AC_MSG_RESULT(xine not found)
63 AC_ARG_ENABLE(gstreamer,
64 AC_HELP_STRING([--disable-gstreamer],[disable gstreamer support @<:@default=auto@:>@]),
65 [enable_gstreamer=$enableval],[enable_gstreamer=auto])
68 if test "$enable_gstreamer" != "no" ; then
70 dnl Gstreamer version requirement
75 PKG_CHECK_MODULES(GST, \
76 gstreamer-$GST_MAJORMINOR >= $GST_REQS,
80 PKG_CHECK_MODULES(GSTPLUG, \
81 gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPLUG_REQS,
87 [HAVE_GSTFFMPEG="yes"],
88 [HAVE_GSTFFMPEG="no"])
92 [HAVE_GSTCDIOCDDASRC="yes"],
93 [HAVE_GSTCDIOCDDASRC="no"])
95 if test "$enable_gstreamer$HAVE_GSTREAMER" = "yesno" ; then
96 AC_MSG_RESULT(gstreamer not found)
98 if test "$HAVE_GSTPLUG" = "no"; then
99 if test "$HAVE_GSTREAMER" = "no" ; then
102 AC_MSG_WARN([You should install gstreamer plugins and gst-ffmpeg to properly decode your video and audio files])
103 GSTPLUG_MSG="no (you should install gst-plugins-base and gst-ffmpeg)"
106 if test "$HAVE_GSTFFMPEG" = "no"; then
107 if test "$HAVE_GSTREAMER" = "no" ; then
110 AC_MSG_WARN([You should install gstreamer plugins and gst-ffmpeg to properly decode your video and audio files])
111 GSTPLUG_MSG="no (you should install gst-plugins-base and gst-ffmpeg)"
117 if test "$HAVE_GSTCDIOCDDASRC" = "no"; then
118 AC_MSG_WARN([You should install gstreamer-plugins-good and make sure that the cdiocddasrc element is installed])
119 GSTCDDA_MSG="no (you should install gst-plugins-good and the cdiocddasrc element)"
125 if test "$HAVE_XINE$HAVE_GSTREAMER" = "nono" ; then
126 AC_MSG_ERROR([Xine or Gstreamer must be installed to build emotion])
129 AM_CONDITIONAL([BUILD_VLC_MODULE], [test "$HAVE_VLC" = yes])
130 AM_CONDITIONAL([BUILD_XINE_MODULE], [test "$HAVE_XINE" = yes])
131 AM_CONDITIONAL([BUILD_GSTREAMER_MODULE], [test "$HAVE_GSTREAMER" = yes])
140 src/modules/xine/Makefile
141 src/modules/gstreamer/Makefile
142 src/modules/vlc/Makefile
148 #####################################################################
154 echo "------------------------------------------------------------------------"
155 echo "$PACKAGE $VERSION"
156 echo "------------------------------------------------------------------------"
158 echo "Configuration Options Summary:"
161 echo " Xine...............: $HAVE_XINE"
162 echo " Vlc................: $HAVE_VLC"
163 echo " Gstreamer..........: $HAVE_GSTREAMER"
164 echo " Gstreamer plugins..: $GSTPLUG_MSG"
165 echo " Gstreamer FFmpeg...: $HAVE_GSTFFMPEG"
166 echo " Gstreamer CDDA.....: $GSTCDDA_MSG"
168 echo " Compilation..........: make"
170 echo " Installation.........: make install"
172 echo " prefix.........: $prefix"