Set version to 1.3.1pre1.
[flac.git] / autogen.sh
blob02ca6442929ece7f0f661c82238b98ba17da0e18
1 #!/bin/bash
2 # Run this to set up the build system: configure, makefiles, etc.
3 # We trust that the user has a recent enough autoconf & automake setup
4 # (not older than a few years...)
6 test_program_errors=0
8 function test_program {
9 if ! command -v $1 >/dev/null 2>&1 ; then
10 echo "Missing program '$1'."
11 test_program_errors=1
15 for prog in autoconf automake libtool pkg-config ; do
16 test_program $prog
17 done
19 if test $(uname -s) != "Darwin" ; then
20 test_program gettext
23 test $test_program_errors -ne 1 || exit 1
25 #-------------------------------------------------------------------------------
27 set -e
29 if test $(uname -s) = "OpenBSD" ; then
30 # OpenBSD needs these environment variables set.
31 AUTOCONF_VERSION=2.69
32 AUTOMAKE_VERSION=1.11
33 export AUTOCONF_VERSION
34 export AUTOMAKE_VERSION
37 srcdir=`dirname $0`
38 test -n "$srcdir" && cd "$srcdir"
40 echo "Updating build configuration files for FLAC, please wait...."
42 touch config.rpath
43 autoreconf --install --symlink --force
44 #./configure "$@" && echo