$OpenBSD: patch-configure,v 1.6 2006/01/09 16:31:52 naddy Exp $
--- configure.orig	Sat Nov 30 19:32:08 2002
+++ configure	Mon Jan  9 08:45:38 2006
@@ -9628,7 +9628,7 @@ if test "${ac_cv_lib_intl_bindtextdomain
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lintl  $LIBS"
+LIBS="-lintl -liconv $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line 9633 "configure"
 #include "confdefs.h"
@@ -9683,7 +9683,7 @@ if test "${ac_cv_lib_intl_gettext+set}" 
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lintl  $LIBS"
+LIBS="-lintl -liconv $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line 9688 "configure"
 #include "confdefs.h"
@@ -9738,6 +9738,10 @@ echo "${ECHO_T}$gt_cv_func_gettext_libin
 fi
 
 	   fi
+
+	   if test "$gt_cv_func_gettext_libintl" = "yes"; then
+	     LIBS="$LIBS -lintl -liconv";
+ 	   fi
 
 	   if test "$gt_cv_func_gettext_libc" = "yes" \
 	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
