Run autoreconf from autotools module.

We can reasonably determine that autoreconf needs to be run if the
configure script does not exist.
This commit is contained in:
Simon Howard 2016-02-18 23:26:06 -05:00
parent df955bf2b7
commit b3bce89f50
2 changed files with 6 additions and 4 deletions

View file

@ -12,6 +12,12 @@ do_build() {
host_opt="--host=$BUILD_HOST"
fi
# If we're checking out from a version control repository, we may need
# to run the autotools commands first to generate the configure script.
if [ ! -e configure ] && ([ -e configure.ac ] || [ -e configure.in ]); then
autoreconf -fi
fi
./configure --prefix="$PACKAGE_INSTALL_DIR" $host_opt \
$PACKAGE_CONFIGURE_OPTS || (
error_exit "Failed to configure package $PACKAGE_NAME for build."

View file

@ -2,7 +2,3 @@ dependencies SDL2 SDL2_mixer SDL2_net
fetch_git https://github.com/fragglet/chocolate-doom.git sdl2-branch
build_autotools
prebuild_setup() {
autoreconf -fi
}