Commit cfd4e2c3 authored by Ralph Giles's avatar Ralph Giles
Browse files

Set the autoconf version from git.

AC_INIT requires that the version string passed in be 'static'
so we can't use the output of a shell invocation. However, it
can be computed by an m4 shell invocation. This is what autoconf
itself does to embed its git version number in PACKAGE_VERSION.

Doing this necessitates the 'echo -n' in Make
is smart enough to strip the trailing newline, but AC_INIT is
not. We must also add -f to autoreconf. Otherwise,
will only update configure when changes, even if
the output of has changed.

This is still not ideal, since it runs at time, not
at 'make' time, which is what we want. This seems to be a limitation
of an upcoming automake release, which removes the old style
with PACKAGE and VERSION set by shell variables.
parent 853393be
......@@ -13,4 +13,4 @@ test -z "$srcdir" && srcdir=.
cd "$srcdir"
echo "Updating build configuration files for $package, please wait...."
autoreconf -is
autoreconf -isf
AC_INIT([opusfile], [0.0])
# autoconf source script for generating configure
AC_INIT([opusfile], m4_esyscmd([doc/]))
......@@ -9,4 +9,4 @@ else
echo ${VERSION}
echo -n ${VERSION}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment