summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2013-01-26 12:00:37 (UTC)
committer Michael Krelin <hacker@klever.net>2013-01-26 12:00:37 (UTC)
commit98b8a37be835d50b71416acd6d285e1eb525b2a1 (patch) (side-by-side diff)
tree45e2ff2f2fa08c266de70f35b1c2b41326150cc4
parent6242fdc322cecae7e9d71b390f91ef9dc8f1a162 (diff)
downloadiii-98b8a37be835d50b71416acd6d285e1eb525b2a1.zip
iii-98b8a37be835d50b71416acd6d285e1eb525b2a1.tar.gz
iii-98b8a37be835d50b71416acd6d285e1eb525b2a1.tar.bz2
slightly reworked autotools
introduced aux.d directory and prettified and improved autogen.bash to run from the build directory in case it differs from source. Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--.gitignore4
-rw-r--r--autogen.bash9
-rw-r--r--autogen.sh8
-rw-r--r--configure.ac1
4 files changed, 11 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index f99d160..6b59f6b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,7 +10,5 @@ Makefile.in
/stamp-h1
/INSTALL
-/depcomp
-/install-sh
-/missing
/NEWS
TAGS
+/aux.d
diff --git a/autogen.bash b/autogen.bash
new file mode 100644
index 0000000..a798fad
--- a/dev/null
+++ b/autogen.bash
@@ -0,0 +1,9 @@
+#!/bin/bash
+( cd "$(dirname "$0")" \
+&& mkdir -p aux.d \
+&& aclocal \
+&& autoheader \
+&& automake -a \
+&& autoconf \
+&& "$(dirname "$0")"/configure "$@" \
+)
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100644
index 86d2d88..0000000
--- a/autogen.sh
+++ b/dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-WANT_AUTOMAKE=1.8
-export WANT_AUTOMAKE
- aclocal \
-&& autoheader \
-&& automake -a \
-&& autoconf \
-&& ./configure "$@"
diff --git a/configure.ac b/configure.ac
index c814b53..1e0e42c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,5 @@
AC_INIT([iii], [0.3], [iii-bugs@klever.net])
AC_CONFIG_SRCDIR([src/iiid.cc])
+AC_CONFIG_AUX_DIR([aux.d])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([dist-bzip2])