Lines 2-8
Link Here
|
2 |
if test x_$sah_opt_only_once = x_ ; then |
2 |
if test x_$sah_opt_only_once = x_ ; then |
3 |
|
3 |
|
4 |
sah_opt_only_once=all_done |
4 |
sah_opt_only_once=all_done |
5 |
|
5 |
OPT_CFLAGS="" |
|
|
6 |
OPT_LDFLAGS="" |
7 |
|
6 |
AC_ARG_ENABLE([sse3], |
8 |
AC_ARG_ENABLE([sse3], |
7 |
AC_HELP_STRING([--enable-sse3], |
9 |
AC_HELP_STRING([--enable-sse3], |
8 |
[Use SSE3 optimizations]) |
10 |
[Use SSE3 optimizations]) |
Lines 13-19
Link Here
|
13 |
[Define to 1 if you want to use SSE3 optimizations]) |
15 |
[Define to 1 if you want to use SSE3 optimizations]) |
14 |
# put compiler specific flags here |
16 |
# put compiler specific flags here |
15 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
17 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
16 |
CFLAGS="-march=prescott -msse3 -mfpmath=sse ${CFLAGS}" |
18 |
OPT_CFLAGS="-msse3 ${OPT_CFLAGS}" |
17 |
fi |
19 |
fi |
18 |
fi |
20 |
fi |
19 |
|
21 |
|
Lines 27-33
Link Here
|
27 |
[Define to 1 if you want to use SSE2 optimizations]) |
29 |
[Define to 1 if you want to use SSE2 optimizations]) |
28 |
# put compiler specific flags here |
30 |
# put compiler specific flags here |
29 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
31 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
30 |
CFLAGS="-march=pentium4 -msse2 -mfpmath=sse ${CFLAGS}" |
32 |
OPT_CFLAGS="-msse2 ${OPT_CFLAGS}" |
31 |
fi |
33 |
fi |
32 |
fi |
34 |
fi |
33 |
|
35 |
|
Lines 41-47
Link Here
|
41 |
[Define to 1 if you want to use SSE optimizations]) |
43 |
[Define to 1 if you want to use SSE optimizations]) |
42 |
# put compiler specific flags here |
44 |
# put compiler specific flags here |
43 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
45 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
44 |
CFLAGS="-march=pentium3 -msse -mfpmath=sse ${CFLAGS}" |
46 |
OPT_CFLAGS="-msse ${OPT_CFLAGS}" |
45 |
fi |
47 |
fi |
46 |
fi |
48 |
fi |
47 |
|
49 |
|
Lines 55-61
Link Here
|
55 |
[Define to 1 if you want to use MMX optimizations]) |
57 |
[Define to 1 if you want to use MMX optimizations]) |
56 |
# put compiler specific flags here |
58 |
# put compiler specific flags here |
57 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
59 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
58 |
CFLAGS="-march=pentium2 -mmmx -mfpmath=387 ${CFLAGS}" |
60 |
OPT_CFLAGS="-mmmx ${OPT_CFLAGS}" |
59 |
fi |
61 |
fi |
60 |
fi |
62 |
fi |
61 |
|
63 |
|
Lines 70-79
Link Here
|
70 |
[Define to 1 if you want to use 3D-Now optimizations]) |
72 |
[Define to 1 if you want to use 3D-Now optimizations]) |
71 |
# put compiler specific flags here |
73 |
# put compiler specific flags here |
72 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
74 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
73 |
CFLAGS="-march=pentium2 -m3dnow -mfpmath=387 ${CFLAGS}" |
75 |
OPT_CFLAGS="-m3dnow ${OPT_CFLAGS}" |
74 |
fi |
76 |
fi |
75 |
fi |
77 |
fi |
76 |
|
78 |
|
|
|
79 |
if test x_$enable_sse = x_yes || test x_$enable_sse2 = x_yes || test x_$enable_sse3 = x_yes ; then |
80 |
OPT_CFLAGS="${OPT_CFLAGS} -mfpmath=sse" |
81 |
elif test x_$enable_mmx = x_yes || test x_$enable_3dnow = x_yes ; then |
82 |
OPT_CFLAGS="${OPT_CFLAGS} -mfpmath=386" |
83 |
fi |
84 |
|
77 |
AC_ARG_ENABLE([fast-math], |
85 |
AC_ARG_ENABLE([fast-math], |
78 |
AC_HELP_STRING([--enable-fast-math], |
86 |
AC_HELP_STRING([--enable-fast-math], |
79 |
[Use gcc -ffast-math optimization]) |
87 |
[Use gcc -ffast-math optimization]) |
Lines 84-90
Link Here
|
84 |
[Define to 1 if you want to use the gcc -ffast-math optimization]) |
92 |
[Define to 1 if you want to use the gcc -ffast-math optimization]) |
85 |
# put compiler specific flags here |
93 |
# put compiler specific flags here |
86 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
94 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
87 |
CFLAGS="${CFLAGS} -ffast-math" |
95 |
OPT_CFLAGS="${OPT_CFLAGS} -ffast-math" |
88 |
fi |
96 |
fi |
89 |
fi |
97 |
fi |
90 |
|
98 |
|
Lines 98-110
Link Here
|
98 |
[Define to 1 if you want to use ALTIVEC optimizations]) |
106 |
[Define to 1 if you want to use ALTIVEC optimizations]) |
99 |
# put compiler specific flags here |
107 |
# put compiler specific flags here |
100 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
108 |
if test x_$ac_cv_c_compiler_gnu = x_yes ; then |
101 |
SAH_CHECK_CFLAG([-faltivec],[CFLAGS="-faltivec ${CFLAGS}"]) |
109 |
SAH_CHECK_CFLAG([-faltivec],[OPT_CFLAGS="-faltivec ${OPT_CFLAGS}"]) |
102 |
SAH_CHECK_CFLAG([-maltivec],[CFLAGS="-maltivec ${CFLAGS}"]) |
110 |
SAH_CHECK_CFLAG([-maltivec],[OPT_CFLAGS="-maltivec ${OPT_CFLAGS}"]) |
103 |
SAH_CHECK_CFLAG([-mtune=G5],[CFLAGS="-mtune=G5 ${CFLAGS}"]) |
111 |
SAH_CHECK_LDFLAG([-framework Accelerate],[OPT_LDFLAGS="${OPT_LDFLAGS} -framework Accelerate"]) |
104 |
SAH_CHECK_CFLAG([-mcpu=powerpc],[CFLAGS="-mcpu=powerpc ${CFLAGS}"]) |
|
|
105 |
SAH_CHECK_LDFLAG([-framework Accelerate],[LDFLAGS="${LDFLAGS} -framework Accelerate"]) |
106 |
fi |
112 |
fi |
107 |
fi |
113 |
fi |
108 |
|
114 |
|
|
|
115 |
AC_SUBST([OPT_CFLAGS]) |
116 |
AC_SUBST([OPT_LDFLAGS]) |
117 |
|
109 |
fi |
118 |
fi |
110 |
]) |
119 |
]) |