Use a boot script instead of having autoreconf recurse
authorIan Lynagh <>
Tue, 10 Apr 2007 21:52:52 +0000 (21:52 +0000)
committerIan Lynagh <>
Tue, 10 Apr 2007 21:52:52 +0000 (21:52 +0000)
It used to be the case that
in the root would also autoreconf in any libraries that need it, and
in the root would also configure all the libraries.

However, cabal now configures the libraries, so they were getting
configured twice.

Thus now a small shellscript, boot, autoreconfs the root and all libraries
that need it, and ./configure in the root doesn't configure the libraries.

boot [new file with mode: 0644]
libraries/aclocal.m4 [deleted file]
libraries/ [deleted file]

diff --git a/boot b/boot
new file mode 100644 (file)
index 0000000..aa90626
--- /dev/null
+++ b/boot
@@ -0,0 +1,15 @@
+set -e
+for lib in libraries/*; do
+    if test -e $lib/
+    then
+        cd $lib
+        autoreconf
+        cd ../..
+    fi
index dce5a07..70936e2 100644 (file)
@@ -44,13 +44,6 @@ dnl We need 2.50 due to the use of AC_SYS_LARGEFILE and AC_MSG_NOTICE.
 dnl We need 2.52 due to the use of AS_TR_CPP and AS_TR_SH.
-dnl * Declare subdirectories that have a private configure script
-dnl After the toplevel configuration is complete, the script will recurse into
-dnl these subdirectories if they exist. The use of a cache file makes repeated
-dnl checks cheap.
 # -------------------------------------------------------------------------
 # Prepare to generate the following header files
diff --git a/libraries/aclocal.m4 b/libraries/aclocal.m4
deleted file mode 100644 (file)
index fbea551..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# Empty file to avoid a dependency on automake: autoreconf calls aclocal to
-# generate a temporary aclocal.m4t when no aclocal.m4 is present.
diff --git a/libraries/ b/libraries/
deleted file mode 100644 (file)
index d4b0229..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-# Initialise and check sanity.
-AC_INIT([Haskell hierarchical libraries], [1.0], [], [libraries])
-if test -d base; then
-if test -d readline; then
-  AC_CONFIG_SUBDIRS(readline)
-if test -d network; then
-if test -d X11; then
-if test -d Win32; then
-if test -d HGL; then
-if test -d OpenGL; then
-if test -d GLUT; then
-if test -d OpenAL; then
-if test -d ALUT; then
-if test -d time; then
-if test -d unix; then
-if test -d regex-posix; then
-  AC_CONFIG_SUBDIRS(regex-posix)