From: Matt Birkholz Date: Fri, 12 Nov 2010 21:18:15 +0000 (-0700) Subject: Create lib/lib symlinks in microcode/configure. X-Git-Tag: 20101212-Gtk~14^2~2 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=1055a9a5d22358de060d69a09af9bde4f3d3c3b7;p=mit-scheme.git Create lib/lib symlinks in microcode/configure. * src/Setup.sh, src/microcode/configure.ac: Create the src/lib/lib/ symlinks in microcode/configure, which has the list of enabled modules. --- diff --git a/src/Setup.sh b/src/Setup.sh index 7e52efe46..3d1771a4d 100755 --- a/src/Setup.sh +++ b/src/Setup.sh @@ -87,16 +87,6 @@ maybe_link lib/runtime ../runtime maybe_link lib/mit-scheme.h ../microcode/pruxffi.h maybe_link lib/ffi ../ffi -# This is a kludge so that liarc bundles can coexist with microcode -# modules in the same lib directory. If you have a better way to make -# this work, please implement it. Making lib/lib a symlink to -# ../microcode does not work -- configure.ac wants to make symlinks at -# lib/lib/sf.so to ../../sf/sf.so, &c. -maybe_mkdir lib/lib -for MODULE in prbfish prmd5 prmhash prmcrypt prgdbm prdb4 prpgsql prx11; do - maybe_link "lib/lib/${MODULE}.so" "../../microcode/${MODULE}.so" -done - for SUBDIR in ${INSTALLED_SUBDIRS} ${OTHER_SUBDIRS}; do echo "setting up ${SUBDIR}" maybe_link ${SUBDIR}/Setup.sh ../etc/Setup.sh diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index 66c1bdf83..ec353d809 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -1025,6 +1025,12 @@ if test "x${MODULE_BASES}" != x; then echo " " '$(COMPILE_MODULE)' -c '$*.c' >> ${MODULE_RULES} done fi +if test "x${MODULE_TARGETS}" != x; then + if test ! -e ../lib/lib; then mkdir ../lib/lib; fi + for BASE in ${MODULE_TARGETS}; do + ln -sf ../../microcode/${BASE} ../lib/lib/${BASE} + done +fi AC_SUBST([AS_FLAGS]) AC_SUBST([GC_HEAD_FILES])