Josh Coalson | 176eb56 | 2001-06-06 19:54:54 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Josh Coalson | 9645ddd | 2004-07-30 01:01:20 +0000 | [diff] [blame] | 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 |
Josh Coalson | e31d9eb | 2004-09-28 00:23:57 +0000 | [diff] [blame] | 14 | # FLAC relies on (autotools, libogg, libiconv) are installed in |
Josh Coalson | 9645ddd | 2004-07-30 01:01:20 +0000 | [diff] [blame] | 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 | # |
Josh Coalson | c77b260 | 2004-07-20 05:19:23 +0000 | [diff] [blame] | 20 | # 'hacks' is the place to put some commands you may need. There is one |
| 21 | # that seems to be necessary in some situations: |
Josh Coalson | 71fb9ff | 2002-12-03 06:29:10 +0000 | [diff] [blame] | 22 | # |
Josh Coalson | c77b260 | 2004-07-20 05:19:23 +0000 | [diff] [blame] | 23 | # * FLAC uses iconv but not gettext. iconv requires config.rpath which |
Josh Coalson | 71fb9ff | 2002-12-03 06:29:10 +0000 | [diff] [blame] | 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 |
Josh Coalson | c77b260 | 2004-07-20 05:19:23 +0000 | [diff] [blame] | 26 | # (because we don't use it). |
Josh Coalson | 71fb9ff | 2002-12-03 06:29:10 +0000 | [diff] [blame] | 27 | # |
Josh Coalson | c77b260 | 2004-07-20 05:19:23 +0000 | [diff] [blame] | 28 | # If the default doesn't work, try: |
Josh Coalson | 71fb9ff | 2002-12-03 06:29:10 +0000 | [diff] [blame] | 29 | # |
Josh Coalson | c77b260 | 2004-07-20 05:19:23 +0000 | [diff] [blame] | 30 | #hacks="cp /usr/share/gettext/config.rpath ." |
Josh Coalson | 71fb9ff | 2002-12-03 06:29:10 +0000 | [diff] [blame] | 31 | # |
| 32 | # Otherwise, this is the no-op: |
| 33 | hacks=true |
| 34 | # |
Josh Coalson | a278cd8 | 2004-07-22 00:16:31 +0000 | [diff] [blame] | 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 | # |
Josh Coalson | 71fb9ff | 2002-12-03 06:29:10 +0000 | [diff] [blame] | 41 | |
Josh Coalson | 33f4ce5 | 2005-09-02 05:07:35 +0000 | [diff] [blame] | 42 | aclocal -I m4 && libtoolize && autoconf && autoheader && $hacks && automake --foreign --include-deps --add-missing --copy |