$OpenBSD: patch-pfe_configure,v 1.3 2008/10/16 17:30:24 jasper Exp $
--- pfe/configure.orig	Mon May 12 01:46:32 2008
+++ pfe/configure	Thu Oct 16 10:53:02 2008
@@ -28098,7 +28098,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
  ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
+for ac_arg in "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-h conform % -h msglevel 2"    #
 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
    cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
@@ -28852,7 +28852,6 @@ test "$with_sbr_threading" = "yes" && uses_sbr_threadi
 GCC_WARN="" ; OPTIM="" ; DEBUG=""
 { echo "$as_me:$LINENO: checking optimize level \"$WITHVAL_OPT\" is..." >&5
 echo $ECHO_N "checking optimize level \"$WITHVAL_OPT\" is...... $ECHO_C" >&6; }
-CFLAGS=`echo " $CFLAGS " | sed -e 's/ -O[0-9]* / /'`
 opt_level="$WITHVAL_OPT"
 if test "$GCC" = "yes" ; then
    OPTIM="-O$opt_level"
@@ -29108,16 +29107,6 @@ fi
 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
 
 
-if test "$GCC" = "yes" ; then if test "_$libpfe_no_debug" = "_yes" ; then
-{ echo "$as_me:$LINENO: result: cleaning CFLAGS from -g occurrences" >&5
-echo "${ECHO_T}cleaning CFLAGS from -g occurrences" >&6; }
- CFLAGS=`echo " $CFLAGS " | sed -e "s/ -g //g"`
-fi fi
-if test "_$libpfe_no_strip" = "_yes" ; then
-{ echo "$as_me:$LINENO: result: cleaning LDFLAGS from -Wl" >&5
-echo "${ECHO_T}cleaning LDFLAGS from -Wl" >&6; }
- LDFLAGS=`echo " $LDFLAGS " | sed -e 's/ -Wl,-S //'`
-fi
 if test "$enable_shared" = "yes" ; then
 
 cat >>confdefs.h <<\_ACEOF
@@ -31533,7 +31522,7 @@ sh ./libtool --features
 	| sed -e '/^.*undef PFE_WITH_/s,^.*undef ,config     no ,'
 
    echo "using   defs= $PFE_DEFS"
-   x="$cc_opt_pipe $cc_opt_write_strings $cc_opt_strict_prototypes"
+   x="$cc_opt_write_strings $cc_opt_strict_prototypes"
    echo "using cflags= $x $GCC_WARN $WITH_CFLAGS $USER_CONFIG"
    echo "using CFLAGS= $CFLAGS"
    echo "using LIBS=   $LIBS"
