--- rxvt-unicode/configure.ac 2007/06/26 21:59:13 1.60 +++ rxvt-unicode/configure.ac 2007/07/26 11:57:18 1.63 @@ -462,6 +462,7 @@ LIBAFTERIMAGE_CFLAGS= AFTERIMAGE_LIBS= have_afterimage= +AFTERIMAGE_VERSION= if test x$support_afterimage = xyes; then support_afterimage=no @@ -469,13 +470,18 @@ if test "x$afterimage_config" = "x" ; then AC_PATH_PROG(afterimage_config, afterimage-config, no) fi - - AC_MSG_CHECKING(for libAfterImage) - if $afterimage_config --version >/dev/null 2>&1 ; then + AC_PROG_AWK + AC_MSG_CHECKING(for libAfterImage version >= 1.15 ) + AFTERIMAGE_VERSION=`$afterimage_config --version` + if test -n $AFTERIMAGE_VERSION ; then LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` AFTERIMAGE_LIBS=`$afterimage_config --libs` if test "x$AFTERIMAGE_LIBS" != "x"; then - support_afterimage=yes + libai_ver_major=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $1}'` + libai_ver_minor=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $2}'` + if test "$libai_ver_major -gt 1 -o ($libai_ver_major -eq 1 -a $libai_ver_minor -ge 15)"; then + support_afterimage=yes; + fi fi fi @@ -532,8 +538,6 @@ if test x$rxvt_cv_xpointer = xyes; then AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) fi -LIBS=$ac_save_LIBS -CFLAGS=$ac_save_CFLAGS AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_xlib_illegal_access, [AC_COMPILE_IFELSE(