mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-27 14:32:14 +00:00
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:
parent
df955bf2b7
commit
b3bce89f50
2 changed files with 6 additions and 4 deletions
|
@ -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."
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue