dnl Process this file with autoconf to produce a configure script. AC_INIT(eroaster.in) AC_PREFIX_DEFAULT(/usr/local) PACKAGE=eroaster EROASTER_MAJOR_VERSION=2 EROASTER_MINOR_VERSION=2 EROASTER_MICRO_VERSION=0 VERSION=$EROASTER_MAJOR_VERSION.$EROASTER_MINOR_VERSION.$EROASTER_MICRO_VERSION dnl Checks for programs. AC_PROG_INSTALL dnl Check for Python AC_MSG_CHECKING(for python) withval="" AC_ARG_WITH(python) PYTHON=`which python` if test "$withval" != "" then PYTHON=$withval fi if test "$PYTHON" != "" then echo $PYTHON else echo not found ! exit 1 fi AC_DEFINE_UNQUOTED(PYTHON, "$PYTHON") AC_SUBST(PYTHON) dnl Check for Python >= Version 1.5.2 dnl 17105648 = 0x010502f0 (python hex version) AC_MSG_CHECKING(for Python version >= 1.5.2 ) AC_ARG_WITH(python) PYTHONVERSION=`python -c "import sys;print sys.hexversion"` if test $PYTHONVERSION -lt 17105648 then echo failed. Get a more recent version from www.python.org ! exit 1 else echo ok fi dnl Check for PyGnome AC_MSG_CHECKING(for gnome-python) AC_ARG_WITH(pygnome) PYGNOME=`python -c "from gnome.ui import *" 2>&1` PYGNOMEEXISTS=`echo $PYGNOME|grep -i "no module"` if test "$PYGNOMEEXISTS" != "" then echo failed: get it from ftp://ftp.gnome.org/pub/GNOME/stable/latest/sources/ exit 1 else echo yes fi dnl Check for cdrecord AC_CHECK_PROG(havecdrecord, cdrecord , yes, no) if test "x$havecdrecord" = "xno"; then echo echo Couldn\'t find the cdrecord executable. You can find the latest version at echo ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/ echo exit 1 fi dnl Check for mkisofs AC_CHECK_PROG(havemkisofs, mkisofs, yes, no) if test "x$havemkisofs" = "xno"; then echo echo Couldn\'t find the mkisofs executable. mkisofs is part of the cdrecord package, echo which is available at ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/ echo exit 1 fi dnl Check for isoinfo AC_CHECK_PROG(haveisoinfo, isoinfo, yes, no) if test "x$haveisoinfo" = "xno"; then echo echo Couldn\'t find the isoinfo executable. isoinfo is part of the cdrecord package, echo which is available at ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/ echo exit 1 fi dnl Check for mpg123 AC_CHECK_PROG(havempg123, mpg123, yes, no) if test "x$havempg123" = "xno"; then echo echo Couldn\'t find mpg123. mpg123 is required for automatically converting echo mp3-files to wav-files and for playing mp3-songs, so if you would like to have echo these features enabled, get it from http://www.mpg123.de/ echo fi dnl Check for sox AC_CHECK_PROG(havesox, sox, yes, no) if test "x$havesox" = "xno"; then echo echo Couldn\'t find sox. sox is required for automatically converting echo mp3-files to wav-files, so if you would like to have this feature enabled, echo get it from http://home.sprynet.com/~cbagwell/sox.html echo fi dnl Check for xmms AC_CHECK_PROG(havexmms, xmms, yes, no) if test "x$havexmms" = "xno"; then echo echo Couldn\'t find xmms. xmms \(X Multimedia Sound System\) is required for playing echo mp3-files, so if you would like to have this feature enabled, get the latest echo version from http://www.xmms.org echo fi dnl Create files AC_OUTPUT(Makefile eroaster ecat.py constants.py pycompile waitreload.py eroaster-applet xml/eroaster-ui.xml) AC_MSG_RESULT([Sucessfully configured $PACKAGE $VERSION])