diff options
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 5b16f6c3eb..a31bdbd124 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2127,14 +2127,14 @@ fi AC_SUBST($1) ]) -# LIBRARY_VERSION(lib, [dir]) +# LIBRARY_VERSION(lib, [cabal_file]) # -------------------------------- # 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],[ -dir=m4_default([$2],[$1]) -LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/${dir}/$1.cabal | sed "s/.* //"` +cabal_file=m4_default([$2],[$1/$1.cabal]) +LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/${cabal_file} | sed "s/.* //"` AC_SUBST(LIBRARY_[]translit([$1], [-], [_])[]_VERSION) ]) |