Given that autogen.sh doesn't actually do anything important, why not replace these two lines with a less-ambiguous:
autoreconf -fi
./configure --prefix=/usr