summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2005-03-05 17:05:35 +0000
committerWerner Lemberg <wl@gnu.org>2005-03-05 17:05:35 +0000
commitb0db0fc2c5c7d87d457abe2bd5a7c759eebb3e66 (patch)
treec4e5de0933f62934aa5932b7e8b2cf1daec964aa /autogen.sh
parentbaa662bbea83ce15b068d031cfc70b07a66fb613 (diff)
* autogen.sh: New script for bootstrapping.
* README.CVS: New file which documents bootstrapping. * builds/unix/aclocal.m4, builds/unix/config.guess, builds/unix/config.sub, builds/unix/configure, builds/unix/ltmain.sh: Removed.
Diffstat (limited to 'autogen.sh')
-rw-r--r--autogen.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100644
index 00000000..f5235905
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+run ()
+{
+ echo "running \`$*'"
+ eval $*
+
+ if test $? != 0 ; then
+ echo "error while running \`$*'"
+ exit 1
+ fi
+}
+
+if test ! -f ./builds/unix/configure.ac; then
+ echo "You must be in the same directory as \`autogen.sh'."
+ echo "Bootstrapping doesn't work if srcdir != builddir."
+ exit 1
+fi
+
+cd builds/unix
+
+run aclocal -I .
+run libtoolize --force --copy
+run autoconf
+
+chmod +x mkinstalldirs
+chmod +x install-sh
+
+cd ../..
+
+chmod +x ./configure
+
+# EOF