1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash -e autoreconf -fi if [ "$1" == "-d" ]; then shift; echo "Running ./configure" echo sleep 1s ./configure "$@" elif [ -n "$1" ]; then echo echo "./configure $@" ./configure "$@" else echo echo "autogen.sh completed successfully." echo "Now run ./configure with the appropriate flags and then make." fi