summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-02-23 16:45:51 +0000
committerIan Lynagh <igloo@earth.li>2010-02-23 16:45:51 +0000
commitcfdf2515dd5b491f8229d44b98fa33adeeac7e60 (patch)
treeed9de4b3c562215fba86787ada50e6dee847655a /aclocal.m4
parentbfd7960566a3033182087a411016a04bd74f5eed (diff)
downloadhaskell-cfdf2515dd5b491f8229d44b98fa33adeeac7e60.tar.gz
Fix more library links in the user guide
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 275b2e4326..816e1f5b24 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1329,10 +1329,11 @@ case "$1" in
# LIBRARY_VERSION(lib)
# --------------------------------
-# Gets the version number of a library
+# Gets the version number of a library.
+# If $1 is ghc-prim, then we define LIBRARY_ghc_prim_VERSION as 1.2.3
AC_DEFUN([LIBRARY_VERSION],[
-LIBRARY_$1_VERSION=`grep -i "^version:" libraries/$1/$1.cabal | sed "s/.* //"`
-AC_SUBST(LIBRARY_$1_VERSION)
+LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/$1/$1.cabal | sed "s/.* //"`
+AC_SUBST(LIBRARY_[]translit([$1], [-], [_])[]_VERSION)
])
# LocalWords: fi