]> git.pld-linux.org Git - packages/crossmingw32-libvorbis.git/blob - libvorbis-ac_fixes.patch
6954d72386cbf88c613e1ffebb7b4bac libvorbis-1.0beta4.tar.gz
[packages/crossmingw32-libvorbis.git] / libvorbis-ac_fixes.patch
1 diff -urN libvorbis-1.0beta4.org/configure.in libvorbis-1.0beta4/configure.in
2 --- libvorbis-1.0beta4.org/configure.in Sun Apr 29 00:04:26 2001
3 +++ libvorbis-1.0beta4/configure.in     Sun Apr 29 01:03:21 2001
4 @@ -47,93 +47,19 @@
5  
6  AC_CANONICAL_HOST
7  
8 -dnl Set some target options
9 -if test -z "$GCC"; then
10 -       case $host in 
11 -       *-*-irix*)
12 -               dnl If we're on IRIX, we wanna use cc even if gcc 
13 -               dnl is there (unless the user has overriden us)...
14 -               if test -z "$CC"; then
15 -                       CC=cc
16 -               fi
17 -               DEBUG="-g -signed" 
18 -               CFLAGS="-O2 -w -signed"
19 -               PROFILE="-p -g3 -O2 -signed" ;;
20 -       sparc-sun-solaris*)
21 -               DEBUG="-v -g"
22 -               CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
23 -               PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
24 -       *)
25 -               DEBUG="-g"
26 -               CFLAGS="-O"
27 -               PROFILE="-g -p" ;;
28 -        esac
29 -else
30 -
31 -       case $host in 
32 -       *86-*-linux*)
33 -               DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
34 -               CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
35 -#                      PROFILE="-Wall -W -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
36 -               PROFILE="-Wall -W -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline -static"
37 -
38 -               # glibc < 2.1.3 has a serious FP bug in the math inline header
39 -               # that will cripple Vorbis.  Look to see if the magic FP stack
40 -               # clobber is missing in the mathinline header, thus indicating
41 -               # the buggy version
42 -
43 -               AC_EGREP_CPP(log10.*fldlg2.*fxch,[
44 -                               #define __LIBC_INTERNAL_MATH_INLINES 1
45 -                               #define __OPTIMIZE__
46 -                               #include <math.h>
47 -                               ],bad=maybe,bad=no)
48 -               if test ${bad} = "maybe" ;then
49 -                     AC_EGREP_CPP(log10.*fldlg2.*fxch.*st\([[0123456789]]*\),
50 -                                       [
51 -                                       #define __LIBC_INTERNAL_MATH_INLINES 1
52 -                                       #define __OPTIMIZE__
53 -                                       #include <math.h>
54 -                                       ],bad=no,bad=yes)
55 -               fi
56 -               if test ${bad} = "yes" ;then
57 - AC_MSG_WARN([                                                        ])
58 - AC_MSG_WARN([********************************************************])
59 - AC_MSG_WARN([* The glibc headers on this machine have a serious bug *])
60 - AC_MSG_WARN([* in /usr/include/bits/mathinline.h  This bug affects  *])
61 - AC_MSG_WARN([* all floating point code, not just Ogg, built on this *])
62 - AC_MSG_WARN([* machine.  Upgrading to glibc 2.1.3 is strongly urged *])
63 - AC_MSG_WARN([* to correct the problem.  Note that upgrading glibc   *])
64 - AC_MSG_WARN([* will not fix any previously built programs; this is  *])
65 - AC_MSG_WARN([* a compile-time time bug.                             *])
66 - AC_MSG_WARN([* To work around the problem for this build of Ogg,    *])
67 - AC_MSG_WARN([* autoconf is disabling all math inlining.  This will  *])
68 - AC_MSG_WARN([* hurt Ogg performace but is necessary for an Ogg that *])
69 - AC_MSG_WARN([* will actually work.  Once glibc is upgraded, rerun   *])
70 - AC_MSG_WARN([* configure and make to build with inlining.           *])
71 - AC_MSG_WARN([********************************************************])
72 - AC_MSG_WARN([                                                        ])
73 -
74 -               CFLAGS=${OPT}" -D__NO_MATH_INLINES"
75 -               PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
76 -               fi;;
77 -       *-*-linux*)
78 -               DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
79 -               CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
80 -               PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
81 -       sparc-sun-*)
82 -               DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8"
83 -               CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
84 -               PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
85 -       *-*-darwin*)
86 -               DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
87 -               CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
88 -               PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
89 -       *)
90 -               DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
91 -               CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
92 -               PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
93 -        esac
94 -fi
95 +# -mno-ieee-fp causes gcc core dump :-( --misiek
96 +case $host in
97 +    *86-*-linux*)
98 +       DEBUG="$CFLAGS -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
99 +       CFLAGS="$CFLAGS -ffast-math -D_REENTRANT -fsigned-char"
100 +       PROFILE="$CFLAGS -Wall -W -pg -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
101 +       ;;
102 +       **)
103 +       DEBUG="$CFLAGS -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
104 +       CFLAGS="$CFLAGS -ffast-math -D_REENTRANT -fsigned-char"
105 +       PROFILE="$CFLAGS -pg -ffast-math -D_REENTRANT -fsigned-char"
106 +       ;;
107 +esac
108  
109  dnl --------------------------------------------------
110  dnl Check for headers
This page took 0.068379 seconds and 3 git commands to generate.