$NetBSD: patch-af,v 1.5 2002/04/10 12:27:33 dmcmahill Exp $

--- configure.orig	Tue Nov 13 15:58:06 2001
+++ configure	Tue Apr  9 23:46:42 2002
@@ -2496,5 +2496,5 @@
 elif test $ac_cv_prog_cxx_g = yes; then
   if test "$GXX" = yes; then
-    CXXFLAGS="-g -O2"
+    CXXFLAGS="-g"
   else
     CXXFLAGS="-g"
@@ -2502,5 +2502,5 @@
 else
   if test "$GXX" = yes; then
-    CXXFLAGS="-O2"
+    CXXFLAGS=""
   else
     CXXFLAGS=
@@ -2594,5 +2594,5 @@
   if test "$GXX" = "yes"; then
     if test "$kde_use_debug_code" = "yes"; then
-      CXXFLAGS="-g -O2 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
+      CXXFLAGS="-g -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
 
 echo "$as_me:2598: checking whether $CXX supports -Wno-long-long" >&5
@@ -2699,5 +2699,5 @@
       fi
     else
-      CXXFLAGS="-O2 $CXXFLAGS"
+      CXXFLAGS="$CXXFLAGS"
     fi
   fi
@@ -9649,5 +9649,5 @@
 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
-ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_link='rm -rf SunWS_cache; ${LIBTOOL_SHELL} --tag=CXX --mode=link ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
 ac_cxxflags_safe="$CXXFLAGS"
