fix asterisk build when newt headers are present on the host machine
[openwrt-10.03/.git] / package / asterisk / patches / no-newt-check.diff
1 diff -urN asterisk-1.0.7.old/astman/Makefile asterisk-1.0.7.dev/astman/Makefile
2 --- asterisk-1.0.7.old/astman/Makefile  2004-06-26 21:25:39.000000000 +0200
3 +++ asterisk-1.0.7.dev/astman/Makefile  2005-04-29 15:54:53.000000000 +0200
4 @@ -8,7 +8,7 @@
5  CFLAGS+=-I/usr/local/include -L/usr/local/lib
6  endif
7  
8 -TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f /usr/local/include/newt.h ]; then echo "astman"; else echo "none" ; fi ; fi)
9 +TARGET=none
10  all: depend $(TARGET)
11  
12  install: