1#!/bin/sh 2 3# Report the paths causing trouble frequently 4echo '##################################################################' 5echo '# The paths and versions for tools #' 6echo '##################################################################' 7for t in autoreconf aclocal pkg-config autoconf automake; do 8 if type $t; then 9 echo '------------------------------------------------------------------' 10 $t --version 11 fi 12 echo '##################################################################' 13done 14 15if [ -e ./aclocal.m4 ]; then 16 echo '# Renaming aclocal.m4 to last-aclocal.m4 #' 17 mv ./aclocal.m4 ./last-aclocal.m4 18 echo '##################################################################' 19fi 20 21echo '# Generating files #' 22echo '##################################################################' 23 24set -e # errexit (exit on error) 25if [ ! -z "${CI}" ]; then 26 set -x # xtrace (execution trace) 27fi 28 29type autoreconf > /dev/null 2>&1 || { 30 echo "No autotools (autoconf and automake) found" 1>&2 31 exit 1 32} 33type pkg-config > /dev/null 2>&1 || { 34 echo "No pkg-config found" 1>&2 35 exit 1 36} 37 38autoreconf -vfi 39