faac をソースからインストール(再トライ)

というわけで、前回は Debian Multimedia – So muss Technik! のソースからパッケージを作ろうとしたら足りないパッケージがループになってしまったので諦めた。で、今回は faac のソースを AudioCoding.com から落として再トライ。

現在の最新バージョンは 1.25 で去年の夏にリリースされているらしい。このソースを落としてきて早速ビルドしてみよう。

paraches@debian:~/myUsr/codec/faac$ curl -O http://jaist.dl.sourceforge.net/sourceforge/faac/faac-1.25.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  377k  100  377k    0     0   381k      0 --:--:-- --:--:-- --:--:--  543k
paraches@debian:~/myUsr/codec/faac$ tar zxvf faac-1.25.tar.gz 
faac/
faac/.cvsignore
faac/AUTHORS
faac/bootstrap
faac/ChangeLog
faac/common/
<省略>
faac/README
faac/TODO
paraches@debian:~/myUsr/codec/faac$ ls
faac  faac-1.25.tar.gz
paraches@debian:~/myUsr/codec/faac$ cd faac
paraches@debian:~/myUsr/codec/faac/faac$ ls
AUTHORS    INSTALL      README     common        faac.dsw  libfaac
COPYING    Makefile.am  TODO       configure.in  frontend  plugins
ChangeLog  NEWS         bootstrap  docs          include   project
paraches@debian:~/myUsr/codec/faac/faac$ 

ダウンロードして展開。
INSTALLってあるから、これを読めばインストールの方法がわかるはず。

paraches@debian:~/myUsr/codec/faac/faac$ cat INSTALL
___________________________________
General FAAC compiling instructions

1. Make sure you have recent versions of autoconf, automake and libtool installed.
   For MP4 writing and tagging support, you must enable compiling with internal libmp4v2 (included in /common/mp4v2/).
2. cd to FAAC source dir
3. Run:
        ./bootstrap
        ./configure
        make
        make install

__________________________________
MS Windows FAAC build using Cygwin

1. Install Cygwin (http://cygwin.com/) 
   (make sure to include autoconf, automake and libtool packages)
2. cd to FAAC source dir (folder)

To install Cygwin binary follow general instructions.

To install Mingw binary:
1. Run:
        ./bootstrap
        CC='gcc -mno-cygwin' ./configure
        make
2. Copy frontend/faac.exe to destination folder.
paraches@debian:~/myUsr/codec/faac/faac$ 

ん? いきなり configure でなく、最初に bootstrap というのが必要なのか。ちょっといつもと違うな…。ま、とりあえずトライしてみよう。

paraches@debian:~/myUsr/codec/faac/faac$ ./bootstrap
: bad interpreter: そのようなファイルやディレクトリはありません

あれ? ちゃんと INSTALL に書いてある通りなのにな〜。shって必要なのかな?

paraches@debian:~/myUsr/codec/faac/faac$ sh bootstrap
: command not found
configure.in:10: warning: underquoted definition of MY_DEFINE
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
': そのようなファイルやディレクトリはありませんrectory `.
: command not foundautoheader
bootstrap: line 12: syntax error: unexpected end of file

ありゃりゃ? なんだかエラーになるな〜。bootstrapってなんなんだろう? ちょっと中を見てみよう。

paraches@debian:~/myUsr/codec/faac/faac$ cat bootstrap 
#! /bin/sh

aclocal -I .
autoheader
if test "`uname -s`" = Darwin; then
    glibtoolize --automake
else
    libtoolize --automake
fi
automake --add-missing
autoconf
paraches@debian:~/myUsr/codec/faac/faac$ 

ん? わからん! aclocalって? とりあえずヘルプ!

paraches@debian:~/myUsr/codec/faac/faac$ aclocal --help
Usage: aclocal [OPTIONS] ...


Generate `aclocal.m4' by scanning `configure.ac' or `configure.in'

  --acdir=DIR           directory holding config files
  --help                print this help, then exit
  -I DIR                add directory to search list for .m4 files
  --force               always update output file
  --output=FILE         put output in FILE (default aclocal.m4)
  --print-ac-dir        print name of directory holding m4 files
  --verbose             don't be silent
  --version             print version number, then exit

Report bugs to <bug-automake@gnu.org>.
paraches@debian:~/myUsr/codec/faac/faac$ 

何? aclocal.m4って? あ〜もう付いて行けなくなった…。
というわけで、faac-1.25 はギブアップ*1
これじゃ先に進めないな〜