$NetBSD: patch-ab,v 1.2 2001/03/01 20:38:15 jlam Exp $

--- configure.in.orig	Tue Feb  6 14:26:38 2001
+++ configure.in
@@ -56,6 +56,9 @@
 dnl AM_WITH_NLS()
 AM_GNU_GETTEXT
 
+# Use PKGLOCALEDIR to determine location of installed locale files.
+DATADIRNAME="${PKGLOCALEDIR}"
+
 if test "x$MSGFMT" = "xno"; then
    if test "x$GMSGFMT" = "xno"; then
       AC_MSG_RESULT(I can't find gettext)
@@ -179,6 +182,10 @@
    LIBS="$LIBS -ldl"
    AC_TRY_LINK([#include <dlfcn.h>], [dlopen("huh",0);] , have_dlopen=yes, , )
    LIBS="$save_LIBS"
+
+   if test "x$have_dlopen" != "yes"; then
+      AC_TRY_LINK([#include <dlfcn.h>], [dlopen("huh",0);], have_dlopen=yes,, )
+   fi
 
    if test "x$have_dlopen" = "xyes"; then
       AC_DEFINE(ENABLE_PLUGINS)
