1#! /bin/sh 2 3set -e 4 5# Clear the cache to get a clean rebuild. 6rm -rf autom4te.cache 7 8# Replace variables here and there to get a consistent tree. 9./utils/replace-vars.sh 10 11# Set up the standard gettext infrastructure. 12autopoint 13 14# Set up libtool stuff for use with Automake. 15if type glibtoolize > /dev/null 2>&1; then 16 # On macOS, this name is used for some reason. 17 glibtoolize --automake 18else 19 libtoolize --automake 20fi 21 22# Update aclocal.m4, using the macros from the m4 directory. 23aclocal -I m4 24 25# Run autoheader to generate config.h.in. 26autoheader 27 28# Create Makefile.in's. 29automake --foreign --add-missing 30 31# Create the configure script. 32autoconf 33