--- rxvt-unicode/configure.ac 2010/10/13 23:04:56 1.118 +++ rxvt-unicode/configure.ac 2010/10/31 08:28:01 1.120 @@ -433,6 +433,8 @@ AC_PATH_XTRA +image_lib=none + PIXBUF_CFLAGS= PIXBUF_LIBS= @@ -448,6 +450,7 @@ if test x$support_pixbuf = xyes; then AC_MSG_RESULT(ok) + image_lib=gdk-pixbuf support_afterimage=no AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing) AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.) @@ -488,6 +491,7 @@ fi if test "x$support_afterimage" = "xyes"; then AC_MSG_RESULT($AFTERIMAGE_LIBS) + image_lib=libafterimage AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing) AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.) else @@ -647,6 +651,25 @@ AC_DEFINE(XFT, 1, Define to enable xft support) fi fi +if test x$support_inheritpixmap = xyes; then + support_xrender=yes + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then + X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" + CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" + + save_LIBS="$LIBS" + LIBS="$LIBS $X_LIBS" + AC_CHECK_HEADER(X11/extensions/Xrender.h,,[support_xrender=no]) + AC_CHECK_FUNC(XRenderFindStandardFormat,,[support_xrender=no]) + LIBS="$save_LIBS" + fi + + if test x$support_xrender = xyes; then + LIBS="$LIBS -lm" + AC_DEFINE(XRENDER, 1, Define to enable xrender support) + fi +fi if test x$support_styles = xyes; then AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) fi @@ -661,7 +684,6 @@ fi if test x$support_inheritpixmap = xyes; then AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) - test x$support_xft = xyes && LIBS="$LIBS -lm" fi if test x$support_keepscrolling = xno; then AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) @@ -794,7 +816,7 @@ fi echo echo " embedded perl: $support_perl" -echo " libafterimage: $support_afterimage" +echo " image library: $image_lib" echo if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then echo ".----------------------------------------------------------------."