1 --- xine-lib-0.9.10/configure.in~ 2002-05-26 22:10:35.000000000 +0200
2 +++ xine-lib-0.9.10/configure.in 2002-06-10 22:01:11.000000000 +0200
5 case "$host_or_hostalias" in
7 - CFLAGS="$CFLAGS -pipe -fomit-frame-pointer -malign-functions=4 -malign-loops=4 -malign-jumps=4 -malign-functions=4 $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -finline-functions"
8 - DEBUG_CFLAGS="$X_CFLAGS $DEBUG_CFLAGS"
10 AC_DEFINE([ARCH_X86],,[x86 architecture])
14 if test "$GCC" = yes; then
15 dnl Check for gcc cpu optimization support
16 - AC_TRY_CFLAGS("-mcpu=i386",
18 - AC_TRY_CFLAGS("-march=i386",
20 - [ AC_MSG_RESULT(** no cpu optimization supports **)
23 - dnl special check for k7 cpu CC support
24 - AC_TRY_CFLAGS("$sarchopt=athlon", k7cpu="athlon", k7cpu="i686")
26 - dnl add x86 specific gcc CFLAGS
27 - CFLAGS="$CFLAGS -O3 -pipe -fomit-frame-pointer -malign-functions=4 -malign-loops=4 -malign-jumps=4 -malign-functions=4 $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -funroll-all-loops -finline-functions"
29 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
31 - if test x"$sarchopt" != "xno"; then
35 - case "$host_alias" in
36 - i386-*) # *BSD return this even on a P III #-))
41 - archopt_val=pentium ;;
43 - archopt_val=pentiumpro
44 - if test x"$check_athlon" = "xyes"; then
45 - if test -f /proc/cpuinfo; then
46 - modelname=`cat /proc/cpuinfo | grep "model\ name\ :" | sed -e 's/ //g' | cut -d':' -f2`
47 - case "$modelname" in
48 - *Athlon* | *Duron* | *K7*)
49 - archopt_val="$k7cpu" ;;
59 - archopt_val=athlon ;;
62 - if test x"$archopt_val" != x; then
63 - CFLAGS="$CFLAGS $sarchopt=$archopt_val"
64 - DEBUG_CFLAGS="$DEBUG_CFLAGS $sarchopt=$archopt_val"
69 - dnl enable x86 specific parts of the code
71 - dnl all of this stuff needs gcc/gas; it uses gnu c compiler extensions
72 - dnl like the extended asm() or __attribute(__cdecl__), or other direct
73 - dnl mmx/sse/3dnow assembler instructions.
75 AC_DEFINE([ARCH_X86],,[x86 architecture])
80 dnl add x86 specific cc CFLAGS
82 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
90 - CFLAGS="$CFLAGS -O3 -mcpu=ev56 -mieee"
91 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3 -mcpu=ev56 -mieee"
96 - CFLAGS="$CFLAGS -O3 -mieee"
97 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3 -mieee"
101 ppc-*-linux* | powerpc-*)
102 - CFLAGS="$CFLAGS -O3 -pipe -fomit-frame-pointer $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -funroll-all-loops -finline-functions"
103 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
107 @@ -699,59 +630,32 @@
111 - case $host_alias in
112 - sparc-*) cpu_cflags="-mcpu=supersparc -mtune=supersparc" ;;
113 - sparc64-*) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;;
115 - CFLAGS="$CFLAGS -O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
116 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
122 if test "$GCC" = yes; then
124 - sun4c) cpu_cflags="-mcpu=v7 -mtune=supersparc" ;;
125 - sun4m) cpu_cflags="-mcpu=v8 -mtune=supersparc" ;;
126 - sun4u) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;;
129 - cc_optimize_cflags="-O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
130 - cc_debug_cflags="-O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
131 AC_DEFINE(FPM_SPARC) dnl uses gnu c asm extensions
133 - cc_optimize_cflags="-O"
134 - cc_debug_cflags="-O"
135 AC_DEFINE(FPM_64BIT) dnl use portable version with non-gcc
137 - CFLAGS="$CFLAGS $cc_optimize_cflags"
138 - DEBUG_CFLAGS="$DEBUG_CFLAGS $cc_debug_cflags"
142 - CFLAGS="$CFLAGS -O3"
143 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
148 # used to be -O2, but that makes gcc 2.95.2 segfault
149 # see http://bugs.debian.org/146006 for more info
150 - CFLAGS="$CFLAGS -O"
151 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
152 AC_DEFINE(FPM_DEFAULT)
156 - CFLAGS="$CFLAGS -O3"
157 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
162 - CFLAGS="$CFLAGS -O3"
163 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
164 AC_DEFINE(FPM_DEFAULT)
168 echo "
\a(sleeping one minute so you can read this...)"
171 - CFLAGS="$CFLAGS -O3"
172 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
173 AC_DEFINE(FPM_DEFAULT)