--- configure.orig	2007-05-28 16:15:44.000000000 +1000
+++ configure	2012-06-11 22:20:46.000000000 +1000
@@ -21553,7 +21553,7 @@
      fi
      ;;
   esac
-else
+elif test -z "$EVENTINC" -o -z "$EVENTLIB"; then
    if test -f ${prefix}/include/event.h; then
      EVENTINC="-I${prefix}/include"
      EVENTLIB="-L${prefix}/lib -levent"