]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
add mpg123 warnings (bug #3392)
authorRussell Bryant <russell@russellbryant.com>
Fri, 21 Jan 2005 05:18:35 +0000 (05:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 21 Jan 2005 05:18:35 +0000 (05:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4867 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index ee7affbca5dab2708af8d02aaee0044c0524c9b5..d6ff5fe9955d40eeb7e08d47239e3148dbddf362 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -540,6 +540,15 @@ depend: .depend
        for x in $(SUBDIRS); do $(MAKE) -C $$x depend || exit 1 ; done
 
 .depend:
+       @if ! which mpg123 &>/dev/null ; then \
+               echo "*** You don't have mpg123 installed. You're going to need ***";\
+               echo "***       it if you want MusicOnHold                      ***";\
+       elif ! mpg123 --longhelp 2>&1 | grep .59r &>/dev/null ; then \
+                       echo "*************************************************************";\
+                       echo "*** You have the WRONG version of mpg123... you need .59r ***";\
+                       echo "*** Use 'make mpg123' to get the right verison            ***";\
+                       echo "*************************************************************";\
+       fi
        ./mkdep ${CFLAGS} `ls *.c`
 
 FORCE: