view autogen.sh @ 96:757e6f99dcd7

Dan Stowell: Removed strange "zeroing" part of xtract_mfcc() which was zeroing a load of elements despite the fact that they're ignored by the DCT process called next, and never used for anything. This was writing to an assumed large result array (same size as number of FFT bins) despite the fact that only a small number of MFCCs (typically less than 50) are required, therefore either wasting memory or writing to memory it shouldn't do!
author Dan Stowell <danstowell@gmail.com>
date Wed, 03 Oct 2007 13:43:16 +0000
parents 0df00d5c9269
children 67f6b6e63d45
line wrap: on
line source
#!/bin/sh

# This works on Gentoo, whose automake wrapper is based on Mandrake:
WANT_AUTOMAKE=1.6
export WANT_AUTOMAKE


case `uname -s` in
  Linux)
      LIBTOOLIZE=libtoolize
      ACLOCALARGS='-I m4'
      ;;
  Darwin)
      LIBTOOLIZE=glibtoolize
      ACLOCALARGS='-I /usr/share/aclocal -I m4'
      ;;
  *)  echo error: unrecognized OS
      exit 1
      ;;
esac

AUTOMAKE_REQ=1.6

# Automake version check from MusE
lessthan () {
  ver1="$1"
  ver2="$2"

  major1=$( echo $ver1 | sed "s/^\([0-9]*\)\..*/\1/");
  minor1=$( echo $ver1 | sed "s/^[^\.]*\.\([0-9]*\).*/\1/" );
  major2=$( echo $ver2 | sed "s/^\([0-9]*\)\..*/\1/");
  minor2=$( echo $ver2 | sed "s/^[^\.]*\.\([0-9]*\).*/\1/" );
  test "$major1" -lt "$major2" || test "$minor1" -lt "$minor2";
}

amver=$( automake --version | head -n 1 | sed "s/.* //" );
if lessthan $amver $AUTOMAKE_REQ ; then
    echo "you must have automake version >= $AUTOMAKE_REQ to proper plugin support"
    exit 1
fi


echo "=============== running libtoolize --force --copy" &&
    $LIBTOOLIZE --force --copy &&
    echo "=============== running aclocal" &&
    aclocal $ACLOCALARGS &&
    echo "=============== running autoheader" &&
    autoheader &&
    echo "=============== running automake -c --add-missing --foreign" &&
    automake -c --add-missing --foreign &&
    echo "=============== running autoconf" &&
    autoconf &&
    echo "=============== done"