Diff of /autogen.sh [65d67a] .. [4c7322] Maximize Restore

  Switch to side-by-side view

--- a/autogen.sh
+++ b/autogen.sh
@@ -3,10 +3,24 @@
 WANT_AUTOMAKE=1.7
 export WANT_AUTOMAKE
 
+case `uname -s` in
+  Linux)
+      LIBTOOLIZE=libtoolize
+      ACLOCALARGS=''
+      ;;
+  Darwin)
+      LIBTOOLIZE=glibtoolize
+      ACLOCALARGS='-I /usr/local/share/aclocal'
+      ;;
+  *)  echo error: unrecognized OS
+      exit
+      ;;
+esac
+
 echo "=============== running libtoolize --force --copy" &&
-    libtoolize --force --copy &&
+    $LIBTOOLIZE --force --copy &&
     echo "=============== running aclocal" &&
-    aclocal &&
+    aclocal $ACLOCALARGS &&
     echo "=============== running autoheader" &&
     autoheader &&
     echo "=============== running automake --add-missing --foreign" &&