$NetBSD: patch-ae,v 1.11 2010/06/16 16:35:57 drochner Exp $

--- configure.orig	2010-05-12 20:26:22.000000000 +0000
+++ configure
@@ -11070,7 +11070,7 @@ fi
 # if we're using Sun Studio and neither the user nor a config.site
 # has set CFLAGS.
 if test $SUNCC = yes &&			\
-   test "$test_CFLAGS" == "" &&		\
+   test "$test_CFLAGS" = "" &&		\
    test "$CFLAGS" = "-g"
 then
   CFLAGS="-O -g"
@@ -11161,6 +11161,7 @@ fi
 
 
 have_gcc4=no
+if false; then
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility" >&5
 $as_echo_n "checking for -fvisibility... " >&6; }
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -11177,6 +11178,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
   have_gcc4=yes
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
 
 if test "x$have_gcc4" = "xyes"; then
    CFLAGS="$CFLAGS -fvisibility=hidden"
