From cfdf2515dd5b491f8229d44b98fa33adeeac7e60 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 23 Feb 2010 16:45:51 +0000 Subject: Fix more library links in the user guide --- aclocal.m4 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'aclocal.m4') 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 -- cgit v1.2.1