--- rxvt-unicode/configure.ac 2007/06/10 13:44:27 1.47 +++ rxvt-unicode/configure.ac 2007/06/11 17:36:47 1.48 @@ -241,7 +241,9 @@ AC_ARG_WITH(afterimage_config, [ --with-afterimage-config=DIR use libAfterImage config script in DIR], - [afterimage_config="$withval"]) + [if test "x$withval" != x; then + afterimage_config=$withval/afterimage-config + fi]) AC_ARG_ENABLE(afterstep, [ --enable-afterstep enable integration with AfterStep window manager], @@ -474,8 +476,6 @@ if test "x$afterimage_config" = "x" ; then AC_PATH_PROG(afterimage_config, afterimage-config, no) - else - afterimage_config=$afterimage_config/afterimage-config fi AC_MSG_CHECKING(for libAfterImage)