diff -Naur asterisk.old/Makefile asterisk.new/Makefile --- asterisk.old/Makefile 2005-09-26 09:41:30.000000000 +0200 +++ asterisk.new/Makefile 2005-09-26 09:46:33.000000000 +0200 @@ -77,7 +77,7 @@ # Where to install asterisk after compiling # Default -> leave empty -INSTALL_PREFIX= +INSTALL_PREFIX?= # Staging directory # Files are copied here temporarily during the install process @@ -209,7 +209,7 @@ M4=/usr/local/bin/m4 endif -INCLUDE=-Iinclude -I../include +INCLUDE=-Iinclude -I../include -I../zaptel -I../../zaptel -I../../libpri ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY ASTCFLAGS+=$(OPTIMIZE) @@ -479,7 +479,7 @@ $(MAKE) -C stdtime clean datafiles: all - sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig + if test $$(id -u) = 0; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros for x in sounds/digits/*.gsm; do \