# HG changeset patch # User jwe # Date 769727095 0 # Node ID 49345c5037416685a5c522e8f3904a97db452ff2 # Parent 875977d1f8cf125edd523e4801b584eb262a8389 [project @ 1994-05-23 21:01:01 by jwe] diff --git a/Makeconf.in b/Makeconf.in --- a/Makeconf.in +++ b/Makeconf.in @@ -117,6 +117,14 @@ # The type of computer we are running on. target_host_type = @target_host_type@ +# Normally this is the same as $(prefix). With --run-in-place it is +# $(srcdir). +OCTAVE_HOME = @OCTAVE_HOME@ + +# These are not used unless RUN_IN_PLACE is defined. +OCTAVE_INFO_DIR = @OCTAVE_INFO_DIR@ +OCTAVE_LIB_DIR = @OCTAVE_LIB_DIR@ + # The following pattern rules and the substitution functions require # GNU make. If you don't have it, get it! diff --git a/acconfig.h b/acconfig.h --- a/acconfig.h +++ b/acconfig.h @@ -43,6 +43,10 @@ /* Define if you don't have NPSOL. */ #undef NPSOL_MISSING +/* Define to make Octave look for info files and function files in the + directory tree as the sources. */ +#undef RUN_IN_PLACE + /* Define if this is Octave. */ #undef OCTAVE_SOURCE diff --git a/src/Makefile.in b/src/Makefile.in --- a/src/Makefile.in +++ b/src/Makefile.in @@ -147,7 +147,9 @@ @echo "Making defaults.h from defaults.h.in..." @(sed < $(srcdir)/defaults.h.in > defaults.h.tmp \ -e 's;%DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";' \ - -e 's;%OCTAVE_HOME%;\"${prefix}\";') + -e 's;%OCTAVE_HOME%;\"${OCTAVE_HOME}\";' + -e 's;%OCTAVE_LIB_DIR%;\"${OCTAVE_LIB_DIR}\";') + -e 's;%OCTAVE_INFO_DIR%;\"${OCTAVE_INFO_DIR}\";' @$(srcdir)/move-if-change defaults.h.tmp defaults.h include $(MAKEDEPS) diff --git a/src/defaults.h.in b/src/defaults.h.in --- a/src/defaults.h.in +++ b/src/defaults.h.in @@ -1,7 +1,7 @@ // defaults.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,8 @@ */ -#if !defined (_defaults_h) -#define _defaults_h 1 +#if !defined (octave_defaults_h) +#define octave_defaults_h 1 #ifndef DEFAULT_PAGER #define DEFAULT_PAGER %DEFAULT_PAGER% @@ -32,6 +32,14 @@ #define OCTAVE_HOME %OCTAVE_HOME% #endif +#ifndef OCTAVE_LIB_DIR +#define OCTAVE_LIB_DIR %OCTAVE_LIB_DIR% +#endif + +#ifndef OCTAVE_INFO_DIR +#define OCTAVE_INFO_DIR %OCTAVE_INFO_DIR% +#endif + #endif /*