change "bytes" parameter of all read callbacks from "unsigned" to "size_t"
[platform/upstream/flac.git] / autogen.sh
1 #!/bin/sh
2
3 # FLAC needs relatively recent versions of autotools for autogen.sh to
4 # run properly.  For example, if your autoconf is too old, it will not
5 # check for inttypes.h and compilation will fail later.  If you are
6 # having problems with autogen.sh it is best to upgrade to at least the
7 # following if possible:
8 #
9 # - autoconf 2.59
10 # - automake 1.8.5
11 # - libtool 1.5.6
12 #
13 # You may need to specify -I /SOME_PATH/share/aclocal if the packages
14 # FLAC relies on (autotools, libogg, libiconv) are installed in
15 # non-standard places.
16 #
17 # If you don't have XMMS installed at all, you should comment out
18 # AM_PATH_XMMS in configure.in.
19 #
20 # 'hacks' is the place to put some commands you may need.  There is one
21 # that seems to be necessary in some situations:
22 #
23 #  * FLAC uses iconv but not gettext.  iconv requires config.rpath which
24 #    is supplied by gettext, which is copied in by gettextize.  But we
25 #    can't run gettextize since we do not fulfill all it's requirements
26 #    (because we don't use it).
27 #
28 # If the default doesn't work, try:
29 #
30 #hacks="cp /usr/share/gettext/config.rpath ."
31 #
32 # Otherwise, this is the no-op:
33 hacks=true
34 #
35 # Also watchout, if you replace ltmain.sh, there is a bug in some
36 # versions of libtool (or maybe autoconf) on some platforms where the
37 # configure-generated libtool does not have $SED defined.  See also:
38 #
39 #   http://lists.gnu.org/archive/html/libtool/2003-11/msg00131.html
40 #
41
42 aclocal -I m4 && libtoolize && autoconf && autoheader && $hacks && automake --foreign --include-deps --add-missing --copy