2 # autogen.sh - generates configure using the autotools
5 if [ "$OS" = "Darwin" ]; then
6 : ${LIBTOOLIZE=glibtoolize}
7 elif [ "$OS" = "Linux" ]; then
8 : ${LIBTOOLIZE=libtoolize}
12 : ${AUTOHEADER=autoheader}
13 : ${AUTOMAKE=automake}
14 : ${AUTOCONF=autoconf}
17 ${LIBTOOLIZE} --force --copy
19 ${AUTOMAKE} --add-missing --copy
24 SILENT=`which ${LIBTOOLIZE} ${ACLOCAL} ${AUTOHEADER} ${AUTOMAKE} ${AUTOCONF}`
27 echo All build tools found.
31 echo "--------------------------------------------------------------"
32 echo " >>> Some build tools are missing! <<<"
33 echo Please make sure your system has the GNU autoconf and automake
34 echo toolchains installed.
35 echo "--------------------------------------------------------------"
41 echo "---------------------------------------------"
42 echo "autogen finished running, now run ./configure"
43 echo "---------------------------------------------"