$NetBSD: patch-ac,v 1.5 2006/11/05 21:51:21 rillig Exp $

--- Makefile.in.orig	2004-12-20 15:15:05.000000000 +0100
+++ Makefile.in	2006-11-05 22:03:06.000000000 +0100
@@ -11,8 +11,8 @@ mandir=@mandir@
 # DEFS should include -Dacceptarg3_t=int (replace with the correct data type)
 CXX = @CXX@
 CC = @CC@
-CXXFLAGS = @extracxxflags@ @DEFS@ -I@includedir@ -Ilibtcd -I@xroot@/include @normalcxxflags@ -c
-LDFLAGS = @extraldflags@ -L@libdir@ -L@xlibdir@ @normalldflags@ -o
+CXXFLAGS = @extracxxflags@ @DEFS@ -I@includedir@ -Ilibtcd -I@xroot@/include @normalcxxflags@ -DPREFIX='"${prefix}"' -DPKG_SYSCONFDIR='"@sysconfdir@"' -c
+LDFLAGS = @extraldflags@ -L@libdir@ -Wl,-R@libdir@ -L@xlibdir@ -Wl,-R@xlibdir@ @normalldflags@ -o
 
 # Extra switches and libs determined by configure.in
 extraswitches=@extraswitches@
