--- avl-0.3.5.orig/GNUmakefile	2002-11-15 19:57:48.000000000 +0100
+++ avl-0.3.5/GNUmakefile	2011-05-10 13:52:58.000000000 +0200
@@ -15,7 +15,7 @@ CFLAGS ?= -O2 -fomit-frame-pointer -pipe
 #CFLAGS = -g -pg -a -pipe -march=i686 -Wall
 #LDFLAGS = -s
 
-prefix ?= /usr/local
+prefix ?= /usr
 libdir ?= $(prefix)/lib
 includedir ?= $(prefix)/include
 includedir ?= /usr/include
@@ -41,13 +41,13 @@ clean:
 
 install: all
 	$(INSTALL) -d $(DESTDIR)$(libdir)
+	$(INSTALL) -d $(DESTDIR)$(includedir)
 	$(INSTALL) avl.h $(DESTDIR)$(includedir)
-	$(INSTALL) $(LIBRARIES) $(DESTDIR)$(libdir)
-	for i in $(LIBRARIES); do\
+	$(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)
+	for i in $(LIBRARY); do\
 		$(LN) -sf $$i $(DESTDIR)$(libdir)/$${i%.*};\
 		$(LN) -sf $${i%.*} $(DESTDIR)$(libdir)/$${i%.*.*};\
 	done
-	-$(LDCONFIG)
 
 .PHONY: clean install all
 .PRECIOUS: %.h %.c
