@@ -6731,9 +6731,6 @@ if test "${OPT-unset}" = "unset"
67316731then
67326732 case $GCC in
67336733 yes)
6734- if test " $CC " ! = ' g++' ; then
6735- STRICT_PROTO=" -Wstrict-prototypes"
6736- fi
67376734 # For gcc 4.x we need to use -fwrapv so lets check if its supported
67386735 if " $CC " -v --help 2> /dev/null | grep -- -fwrapv > /dev/null; then
67396736 WRAP=" -fwrapv"
@@ -6780,8 +6777,6 @@ then
67806777 ;;
67816778 esac
67826779
6783- OPT=" $OPT $STRICT_PROTO "
6784-
67856780 case $ac_sys_system in
67866781 SCO_SV* ) OPT=" $OPT -m486 -DSCO5"
67876782 ;;
@@ -7190,6 +7185,47 @@ fi
71907185 { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_enable_unreachable_code_warning " >&5
71917186$as_echo " $ac_cv_enable_unreachable_code_warning " >&6 ; }
71927187
7188+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking if we can turn on $CC strict-prototypes warning" >&5
7189+ $as_echo_n " checking if we can turn on $CC strict-prototypes warning... " >&6 ; }
7190+ ac_save_cc=" $CC "
7191+ CC=" $CC -Werror -Wstrict-prototypes"
7192+ if ${ac_cv_enable_enable_strict_prototypes_warning+: } false ; then :
7193+ $as_echo_n " (cached) " >&6
7194+ else
7195+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
7196+ /* end confdefs.h. */
7197+
7198+
7199+ int
7200+ main ()
7201+ {
7202+
7203+ ;
7204+ return 0;
7205+ }
7206+
7207+ _ACEOF
7208+ if ac_fn_c_try_compile " $LINENO " ; then :
7209+
7210+ ac_cv_enable_strict_prototypes_warning=yes
7211+
7212+ else
7213+
7214+ ac_cv_enable_strict_prototypes_warning=no
7215+
7216+ fi
7217+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218+ fi
7219+
7220+ CC=" $ac_save_cc "
7221+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_enable_strict_prototypes_warning " >&5
7222+ $as_echo " $ac_cv_enable_strict_prototypes_warning " >&6 ; }
7223+
7224+ if test $ac_cv_enable_strict_prototypes_warning = yes
7225+ then
7226+ CFLAGS_NODIST=" $CFLAGS_NODIST -Wstrict-prototypes"
7227+ fi
7228+
71937229 { $as_echo " $as_me :${as_lineno-$LINENO } : checking if we can make implicit function declaration an error in $CC " >&5
71947230$as_echo_n " checking if we can make implicit function declaration an error in $CC ... " >&6 ; }
71957231 ac_save_cc=" $CC "
0 commit comments