diff -Nur tvtime-1.0.2/configure.ac tvtime-1.0.2-custom/configure.ac --- tvtime-1.0.2/configure.ac 2005-09-14 23:40:44.000000000 +0200 +++ tvtime-1.0.2-custom/configure.ac 2011-05-29 18:44:24.911109352 +0200 @@ -10,12 +10,7 @@ # Check for compilers. AC_PROG_CC -AC_CHECK_PROG(found_cc, "$CC", yes, no) -test "x$found_cc" = "xyes" || exit 1 - AC_PROG_CXX -AC_CHECK_PROG(found_cxx, "$CXX", yes, no) -test "x$found_cxx" = "xyes" || exit 1 # Check for libtool. AC_PROG_LIBTOOL @@ -74,18 +69,26 @@ dnl libxml2 dnl --------------------------------------------- dnl Test for libxml2 - AC_PATH_PROG(LIBXML2_CONFIG,xml2-config,no) if test "$LIBXML2_CONFIG" = "no" ; then AC_MSG_ERROR(libxml2 needed and xml2-config not found) else XML2_LIBS="`$LIBXML2_CONFIG --libs`" XML2_FLAG="`$LIBXML2_CONFIG --cflags`" - AC_DEFINE(HAVE_LIBXML2,,[LIBXML2 support]) + AC_DEFINE(HAVE_LIBXML2,,[LIBXML2 support]) fi AC_SUBST(XML2_LIBS) AC_SUBST(XML2_FLAG) +dnl --------------------------------------------- +dnl libasound2 +dnl --------------------------------------------- +dnl Test for ALSA +AM_PATH_ALSA(1.0.9, + [ AC_DEFINE(HAVE_ALSA,1,[Define this if you have Alsa (libasound) installed]) ], + AC_MSG_RESULT(libasound needed and not found)) +AM_CONDITIONAL(HAVE_ALSA, test x"$no_alsa" != "yes") + dnl --------------------------------------------- dnl check for gtk+-2.0 @@ -99,6 +102,8 @@ dnl check for X11, Xv and XF86VidModeExtension dnl --------------------------------------------- AC_PATH_XTRA +AC_ARG_WITH([xinerama], + [AS_HELP_STRING([--without-xinerama], [Disable Xinerama extension support (default: check)])]) if test x"$no_x" != x"yes"; then dnl check for Xshm AC_CHECK_LIB([Xext],[XShmCreateImage], @@ -112,16 +117,18 @@ X11_LIBS="$X11_LIBS -lXv"],, [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext]) - dnl check for Xinerama - AC_CHECK_LIB([Xinerama],[XineramaQueryScreens], - [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support]) - X11_LIBS="$X11_LIBS -lXinerama"],, - [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext]) - - dnl check for XTest - AC_CHECK_LIB([Xtst],[XTestFakeKeyEvent], - [AC_DEFINE([HAVE_XTESTEXTENSION],,[XTest support]) - X11_LIBS="$X11_LIBS -lXtst"],, + if test "x$with_xinerama" != "xno"; then + dnl check for Xinerama + AC_CHECK_LIB([Xinerama],[XineramaQueryScreens], + [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support]) + X11_LIBS="$X11_LIBS -lXinerama"],, + [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext]) + fi + + dnl check for XSs + AC_CHECK_LIB([Xss],[XScreenSaverSuspend], + [AC_DEFINE([HAVE_XSSEXTENSION],,[XSs support]) + X11_LIBS="$X11_LIBS -lXss"],, [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext]) dnl check for Xvidmode diff -Nur tvtime-1.0.2/docs/html/default.tvtime.xml tvtime-1.0.2-custom/docs/html/default.tvtime.xml --- tvtime-1.0.2/docs/html/default.tvtime.xml 2005-09-08 06:06:57.000000000 +0200 +++ tvtime-1.0.2-custom/docs/html/default.tvtime.xml 2011-05-29 18:44:24.914442692 +0200 @@ -116,13 +116,15 @@