$NetBSD$

--- configure.orig	2007-10-14 19:59:17.000000000 +0200
+++ configure	2007-10-14 20:03:14.000000000 +0200
@@ -348,6 +350,10 @@
     AIOLIBS="-lrt -lpthread"
 fi
 
+if [ "$FORCE_AIO" = "yes" ]; then 
+    AIOLIBS="-lrt"                
+fi
+
 # default flags for all hosts
 CFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing"
 LDFLAGS="$LDFLAGS -g"
