Skip to content

Commit 26e9e6f

Browse files
added autoconfig logic
1 parent f198b96 commit 26e9e6f

File tree

1 file changed

+25
-1
lines changed
  • .ci/docker/manywheel/build_scripts

1 file changed

+25
-1
lines changed

.ci/docker/manywheel/build_scripts/build.sh

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,31 @@ yum -y install bzip2 make git patch unzip bison yasm diffutils \
3939
${PYTHON_COMPILE_DEPS}
4040

4141
# Install newest autoconf
42-
build_autoconf $AUTOCONF_ROOT $AUTOCONF_HASH
42+
if [ "$(uname -m)" != "ppc64le" ] ; then
43+
build_autoconf $AUTOCONF_ROOT $AUTOCONF_HASH
44+
else
45+
# Download and extract Autoconf
46+
curl -sLO http://ftp.gnu.org/gnu/autoconf/$AUTOCONF_ROOT.tar.gz
47+
echo "$AUTOCONF_HASH $AUTOCONF_ROOT.tar.gz" | sha256sum -c -
48+
tar -xzf $AUTOCONF_ROOT.tar.gz
49+
cd $AUTOCONF_ROOT
50+
51+
# Update config.guess and config.sub
52+
curl -o build-aux/config.guess http://git.savannah.gnu.org/cgit/config.git/plain/config.guess
53+
curl -o build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
54+
chmod +x build-aux/config.guess build-aux/config.sub
55+
56+
# Configure with the correct host
57+
./configure --host=powerpc64le-pc-linux-gnu
58+
59+
# Build and install
60+
make -j$(nproc)
61+
make install
62+
63+
# Clean up
64+
cd ..
65+
rm -rf $AUTOCONF_ROOT $AUTOCONF_ROOT.tar.gz
66+
fi
4367
autoconf --version
4468

4569
# Compile the latest Python releases.

0 commit comments

Comments
 (0)