X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=275b2e432610b3bf6489339efff4bc1ce03f9925;hb=bfd7960566a3033182087a411016a04bd74f5eed;hp=540ec3e64bdc711e9a8a6fe33b34548246587173;hpb=1bf79d5dc5f57ef5c8d67fe54f2d58cb22db0b32;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 540ec3e..275b2e4 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1327,4 +1327,12 @@ case "$1" in esac ]) +# LIBRARY_VERSION(lib) +# -------------------------------- +# Gets the version number of a library +AC_DEFUN([LIBRARY_VERSION],[ +LIBRARY_$1_VERSION=`grep -i "^version:" libraries/$1/$1.cabal | sed "s/.* //"` +AC_SUBST(LIBRARY_$1_VERSION) +]) + # LocalWords: fi