summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Kolmodin <kolmodin@google.com>2011-07-20 15:14:03 +0200
committerIan Lynagh <igloo@earth.li>2011-08-03 15:04:21 +0100
commit0b66987266f5fa43a43339e468a11a5268366c4e (patch)
tree9b1650488ee1312ad5c6cd1f02ae3519dd7214c1
parent8b9e0177a4023619a29989b73fe2c5ffe0d782db (diff)
downloadhaskell-0b66987266f5fa43a43339e468a11a5268366c4e.tar.gz
Fix path to Cabal library, corrects documentation.
-rw-r--r--aclocal.m46
-rw-r--r--configure.ac2
2 files changed, 5 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index f8dafaca5f..680e0a8efe 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1570,12 +1570,14 @@ fi
AC_SUBST($1)
])
-# LIBRARY_VERSION(lib)
+# LIBRARY_VERSION(lib, [dir])
# --------------------------------
# Gets the version number of a library.
# If $1 is ghc-prim, then we define LIBRARY_ghc_prim_VERSION as 1.2.3
+# $2 points to the directory under libraries/
AC_DEFUN([LIBRARY_VERSION],[
-LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/$1/$1.cabal | sed "s/.* //"`
+dir=m4_default([$2],[$1])
+LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/${dir}/$1.cabal | sed "s/.* //"`
AC_SUBST(LIBRARY_[]translit([$1], [-], [_])[]_VERSION)
])
diff --git a/configure.ac b/configure.ac
index 32a425e917..832bab0114 100644
--- a/configure.ac
+++ b/configure.ac
@@ -916,7 +916,7 @@ AC_SUBST(BUILD_DOCBOOK_PS)
AC_SUBST(BUILD_DOCBOOK_PDF)
LIBRARY_VERSION(base)
-LIBRARY_VERSION(Cabal)
+LIBRARY_VERSION(Cabal, Cabal/cabal)
LIBRARY_VERSION(ghc-prim)
LIBRARY_ghc_VERSION="$ProjectVersion"
AC_SUBST(LIBRARY_ghc_VERSION)