From d86bb20801fc5e57810abd53339fc1ae059446b1 Mon Sep 17 00:00:00 2001
From: Brian West <brian@freeswitch.org>
Date: Thu, 27 Feb 2014 14:19:37 -0600
Subject: [PATCH] modcheck should also take DESTDIR into account

---
 build/modcheck.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/modcheck.sh b/build/modcheck.sh
index 6b645dfef6..b0c84c8b1b 100644
--- a/build/modcheck.sh
+++ b/build/modcheck.sh
@@ -6,7 +6,7 @@ on=''
 off=''
 
 prefix=`cat ../config.log | grep ^prefix=\' | awk -F \' '{print $2}'`
-mods=${prefix}/mod;
+mods=${DESTDIR}${prefix}/mod;
 
 if [ -z $mods ] ; then
     mods="/usr/local/freeswitch/mod"