diff src/DLD-FUNCTIONS/__voronoi__.cc @ 14043:f913363318e0 stable

handle new names and locations of qhull include files (bug #33712) * src/DLD-FUNCTIONS/oct-qhull.h: New file. Handle details of which Qhull header files to include here. * src/DLD-FUNCTIONS/config-module.awk: Include oct-qhull.h in list of EXTRA_DIST files. * configure.ac: Check for qhull/libqhull.h, libqhull.h, qhull/qhull.h, and qhull.h instead of qhull/libqhull_a.h. * __delaunayn__.cc, __voronoi__.cc, convhulln.cc: Include oct-qhull.h instead of qhull/qhull_a.h. * acinclude.m4 (OCTAVE_CHECK_QHULL_VERSION, OCTAVE_CHECK_QHULL_OK): Look for various qhull header files.
author John W. Eaton <jwe@octave.org>
date Tue, 13 Dec 2011 16:53:22 -0500
parents 7b5da9754554
children 72c96de7a403
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/__voronoi__.cc	Tue Dec 13 12:16:50 2011 -0500
+++ b/src/DLD-FUNCTIONS/__voronoi__.cc	Tue Dec 13 16:53:22 2011 -0500
@@ -45,14 +45,11 @@
 #include "error.h"
 #include "oct-obj.h"
 
-#ifdef HAVE_QHULL
-extern "C" {
-#include <qhull/qhull_a.h>
-}
-
-#ifdef NEED_QHULL_VERSION
+#if defined (HAVE_QHULL)
+# include "oct-qhull.h"
+# if defined (NEED_QHULL_VERSION)
 char qh_version[] = "__voronoi__.oct 2007-07-24";
-#endif
+# endif
 #endif
 
 DEFUN_DLD (__voronoi__, args, ,
@@ -67,7 +64,7 @@
 
   std::string caller = args(0).string_value ();
 
-#ifdef HAVE_QHULL
+#if defined (HAVE_QHULL)
 
   retval(0) = 0.0;