Blame SOURCES/libsodium-1.0.18/autogen.sh

ca16be
#! /bin/sh
ca16be
ca16be
if glibtoolize --version >/dev/null 2>&1; then
ca16be
  LIBTOOLIZE='glibtoolize'
ca16be
else
ca16be
  LIBTOOLIZE='libtoolize'
ca16be
fi
ca16be
ca16be
command -v command >/dev/null 2>&1 || {
ca16be
  echo "command is required, but wasn't found on this system"
ca16be
  exit 1
ca16be
}
ca16be
ca16be
command -v $LIBTOOLIZE >/dev/null 2>&1 || {
ca16be
  echo "libtool is required, but wasn't found on this system"
ca16be
  exit 1
ca16be
}
ca16be
ca16be
command -v autoconf >/dev/null 2>&1 || {
ca16be
  echo "autoconf is required, but wasn't found on this system"
ca16be
  exit 1
ca16be
}
ca16be
ca16be
command -v automake >/dev/null 2>&1 || {
ca16be
  echo "automake is required, but wasn't found on this system"
ca16be
  exit 1
ca16be
}
ca16be
ca16be
if autoreconf --version >/dev/null 2>&1; then
ca16be
  autoreconf -ivf
ca16be
else
ca16be
  $LIBTOOLIZE &&
ca16be
    aclocal &&
ca16be
    automake --add-missing --force-missing --include-deps &&
ca16be
    autoconf
ca16be
fi
ca16be
ca16be
[ -z "$DO_NOT_UPDATE_CONFIG_SCRIPTS" ] &&
ca16be
  command -v curl >/dev/null 2>&1 && {
ca16be
  echo "Downloading config.guess and config.sub..."
ca16be
ca16be
  curl -sL -o config.guess \
ca16be
    'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' &&
ca16be
    mv -f config.guess build-aux/config.guess
ca16be
ca16be
  curl -sL -o config.sub \
ca16be
    'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' &&
ca16be
    mv -f config.sub build-aux/config.sub
ca16be
ca16be
  echo "Done."
ca16be
}
ca16be
ca16be
rm -f config.guess config.sub