changeset 187:30a305837ae6

config.h: Define macros to Octave directories (fixes issue #4) * ax_octave.m4 (AX_OCTAVE): Define macros HAVE_OCTAVE, OCTAVE_INCLUDEDIR, and OCTAVE_LIBRARYDIR. These should not be used by code, but will ensure a rebuild occurs whenever a different Octave is configured.
author Mike Miller <mtmiller@octave.org>
date Thu, 09 Jun 2016 12:08:25 -0700
parents 277b1e172123
children 4adc5d020dda
files m4/ax_octave.m4
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/m4/ax_octave.m4	Wed Jun 08 16:58:39 2016 -0700
+++ b/m4/ax_octave.m4	Thu Jun 09 12:08:25 2016 -0700
@@ -202,6 +202,13 @@
 Make sure the Octave development package is installed.
 ========================================================================]])
 	])
+	AS_IF([test -z "$ax_octave_ok"], [
+		AC_DEFINE([HAVE_OCTAVE], [1], [Define to 1 if you have Octave.])
+		AC_DEFINE_UNQUOTED([OCTAVE_INCLUDEDIR], ["$OCTAVE_INCLUDEDIR"],
+				   [Octave include directory.])
+		AC_DEFINE_UNQUOTED([OCTAVE_LIBRARYDIR], ["$OCTAVE_LIBRARYDIR"],
+				   [Octave library directory.])
+	])
 
 	AC_SUBST([OCTAVE_LDFLAGS])
 	AC_SUBST([OCTAVE_CPPFLAGS])