]> git.pld-linux.org Git - packages/xine-lib.git/blob - xine-lib-noopt.patch
- use versioned Provides
[packages/xine-lib.git] / xine-lib-noopt.patch
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
3 @@ -584,8 +584,6 @@
4  
5  case "$host_or_hostalias" in
6    i386-*-freebsd*)
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"
9      AC_DEFINE(__i386__)
10      AC_DEFINE([ARCH_X86],,[x86 architecture])
11      AC_DEFINE(FPM_INTEL)
12 @@ -600,73 +598,12 @@
13  
14      if test "$GCC" = yes; then
15         dnl Check for gcc cpu optimization support
16 -       AC_TRY_CFLAGS("-mcpu=i386", 
17 -               sarchopt="-mcpu",
18 -               AC_TRY_CFLAGS("-march=i386", 
19 -                       sarchopt="-march",
20 -                       [ AC_MSG_RESULT(** no cpu optimization supports **)
21 -                         sarchopt=no ]))
22 -
23 -       dnl special check for k7 cpu CC support
24 -        AC_TRY_CFLAGS("$sarchopt=athlon", k7cpu="athlon", k7cpu="i686")
25 -
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"
28 -
29 -       DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
30 -
31 -       if test x"$sarchopt" != "xno"; then
32 -           [
33 -           archopt_val=
34 -
35 -           case "$host_alias" in
36 -           i386-*) # *BSD return this even on a P III #-))
37 -               archopt_val=i386 ;;
38 -           i486-*) # oh dear!
39 -               archopt_val=i486 ;;
40 -           i586-*)
41 -               archopt_val=pentium ;;
42 -           i686-*)
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" ;;
50 -                       esac
51 -                   fi 
52 -               fi
53 -               ;;
54 -           k6-*)
55 -               archopt_val=k6 ;;
56 -           k7-*)
57 -               archopt_val=k7 ;;
58 -           athlon-*)
59 -               archopt_val=athlon ;;
60 -           esac
61 -
62 -           if test x"$archopt_val" != x; then
63 -               CFLAGS="$CFLAGS $sarchopt=$archopt_val"
64 -               DEBUG_CFLAGS="$DEBUG_CFLAGS $sarchopt=$archopt_val"
65 -           fi
66 -           ]
67 -       fi
68 -
69 -       dnl enable x86 specific parts of the code
70 -       dnl
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. 
74 -       dnl
75         AC_DEFINE([ARCH_X86],,[x86 architecture])
76         AC_DEFINE(FPM_INTEL)
77         enable_w32dll="yes"
78         enable_ffmmx="yes"
79      else
80         dnl add x86 specific cc CFLAGS
81 -       CFLAGS="$CFLAGS -O"
82 -       DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
83         AC_DEFINE(FPM_64BIT)
84      fi
85  
86 @@ -675,20 +612,14 @@
87      ;;
88  
89    alphaev56-*)
90 -    CFLAGS="$CFLAGS -O3 -mcpu=ev56 -mieee"
91 -    DEBUG_CFLAGS="$DEBUG_CFLAGS -O3 -mcpu=ev56 -mieee"
92      AC_DEFINE(FPM_64BIT)
93      ;;
94  
95    alpha*)
96 -    CFLAGS="$CFLAGS -O3 -mieee"
97 -    DEBUG_CFLAGS="$DEBUG_CFLAGS -O3 -mieee"
98      AC_DEFINE(FPM_64BIT)
99      ;;
100  
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"
104      AC_DEFINE(FPM_PPC)
105      AC_DEFINE(ARCH_PPC)
106      
107 @@ -699,59 +630,32 @@
108      ;;
109  
110    sparc*-*-linux*)
111 -    case $host_alias in
112 -    sparc-*)    cpu_cflags="-mcpu=supersparc -mtune=supersparc" ;;
113 -    sparc64-*)  cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;;
114 -    esac
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"
117 -
118      AC_DEFINE(FPM_SPARC)
119      ;;
120  
121    sparc-*-solaris*)
122      if test "$GCC" = yes; then
123 -       case `uname -m` in
124 -       sun4c) cpu_cflags="-mcpu=v7 -mtune=supersparc" ;;
125 -       sun4m) cpu_cflags="-mcpu=v8 -mtune=supersparc" ;;
126 -       sun4u) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;;
127 -       *)     cpu_cflags= ;;
128 -       esac
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
132      else
133 -       cc_optimize_cflags="-O"
134 -       cc_debug_cflags="-O"
135         AC_DEFINE(FPM_64BIT)            dnl use portable version with non-gcc
136      fi
137 -    CFLAGS="$CFLAGS $cc_optimize_cflags"
138 -    DEBUG_CFLAGS="$DEBUG_CFLAGS $cc_debug_cflags"
139      ;;
140  
141    mips-*)
142 -    CFLAGS="$CFLAGS -O3"
143 -    DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
144      AC_DEFINE(FPM_MIPS)
145      ;;
146  
147    m68k-*)
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)
153      ;;
154  
155    ia64-*)
156 -    CFLAGS="$CFLAGS -O3"
157 -    DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
158      AC_DEFINE(FPM_64BIT)
159      ;;
160  
161    s390-*)
162 -    CFLAGS="$CFLAGS -O3"
163 -    DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
164      AC_DEFINE(FPM_DEFAULT)
165      ;;
166  
167 @@ -771,8 +675,6 @@
168      echo "\a(sleeping one minute so you can read this...)"
169      sleep 60
170  
171 -    CFLAGS="$CFLAGS -O3"
172 -    DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
173      AC_DEFINE(FPM_DEFAULT)
174      ;;
175  esac
This page took 0.035021 seconds and 3 git commands to generate.