home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek 6
/
Geek-006.iso
/
linux
/
video
/
xmovie-1.5.3.tar.gz
/
xmovie-1.5.3.tar
/
xmovie-1.5.3
/
quicktime
/
configure
< prev
next >
Wrap
Text File
|
2000-11-29
|
1KB
|
86 lines
#!/bin/sh
USE_FIREWIRE=1
USE_MMX=1
for ac_option
do
case "$ac_option" in
--no-firewire)
USE_FIREWIRE=0
;;
--no-mmx)
USE_MMX=0
;;
-h | --help | -help)
cat << EOF
Options:
--no-firewire Compile quicktime with no firewire support
--no-mmx Compile quicktime with no MMX support.
EOF
exit 0
;;
*)
;;
esac
done
echo "Configuring libquicktime"
cat > global_config << EOF
# DO NOT EDIT. EDIT ./configure INSTEAD AND RERUN IT.
EOF
if test -z "$CFLAGS"; then
echo >> global_config "CFLAGS = -O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486 -I/usr/local/include"
fi
if [ ${USE_FIREWIRE} = 1 ]; then
echo >> global_config "CFLAGS += -DHAVE_FIREWIRE"
fi
if [ ${USE_MMX} = 1 ]; then
echo >> global_config "CFLAGS += -DUSE_MMX"
fi
cat >> global_config << EOF
CFLAGS += -I. -Ijpeg -Ilibdv \$(shell glib-config --cflags)
export CFLAGS
CC = gcc
EOF
if [ ${USE_MMX} = 1 ]; then
cat >> global_config << EOF
DVMMXOBJS = \
libdv/idct_block_mmx.o \
libdv/quant_x86.o
DVMMX_OBJS2 = idct_block_mmx.o \
quant_x86.o
EOF
fi
if [ ${USE_FIREWIRE} = 1 ]; then
cat >> global_config << EOF
FIREWIREOBJS = \
libraw1394/eventloop.o \
libraw1394/fcp.o \
libraw1394/iso.o \
libraw1394/main.o \
libraw1394/readwrite.o
FIREWIREOBJS2 = \
eventloop.o \
fcp.o \
iso.o \
main.o \
readwrite.o
EOF
fi
echo "done"