$NetBSD: patch-ad,v 1.3 2009/11/15 15:50:50 drochner Exp $

--- c++/config/commence.in.orig	2008-02-01 04:04:06.000000000 +0100
+++ c++/config/commence.in
@@ -80,7 +80,7 @@ LT_UNINSTALL=$(LT) --mode=uninstall $(RM
 ## complains if it sees a reference to a variable which has never been
 ## defined. The main makefile is free to redefine these to something else.
 DOCDIR=$(docdir)
-EXAMPLEDIR=$(docdir)/hdf5/examples/c++
+EXAMPLEDIR=$(DESTDIR)$(prefix)/share/examples/hdf5/c++
 LIB=
 LIB_SRC=
 LIB_OBJ=
