#!/bin/sh # autogen.sh — regenerate all autotools machinery. # # Usage: ./autogen.sh (then: make release / make debug / make bench) # # Never run ./configure at the repository root — use the driver Makefile # targets instead, which configure out-of-tree into bin/{release,debug}. set -e cd "$(dirname "$0")" autoreconf -i -f -v echo echo "autotools machinery regenerated." echo "next: make release (bin/release/, CFLAGS='-O2')" echo " make debug (bin/debug/, CFLAGS='-O0 -g')" echo " make bench (benchmarks against the release build)" echo " make check (smoke tests)"