[kaffe] CVS kaffe (robilad): Set warning level to -Wall

Kaffe CVS cvs-commits at kaffe.org
Thu Mar 31 04:05:05 PST 2005


PatchSet 5624 
Date: 2005/03/31 11:55:06
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Set warning level to -Wall

2005-03-31  Dalibor Topic  <robilad at kaffe.org>

* configure.ac: Set warning leel back to
-Wall to sort the most important ones out first.

Members: 
	ChangeLog:1.3795->1.3796 
	Makefile.in:1.208->1.209 
	aclocal.m4:1.122->1.123 
	configure:1.440->1.441 
	configure.ac:1.130->1.131 
	config/Makefile.in:1.177->1.178 
	include/Makefile.in:1.219->1.220 
	kaffe/Makefile.in:1.145->1.146 
	kaffe/jvmpi/Makefile.in:1.68->1.69 
	kaffe/kaffe/Makefile.in:1.166->1.167 
	kaffe/kaffeh/Makefile.in:1.145->1.146 
	kaffe/kaffevm/Makefile.in:1.197->1.198 
	kaffe/kaffevm/boehm-gc/Makefile.in:1.31->1.32 
	kaffe/kaffevm/gcj/Makefile.in:1.125->1.126 
	kaffe/kaffevm/intrp/Makefile.in:1.134->1.135 
	kaffe/kaffevm/jit/Makefile.in:1.141->1.142 
	kaffe/kaffevm/jit3/Makefile.in:1.112->1.113 
	kaffe/kaffevm/jni/Makefile.in:1.37->1.38 
	kaffe/kaffevm/kaffe-gc/Makefile.in:1.29->1.30 
	kaffe/kaffevm/systems/Makefile.in:1.133->1.134 
	kaffe/kaffevm/systems/beos-native/Makefile.in:1.125->1.126 
	kaffe/kaffevm/systems/oskit-pthreads/Makefile.in:1.131->1.132 
	kaffe/kaffevm/systems/unix-jthreads/Makefile.in:1.135->1.136 
	kaffe/kaffevm/systems/unix-pthreads/Makefile.in:1.109->1.110 
	kaffe/kaffevm/verifier/Makefile.in:1.36->1.37 
	kaffe/man/Makefile.in:1.132->1.133 
	kaffe/scripts/Makefile.in:1.170->1.171 
	kaffe/scripts/bat/Makefile.in:1.124->1.125 
	kaffe/scripts/compat/Makefile.in:1.149->1.150 
	kaffe/xprof/Makefile.in:1.100->1.101 
	libraries/Makefile.in:1.128->1.129 
	libraries/clib/Makefile.in:1.142->1.143 
	libraries/clib/awt/Makefile.in:1.142->1.143 
	libraries/clib/awt/X/Makefile.in:1.134->1.135 
	libraries/clib/awt/classpath-gtk/Makefile.in:1.23->1.24 
	libraries/clib/awt/classpath-gtk/gtk-peer/Makefile.in:1.31->1.32 
	libraries/clib/awt/classpath-gtk/resource/Makefile.in:1.22->1.23 
	libraries/clib/awt/nano-X/Makefile.in:1.7->1.8 
	libraries/clib/awt/qt/Makefile.in:1.91->1.92 
	libraries/clib/classpath/Makefile.in:1.16->1.17 
	libraries/clib/io/Makefile.in:1.138->1.139 
	libraries/clib/libxmlj/Makefile.in:1.42->1.43 
	libraries/clib/management/Makefile.in:1.145->1.146 
	libraries/clib/math/Makefile.in:1.140->1.141 
	libraries/clib/native/Makefile.in:1.177->1.178 
	libraries/clib/net/Makefile.in:1.149->1.150 
	libraries/clib/nio/Makefile.in:1.68->1.69 
	libraries/clib/security/Makefile.in:1.111->1.112 
	libraries/clib/sound/Makefile.in:1.37->1.38 
	libraries/clib/sound/alsa/Makefile.in:1.38->1.39 
	libraries/clib/sound/common/Makefile.in:1.37->1.38 
	libraries/clib/sound/esd/Makefile.in:1.38->1.39 
	libraries/clib/zip/Makefile.in:1.142->1.143 
	libraries/extensions/Makefile.in:1.120->1.121 
	libraries/extensions/comm/Makefile.in:1.114->1.115 
	libraries/extensions/comm/javalib/Makefile.in:1.115->1.116 
	libraries/extensions/microsoft/Makefile.in:1.106->1.107 
	libraries/extensions/microsoft/clib/Makefile.in:1.110->1.111 
	libraries/extensions/microsoft/javalib/Makefile.in:1.108->1.109 
	libraries/extensions/pjava/Makefile.in:1.114->1.115 
	libraries/extensions/pjava/javalib/Makefile.in:1.115->1.116 
	libraries/extensions/servlet/Makefile.in:1.114->1.115 
	libraries/extensions/servlet/javalib/Makefile.in:1.115->1.116 
	libraries/javalib/Makefile.in:1.416->1.417 
	libraries/javalib/awt-implementations/Makefile.in:1.22->1.23 
	libraries/javalib/awt-implementations/kaffe/Makefile.in:1.25->1.26 
	libraries/javalib/gmp-math/Makefile.in:1.27->1.28 
	replace/Makefile.in:1.80->1.81 
	test/Makefile.in:1.137->1.138 
	test/internal/Makefile.in:1.102->1.103 
	test/jni/Makefile.in:1.33->1.34 
	test/regression/Makefile.in:1.208->1.209 
	test/regression/compile_time/Makefile.in:1.65->1.66 
	test/regression/compiler/Makefile.in:1.48->1.49 
	test/regression/run_time/Makefile.in:1.64->1.65 
	tools/Makefile.in:1.38->1.39 
	tools/gjdoc/Makefile.in:1.38->1.39 
	tools/gjdoc/javalib/Makefile.in:1.49->1.50 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3795 kaffe/ChangeLog:1.3796
