build: Check GAC using gacutil instead of checking for files

This commit is contained in:
Hylke Bons 2015-06-25 02:28:00 +01:00
parent 27e9f4d091
commit 14a1362ba8

View file

@ -55,10 +55,9 @@ AC_DEFUN([_SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES],
for asm in $(echo "$*" | cut -d, -f3- | sed 's/\,/ /g')
do
AC_MSG_CHECKING([for Mono $2 GAC for $asm.dll])
if test \
-e "$($PKG_CONFIG --variable=libdir $1)/mono/$2/$asm.dll" -o \
-e "$($PKG_CONFIG --variable=prefix $1)/lib/mono/$2/$asm.dll"; \
then \
eval "gacutil -l | grep '^$asm, ' &> /dev/null"
if test $? == 0; then
AC_MSG_RESULT([found])
else
AC_MSG_RESULT([not found])