Mercurial > pytave
comparison m4/ax_octave.m4 @ 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 | 132fec49e438 |
comparison
equal
deleted
inserted
replaced
186:277b1e172123 | 187:30a305837ae6 |
---|---|
200 Can not link with Octave. | 200 Can not link with Octave. |
201 | 201 |
202 Make sure the Octave development package is installed. | 202 Make sure the Octave development package is installed. |
203 ========================================================================]]) | 203 ========================================================================]]) |
204 ]) | 204 ]) |
205 AS_IF([test -z "$ax_octave_ok"], [ | |
206 AC_DEFINE([HAVE_OCTAVE], [1], [Define to 1 if you have Octave.]) | |
207 AC_DEFINE_UNQUOTED([OCTAVE_INCLUDEDIR], ["$OCTAVE_INCLUDEDIR"], | |
208 [Octave include directory.]) | |
209 AC_DEFINE_UNQUOTED([OCTAVE_LIBRARYDIR], ["$OCTAVE_LIBRARYDIR"], | |
210 [Octave library directory.]) | |
211 ]) | |
205 | 212 |
206 AC_SUBST([OCTAVE_LDFLAGS]) | 213 AC_SUBST([OCTAVE_LDFLAGS]) |
207 AC_SUBST([OCTAVE_CPPFLAGS]) | 214 AC_SUBST([OCTAVE_CPPFLAGS]) |
208 AC_SUBST([OCTAVE_LIBS]) | 215 AC_SUBST([OCTAVE_LIBS]) |
209 AC_SUBST([OCTAVE_INCLUDEDIR]) | 216 AC_SUBST([OCTAVE_INCLUDEDIR]) |