--- kaffe/ChangeLog:1.3795	Thu Mar 31 10:39:23 2005
+++ kaffe/ChangeLog	Thu Mar 31 11:55:06 2005
@@ -1,5 +1,10 @@
 2005-03-31  Dalibor Topic  <robilad at kaffe.org>
 
+	* configure.ac: Set warning leel back to 
+	-Wall to sort the most important ones out first.
+
+2005-03-31  Dalibor Topic  <robilad at kaffe.org>
+
 	* config/i386/jit3-i386.def,
 	include/errors.h,
 	include/kaffe_jni.h,
Index: kaffe/Makefile.in
diff -u kaffe/Makefile.in:1.208 kaffe/Makefile.in:1.209
--- kaffe/Makefile.in:1.208	Tue Mar 22 04:20:23 2005
+++ kaffe/Makefile.in	Thu Mar 31 11:55:09 2005
@@ -68,6 +68,7 @@
 	$(top_srcdir)/m4/ac_prog_antlr.m4 \
 	$(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/alsa.m4 \
 	$(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
+	$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
 	$(top_srcdir)/m4/binreloc.m4 $(top_srcdir)/m4/compile_value.m4 \
 	$(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gcc_attribute.m4 \
 	$(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibcver.m4 \
Index: kaffe/aclocal.m4
diff -u kaffe/aclocal.m4:1.122 kaffe/aclocal.m4:1.123
--- kaffe/aclocal.m4:1.122	Wed Mar 16 10:30:46 2005
+++ kaffe/aclocal.m4	Thu Mar 31 11:55:09 2005
@@ -948,6 +948,7 @@
 m4_include([m4/acx_pthread.m4])
 m4_include([m4/alsa.m4])
 m4_include([m4/ax_cflags_gcc_option.m4])
+m4_include([m4/ax_cflags_warn_all.m4])
 m4_include([m4/binreloc.m4])
 m4_include([m4/compile_value.m4])
 m4_include([m4/esd.m4])
Index: kaffe/configure
diff -u kaffe/configure:1.440 kaffe/configure:1.441
--- kaffe/configure:1.440	Sat Mar 26 09:39:52 2005
+++ kaffe/configure	Thu Mar 31 11:55:09 2005
@@ -3384,18 +3384,12 @@
 
 
 
-# the following are covered by -Wall, but we list them separately, so
-# that it's easier to control.
-
-
-
-
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wchar-subscripts" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wchar-subscripts... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wchar_subscripts+set}" = set; then
+echo "$as_me:$LINENO: checking CFLAGS for maximum warnings" >&5
+echo $ECHO_N "checking CFLAGS for maximum warnings... $ECHO_C" >&6
+if test "${ac_cv_cflags_warn_all+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_cv_cflags_gcc_option__Wchar_subscripts="no, unknown"
+  ac_cv_cflags_warn_all="no, unknown"
 
 
  ac_ext=c
@@ -3405,7 +3399,7 @@
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
  ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wchar-subscripts"     #
+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"    #
 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
    cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
@@ -3444,7 +3438,7 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wchar_subscripts=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
+  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
@@ -3461,4424 +3455,112 @@
 
 
 fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wchar_subscripts" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wchar_subscripts" >&6
-case ".$ac_cv_cflags_gcc_option__Wchar_subscripts" in
+echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all" >&5
+echo "${ECHO_T}$ac_cv_cflags_warn_all" >&6
+case ".$ac_cv_cflags_warn_all" in
      .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wchar_subscripts " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wchar_subscripts") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wchar_subscripts) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wchar_subscripts\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wchar_subscripts") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wchar_subscripts"
-   fi
+   .|.no|.no,*)
  ;;
-esac
-
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wcomment" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wcomment... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wcomment+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wcomment="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wcomment"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wcomment=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wcomment" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wcomment" >&6
-case ".$ac_cv_cflags_gcc_option__Wcomment" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
    *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wcomment " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wcomment") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wcomment) 2>&5
