Plan 9 from Bell Labs’s /usr/web/sources/contrib/de0u/root/sys/src/cmd/squeak/Cross/plugins/Mpeg3Plugin/libmpeg/configure

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/sh

USE_MMX=1

for ac_option
do
case "$ac_option" in
	--no-mmx)
		USE_MMX=0
		;;


	-h | --help | -help)
	cat << EOF
Options:
	--no-mmx           Compile libmpeg3 with no MMX support.
EOF
		exit 0
		;;

	*)
		;;
esac
done


echo "Configuring libmpeg3"

cat > global_config << EOF
# DO NOT EDIT.  EDIT ./configure INSTEAD AND RERUN IT.
EOF


if test -z "$CFLAGS"; then
	echo >> global_config "CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -I. -Ivideo -Iaudio"
#	echo >> global_config "CFLAGS = -g -I. -Ivideo -Iaudio"
fi

cat >> global_config << EOF
CC = gcc
NASM = nasm
EOF


if [ ${USE_MMX} = 1 ]; then
cat >> global_config << EOF
CFLAGS += -DHAVE_MMX
MMXOBJS = \
	video/mmxidct.o \
	video/reconmmx.o
MMXOBJS2 = \
	mmxidct.o \
	reconmmx.o
EOF
fi




echo "done"

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].