author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /core/multimedia/opieplayer/libmpeg3/configure | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'core/multimedia/opieplayer/libmpeg3/configure') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | core/multimedia/opieplayer/libmpeg3/configure | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/libmpeg3/configure b/core/multimedia/opieplayer/libmpeg3/configure new file mode 100755 index 0000000..e75af76 --- a/dev/null +++ b/core/multimedia/opieplayer/libmpeg3/configure | |||
@@ -0,0 +1,102 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | USE_MMX=1 | ||
4 | USE_CSS=1 | ||
5 | LESS_OPT= | ||
6 | PLATFORM_CFLAGS="-malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486" | ||
7 | DEBUG= | ||
8 | OPTIMIZE=-O2 | ||
9 | OPTIMIZE_less=-O | ||
10 | DEFINES= | ||
11 | CC=gcc | ||
12 | |||
13 | for ac_option | ||
14 | do | ||
15 | case "$ac_option" in | ||
16 | --fixed-point) | ||
17 | CC=g++ | ||
18 | DEFINES="$DEFINES -DUSE_FIXED_POINT" | ||
19 | ;; | ||
20 | |||
21 | --lessopt) | ||
22 | LESS_OPT=1 | ||
23 | ;; | ||
24 | |||
25 | --no-mmx) | ||
26 | USE_MMX=0 | ||
27 | ;; | ||
28 | |||
29 | --no-css) | ||
30 | USE_CSS=0 | ||
31 | ;; | ||
32 | |||
33 | --debug) | ||
34 | DEBUG=-g | ||
35 | ;; | ||
36 | |||
37 | --gcc-prefix=*) | ||
38 | CROSS=${ac_option#--gcc-prefix=} | ||
39 | PLATFORM_CFLAGS="" | ||
40 | ;; | ||
41 | -h | --help | -help) | ||
42 | cat << EOF | ||
43 | Options: | ||
44 | --no-mmx Compile libmpeg3 with no MMX support. | ||
45 | --no-css Compile libmpeg3 with no CSS support. | ||
46 | --fixed-point Compile libmpeg3 to use integers instead of floats. | ||
47 | --debug Compile libmpeg3 with debug support. | ||
48 | EOF | ||
49 | exit 0 | ||
50 | ;; | ||
51 | |||
52 | *) | ||
53 | ;; | ||
54 | esac | ||
55 | done | ||
56 | |||
57 | |||
58 | echo "Configuring libmpeg3" | ||
59 | |||
60 | cat > global_config << EOF | ||
61 | # DO NOT EDIT. EDIT ./configure INSTEAD AND RERUN IT. | ||
62 | EOF | ||
63 | |||
64 | |||
65 | if test -z "$CFLAGS"; then | ||
66 | CF="$DEFINES $DEBUG -funroll-loops -fomit-frame-pointer $PLATFORM_CFLAGS" | ||
67 | echo >> global_config "CFLAGS = $CF $OPTIMIZE" | ||
68 | if test -z "$LESS_OPT"; then | ||
69 | echo >> global_config "CFLAGS_lessopt = $CF $OPTIMIZE_less" | ||
70 | else | ||
71 | echo >> global_config "CFLAGS_lessopt = $CF $OPTIMIZE_less" | ||
72 | fi | ||
73 | fi | ||
74 | |||
75 | cat >> global_config << EOF | ||
76 | CC = ${CROSS}$CC | ||
77 | AR = ${CROSS}ar | ||
78 | NASM = nasm | ||
79 | EOF | ||
80 | |||
81 | if [ ${USE_CSS} = 1 ]; then | ||
82 | cat >> global_config << EOF | ||
83 | CFLAGS += -DHAVE_CSS | ||
84 | EOF | ||
85 | fi | ||
86 | |||
87 | if [ ${USE_MMX} = 1 ]; then | ||
88 | cat >> global_config << EOF | ||
89 | CFLAGS += -DHAVE_MMX | ||
90 | MMXOBJS = \ | ||
91 | video/mmxidct.o \ | ||
92 | video/reconmmx.o | ||
93 | MMXOBJS2 = \ | ||
94 | mmxidct.o \ | ||
95 | reconmmx.o | ||
96 | EOF | ||
97 | fi | ||
98 | |||
99 | |||
100 | |||
101 | |||
102 | echo "done" | ||