setup/dirs: adjust get-lib-search-dirs and use if find-dll-dir

Add `find-dll-dir` to the end, not the beginning, so that it doesn't
override the user's directory. Improve checking for whether the DLL
directory is already covered by the library directories.
This commit is contained in:
Matthew Flatt 2014-06-11 08:06:40 +01:00
parent a62516977b
commit 5b852cc4bd

View File

@ -117,7 +117,10 @@
;; Helpers
(define (single p) (if p (list p) null))
(define (extra a l) (if (and a (not (member a l))) (cons a l) l))
(define (extra a l) (if (and a (not (member (path->directory-path a)
(map path->directory-path l))))
(append l (list a))
l))
(define (combine-search l default)
;; Replace #f in list with default path:
(if l