$NetBSD: patch-ab,v 1.6 2006/10/14 02:24:46 rillig Exp $

--- configure.orig	2006-05-16 06:16:04.000000000 +0200
+++ configure	2006-10-14 04:23:09.000000000 +0200
@@ -4415,7 +4415,7 @@ case "$ac_cv_build" in
     case "${ac_cv_build}" in
       i[3-9]86-*-netbsd*) machine=intel386 ;;
       hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
-                                            machine=hp9000s300 ;;
+                                            machine=m68k ;;
       pc532-*-netbsd* | ns32k-*-netbsd* )  machine=ns32000 ;;
       pmax-*-netbsd*  | mips-*-netbsd*  )  machine=pmax ;;
     esac
@@ -9735,7 +9735,7 @@ echo $ECHO_N "checking for runtime libra
     decosf* | linux* | irix*) dash_r="-rpath " ;;
     *)
       dash_r=""
-      for try_dash_r in "-R" "-R " "-rpath "; do
+      for try_dash_r in "-Wl,R" "-R" "-R " "-rpath "; do
         xe_check_libs="${try_dash_r}/no/such/file-or-directory"
 
 if test "$GCC" = "yes"; then
@@ -39670,7 +39670,7 @@ fi
 if test "$have_vdb_mach" = yes ; then
   echo "  Using mach exception mechanism as vdb fault handler."
 fi
-if test "$have_vdb_fake" = yes && test "$enable_vdb" == fake; then
+if test "$have_vdb_fake" = yes && test "$enable_vdb" = fake; then
   echo "  Virtual dirty bit write barrier manually disabled."
 fi
 test "$enable_pdump" = yes && echo "  Using the new portable dumper."
