$NetBSD: patch-ab,v 1.12 2005/07/14 08:06:58 adam Exp $

--- ../configure.orig	2005-07-12 13:50:46.000000000 +0000
+++ ../configure
@@ -4944,7 +4944,7 @@ done
 
 
 
-for ac_header in stdio.h
+for ac_header in stdio.h wchar.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -13927,8 +13927,6 @@ if test "$with_debug" = "yes" ; then
   CXXFLAGS="-g"
 else
   with_debug="no"
-  CFLAGS="-O2"
-  CXXFLAGS="-O2"
 fi
 
 if test "${CC}" = "gcc" ; then
