add the libdir to the ltdl lib search path
authorAndy Wingo <wingo@pobox.com>
Wed, 16 Sep 2009 16:10:19 +0000 (18:10 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 16 Sep 2009 16:10:19 +0000 (18:10 +0200)
commiteb350124a85dd4daf39bacbdc50452ef87a33a43
tree96674005d8eb32842ca07305b5cfe0ae2480e602
parentdb723980a4b1e4d4d4d665283d1bc0b792c751bf
add the libdir to the ltdl lib search path

* libguile/Makefile.am (libpath.h): Fix pkgdatadir, pkglibdir, and
  pkgincludedir entries. Add a new define, SCM_LIB_DIR.

* libguile/dynl.c (sysdep_dynl_init): Add the libdir to the libltdl
  search path. Should fix
  http://thread.gmane.org/gmane.lisp.guile.bugs/4289/focus=4296 -- that
  is, it should allow guile to be invoked from whereever it is
  installed, without munging LTDL_LIBRARY_PATH or the like variables.

  There is a trick though -- during the build, we don't want to be
  looking in the $libdir for loadable modules. So as with
  GUILE_SYSTEM_PATH, we have GUILE_SYSTEM_LTDL_PATH.

* meta/uninstalled-env.in: Set GUILE_SYSTEM_LTDL_PATH to "" when
  building.
libguile/Makefile.am
libguile/dynl.c
meta/uninstalled-env.in