diff -urN libeXosip2-2.2.3.orig/src/Makefile.am libeXosip2-2.2.3/src/Makefile.am
--- libeXosip2-2.2.3.orig/src/Makefile.am	2005-10-07 14:44:38.000000000 +0200
+++ libeXosip2-2.2.3/src/Makefile.am	2008-01-23 16:05:07.000000000 +0100
@@ -27,7 +27,7 @@
 jpipe.c          jpipe.h                 jauth.c      \
 sdp_offans.c     jpublish.c
 
-libeXosip2_la_LDFLAGS = -L$(prefix)/lib -version-info $(LIBEXOSIP_SO_VERSION)
+libeXosip2_la_LDFLAGS = -version-info $(LIBEXOSIP_SO_VERSION)
 libeXosip2_la_LIBADD = -losip2  @EXOSIP_LIB@ @PTHREAD_LIBS@
 
-INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include -I$(includedir)
+INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include
diff -urN libeXosip2-2.2.3.orig/tools/Makefile.am libeXosip2-2.2.3/tools/Makefile.am
--- libeXosip2-2.2.3.orig/tools/Makefile.am	2005-07-24 02:11:43.000000000 +0200
+++ libeXosip2-2.2.3/tools/Makefile.am	2008-01-23 16:11:07.000000000 +0100
@@ -9,8 +9,8 @@
 
 sip_reg_LDFLAGS = -O @EXOSIP_LIB@ @PTHREAD_LIBS@ @JOSUA_LIB@ 
 
-sip_reg_LDADD = -L$(prefix)/lib $(top_builddir)/src/libeXosip2.la -losip2 -losipparser2
+sip_reg_LDADD = $(top_builddir)/src/libeXosip2.la -losip2 -losipparser2
 
-INCLUDES = -I$(prefix)/include -I$(top_srcdir) -I$(top_srcdir)/include -I$(includedir)
+INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include