+   if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
+   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all") >&5
+  (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wcomment\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wcomment") 2>&5
+   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\"") >&5
+  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wcomment"
+                      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
    fi
  ;;
 esac
 
 
-# -Wformat=2 includes -Wformat, -Wformat-nonliteral -Wformat-security, -Wformat-y2k
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wformat=2" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wformat=2... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wformat_2+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wformat_2="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wformat=2"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wformat_2=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+# the following are covered by -Wall, but we list them separately, so
+# that it's easier to control.
 
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wformat_2" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wformat_2" >&6
-case ".$ac_cv_cflags_gcc_option__Wformat_2" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wformat_2 " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wformat_2") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wformat_2) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wformat_2\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wformat_2") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wformat_2"
-   fi
- ;;
-esac
+# AX_CFLAGS_GCC_OPTION([-Wchar-subscripts])
+# AX_CFLAGS_GCC_OPTION([-Wcomment])
 
+# -Wformat=2 includes -Wformat, -Wformat-nonliteral -Wformat-security, -Wformat-y2k
+# AX_CFLAGS_GCC_OPTION([-Wformat=2])
 
 # -Wnonnull is included in -Wformat
 
 # -Winit-self requires(-Wunitialized)
 
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wimplicit-function-declaration" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wimplicit-function-declaration... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wimplicit_function_declaration+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wimplicit_function_declaration="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wimplicit-function-declaration"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wimplicit_function_declaration=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wimplicit_function_declaration" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wimplicit_function_declaration" >&6
-case ".$ac_cv_cflags_gcc_option__Wimplicit_function_declaration" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wimplicit_function_declaration " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wimplicit_function_declaration") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wimplicit_function_declaration) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wimplicit_function_declaration\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wimplicit_function_declaration") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wimplicit_function_declaration"
-   fi
- ;;
-esac
-
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wimplicit-int" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wimplicit-int... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wimplicit_int+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wimplicit_int="no, unknown"
+# AX_CFLAGS_GCC_OPTION([-Wimplicit-function-declaration])
+# AX_CFLAGS_GCC_OPTION([-Wimplicit-int])
+# -Wimplicit includes -Wimplicit-int, -Wimplicit-function-declaration
+# AX_CFLAGS_GCC_OPTION([-Wmain])
+# AX_CFLAGS_GCC_OPTION([-Wmissing-braces])
+# AX_CFLAGS_GCC_OPTION([-Wparentheses])
+# AX_CFLAGS_GCC_OPTION([-Wsequence-point])
+# AX_CFLAGS_GCC_OPTION([-Wreturn-type])
+# AX_CFLAGS_GCC_OPTION([-Wswitch])
+# AX_CFLAGS_GCC_OPTION([-Wswitch-default])
+# AX_CFLAGS_GCC_OPTION([-Wswitch-enum])
+# AX_CFLAGS_GCC_OPTION([-Wtrigraphs])
+# AX_CFLAGS_GCC_OPTION([-Wunused-function])
+# AX_CFLAGS_GCC_OPTION([-Wunused-label])
+# AX_CFLAGS_GCC_OPTION([-Wunused-parameter])
+# AX_CFLAGS_GCC_OPTION([-Wunused-variable])
+# AX_CFLAGS_GCC_OPTION([-Wunused-value])
+# -Wunused includes -Wunused-function, -Wunused-label, -Wunused-parameter, -Wunused-variable, -Wunused-value
+## disable -Wuninitialized as it clashes with -O0
+## leading to trouble for libtool, which
+## misinterprets the compiler warnings for
+## something more serious.
+# AX_CFLAGS_GCC_OPTION([-Wuninitialized])
+# AX_CFLAGS_GCC_OPTION([-Wunknown-pragmas])
+# requires -fstrict-aliasing
+# AX_CFLAGS_GCC_OPTION([-Wstrict-aliasing])
+# includes all of the above
 
