[116384] trunk/dports/math

sean at macports.org sean at macports.org
Thu Jan 23 12:15:16 PST 2014


Revision: 116384
          https://trac.macports.org/changeset/116384
Author:   sean at macports.org
Date:     2014-01-23 12:15:16 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
sundials: add new port; closes #35342

Added Paths:
-----------
    trunk/dports/math/sundials/
    trunk/dports/math/sundials/Portfile
    trunk/dports/math/sundials/files/
    trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch

Added: trunk/dports/math/sundials/Portfile
===================================================================
--- trunk/dports/math/sundials/Portfile	                        (rev 0)
+++ trunk/dports/math/sundials/Portfile	2014-01-23 20:15:16 UTC (rev 116384)
@@ -0,0 +1,89 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id:
+
+PortSystem          1.0
+PortGroup           mpi 1.0
+
+mpi.setup
+
+name                sundials
+version             2.5.0
+categories          math devel
+license             bsd
+platforms           darwin
+maintainers         sean openmaintainer
+
+description         SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
+
+long_description    SUNDIALS consists of the following five solvers: CVODE\
+                    solves initial value problems for ordinary differential\
+                    equation (ODE) systems.  CVODES solves ODE systems and\
+                    includes sensitivity analysis capabilities (forward and\
+                    adjoint).  IDA solves initial value problems for\
+                    differential-algebraic equation (DAE) systems.  IDAS solves\
+                    DAE systems and includes sensitivity analysis capabilities\
+                    (forward and adjoint).  KINSOL solves nonlinear algebraic\
+                    systems.
+
+homepage            https://computation.llnl.gov/casc/sundials/main.html
+master_sites        http://www.llnl.gov/casc/sundials/download/code/
+
+checksums           rmd160  c489fcb114f6846c7d5aef2d0eb096cb96f3fbc9 \
+                    sha256  9935760931fa6539edd0741acbcf4986770426fd5ea40e50ad4ebed0fc77b0d3
+
+patchfiles          sundials-2.5.0_destdir.patch
+patch.pre_args      -p1
+
+configure.args      --enable-shared \
+                    --disable-mpi \
+                    --without-blas \
+                    --without-lapack
+
+if {![mpi_variant_isset]} {
+    default_variants      +mpich
+}
+
+if {![fortran_variant_isset] && ![mpi_variant_isset]} {
+    if {[variant_isset atlas]} {
+        ui_error "Atlas requires a fortran compiler"
+        return -code error "no fortran compiler selected"
+    }
+
+    # ensure that sundials doesn't try to find a fortran compiler in the user's
+    # path
+    pre-configure {
+        configure.f77
+        configure.f90
+        configure.fc
+    }
+} else {
+    configure.args-delete --without-blas --without-lapack
+    if {![variant_isset atlas]} {
+        configure.args-append --with-blas="-framework Accelerate" \
+                              --with-lapack="-framework Accelerate"
+    }
+}
+
+pre-configure {
+    if {[mpi_variant_isset]} {
+        configure.args-delete --disable-mpi
+        configure.args-append --enable-mpi \
+                              --with-mpicc=${mpi.cc} \
+                              --with-mpif77=${mpi.fc}
+    }
+}
+
+# gcc is hardcoded in libtool, so we change it to use the CC it found from
+# configure
+post-configure {
+    reinplace "s,`gcc,`\$CC," ${worksrcpath}/libtool
+}
+
+variant atlas description {build with atlas (requires a fortran compiler)} {
+    depends_lib-append port:atlas
+    configure.args-append --with-blas=${prefix}/lib/libtatlas.dylib
+    configure.args-append --with-lapack=${prefix}/lib/libtatlas.dylib
+}
+
+livecheck.type      regex
+livecheck.regex     v.(\[0-9.\]+)

