2012-06-30 Glenn Morris <rgm@gnu.org>
+ * nsterm.m (ns_init_paths): Ignore site-lisp if --no-site-lisp.
+
* epaths.in (PATH_SITELOADSEARCH): New.
* lread.c (init_lread): Use PATH_SITELOADSEARCH.
This is rather than relying on --enable-locallisppath elements
@"site-lisp", @"lisp", @"leim", nil]];
NSEnumerator *pathEnum = [paths objectEnumerator];
resourcePaths = @"";
+ /* Hack to skip site-lisp. */
+ if (no_site_lisp) resourcePath = [pathEnum nextObject];
while (resourcePath = [pathEnum nextObject])
{
if ([fileManager fileExistsAtPath: resourcePath isDirectory: &isDir])