--- gcc/configure.orig	Tue Dec  5 12:37:14 2006
+++ gcc/configure	Tue Dec  5 12:37:50 2006
@@ -7993,7 +7993,7 @@
       conftest$ac_exeext conftest.$ac_ext
     if test "$am_cv_func_iconv" != yes; then
       am_save_LIBS="$LIBS"
-      LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
+      LIBS="$LIBS $am_cv_lib_iconv_ldpath -liconv"
       cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
