diff src/defaults.cc @ 5909:a6a2423a9c25

[project @ 2006-07-27 19:35:22 by jwe]
author jwe
date Thu, 27 Jul 2006 19:35:22 +0000
parents 5e41e06f6a78
children a0dafb51dd06
line wrap: on
line diff
--- a/src/defaults.cc	Thu Jul 27 17:16:14 2006 +0000
+++ b/src/defaults.cc	Thu Jul 27 19:35:22 2006 +0000
@@ -67,6 +67,7 @@
 std::string Vlibexec_dir;
 std::string Varch_lib_dir;
 std::string Vlocal_arch_lib_dir;
+std::string Vlocal_api_arch_lib_dir;
 std::string Vlocal_ver_arch_lib_dir;
 
 std::string Vlocal_ver_oct_file_dir;
@@ -159,6 +160,12 @@
 }
 
 static void
+set_default_local_api_arch_lib_dir (void)
+{
+  Vlocal_api_arch_lib_dir = subst_octave_home (OCTAVE_LOCALAPIARCHLIBDIR);
+}
+
+static void
 set_default_local_ver_arch_lib_dir (void)
 {
   Vlocal_ver_arch_lib_dir = subst_octave_home (OCTAVE_LOCALVERARCHLIBDIR);
@@ -228,6 +235,7 @@
 set_exec_path (const std::string& path)
 {
   VEXEC_PATH = Vlocal_ver_arch_lib_dir + dir_path::path_sep_str
+    + Vlocal_api_arch_lib_dir + dir_path::path_sep_str
     + Vlocal_arch_lib_dir + dir_path::path_sep_str
     + Varch_lib_dir + dir_path::path_sep_str
     + Vbin_dir;
@@ -356,10 +364,10 @@
 
   set_default_arch_lib_dir ();
 
+  set_default_local_ver_arch_lib_dir ();
+  set_default_local_api_arch_lib_dir ();
   set_default_local_arch_lib_dir ();
 
-  set_default_local_ver_arch_lib_dir ();
-
   set_default_local_ver_oct_file_dir ();
   set_default_local_api_oct_file_dir ();
   set_default_local_oct_file_dir ();