diff -ur speex-1.2beta3.orig/configure.ac speex-1.2beta3/configure.ac --- speex-1.2beta3.orig/configure.ac 2007-12-08 08:56:37.000000000 +0200 +++ speex-1.2beta3/configure.ac 2007-12-15 14:57:03.000000000 +0200 @@ -75,9 +75,6 @@ AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h) -XIPH_PATH_OGG([src="src"], [src=""]) -AC_SUBST(src) - AC_CHECK_LIB(m, sin) # Check for getopt_long; if not found, use included source. @@ -102,9 +99,15 @@ AC_DEFINE([ENABLE_VALGRIND], , [Enable valgrind extra checks]) fi]) +AC_ARG_ENABLE(ogg, [ --enable-ogg Enable OGG support], [if test "$enableval" = yes; then + XIPH_PATH_OGG([src="src"], [src=""]) + AC_SUBST(src) +fi +]) + AC_ARG_ENABLE(sse, [ --enable-sse Enable SSE support], [if test "$enableval" = yes; then AC_DEFINE([_USE_SSE], , [Enable SSE support]) -CFLAGS="$CFLAGS -O3 -msse" +CFLAGS="$CFLAGS -msse" fi ])