Another windows utf8 I/O patch from Janne Hyvärinen <cse@sci.fi>.
[platform/upstream/flac.git] / autogen.sh
index 2aa4c30..b3fe48e 100755 (executable)
@@ -2,5 +2,21 @@
 # Run this to set up the build system: configure, makefiles, etc.
 # We trust that the user has a recent enough autoconf & automake setup
 # (not older than a few years...)
-autoreconf -i
-#$srcdir/configure "$@" && echo
+set -e
+
+if test $(uname -s) = "OpenBSD" ; then
+       # OpenBSD needs these environment variables set.
+       AUTOCONF_VERSION=2.69
+       AUTOMAKE_VERSION=1.11
+       export AUTOCONF_VERSION
+       export AUTOMAKE_VERSION
+       fi
+
+srcdir=`dirname $0`
+test -n "$srcdir" && cd "$srcdir"
+
+echo "Updating build configuration files for FLAC, please wait...."
+
+touch config.rpath
+autoreconf -isf
+#./configure "$@" && echo