diff liboctave/SparsedbleLU.cc @ 5203:dbeafbc0ff64

[project @ 2005-03-15 00:58:55 by jwe]
author jwe
date Tue, 15 Mar 2005 00:58:56 +0000
parents 57077d0ddc8e
children 23b37da9fd5b
line wrap: on
line diff
--- a/liboctave/SparsedbleLU.cc
+++ b/liboctave/SparsedbleLU.cc
@@ -37,13 +37,16 @@
 
 template class sparse_base_lu <SparseMatrix, double, SparseMatrix, double>;
 
+#ifdef HAVE_UMFPACK
 // Include the UMFPACK functions
 extern "C" {
-#include "umfpack.h"
+#include <umfpack/umfpack.h>
 }
+#endif
 
 SparseLU::SparseLU (const SparseMatrix& a, double piv_thres)
 {
+#ifdef HAVE_UMFPACK
   int nr = a.rows ();
   int nc = a.cols ();
 
@@ -204,11 +207,15 @@
 	    }
 	}
     }
+#else
+  (*current_liboctave_error_handler) ("UMFPACK not installed");
+#endif
 }
 
 SparseLU::SparseLU (const SparseMatrix& a, const ColumnVector& Qinit,
 		    double piv_thres, bool FixedQ)
 {
+#ifdef HAVE_UMFPACK
   int nr = a.rows ();
   int nc = a.cols ();
 
@@ -382,6 +389,9 @@
 	    }
 	}
     }
+#else
+  (*current_liboctave_error_handler) ("UMFPACK not installed");
+#endif
 }
 
 /*