-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: de1288d05e91a468e520dc2434b5a326022fa36e:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit de1288d05e91a468e520dc2434b5a326022fa36e
Author: Sasha Vasko <sashavasko@gmail.com>
Date:   Wed Jul 25 22:41:45 2007 +0000

    added check for libAfterImage version to be greater then 1.15 - in this case there should not be any need to init dpy var

diff --git a/configure.ac b/configure.ac

index b6bf9aa76df015a8c6415b48de88c097704eb614..

index ..db583249c9473b5385ccf6414733bed416018f19 100644

--- a/configure.ac
+++ b/configure.ac
@@ -462,6 +462,7 @@ dnl# only check if we want xpm-background
 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$support_afterimage = xyes; then
   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

@@ -880,10 +886,12 @@ if test x$support_perl = xyes; then
         PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
         PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
      else
-        AC_MSG_ERROR([no, unable to link])
+        AC_MSG_RESULT([no, unable to link])
+        rxvt_perl_link=no
      fi
   else
-     AC_MSG_ERROR([no working perl found, or perl not version >= 5.8])
+     AC_MSG_RESULT([no working perl found, or perl not version >= 5.8])
+     support_perl=no
   fi
 fi
 AC_SUBST(PERLLIB)

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 10:18:04 2024