1. Make the functions reset_session_buffers() and grab_incoming()
[OpenSRF.git] / autogen.sh
index 9190b41..37dac2e 100755 (executable)
@@ -1,7 +1,13 @@
 #!/bin/sh
 # autogen.sh - generates configure using the autotools
 
-: ${LIBTOOLIZE=libtoolize}
+OS=`uname`
+if [ "$OS" = "Darwin" ]; then
+    : ${LIBTOOLIZE=glibtoolize}
+elif [ "$OS" = "Linux" ]; then
+    : ${LIBTOOLIZE=libtoolize}
+fi
+
 : ${ACLOCAL=aclocal}
 : ${AUTOHEADER=autoheader}
 : ${AUTOMAKE=automake}
 
 ${LIBTOOLIZE} --force --copy
 ${ACLOCAL}
-${AUTOMAKE} --add-missing
+${AUTOMAKE} --add-missing --copy
 
 
 ${AUTOCONF}
 
-SILENT=`which libtoolize aclocal autoheader automake autoconf`
+SILENT=`which ${LIBTOOLIZE} ${ACLOCAL} ${AUTOHEADER} ${AUTOMAKE} ${AUTOCONF}`
 case "$?" in
     0 )
         echo All build tools found.