Commit 20c9770c authored by Mike Whitson's avatar Mike Whitson
Browse files

Initial revision

svn path=/trunk/vorbis/; revision=1
parents
# vorbis makefile configured for use with gcc on any platform
###############################################################################
# #
# To build a production vorbis (preferrably using gmake), just type 'make'. #
# To build with debugging or profiling information, use 'make debug' or #
# 'make profile' respectively. 'make clean' is a good idea between builds #
# with different target names, or before a final build. #
# #
###############################################################################
# DO NOT EDIT BELOW! ##########################################################
# (unless, of course, you know what you are doing :) ##########################
@SET_MAKE@
FLAGS=@TYPESIZES@ @CFLAGS@
OPT=@OPT@ $(FLAGS)
DEBUG=@DEBUG@ $(FLAGS)
PROFILE=@PROFILE@ $(FLAGS)
CC=@CC@
LD=@CC@
LDFLAGS=@LDFLAGS@ $(FLAGS)
AR=@AR@
RANLIB=@RANLIB@
LIBS=@LIBS@ @pthread_lib@ -lm
OFILES = framing.o
TARGETFILES = main.o $(OFILES)
all:
$(MAKE) target CFLAGS="$(OPT)"
debug:
$(MAKE) target CFLAGS="$(DEBUG)"
profile:
$(MAKE) target CFLAGS="$(PROFILE)"
selftest:
$(MAKE) clean
$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing
@echo
@./test_framing
target: $(TARGETFILES) libvorbis.a
$(LD) $(CFLAGS) $(TARGETFILES) $(LDFLAGS) libvorbis.a -o ogg $(LIBS)
libvorbis.a: $(OFILES)
$(AR) -r libvorbis.a $(OFILES)
$(RANLIB) libvorbis.a
$(OFILES): mdct.h
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
-rm -f *.o *.a test* *~ *.out ogg config.*
********************************************************************
* *
* THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
* THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
* PLEASE READ THESE TERMS DISTRIBUTING. *
* *
* THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-1999 *
* by Monty <monty@xiph.org> and The XIPHOPHORUS Company *
* http://www.xiph.org/ *
* *
********************************************************************
WHAT'S HERE:
This source distribution includes libvorbis, a full-featured example
encoder/player to demonstrate use of libvorbis and documentation on
the Ogg Vorbis audio coding format.
Directory:
./lib The source for libvorbis, a GPLed inplementation of
the public domain OggSquish Vorbis audio encoding
format.
./cmdline A full-featured command line encoder/decoder/player
utility ('vorbis') that demonstrates programmatic use
of libvorbis.
./docs Vorbis specification documents
WHAT IS VORBIS:
Vorbis is a general purpose audio and music encoding format
contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
proprietary formats such as RealAudio G2 and Windows' flavor of the
month), the Vorbis CODEC specification belongs to the public domain.
All the technical details are published and documented, and any
software entity may make full use of the format without royalty or
patent concerns.
This package contains libvorbis, a GPLed software implementation of
the Vorbis specification by the Xiphophorus company (http://www.xiph.org/).
CONTACT:
The OggSquish homepage is located at 'http://www.xiph.org/OggSquish'.
Vorbis's homepage is located at 'http://www.xiph.org/OggSquish/vorbis.html'.
Up to date technical documents, contact information, source code and
pre-built utilities may be found there.
BUILD:
A standard build should consist of nothing more than:
./configure
./make
and as root if desired :
./make install
This will install the ogg vorbis commandline encoder/player ('ogg')
into /usr/local/bin, the ogg player and libvorbis manpages into
/usr/local/man/ and libvorbis.a into /usr/local/lib.
Monty <monty@xiph.org>, <xiphmont@mit.edu>
$Id: README,v 1.1 1999/07/13 06:50:34 mwhitson Exp $
This diff is collapsed.
# $Id: configure.in,v 1.1 1999/07/13 06:50:34 mwhitson Exp $
# $Date: 1999/07/13 06:50:34 $
AC_INIT(mdct.c)
#AC_CONFIG_HEADER(config.h)
cp configure.guess config.guess
cp configure.sub config.sub
AC_CANONICAL_HOST
dnl If we're on IRIX, we wanna use cc even if gcc is there (unless the user
dnl has overriden us)...
case $host
in *-*-irix*)
if test -z "$CC"; then
CC=cc
fi
AC_CHECK_LIB(audio, ALwritesamps)
;;
esac
if test -z "$CC"; then
AC_PROG_CC
fi
AC_PROG_RANLIB
AC_CHECK_PROG(AR,ar,ar)
dnl Set some target options
if test -z "$GCC"; then
case $host in
*-*-irix*)
DEBUG="-g"
OPT="-O2 -w"
PROFILE="-p -g3 -O2" ;;
sparc-sun-solaris*)
DEBUG="-v -g"
OPT="-xO4 -fast -w -fsingle -fsimple -native -xcg92"
PROFILE="-v -xpg -g -xO4 -fast -fsingle -native -fsimple -xcg92 -Dsuncc" ;;
*)
DEBUG="-g"
OPT="-O"
PROFILE="-g -p" ;;
esac
else
case $host in
i?86-*-linux*)
DEBUG="-g -Wall -fsigned-char"
OPT="-O20 -ffast-math -fsigned-char"
PROFILE="-pg -g -O20 -fsigned-char";;
sparc-sun-*)
DEBUG="-g -Wall -fsigned-char -mv8"
OPT="-O20 -ffast-math -fsigned-char -mv8"
PROFILE="-pg -g -O20 -fsigned-char -mv8" ;;
*)
DEBUG="-g -Wall -fsigned-char"
OPT="-O20 -fsigned-char"
PROFILE="-O20 -g -pg -fsigned-char" ;;
esac
fi
AC_HEADER_STDC
CFLAGS=""
AC_PATH_X
AC_PATH_XTRA
AC_CHECK_LIB(pthread, pthread_create,
pthread_lib="-lpthread"; AC_DEFINE(HAVE_LIBPTHREAD), :)
dnl Linuxthreads require you to define _REENTRANT in all threaded
dnl code. Bogus, bogus...
if test -n "$pthread_lib"; then
case $host in
i?86-*-linux*)
AC_DEFINE(_REENTRANT)
;;
esac
fi
#if test -n "$x_libraries"; then
# XOGG="yes"
#
# dnl If we find libgtk installed, great; otherwise assume we have
# dnl to build it ourselves.
#
# AC_CHECK_LIB(gtk, gtk_main, :, LIBGTKDIR="libgtk", $X_LIBS -lglib -lgdk -lX11 -lXext -lm)
#
# dnl libpthread is required for xogg.
#
# if test -z "$pthread_lib"; then XOGG=""; fi
#
# dnl If we don't have libgtk installed, and we don't have a libgtk
# dnl subdirectory to build the library ourself, we can't build xogg.
#
# if test -n "$LIBGTKDIR" -a ! -d "$LIBGTKDIR"; then
# XOGG=""
# LIBGTKDIR=""
# fi
#fi
dnl This seems to be the only way to make autoconf only *sometimes* configure
dnl a subdirectory with AC_CONFIG_SUBDIRS. "__noconf" is assumed to not
dnl exist as a directory, so configure won't try to recursively enter it, unless
dnl the shell variable $dummy is reset to an existing directory inside the
dnl if clause.
dummy="__noconf"
#if test -d "$LIBGTKDIR"; then
# enable_shared="no"; export enable_shared
# dummy="libgtk"
# AC_CONFIG_SUBDIRS("$dummy")
# X_LIBS="-L${srcdir}/libgtk/gtk/.libs -L${srcdir}/libgtk/gdk/.libs -L${srcdir}/libgtk/glib/.libs $X_LIBS"
#fi
TYPESIZES=""
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
case 2 in
$ac_cv_sizeof_short) TYPESIZES="$TYPESIZES -Dsize16='short'"
SIZE16=TRUE;;
$ac_cv_sizeof_int) TYPESIZES="$TYPESIZES -Dsize16='int'"
SIZE16=TRUE;;
esac
case 4 in
$ac_cv_sizeof_short) TYPESIZES="$TYPESIZES -Dsize32='short'"
SIZE32=TRUE;;
$ac_cv_sizeof_int) TYPESIZES="$TYPESIZES -Dsize32='int'"
SIZE32=TRUE;;
$ac_cv_sizeof_long) TYPESIZES="$TYPESIZES -Dsize32='long'"
SIZE32=TRUE;;
esac
case 8 in
$ac_cv_sizeof_int) TYPESIZES="$TYPESIZES -Dsize64='int'"
SIZE64=TRUE;;
$ac_cv_sizeof_long) TYPESIZES="$TYPESIZES -Dsize64='long'"
SIZE64=TRUE;;
$ac_cv_sizeof_long_long) TYPESIZES="$TYPESIZES -Dsize64='long long'"
SIZE64=TRUE;;
esac
if test -z "$SIZE16"; then
AC_MSG_ERROR(No 16 bit tupe found on this platform!)
fi
if test -z "$SIZE32"; then
AC_MSG_ERROR(No 32 bit tupe found on this platform!)
fi
if test -z "$SIZE64"; then
AC_MSG_WARN(No 64 bit tupe found on this platform!)
fi
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h)
AC_C_CONST
AC_HEADER_TIME
AC_STRUCT_TM
AC_PROG_MAKE_SET
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(gettimeofday select strcspn strerror strspn sigaction)
AC_SUBST(TYPESIZES)
AC_SUBST(OPT)
AC_SUBST(DEBUG)
AC_SUBST(PROFILE)
AC_SUBST(CC)
AC_SUBST(RANLIB)
#AC_SUBST(XOGG)
#AC_SUBST(LIBGTKDIR)
AC_SUBST(pthread_lib)
AC_OUTPUT(Makefile)
#! /bin/sh
# Configuration validation subroutine script, version 1.1.
# Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine. It does not imply ALL GNU software can.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support. The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.
# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.
if [ x$1 = x ]
then
echo Configuration name missing. 1>&2
echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
echo "or $0 ALIAS" 1>&2
echo where ALIAS is a recognized configuration type. 1>&2
exit 1
fi
# First pass through any local machine types.
case $1 in
*local*)
echo $1
exit 0
;;
*)
;;
esac
# Separate what the user gave into CPU-COMPANY and OS (if any).
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/.*-/-/'`
else os=; fi
### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work. We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
-sun*os*)
# Prevent following clause from handling this invalid input.
;;
-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
os=
basic_machine=$1
;;
-hiux*)
os=-hiuxwe2
;;
-sco4)
os=-sco3.2v4
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
;;
-sco3.2.[4-9]*)
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
;;
-sco3.2v[4-9]*)
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
;;
-sco*)
os=-sco3.2v2
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
;;
-isc)
os=-isc2.2
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
;;
-clix*)
basic_machine=clipper-intergraph
;;
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
;;
-lynx*)
os=-lynxos
;;
-ptx*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
;;
-windowsnt*)
os=`echo $os | sed -e 's/windowsnt/winnt/'`
;;
esac
# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
# Recognize the basic CPU types without company name.
# Some are omitted here because they have special meanings below.
tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm \
| arme[lb] | pyramid \
| tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
| alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
| powerpc | powerpcle | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
| pdp11 | mips64el | mips64orion | mips64orionel \
| sparc)
basic_machine=$basic_machine-unknown
;;
# Object if more than one company name word.
*-*-*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
exit 1
;;
# Recognize the basic CPU types with company name.
vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \
| sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
| none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
| hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
| pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
| pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
| mips64el-* | mips64orion-* | mips64orionel-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
basic_machine=m68000-att
;;
3b*)
basic_machine=we32k-att
;;
alliant | fx80)
basic_machine=fx80-alliant
;;
altos | altos3068)
basic_machine=m68k-altos
;;
am29k)
basic_machine=a29k-none
os=-bsd
;;
amdahl)
basic_machine=580-amdahl
os=-sysv
;;
amiga | amiga-*)
basic_machine=m68k-cbm
;;
amigados)
basic_machine=m68k-cbm
os=-amigados
;;
amigaunix | amix)
basic_machine=m68k-cbm
os=-sysv4
;;
apollo68)
basic_machine=m68k-apollo
os=-sysv
;;
balance)
basic_machine=ns32k-sequent
os=-dynix
;;
convex-c1)
basic_machine=c1-convex
os=-bsd
;;
convex-c2)
basic_machine=c2-convex
os=-bsd
;;
convex-c32)
basic_machine=c32-convex
os=-bsd
;;
convex-c34)
basic_machine=c34-convex
os=-bsd
;;
convex-c38)
basic_machine=c38-convex
os=-bsd
;;
cray | ymp)
basic_machine=ymp-cray
os=-unicos
;;
cray2)
basic_machine=cray2-cray
os=-unicos
;;
crds | unos)
basic_machine=m68k-crds
;;
da30 | da30-*)
basic_machine=m68k-da30
;;
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
basic_machine=mips-dec
;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
basic_machine=m68k-motorola
;;
delta88)
basic_machine=m88k-motorola
os=-sysv3
;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
;;
dpx2* | dpx2*-bull)
basic_machine=m68k-bull
os=-sysv3
;;
ebmon29k)
basic_machine=a29k-amd
os=-ebmon
;;
elxsi)
basic_machine=elxsi-elxsi
os=-bsd
;;
encore | umax | mmax)
basic_machine=ns32k-encore
;;
fx2800)
basic_machine=i860-alliant
;;
genix)
basic_machine=ns32k-ns
;;
gmicro)
basic_machine=tron-gmicro
os=-sysv
;;
h3050r* | hiux*)
basic_machine=hppa1.1-hitachi
os=-hiuxwe2
;;
h8300hms)
basic_machine=h8300-hitachi
os=-hms
;;
harris)
basic_machine=m88k-harris
os=-sysv3
;;
hp300-*)
basic_machine=m68k-hp
;;
hp300bsd)
basic_machine=m68k-hp
os=-bsd
;;
hp300hpux)
basic_machine=m68k-hp
os=-hpux
;;
hp9k2[0-9][0-9] | hp9k31[0-9])
basic_machine=m68000-hp
;;
hp9k3[2-9][0-9])
basic_machine=m68k-hp
;;
hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
basic_machine=hppa1.1-hp
;;
hp9k8[0-9][0-9] | hp8[0-9][0-9])
basic_machine=hppa1.0-hp
;;
i370-ibm* | ibm*)
basic_machine=i370-ibm
os=-mvs
;;
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i[345]86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
os=-sysv32
;;
i[345]86v4*)
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
os=-sysv4
;;
i[345]86v)
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
os=-sysv
;;
i[345]86sol2)
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
os=-solaris2
;;
iris | iris4d)