Mercurial > mplayer.hg
comparison configure @ 8273:226e6866212d
reversing my patch to check for -Wall support & use it if available (requested by A'rpi)
author | rathann |
---|---|
date | Mon, 25 Nov 2002 02:19:27 +0000 |
parents | 97e8dfe61ab1 |
children | 2a69a884206a |
comparison
equal
deleted
inserted
replaced
8272:b1c5460a8105 | 8273:226e6866212d |
---|---|
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 | |
2180 | 2167 |
2181 ######### | 2168 ######### |
2182 # VIDEO # | 2169 # VIDEO # |
2183 ######### | 2170 ######### |
2184 | 2171 |
4401 if test "$_profile" != "" || test "$_debug" != "" ; then | 4388 if test "$_profile" != "" || test "$_debug" != "" ; then |
4402 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" | 4389 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" |
4403 _stripbinaries=no | 4390 _stripbinaries=no |
4404 elif test -z "$CFLAGS" ; then | 4391 elif test -z "$CFLAGS" ; then |
4405 if test "$host_arch" != "mips" ; then | 4392 if test "$host_arch" != "mips" ; then |
4406 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_ld_wall" | 4393 CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" |
4407 else | 4394 else |
4408 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer $_ld_wall" | 4395 CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" |
4409 fi | 4396 fi |
4410 # always compile with '-g' if .developer: | 4397 # always compile with '-g' if .developer: |
4411 if test -f ".developer" ; then | 4398 if test -f ".developer" ; then |
4412 CFLAGS="-g $CFLAGS" | 4399 CFLAGS="-g $CFLAGS" |
4413 _stripbinaries=no | 4400 _stripbinaries=no |