Files
avrdude/src/bootstrap
Hans Ulrich Niedermann ed2bb82652 Pass bootstrap CLI arguments to autoreconf
For my convenience, pass all bootstrap CLI arguments on to autoreconf.

This is useful when testing with e.g. -Wall and -Werror arguments.
2024-02-19 06:10:33 +01:00

26 lines
522 B
Bash
Executable File

#! /bin/sh
cd "$(dirname "$0")"
: ${AUTORECONF="autoreconf${AC_VER}"}
: ${AUTOHEADER="autoheader${AC_VER}"}
: ${AUTOCONF="autoconf${AC_VER}"}
: ${ACLOCAL="aclocal${AM_VER}"}
: ${AUTOMAKE="automake${AM_VER}"}
export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE
# Bootstrap the build system.
set -x
rm -rf autom4te.cache
# MacOS calls it "glibtoolize", everyone else "libtoolize"
# probe for that
LIBTOOLIZE=libtoolize
glibtoolize --version > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize
export LIBTOOLIZE
${AUTORECONF} -i "$@"