2004-06-18 08:38:03 -07:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
# get rid of that stupid cache mechanism
|
|
|
|
rm -f config.cache
|
|
|
|
|
2007-11-11 01:12:08 -08:00
|
|
|
AC_INIT(emotion, 0.0.1.008, enlightenment-devel@lists.sourceforge.net)
|
|
|
|
AC_PREREQ(2.52)
|
|
|
|
AC_CONFIG_SRCDIR(configure.in)
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
|
2004-06-18 08:38:03 -07:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
|
|
|
|
2007-11-11 01:12:08 -08:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
|
|
|
AC_PROG_LIBTOOL
|
2007-10-31 12:34:39 -07:00
|
|
|
|
2007-11-11 01:12:08 -08:00
|
|
|
VMAJ=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $1);}'`
|
|
|
|
VMIN=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $2);}'`
|
|
|
|
VMIC=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $3);}'`
|
|
|
|
SNAP=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $4);}'`
|
|
|
|
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
|
|
|
|
AC_SUBST(version_info)
|
2004-06-18 08:38:03 -07:00
|
|
|
|
2007-03-21 10:33:07 -07:00
|
|
|
PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9])
|
|
|
|
PKG_CHECK_MODULES(EDJE, [edje >= 0.5.0])
|
2007-04-15 10:09:03 -07:00
|
|
|
PKG_CHECK_MODULES(ECORE, [ecore >= 0.9.9 ecore-evas >= 0.9.9 ecore-job >= 0.9.9])
|
2005-09-03 12:07:24 -07:00
|
|
|
|
2006-02-12 14:21:29 -08:00
|
|
|
save_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS $ECORE_CFLAGS"
|
2005-10-19 22:05:52 -07:00
|
|
|
AC_CHECK_HEADERS(Ecore_X.h Ecore_Fb.h)
|
2006-02-12 14:21:29 -08:00
|
|
|
CPPFLAGS=$save_CPPFLAGS
|
2005-09-03 12:07:24 -07:00
|
|
|
|
2005-10-02 12:44:17 -07:00
|
|
|
AC_ARG_ENABLE(xine,
|
|
|
|
AC_HELP_STRING([--disable-xine],[disable xine support @<:@default=auto@:>@]),
|
|
|
|
[enable_xine=$enableval],[enable_xine=auto])
|
|
|
|
HAVE_XINE="no"
|
|
|
|
if test "$enable_xine" != "no" ; then
|
2007-03-22 09:25:10 -07:00
|
|
|
PKG_CHECK_MODULES(XINE, [libxine >= 1.1.1], [HAVE_XINE="yes"])
|
2005-10-02 12:44:17 -07:00
|
|
|
fi
|
|
|
|
if test "$enable_xine$HAVE_XINE" = "yesno" ; then
|
2006-02-08 22:12:39 -08:00
|
|
|
AC_MSG_RESULT(xine not found)
|
2005-10-02 12:44:17 -07:00
|
|
|
fi
|
2005-10-02 01:07:56 -07:00
|
|
|
|
2005-10-02 12:44:17 -07:00
|
|
|
AC_ARG_ENABLE(gstreamer,
|
|
|
|
AC_HELP_STRING([--disable-gstreamer],[disable gstreamer support @<:@default=auto@:>@]),
|
|
|
|
[enable_gstreamer=$enableval],[enable_gstreamer=auto])
|
|
|
|
HAVE_GSTREAMER="no"
|
|
|
|
HAVE_GSTPLUG="no"
|
|
|
|
if test "$enable_gstreamer" != "no" ; then
|
|
|
|
|
|
|
|
dnl Gstreamer version requirement
|
2006-02-04 05:43:13 -08:00
|
|
|
GST_REQS=0.10.2
|
|
|
|
GSTPLUG_REQS=0.10.1
|
|
|
|
GST_MAJORMINOR=0.10
|
2005-10-02 12:44:17 -07:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GST, \
|
|
|
|
gstreamer-$GST_MAJORMINOR >= $GST_REQS,
|
2007-03-25 01:37:47 -07:00
|
|
|
HAVE_GSTREAMER="yes",
|
2006-04-20 17:53:13 -07:00
|
|
|
HAVE_GSTREAMER="no")
|
2005-10-02 12:44:17 -07:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GSTPLUG, \
|
2006-02-04 05:43:13 -08:00
|
|
|
gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPLUG_REQS,
|
2007-03-25 01:37:47 -07:00
|
|
|
HAVE_GSTPLUG="yes",
|
2006-04-20 17:53:13 -07:00
|
|
|
HAVE_GSTPLUG="no")
|
2006-02-04 05:43:13 -08:00
|
|
|
|
2006-04-20 17:45:52 -07:00
|
|
|
AM_GST_ELEMENT_CHECK(
|
|
|
|
[ffmpeg],
|
|
|
|
[HAVE_GSTFFMPEG="yes"],
|
|
|
|
[HAVE_GSTFFMPEG="no"])
|
2006-04-02 11:26:27 -07:00
|
|
|
|
2006-04-20 17:45:52 -07:00
|
|
|
AM_GST_ELEMENT_CHECK(
|
|
|
|
[cdiocddasrc],
|
|
|
|
[HAVE_GSTCDIOCDDASRC="yes"],
|
|
|
|
[HAVE_GSTCDIOCDDASRC="no"])
|
2005-10-02 12:44:17 -07:00
|
|
|
fi
|
|
|
|
if test "$enable_gstreamer$HAVE_GSTREAMER" = "yesno" ; then
|
2006-02-08 22:12:39 -08:00
|
|
|
AC_MSG_RESULT(gstreamer not found)
|
2005-10-02 12:44:17 -07:00
|
|
|
fi
|
2006-02-08 22:12:39 -08:00
|
|
|
if test "$HAVE_GSTPLUG" = "no"; then
|
2005-10-02 12:44:17 -07:00
|
|
|
if test "$HAVE_GSTREAMER" = "no" ; then
|
|
|
|
GSTPLUG_MSG="no"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([You should install gstreamer plugins and gst-ffmpeg to properly decode your video and audio files])
|
2006-04-02 11:26:27 -07:00
|
|
|
GSTPLUG_MSG="no (you should install gst-plugins-base and gst-ffmpeg)"
|
2005-10-02 12:44:17 -07:00
|
|
|
fi
|
2005-10-02 05:56:17 -07:00
|
|
|
else
|
2006-02-08 22:12:39 -08:00
|
|
|
if test "$HAVE_GSTFFMPEG" = "no"; then
|
|
|
|
if test "$HAVE_GSTREAMER" = "no" ; then
|
|
|
|
GSTPLUG_MSG="no"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([You should install gstreamer plugins and gst-ffmpeg to properly decode your video and audio files])
|
2006-04-02 11:26:27 -07:00
|
|
|
GSTPLUG_MSG="no (you should install gst-plugins-base and gst-ffmpeg)"
|
2006-02-08 22:12:39 -08:00
|
|
|
fi
|
|
|
|
GSTPLUG_MSG="yes"
|
2006-04-20 17:45:52 -07:00
|
|
|
else
|
2006-02-12 14:16:46 -08:00
|
|
|
GSTPLUG_MSG="yes"
|
2006-02-08 22:12:39 -08:00
|
|
|
fi
|
2006-04-02 11:26:27 -07:00
|
|
|
if test "$HAVE_GSTCDIOCDDASRC" = "no"; then
|
|
|
|
AC_MSG_WARN([You should install gstreamer-plugins-good and make sure that the cdiocddasrc element is installed])
|
|
|
|
GSTCDDA_MSG="no (you should install gst-plugins-good and the cdiocddasrc element)"
|
2006-04-20 17:45:52 -07:00
|
|
|
else
|
2006-04-02 11:26:27 -07:00
|
|
|
GSTCDDA_MSG="yes"
|
|
|
|
fi
|
2005-10-02 05:56:17 -07:00
|
|
|
fi
|
2007-11-11 01:12:08 -08:00
|
|
|
|
2005-10-02 12:44:17 -07:00
|
|
|
if test "$HAVE_XINE$HAVE_GSTREAMER" = "nono" ; then
|
2006-04-20 17:45:52 -07:00
|
|
|
AC_MSG_ERROR([Xine or Gstreamer must be installed to build emotion])
|
2005-10-02 00:34:36 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_XINE_MODULE], [test "$HAVE_XINE" = yes])
|
|
|
|
AM_CONDITIONAL([BUILD_GSTREAMER_MODULE], [test "$HAVE_GSTREAMER" = yes])
|
|
|
|
|
2004-06-18 08:38:03 -07:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2004-07-15 12:23:03 -07:00
|
|
|
emotion.pc
|
2005-10-24 21:40:17 -07:00
|
|
|
emotion.spec
|
2004-06-18 08:38:03 -07:00
|
|
|
src/Makefile
|
|
|
|
src/lib/Makefile
|
|
|
|
src/modules/Makefile
|
|
|
|
src/bin/Makefile
|
|
|
|
data/Makefile
|
2005-10-10 18:57:24 -07:00
|
|
|
debian/changelog
|
2004-06-18 08:38:03 -07:00
|
|
|
])
|
2005-10-02 00:34:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
## Info
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
|
|
|
echo " Modules:"
|
|
|
|
echo " Xine...............: $HAVE_XINE"
|
|
|
|
echo " Gstreamer..........: $HAVE_GSTREAMER"
|
2005-10-02 05:56:17 -07:00
|
|
|
echo " Gstreamer plugins..: $GSTPLUG_MSG"
|
2006-02-04 05:43:13 -08:00
|
|
|
echo " Gstreamer FFmpeg...: $HAVE_GSTFFMPEG"
|
2006-04-02 11:26:27 -07:00
|
|
|
echo " Gstreamer CDDA.....: $GSTCDDA_MSG"
|
2005-10-02 00:34:36 -07:00
|
|
|
echo
|
|
|
|
echo " Compilation..........: make"
|
|
|
|
echo
|
|
|
|
echo " Installation.........: make install"
|
|
|
|
echo
|
|
|
|
echo " prefix.........: $prefix"
|
|
|
|
echo
|