add warning about libtool/autoconf "missing sed" bug to comments
[platform/upstream/flac.git] / autogen.sh
1 #!/bin/sh
2
3 # 'hacks' is the place to put some commands you may need.  There is one
4 # that seems to be necessary in some situations:
5 #
6 #  * FLAC uses iconv but not gettext.  iconv requires config.rpath which
7 #    is supplied by gettext, which is copied in by gettextize.  But we
8 #    can't run gettextize since we do not fulfill all it's requirements
9 #    (because we don't use it).
10 #
11 # If the default doesn't work, try:
12 #
13 #hacks="cp /usr/share/gettext/config.rpath ."
14 #
15 # Otherwise, this is the no-op:
16 hacks=true
17 #
18 # Also watchout, if you replace ltmain.sh, there is a bug in some
19 # versions of libtool (or maybe autoconf) on some platforms where the
20 # configure-generated libtool does not have $SED defined.  See also:
21 #
22 #   http://lists.gnu.org/archive/html/libtool/2003-11/msg00131.html
23 #
24
25 aclocal && libtoolize && autoconf && autoheader && $hacks && automake --foreign --include-deps --add-missing --copy