blob: 088a64f795c53c229f10bbd1102143b7ec5ebd0a [file] [log] [blame]
Josh Coalson176eb562001-06-06 19:54:54 +00001#!/bin/sh
2
Josh Coalson9645ddd2004-07-30 01:01:20 +00003# 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
Josh Coalsone31d9eb2004-09-28 00:23:57 +000014# FLAC relies on (autotools, libogg, libiconv) are installed in
Josh Coalson9645ddd2004-07-30 01:01:20 +000015# 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#
Josh Coalsonc77b2602004-07-20 05:19:23 +000020# 'hacks' is the place to put some commands you may need. There is one
21# that seems to be necessary in some situations:
Josh Coalson71fb9ff2002-12-03 06:29:10 +000022#
Josh Coalsonc77b2602004-07-20 05:19:23 +000023# * FLAC uses iconv but not gettext. iconv requires config.rpath which
Josh Coalson71fb9ff2002-12-03 06:29:10 +000024# 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
Josh Coalsonc77b2602004-07-20 05:19:23 +000026# (because we don't use it).
Josh Coalson71fb9ff2002-12-03 06:29:10 +000027#
Josh Coalsonc77b2602004-07-20 05:19:23 +000028# If the default doesn't work, try:
Josh Coalson71fb9ff2002-12-03 06:29:10 +000029#
Josh Coalsonc77b2602004-07-20 05:19:23 +000030#hacks="cp /usr/share/gettext/config.rpath ."
Josh Coalson71fb9ff2002-12-03 06:29:10 +000031#
32# Otherwise, this is the no-op:
33hacks=true
34#
Josh Coalsona278cd82004-07-22 00:16:31 +000035# 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#
Josh Coalson71fb9ff2002-12-03 06:29:10 +000041
Josh Coalson33f4ce52005-09-02 05:07:35 +000042aclocal -I m4 && libtoolize && autoconf && autoheader && $hacks && automake --foreign --include-deps --add-missing --copy