$OpenBSD: patch-configure,v 1.3 2005/02/09 00:41:20 alek Exp $
--- configure.orig	Wed May 28 11:56:16 2003
+++ configure	Tue Feb  8 23:08:13 2005
@@ -3887,13 +3887,13 @@ else
   gt_save_CPPFLAGS="$CPPFLAGS"
             CPPFLAGS="$CPPFLAGS $INCINTL"
             gt_save_LIBS="$LIBS"
-            LIBS="$LIBS $LIBINTL"
+            LIBS="$LIBS $LIBINTL $LIBICONV"
                         cat > conftest.$ac_ext <<EOF
 #line 3893 "configure"
 #include "confdefs.h"
 #include <libintl.h>
 extern int _nl_msg_cat_cntr;
-extern int *_nl_domain_bindings;
+extern int *_nl_domain_bindings__;
 extern
 #ifdef __cplusplus
 "C"
@@ -3901,7 +3901,7 @@ extern
 const char *_nl_expand_alias ();
 int main() {
 bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
+return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings__ + *_nl_expand_alias (0)
 ; return 0; }
 EOF
 if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -4380,7 +4380,7 @@ s%@DATADIRNAME@%$DATADIRNAME%g
 s%@INSTOBJEXT@%$INSTOBJEXT%g
 s%@GENCAT@%$GENCAT%g
 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
-s%@INTLLIBS@%$INTLLIBS%g
+s%@INTLLIBS@%$LTLIBINTL $LTLIBICONV%g
 s%@LIBINTL@%$LIBINTL%g
 s%@LTLIBINTL@%$LTLIBINTL%g
 s%@POSUB@%$POSUB%g
