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
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])