+# turn on all other gcc warnings for more fixing fun
 
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wimplicit-int"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wimplicit_int=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wimplicit_int" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wimplicit_int" >&6
-case ".$ac_cv_cflags_gcc_option__Wimplicit_int" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wimplicit_int " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wimplicit_int") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wimplicit_int) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wimplicit_int\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wimplicit_int") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wimplicit_int"
-   fi
- ;;
-esac
-
-# -Wimplicit includes -Wimplicit-int, -Wimplicit-function-declaration
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wmain" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wmain... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wmain+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wmain="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wmain"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wmain=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wmain" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wmain" >&6
-case ".$ac_cv_cflags_gcc_option__Wmain" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmain " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmain") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmain) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmain\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmain") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmain"
-   fi
- ;;
-esac
-
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wmissing-braces" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wmissing-braces... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wmissing_braces+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wmissing_braces="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wmissing-braces"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wmissing_braces=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wmissing_braces" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wmissing_braces" >&6
-case ".$ac_cv_cflags_gcc_option__Wmissing_braces" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmissing_braces " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_braces") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmissing_braces) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_braces\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_braces") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_braces"
-   fi
- ;;
-esac
-
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wparentheses" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wparentheses... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wparentheses+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wparentheses="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wparentheses"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wparentheses=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wparentheses" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wparentheses" >&6
-case ".$ac_cv_cflags_gcc_option__Wparentheses" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wparentheses " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wparentheses") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wparentheses) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wparentheses\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wparentheses") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wparentheses"
-   fi
- ;;
-esac
-
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wsequence-point" >&5
-echo $ECHO_N "checking CFLAGS for gcc -Wsequence-point... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__Wsequence_point+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_cflags_gcc_option__Wsequence_point="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic  % -Wsequence-point"     #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_cflags_gcc_option__Wsequence_point=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wsequence_point" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wsequence_point" >&6
-case ".$ac_cv_cflags_gcc_option__Wsequence_point" in
-     .ok|.ok,*)  ;;
-   .|.no|.no,*)  ;;
-   *)
-   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wsequence_point " 2>&1 >/dev/null
-   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsequence_point") >&5
-  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wsequence_point) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsequence_point\"") >&5
-  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsequence_point") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsequence_point"
-   fi
- ;;
-esac
-
-echo "$as_me:$LINENO: checking CFLAGS for gcc -Wreturn-type" >&5

*** Patch too long, truncated ***




More information about the kaffe mailing list