Added: trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch
===================================================================
--- trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch	                        (rev 0)
+++ trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch	2014-01-23 20:15:16 UTC (rev 116384)
@@ -0,0 +1,1320 @@
+diff -ur sundials-2.5.0_orig/Makefile.in sundials-2.5.0_patched/Makefile.in
+--- sundials-2.5.0_orig/Makefile.in	2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/Makefile.in	2012-08-20 10:05:22.000000000 -0600
+@@ -58,10 +58,10 @@
+ 	 done
+ 
+ install:
+-	$(mkinstalldirs) $(bindir)
+-	$(INSTALL_PROG)  $(top_builddir)/bin/sundials-config    $(bindir)/
++	$(mkinstalldirs) $(DESTDIR)$(bindir)
++	$(INSTALL_PROG) $(top_builddir)/bin/sundials-config $(DESTDIR)$(bindir)/
+ 	@if test -f $(top_builddir)/bin/fortran-update.sh ; then              \
+-	  $(INSTALL_PROG)  $(top_builddir)/bin/fortran-update.sh  $(bindir)/ ;\
++	  $(INSTALL_PROG)  $(top_builddir)/bin/fortran-update.sh  $(DESTDIR)$(bindir)/ ;\
+ 	fi
+ 	@for i in ${SLV_MODULES} ; do                                         \
+ 	   if test -d $${i} ; then                                            \
+@@ -106,8 +106,8 @@
+ 	 done
+ 
+ uninstall:
+-	rm -f $(bindir)/sundials-config
+-	rm -f $(bindir)/fortran-update.sh
++	rm -f $(DESTDIR)$(bindir)/sundials-config
++	rm -f $(DESTDIR)$(bindir)/fortran-update.sh
+ 	@for i in ${ALL_MODULES} ; do       \
+ 	   if test -d $${i} ; then          \
+ 	     echo "----------------------"; \
+diff -ur sundials-2.5.0_orig/examples/cvode/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/cvode/fcmix_parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/fcmix_parallel/Makefile.in	2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/fcmix_parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -79,23 +79,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/cvode/fcmix_parallel
+-	$(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/README  $(EXS_INSTDIR)/cvode/fcmix_parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel
++	$(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode/fcmix_parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvode/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/cvode/fcmix_serial/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/fcmix_serial/Makefile.in	2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/fcmix_serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -88,35 +88,35 @@
+ 
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/cvode/fcmix_serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/README $(EXS_INSTDIR)/cvode/fcmix_serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
+-	rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode/fcmix_serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvode/parallel/Makefile.in sundials-2.5.0_patched/examples/cvode/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/parallel/Makefile.in	2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/cvode/parallel
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/README $(EXS_INSTDIR)/cvode/parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/README $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.c   $(EXS_INSTDIR)/cvode/parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.out $(EXS_INSTDIR)/cvode/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/cvode/parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/cvode/parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvode/parallel/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/cvode/parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode/parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvode/serial/Makefile.in sundials-2.5.0_patched/examples/cvode/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/serial/Makefile.in	2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -91,35 +91,35 @@
+ 	fi
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/cvode/serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/README $(EXS_INSTDIR)/cvode/serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/README $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(EXS_INSTDIR)/cvode/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(EXS_INSTDIR)/cvode/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(EXS_INSTDIR)/cvode/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(EXS_INSTDIR)/cvode/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/cvode/serial/Makefile
+-	rm -f $(EXS_INSTDIR)/cvode/serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode/serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvode
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvodes/parallel/Makefile.in sundials-2.5.0_patched/examples/cvodes/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/cvodes/parallel/Makefile.in	2012-04-11 18:31:37.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvodes/parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -80,23 +80,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/cvodes/parallel
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvodes/parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/README $(EXS_INSTDIR)/cvodes/parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/README $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.c   $(EXS_INSTDIR)/cvodes/parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.out $(EXS_INSTDIR)/cvodes/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/cvodes/parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/cvodes/parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvodes/parallel/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/cvodes/parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvodes/parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvodes
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvodes/serial/Makefile.in sundials-2.5.0_patched/examples/cvodes/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/cvodes/serial/Makefile.in	2012-04-11 18:31:37.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvodes/serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -98,35 +98,35 @@
+ 	fi
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/cvodes/serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvodes/serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/README $(EXS_INSTDIR)/cvodes/serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/README $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(EXS_INSTDIR)/cvodes/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(EXS_INSTDIR)/cvodes/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(EXS_INSTDIR)/cvodes/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(EXS_INSTDIR)/cvodes/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/cvodes/serial/Makefile
+-	rm -f $(EXS_INSTDIR)/cvodes/serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvodes/serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/cvodes
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/ida/fcmix_parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/fcmix_parallel/Makefile.in	2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/fcmix_parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/ida/fcmix_parallel
+-	$(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/README  $(EXS_INSTDIR)/ida/fcmix_parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel
++	$(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida/fcmix_parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/ida/fcmix_serial/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/fcmix_serial/Makefile.in	2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/fcmix_serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -85,35 +85,35 @@
+ 
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/ida/fcmix_serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/fcmix_serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/README $(EXS_INSTDIR)/ida/fcmix_serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/ida/fcmix_serial/Makefile
+-	rm -f $(EXS_INSTDIR)/ida/fcmix_serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida/fcmix_serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/parallel/Makefile.in sundials-2.5.0_patched/examples/ida/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/parallel/Makefile.in	2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/ida/parallel
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/README $(EXS_INSTDIR)/ida/parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/parallel
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/README $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.c   $(EXS_INSTDIR)/ida/parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.out $(EXS_INSTDIR)/ida/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/ida/parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/ida/parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/ida/parallel/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/ida/parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida/parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/serial/Makefile.in sundials-2.5.0_patched/examples/ida/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/serial/Makefile.in	2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -86,35 +86,35 @@
+ 	fi
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/ida/serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/README $(EXS_INSTDIR)/ida/serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/README $(DESTDIR)$(EXS_INSTDIR)/ida/serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(EXS_INSTDIR)/ida/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(EXS_INSTDIR)/ida/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(EXS_INSTDIR)/ida/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(EXS_INSTDIR)/ida/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/ida/serial/Makefile
+-	rm -f $(EXS_INSTDIR)/ida/serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/ida/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/ida/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/ida/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/ida/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida/serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/ida
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/idas/parallel/Makefile.in sundials-2.5.0_patched/examples/idas/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/idas/parallel/Makefile.in	2012-04-11 18:32:34.000000000 -0600
++++ sundials-2.5.0_patched/examples/idas/parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -81,23 +81,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/idas/parallel
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/idas/parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/README $(EXS_INSTDIR)/idas/parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/parallel
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/README $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.c   $(EXS_INSTDIR)/idas/parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.out $(EXS_INSTDIR)/idas/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/idas/parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/idas/parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/idas/parallel/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/idas/parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/idas/parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/idas
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/idas/serial/Makefile.in sundials-2.5.0_patched/examples/idas/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/idas/serial/Makefile.in	2012-04-11 18:32:34.000000000 -0600
++++ sundials-2.5.0_patched/examples/idas/serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -92,35 +92,35 @@
+ 	fi
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/idas/serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/idas/serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/README $(EXS_INSTDIR)/idas/serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/idas/serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/README $(DESTDIR)$(EXS_INSTDIR)/idas/serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(EXS_INSTDIR)/idas/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(EXS_INSTDIR)/idas/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(EXS_INSTDIR)/idas/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(EXS_INSTDIR)/idas/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/idas/serial/Makefile
+-	rm -f $(EXS_INSTDIR)/idas/serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/idas/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/idas/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/idas/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/idas/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/idas/serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/idas
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/kinsol/fcmix_parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/fcmix_parallel/Makefile.in	2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/fcmix_parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_parallel
+-	$(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/README  $(EXS_INSTDIR)/kinsol/fcmix_parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel
++	$(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/kinsol/fcmix_serial/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/fcmix_serial/Makefile.in	2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/fcmix_serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -85,35 +85,35 @@
+ 
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/README $(EXS_INSTDIR)/kinsol/fcmix_serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
+-	rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
+-	  rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/parallel/Makefile.in sundials-2.5.0_patched/examples/kinsol/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/parallel/Makefile.in	2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/parallel/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -75,23 +75,23 @@
+ 	done
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/kinsol/parallel
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/parallel/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/README $(EXS_INSTDIR)/kinsol/parallel/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.c   $(EXS_INSTDIR)/kinsol/parallel/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.out $(EXS_INSTDIR)/kinsol/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/ ; \
+ 	done
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/kinsol/parallel/Makefile
+-	rm -f $(EXS_INSTDIR)/kinsol/parallel/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/kinsol/parallel/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/kinsol/parallel/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/$${i}.out ; \
+ 	done
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol/parallel
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/serial/Makefile.in sundials-2.5.0_patched/examples/kinsol/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/serial/Makefile.in	2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/serial/Makefile.in	2012-08-20 11:41:31.000000000 -0600
+@@ -85,35 +85,35 @@
+ 	fi
+ 
+ install:
+-	$(mkinstalldirs) $(EXS_INSTDIR)/kinsol/serial
+-	$(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/serial/Makefile
+-	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/README $(EXS_INSTDIR)/kinsol/serial/
++	$(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial
++	$(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/Makefile
++	$(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/
+ 	for i in ${EXAMPLES} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(EXS_INSTDIR)/kinsol/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(EXS_INSTDIR)/kinsol/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(EXS_INSTDIR)/kinsol/serial/ ; \
+-	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(EXS_INSTDIR)/kinsol/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
++	  $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
+ 	done ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(EXS_INSTDIR)/kinsol/serial/Makefile
+-	rm -f $(EXS_INSTDIR)/kinsol/serial/README
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/Makefile
++	rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/README
+ 	for i in ${EXAMPLES} ; do \
+-	  rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
+ 	done
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+ 	for i in ${EXAMPLES_BL} ; do \
+-	  rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
+-	  rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
++	  rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
+ 	done ; \
+ 	fi
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol/serial
+-	$(rminstalldirs) $(EXS_INSTDIR)/kinsol
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial
++	$(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
+ 
+ clean:
+ 	rm -rf .libs
+diff -ur sundials-2.5.0_orig/src/cvode/Makefile.in sundials-2.5.0_patched/src/cvode/Makefile.in
+--- sundials-2.5.0_orig/src/cvode/Makefile.in	2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/src/cvode/Makefile.in	2012-08-20 10:26:47.000000000 -0600
+@@ -91,41 +91,41 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODE_LIB) $(CVODE_LIB_FILES)  $(CVODE_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(CVODE_LIB)
+-	$(mkinstalldirs) $(includedir)/cvode
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODE_LIB) $(libdir)
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode.h         $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_direct.h  $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_dense.h   $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_band.h    $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_diag.h    $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spils.h   $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spbcgs.h  $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spgmr.h   $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_sptfqmr.h $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bandpre.h $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bbdpre.h  $(includedir)/cvode/
+-	$(INSTALL_HEADER) $(top_srcdir)/src/cvode/cvode_impl.h        $(includedir)/cvode/
++	$(mkinstalldirs) $(DESTDIR)$(includedir)/cvode
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODE_LIB) $(DESTDIR)$(libdir)
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode.h         $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_direct.h  $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_dense.h   $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_band.h    $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_diag.h    $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spils.h   $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spbcgs.h  $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spgmr.h   $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_sptfqmr.h $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bandpre.h $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bbdpre.h  $(DESTDIR)$(includedir)/cvode/
++	$(INSTALL_HEADER) $(top_srcdir)/src/cvode/cvode_impl.h        $(DESTDIR)$(includedir)/cvode/
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+-	  $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_lapack.h  $(includedir)/cvode/ ; \
++	  $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_lapack.h  $(DESTDIR)$(includedir)/cvode/ ; \
+ 	fi
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(CVODE_LIB)
+-	rm -f $(includedir)/cvode/cvode.h
+-	rm -f $(includedir)/cvode/cvode_direct.h
+-	rm -f $(includedir)/cvode/cvode_dense.h
+-	rm -f $(includedir)/cvode/cvode_band.h
+-	rm -f $(includedir)/cvode/cvode_diag.h
+-	rm -f $(includedir)/cvode/cvode_lapack.h
+-	rm -f $(includedir)/cvode/cvode_spils.h
+-	rm -f $(includedir)/cvode/cvode_spbcgs.h
+-	rm -f $(includedir)/cvode/cvode_spgmr.h
+-	rm -f $(includedir)/cvode/cvode_sptfqmr.h
+-	rm -f $(includedir)/cvode/cvode_bandpre.h
+-	rm -f $(includedir)/cvode/cvode_bbdpre.h
+-	rm -f $(includedir)/cvode/cvode_impl.h
+-	$(rminstalldirs) $(includedir)/cvode
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(CVODE_LIB)
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_direct.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_dense.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_band.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_diag.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_lapack.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_spils.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_spbcgs.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_spgmr.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_sptfqmr.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_bandpre.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_bbdpre.h
++	rm -f $(DESTDIR)$(includedir)/cvode/cvode_impl.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/cvode
+ 
+ shared:
+ 	@cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/cvode/fcmix/Makefile.in sundials-2.5.0_patched/src/cvode/fcmix/Makefile.in
+--- sundials-2.5.0_orig/src/cvode/fcmix/Makefile.in	2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/src/cvode/fcmix/Makefile.in	2012-08-20 10:37:05.000000000 -0600
+@@ -78,11 +78,11 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FCVODE_LIB) $(FCVODE_LIB_FILES) $(FCVODE_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)
+ 
+ install: $(FCVODE_LIB)
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(FCVODE_LIB) $(libdir)
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(FCVODE_LIB) $(DESTDIR)$(libdir)
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FCVODE_LIB)
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FCVODE_LIB)
+ 
+ clean:
+ 	$(LIBTOOL) --mode=clean rm -f $(FCVODE_LIB)
+diff -ur sundials-2.5.0_orig/src/cvodes/Makefile.in sundials-2.5.0_patched/src/cvodes/Makefile.in
+--- sundials-2.5.0_orig/src/cvodes/Makefile.in	2012-04-11 18:31:36.000000000 -0600
++++ sundials-2.5.0_patched/src/cvodes/Makefile.in	2012-08-20 10:39:22.000000000 -0600
+@@ -91,41 +91,41 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODES_LIB) $(CVODES_LIB_FILES) $(CVODES_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(CVODES_LIB)
+-	$(mkinstalldirs) $(includedir)/cvodes
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODES_LIB) $(libdir)
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes.h         $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_direct.h  $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_dense.h   $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_band.h    $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_diag.h    $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spils.h   $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spbcgs.h  $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spgmr.h   $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_sptfqmr.h $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bandpre.h $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bbdpre.h  $(includedir)/cvodes/
+-	$(INSTALL_HEADER) $(top_srcdir)/src/cvodes/cvodes_impl.h        $(includedir)/cvodes/
++	$(mkinstalldirs) $(DESTDIR)$(includedir)/cvodes
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODES_LIB) $(DESTDIR)$(libdir)
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes.h         $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_direct.h  $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_dense.h   $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_band.h    $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_diag.h    $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spils.h   $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spbcgs.h  $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spgmr.h   $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_sptfqmr.h $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bandpre.h $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bbdpre.h  $(DESTDIR)$(includedir)/cvodes/
++	$(INSTALL_HEADER) $(top_srcdir)/src/cvodes/cvodes_impl.h        $(DESTDIR)$(includedir)/cvodes/
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+-	  $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_lapack.h  $(includedir)/cvodes/ ; \
++	  $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_lapack.h  $(DESTDIR)$(includedir)/cvodes/ ; \
+ 	fi
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(CVODES_LIB)
+-	rm -f $(includedir)/cvodes/cvodes.h
+-	rm -f $(includedir)/cvodes/cvodes_direct.h
+-	rm -f $(includedir)/cvodes/cvodes_dense.h
+-	rm -f $(includedir)/cvodes/cvodes_band.h
+-	rm -f $(includedir)/cvodes/cvodes_diag.h
+-	rm -f $(includedir)/cvodes/cvodes_lapack.h
+-	rm -f $(includedir)/cvodes/cvodes_spils.h
+-	rm -f $(includedir)/cvodes/cvodes_spbcgs.h
+-	rm -f $(includedir)/cvodes/cvodes_spgmr.h
+-	rm -f $(includedir)/cvodes/cvodes_sptfqmr.h
+-	rm -f $(includedir)/cvodes/cvodes_bandpre.h
+-	rm -f $(includedir)/cvodes/cvodes_bbdpre.h
+-	rm -f $(includedir)/cvodes/cvodes_impl.h
+-	$(rminstalldirs) ${includedir}/cvodes
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(CVODES_LIB)
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_direct.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_dense.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_band.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_diag.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_lapack.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spils.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spbcgs.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spgmr.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_sptfqmr.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_bandpre.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_bbdpre.h
++	rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_impl.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/cvodes
+ 
+ shared:
+ 	@cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/ida/Makefile.in sundials-2.5.0_patched/src/ida/Makefile.in
+--- sundials-2.5.0_orig/src/ida/Makefile.in	2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/src/ida/Makefile.in	2012-08-20 10:40:41.000000000 -0600
+@@ -91,37 +91,37 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDA_LIB) $(IDA_LIB_FILES) $(IDA_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(IDA_LIB)
+-	$(mkinstalldirs) $(includedir)/ida
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDA_LIB) $(libdir)
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida.h         $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_direct.h  $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_dense.h   $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_band.h    $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spbcgs.h  $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spgmr.h   $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_sptfqmr.h $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_bbdpre.h  $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spils.h   $(includedir)/ida/
+-	$(INSTALL_HEADER) $(top_srcdir)/src/ida/ida_impl.h        $(includedir)/ida/
++	$(mkinstalldirs) $(DESTDIR)$(includedir)/ida
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDA_LIB) $(DESTDIR)$(libdir)
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida.h         $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_direct.h  $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_dense.h   $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_band.h    $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spbcgs.h  $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spgmr.h   $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_sptfqmr.h $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_bbdpre.h  $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spils.h   $(DESTDIR)$(includedir)/ida/
++	$(INSTALL_HEADER) $(top_srcdir)/src/ida/ida_impl.h        $(DESTDIR)$(includedir)/ida/
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+-	  $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_lapack.h  $(includedir)/ida/ ; \
++	  $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_lapack.h  $(DESTDIR)$(includedir)/ida/ ; \
+ 	fi
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(IDA_LIB)
+-	rm -f $(includedir)/ida/ida.h
+-	rm -f $(includedir)/ida/ida_direct.h
+-	rm -f $(includedir)/ida/ida_dense.h
+-	rm -f $(includedir)/ida/ida_band.h
+-	rm -f $(includedir)/ida/ida_lapack.h
+-	rm -f $(includedir)/ida/ida_spbcgs.h
+-	rm -f $(includedir)/ida/ida_spgmr.h
+-	rm -f $(includedir)/ida/ida_sptfqmr.h
+-	rm -f $(includedir)/ida/ida_bbdpre.h
+-	rm -f $(includedir)/ida/ida_spils.h
+-	rm -f $(includedir)/ida/ida_impl.h
+-	$(rminstalldirs) ${includedir}/ida
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(IDA_LIB)
++	rm -f $(DESTDIR)$(includedir)/ida/ida.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_direct.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_dense.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_band.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_lapack.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_spbcgs.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_spgmr.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_sptfqmr.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_bbdpre.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_spils.h
++	rm -f $(DESTDIR)$(includedir)/ida/ida_impl.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/ida
+ 
+ shared:
+ 	@cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/ida/fcmix/Makefile.in sundials-2.5.0_patched/src/ida/fcmix/Makefile.in
+--- sundials-2.5.0_orig/src/ida/fcmix/Makefile.in	2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/src/ida/fcmix/Makefile.in	2012-08-20 10:40:59.000000000 -0600
+@@ -78,11 +78,11 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FIDA_LIB) $(FIDA_LIB_FILES) $(FIDA_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)
+ 
+ install: $(FIDA_LIB)
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(FIDA_LIB) $(libdir)
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(FIDA_LIB) $(DESTDIR)$(libdir)
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FIDA_LIB)
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FIDA_LIB)
+ 
+ clean:
+ 	$(LIBTOOL) --mode=clean rm -f $(FIDA_LIB)
+diff -ur sundials-2.5.0_orig/src/idas/Makefile.in sundials-2.5.0_patched/src/idas/Makefile.in
+--- sundials-2.5.0_orig/src/idas/Makefile.in	2012-04-11 18:32:34.000000000 -0600
++++ sundials-2.5.0_patched/src/idas/Makefile.in	2012-08-20 10:42:08.000000000 -0600
+@@ -91,37 +91,37 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDAS_LIB) $(IDAS_LIB_FILES) $(IDAS_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(IDAS_LIB)
+-	$(mkinstalldirs) $(includedir)/idas
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDAS_LIB) $(libdir)
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas.h         $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_direct.h  $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_dense.h   $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_band.h    $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spbcgs.h  $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spgmr.h   $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_sptfqmr.h $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_bbdpre.h  $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spils.h   $(includedir)/idas/
+-	$(INSTALL_HEADER) $(top_srcdir)/src/idas/idas_impl.h        $(includedir)/idas/
++	$(mkinstalldirs) $(DESTDIR)$(includedir)/idas
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDAS_LIB) $(DESTDIR)$(libdir)
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas.h         $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_direct.h  $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_dense.h   $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_band.h    $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spbcgs.h  $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spgmr.h   $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_sptfqmr.h $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_bbdpre.h  $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spils.h   $(DESTDIR)$(includedir)/idas/
++	$(INSTALL_HEADER) $(top_srcdir)/src/idas/idas_impl.h        $(DESTDIR)$(includedir)/idas/
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+-	  $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_lapack.h  $(includedir)/idas/ ; \
++	  $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_lapack.h  $(DESTDIR)$(includedir)/idas/ ; \
+ 	fi
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(IDAS_LIB)
+-	rm -f $(includedir)/idas/idas.h
+-	rm -f $(includedir)/idas/idas_direct.h
+-	rm -f $(includedir)/idas/idas_dense.h
+-	rm -f $(includedir)/idas/idas_band.h
+-	rm -f $(includedir)/idas/idas_lapack.h
+-	rm -f $(includedir)/idas/idas_spbcgs.h
+-	rm -f $(includedir)/idas/idas_spgmr.h
+-	rm -f $(includedir)/idas/idas_sptfqmr.h
+-	rm -f $(includedir)/idas/idas_bbdpre.h
+-	rm -f $(includedir)/idas/idas_spils.h
+-	rm -f $(includedir)/idas/idas_impl.h
+-	$(rminstalldirs) ${includedir}/idas
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(IDAS_LIB)
++	rm -f $(DESTDIR)$(includedir)/idas/idas.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_direct.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_dense.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_band.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_lapack.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_spbcgs.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_spgmr.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_sptfqmr.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_bbdpre.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_spils.h
++	rm -f $(DESTDIR)$(includedir)/idas/idas_impl.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/idas
+ 
+ shared:
+ 	@cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/kinsol/Makefile.in sundials-2.5.0_patched/src/kinsol/Makefile.in
+--- sundials-2.5.0_orig/src/kinsol/Makefile.in	2012-04-11 18:32:58.000000000 -0600
++++ sundials-2.5.0_patched/src/kinsol/Makefile.in	2012-08-20 10:43:23.000000000 -0600
+@@ -91,37 +91,37 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(KINSOL_LIB) $(KINSOL_LIB_FILES) $(KINSOL_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
+ 
+ install: $(KINSOL_LIB)
+-	$(mkinstalldirs) $(includedir)/kinsol
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(KINSOL_LIB) $(libdir)
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol.h         $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_direct.h  $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_dense.h   $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_band.h    $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spgmr.h   $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spbcgs.h  $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_sptfqmr.h $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_bbdpre.h  $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spils.h   $(includedir)/kinsol/
+-	$(INSTALL_HEADER) $(top_srcdir)/src/kinsol/kinsol_impl.h        $(includedir)/kinsol/
++	$(mkinstalldirs) $(DESTDIR)$(includedir)/kinsol
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(KINSOL_LIB) $(DESTDIR)$(libdir)
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol.h         $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_direct.h  $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_dense.h   $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_band.h    $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spgmr.h   $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spbcgs.h  $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_sptfqmr.h $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_bbdpre.h  $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spils.h   $(DESTDIR)$(includedir)/kinsol/
++	$(INSTALL_HEADER) $(top_srcdir)/src/kinsol/kinsol_impl.h        $(DESTDIR)$(includedir)/kinsol/
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+-	  $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_lapack.h  $(includedir)/kinsol/ ; \
++	  $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_lapack.h  $(DESTDIR)$(includedir)/kinsol/ ; \
+ 	fi
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(KINSOL_LIB)
+-	rm -f $(includedir)/kinsol/kinsol.h
+-	rm -f $(includedir)/kinsol/kinsol_direct.h
+-	rm -f $(includedir)/kinsol/kinsol_dense.h
+-	rm -f $(includedir)/kinsol/kinsol_band.h
+-	rm -f $(includedir)/kinsol/kinsol_lapack.h
+-	rm -f $(includedir)/kinsol/kinsol_spgmr.h
+-	rm -f $(includedir)/kinsol/kinsol_spbcgs.h
+-	rm -f $(includedir)/kinsol/kinsol_sptfqmr.h
+-	rm -f $(includedir)/kinsol/kinsol_bbdpre.h
+-	rm -f $(includedir)/kinsol/kinsol_spils.h
+-	rm -f $(includedir)/kinsol/kinsol_impl.h
+-	$(rminstalldirs) ${includedir}/kinsol
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(KINSOL_LIB)
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_direct.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_dense.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_band.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_lapack.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spgmr.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spbcgs.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_sptfqmr.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_bbdpre.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spils.h
++	rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_impl.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/kinsol
+ 
+ shared:
+ 	@cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/kinsol/fcmix/Makefile.in sundials-2.5.0_patched/src/kinsol/fcmix/Makefile.in
+--- sundials-2.5.0_orig/src/kinsol/fcmix/Makefile.in	2012-04-11 18:32:58.000000000 -0600
++++ sundials-2.5.0_patched/src/kinsol/fcmix/Makefile.in	2012-08-20 10:43:45.000000000 -0600
+@@ -78,11 +78,11 @@
+ 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FKINSOL_LIB) $(FKINSOL_LIB_FILES) $(FKINSOL_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)
+ 
+ install: $(FKINSOL_LIB)
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(FKINSOL_LIB) $(libdir)
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(FKINSOL_LIB) $(DESTDIR)$(libdir)
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FKINSOL_LIB)
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FKINSOL_LIB)
+ 
+ clean:
+ 	$(LIBTOOL) --mode=clean rm -f $(FKINSOL_LIB)
+diff -ur sundials-2.5.0_orig/src/nvec_par/Makefile.in sundials-2.5.0_patched/src/nvec_par/Makefile.in
+--- sundials-2.5.0_orig/src/nvec_par/Makefile.in	2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/src/nvec_par/Makefile.in	2012-08-20 10:46:47.000000000 -0600
+@@ -75,23 +75,23 @@
+ 	 fi
+ 
+ install: $(NVECPAR_LIB) $(FNVECPAR_LIB)
+-	$(mkinstalldirs) $(includedir)/nvector
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECPAR_LIB) $(libdir)
+-	$(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_parallel.h $(includedir)/nvector/
++	$(mkinstalldirs) $(DESTDIR)$(includedir)/nvector
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECPAR_LIB) $(DESTDIR)$(libdir)
++	$(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_parallel.h $(DESTDIR)$(includedir)/nvector/
+ 	@if test "X${FCMIX_ENABLED}" = "Xyes"; then                                    \
+-	   echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${libdir}" ; \
+-	   ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${libdir} ;        \
++	   echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${DESTDIR}${libdir}" ; \
++	   ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${DESTDIR}${libdir} ;        \
+ 	 fi
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(NVECPAR_LIB)
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(NVECPAR_LIB)
+ 	@if test "X${FCMIX_ENABLED}" = "Xyes"; then                             \
+-	   echo "${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECPAR_LIB}" ; \
+-	   ${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECPAR_LIB} ;        \
++	   echo "${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECPAR_LIB}" ; \
++	   ${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECPAR_LIB} ;        \
+ 	 fi
+-	rm -f $(includedir)/nvector/nvector_parallel.h
+-	$(rminstalldirs) ${includedir}/nvector
++	rm -f $(DESTDIR)$(includedir)/nvector/nvector_parallel.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/nvector
+ 
+ shared:
+ 	@cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/nvec_ser/Makefile.in sundials-2.5.0_patched/src/nvec_ser/Makefile.in
+--- sundials-2.5.0_orig/src/nvec_ser/Makefile.in	2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/src/nvec_ser/Makefile.in	2012-08-20 10:48:11.000000000 -0600
+@@ -72,23 +72,23 @@
+ 	fi
+ 
+ install: $(NVECSER_LIB) $(FNVECSER_LIB)
+-	$(mkinstalldirs) $(includedir)/nvector
+-	$(mkinstalldirs) $(libdir)
+-	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECSER_LIB) $(libdir)
+-	$(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_serial.h $(includedir)/nvector/
++	$(mkinstalldirs) $(DESTDIR)$(includedir)/nvector
++	$(mkinstalldirs) $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECSER_LIB) $(DESTDIR)$(libdir)
++	$(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_serial.h $(DESTDIR)$(includedir)/nvector/
+ 	@if test "X${FCMIX_ENABLED}" = "Xyes"; then                                    \
+-	   echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${libdir}" ; \
+-	   ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${libdir} ;        \
++	   echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${DESTDIR}${libdir}" ; \
++	   ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${DESTDIR}${libdir} ;        \
+ 	 fi
+ 
+ uninstall:
+-	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(NVECSER_LIB)
++	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(NVECSER_LIB)
+ 	@if test "X${FCMIX_ENABLED}" = "Xyes"; then                             \
+-	   echo "${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECSER_LIB}" ; \
+-	   ${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECSER_LIB} ;        \
++	   echo "${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECSER_LIB}" ; \
++	   ${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECSER_LIB} ;        \
+ 	 fi
+-	rm -f $(includedir)/nvector/nvector_serial.h
+-	$(rminstalldirs) ${includedir}/nvector
++	rm -f $(DESTDIR)$(includedir)/nvector/nvector_serial.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/nvector
+ 
+ shared:
+ 	@cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/sundials/Makefile.in sundials-2.5.0_patched/src/sundials/Makefile.in
+--- sundials-2.5.0_orig/src/sundials/Makefile.in	2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/src/sundials/Makefile.in	2012-08-20 10:48:43.000000000 -0600
+@@ -70,38 +70,38 @@
+ lib_with_bl: $(SHARED_LIB_FILES)
+ 
+ install:
+-	$(mkinstalldirs)  $(includedir)/sundials
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_direct.h     $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_band.h       $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_dense.h      $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_iterative.h  $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spgmr.h      $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spbcgs.h     $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_sptfqmr.h    $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_math.h       $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_types.h      $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_nvector.h    $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_fnvector.h   $(includedir)/sundials/
+-	$(INSTALL_HEADER) $(top_builddir)/include/sundials/sundials_config.h   $(includedir)/sundials/
++	$(mkinstalldirs)  $(DESTDIR)$(includedir)/sundials
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_direct.h     $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_band.h       $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_dense.h      $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_iterative.h  $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spgmr.h      $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spbcgs.h     $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_sptfqmr.h    $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_math.h       $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_types.h      $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_nvector.h    $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_fnvector.h   $(DESTDIR)$(includedir)/sundials/
++	$(INSTALL_HEADER) $(top_builddir)/include/sundials/sundials_config.h   $(DESTDIR)$(includedir)/sundials/
+ 	@if test "X${LAPACK_ENABLED}" = "Xyes"; then \
+-	  $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_lapack.h     $(includedir)/sundials/ ; \
++	  $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_lapack.h     $(DESTDIR)$(includedir)/sundials/ ; \
+ 	fi
+ 
+ uninstall:
+-	rm -f $(includedir)/sundials/sundials_direct.h
+-	rm -f $(includedir)/sundials/sundials_band.h
+-	rm -f $(includedir)/sundials/sundials_dense.h
+-	rm -f $(includedir)/sundials/sundials_lapack.h
+-	rm -f $(includedir)/sundials/sundials_iterative.h
+-	rm -f $(includedir)/sundials/sundials_spgmr.h
+-	rm -f $(includedir)/sundials/sundials_spbcgs.h
+-	rm -f $(includedir)/sundials/sundials_sptfqmr.h
+-	rm -f $(includedir)/sundials/sundials_math.h
+-	rm -f $(includedir)/sundials/sundials_types.h
+-	rm -f $(includedir)/sundials/sundials_nvector.h
+-	rm -f $(includedir)/sundials/sundials_fnvector.h
+-	rm -f $(includedir)/sundials/sundials_config.h
+-	$(rminstalldirs) $(includedir)/sundials
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_direct.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_band.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_dense.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_lapack.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_iterative.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_spgmr.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_spbcgs.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_sptfqmr.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_math.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_types.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_nvector.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_fnvector.h
++	rm -f $(DESTDIR)$(includedir)/sundials/sundials_config.h
++	$(rminstalldirs) $(DESTDIR)$(includedir)/sundials
+ 
+ clean:
+ 	rm -f $(SHARED_LIB_FILES)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/8727a293/attachment-0001.html>


More information about the macports-changes mailing list