comparison configure @ 8255:97e8dfe61ab1

check for -Wall support & use it if available patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>) arpi, feel free to reverse if u dont like -Wall
author michael
date Sat, 23 Nov 2002 11:01:23 +0000
parents 66fdde2606bb
children 226e6866212d
comparison
equal deleted inserted replaced
8254:772d6d27fd66 8255:97e8dfe61ab1
2162 else 2162 else
2163 _def_sys_sysinfo='#undef HAVE_SYS_SYSINFO_H' 2163 _def_sys_sysinfo='#undef HAVE_SYS_SYSINFO_H'
2164 fi 2164 fi
2165 echores "$_sys_sysinfo" 2165 echores "$_sys_sysinfo"
2166 2166
2167 echocheck "-Wall option"
2168 cat > $TMPC << EOF
2169 int main(void) { return 0; }
2170 EOF
2171 _wall=no
2172 cc_check -Wall && _wall=yes
2173 if test "$_wall" = yes ; then
2174 _ld_wall='-Wall'
2175 else
2176 _ld_wall=''
2177 fi
2178 echores "$_wall"
2179
2167 2180
2168 ######### 2181 #########
2169 # VIDEO # 2182 # VIDEO #
2170 ######### 2183 #########
2171 2184
4388 if test "$_profile" != "" || test "$_debug" != "" ; then 4401 if test "$_profile" != "" || test "$_debug" != "" ; then
4389 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" 4402 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
4390 _stripbinaries=no 4403 _stripbinaries=no
4391 elif test -z "$CFLAGS" ; then 4404 elif test -z "$CFLAGS" ; then
4392 if test "$host_arch" != "mips" ; then 4405 if test "$host_arch" != "mips" ; then
4393 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" 4406 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_ld_wall"
4394 else 4407 else
4395 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" 4408 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer $_ld_wall"
4396 fi 4409 fi
4397 # always compile with '-g' if .developer: 4410 # always compile with '-g' if .developer:
4398 if test -f ".developer" ; then 4411 if test -f ".developer" ; then
4399 CFLAGS="-g $CFLAGS" 4412 CFLAGS="-g $CFLAGS"
4400 _stripbinaries=no 4413 _stripbinaries=no