X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=configure.in;h=4d845bf0df8070b444d2593c1d545be83ac34c0d;hb=efdb31fd4c8db81d2414c32d491f1bf994263c74;hp=79a99d9ced2649f6d5cdfc041250e532cf0a03a1;hpb=75d621fb12f4d3bc3e2eecefac39fe62eecbd431;p=chise%2Fxemacs-chise.git- diff --git a/configure.in b/configure.in index 79a99d9..4d845bf 100644 --- a/configure.in +++ b/configure.in @@ -1884,13 +1884,15 @@ if test "$__USLC__" = yes; then test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system) fi -dnl Calculalate value of CFLAGS: +dnl Calculate value of CFLAGS: dnl Use either command line flag, environment var, or autodetection if test "$cflags_specified" = "no"; then dnl Following values of CFLAGS are known to work well. dnl Should we take debugging options into consideration? if test "$GCC" = "yes"; then CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow" + dnl Yuck, bad compares have been worth at least 3 crashes! + CFLAGS="$CFLAGS -Wsign-compare" dnl glibc is intentionally not `-Wpointer-arith'-clean. dnl Ulrich Drepper has rejected patches to fix the glibc header files. test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith" @@ -2753,7 +2755,9 @@ EOF cd .. rm -fr conftestdir for word in $xmkmf_defines; do - case "$word" in -D* ) + case "$word" in + -D__STDC__*) ;; + -D* ) sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` case "$word" in -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;