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
8 -dnl Set some target options
9 -if test -z "$GCC"; then
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
18 - CFLAGS="-O2 -w -signed"
19 - PROFILE="-p -g3 -O2 -signed" ;;
22 - CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
23 - PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
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"
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
43 - AC_EGREP_CPP(log10.*fldlg2.*fxch,[
44 - #define __LIBC_INTERNAL_MATH_INLINES 1
45 - #define __OPTIMIZE__
48 - if test ${bad} = "maybe" ;then
49 - AC_EGREP_CPP(log10.*fldlg2.*fxch.*st\([[0123456789]]*\),
51 - #define __LIBC_INTERNAL_MATH_INLINES 1
52 - #define __OPTIMIZE__
56 - if test ${bad} = "yes" ;then
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([********************************************************])
74 - CFLAGS=${OPT}" -D__NO_MATH_INLINES"
75 - PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
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";;
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" ;;
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";;
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" ;;
95 +# -mno-ieee-fp causes gcc core dump :-( --misiek
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"
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"
109 dnl --------------------------------------------------
110 dnl Check for headers