1
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
3
AC_INIT(libspeex/speex.h)
14
AC_SUBST(SPEEX_LT_CURRENT)
15
AC_SUBST(SPEEX_LT_REVISION)
16
AC_SUBST(SPEEX_LT_AGE)
19
VERSION=$SPEEX_VERSION
22
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
32
AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
35
[ --enable-ogg=[yes/no] Turn on or off the use of ogg
36
libraries [default=yes]],
37
[case "${enableval}" in
40
*) AC_MSG_ERROR(bad value ${enableval} for --enable-ogg) ;;
43
if test x$useogg = xtrue; then
47
if test "$have_libogg" = yes; then
55
AC_CHECK_LIB(gnugetopt, getopt_long)
57
AC_DEFINE_UNQUOTED(VERSION, "${VERSION}")
59
AC_ARG_ENABLE(sse, [ --enable-sse enable SSE support], [if test "$enableval" = yes; then AC_DEFINE(_USE_SSE) fi])
60
AC_ARG_ENABLE(fixed-point, [ --enable-fixed-point compile as fixed-point], [if test "$enableval" = yes; then AC_DEFINE(FIXED_POINT) fi])
61
AC_ARG_ENABLE(arm-asm, [ --enable-arm-asm make use of ARM assembly instructions], [if test "$enableval" = yes; then AC_DEFINE(ARM_ASM) fi])
62
AC_ARG_ENABLE(fixed-point-debug, [ --enable-fixed-point-debug Debug fixed-point implementation], [if test "$enableval" = yes; then AC_DEFINE(FIXED_DEBUG) fi])
64
AC_ARG_ENABLE(epic-48k, [ --enable-epic-48k enable support for epic 4.8 kbps mode], [if test "$enableval" = yes; then AC_DEFINE(EPIC_48K) fi])
66
dnl Output the makefiles and version.h.
68
AC_OUTPUT([Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
69
win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
70
win32/speexdec/Makefile ])
72
if test "x$src" = "x"; then
73
echo "You don't seem to have libogg installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)"
74
echo "You can download libogg from http://www.ogg.org/ogg/index.html"
77
echo "Type \"make; make install\" to compile and install Speex";