I only use these 3 commands to compile mangos on linux:
autoreconf -ifv
./configure --prefix=/server/mangos --sysconfdir=/server/mangos/etc --enable-cli --enable-ra --datadir=/server/mangos/data --enable-maintainer-mode
make -j4
use "make" if your server only has 1 cpu, use "make -j2" if your server has 2 cores, and to compile ultrafast on 4 cores use: "make -j4" etc..
no need to create a folder "objdir", you can compile straight from the mangos folder with just 3 commands
instead of using all these:
autoreconf --install --force
aclocal
autoheader
autoconf
automake --add-missing
automake src/bindings/ScriptDev2/Makefile
mkdir objdir
cd objdir
../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos
make
make install
make clean
cd ..
rm -r objdir