# HG changeset patch # User Mike Miller # Date 1429010690 14400 # Node ID 6450086b19346c37a0c3892957cc5a46fff27465 # Parent d99739894a0bf22e9b646e1d3693ba9587313311 build: Fix values used for OCTAVE_CPPFLAGS and OCTAVE_LIBS * Makefile.am: Use OCTAVE_LIBS autoconf variable instead of hardcoding. * m4/ax_octave.m4: Update OCTAVE_CPPFLAGS and OCTAVE_LIBS to be correct for recent versions of Octave (>= 3.8.0). diff -r d99739894a0b -r 6450086b1934 Makefile.am --- a/Makefile.am Tue Apr 14 07:21:31 2015 -0400 +++ b/Makefile.am Tue Apr 14 07:24:50 2015 -0400 @@ -8,8 +8,8 @@ # Having -module in LDFLAGS lets us use a non-standard library name # (e.g. _pytave instead of libpytave) -_pytave_la_LDFLAGS = -module -L@OCTAVE_LIBRARYDIR@ -loctinterp -loctave \ --lcruft -l@BOOST_PYTHON_LIB@ -R @PYTAVE_OCTAVE_RPATH@ +_pytave_la_LDFLAGS = -module -L@OCTAVE_LIBRARYDIR@ @OCTAVE_LIBS@ \ +-l@BOOST_PYTHON_LIB@ -R @PYTAVE_OCTAVE_RPATH@ _pytave_la_SOURCES = octave_to_python.cc pytave.cc python_to_octave.cc \ arrayobjectdefs.h octave_to_python.h pytavedefs.h exceptions.h \ diff -r d99739894a0b -r 6450086b1934 m4/ax_octave.m4 --- a/m4/ax_octave.m4 Tue Apr 14 07:21:31 2015 -0400 +++ b/m4/ax_octave.m4 Tue Apr 14 07:24:50 2015 -0400 @@ -144,8 +144,8 @@ fi OCTAVE_LDFLAGS="-L$OCTAVE_LIBRARYDIR" - OCTAVE_LIBS="-loctave -lcruft -loctinterp" - OCTAVE_CPPFLAGS="-I$OCTAVE_INCLUDEDIR" + OCTAVE_LIBS="-loctinterp -loctave" + OCTAVE_CPPFLAGS="-I$OCTAVE_INCLUDEDIR -I$OCTAVE_INCLUDEDIR/octave" AC_CACHE_CHECK([whether linking to Octave works], [ax_octave_cv_lib_octave], [