#!/bin/bash test -n "$srcdir" || srcdir=`dirname "$0"` test -n "$srcdir" || srcdir=. autoreconf --force --install --verbose --warnings=all "$srcdir" patch "$srcdir/ltmain.sh" "$srcdir/ltmain.sh.patch" patch "$srcdir/po/Rules-quot" "$srcdir/Rules-quot.patch" autoreconf "$srcdir" # Taken from https://gitlab.com/utsushi/utsushi/blob/master/bootstrap # # Sanity check the result to catch the most common errors that are # not diagnosed by autoreconf itself (or could use some extra help # explaining what to do in those cases). if grep AX_CXX_COMPILE_STDCXX "$srcdir/configure" >/dev/null 2>&1; then cat <