build: Manually copy aux files instead of relying on libtoolize
diff --git a/README.md b/README.md
index 17bbd925..be1ceccf 100644
--- a/README.md
+++ b/README.md
@@ -96,7 +96,7 @@ If using a release tarball (recommended, see https://github.com/limine-bootloade
run `./configure` directly.
If checking out from the repository, run `./bootstrap` first in order to download the
-necessary dependencies and generate the configure script (`autoconf`, `automake`, and `libtool` required).
+necessary dependencies and generate the configure script (`GNU autoconf` and `GNU automake` required).
`./configure` takes arguments and environment variables; for more information on
these, run `./configure --help`.
diff --git a/bootstrap b/bootstrap
index 928c6d98..3ceb8b52 100755
--- a/bootstrap
+++ b/bootstrap
@@ -26,7 +26,11 @@ fi
[ -d limine-efi ] || git clone https://github.com/limine-bootloader/limine-efi.git $SHALLOW_CLONE_FLAG
[ -d libgcc-binaries ] || git clone https://github.com/mintsuki/libgcc-binaries.git $SHALLOW_CLONE_FLAG
+autoreconf -fvi -Wall
+
AUTOMAKE_LIBDIR="$(automake --print-libdir)"
cp "${AUTOMAKE_LIBDIR}/INSTALL" ./
-
-libtoolize -cfvi -Wall && autoreconf -fvi -Wall
+eval "$(grep 'ac_aux_files="' configure)"
+for f in $ac_aux_files; do
+ cp "${AUTOMAKE_LIBDIR}/$f" ./build-aux/
+done
