--- /dev/null
+The BERKELEY-DB option.
+
+This plugin is incomplete. The accompanying files are just chunks of
+code for the old microcode module prdb4 as cut out of microcode/ and
+runtime/.
--- /dev/null
+AC_ARG_WITH([db-4],
+ AS_HELP_STRING([--with-db-4],
+ [Use Berkeley DB v4 library if available [[yes]]]))
+: ${with_db_4='yes'}
+
+
+dnl DB v4 support
+if test "${with_db_4}" != no; then
+ if test "${with_db_4}" != yes; then
+ CPPFLAGS="${CPPFLAGS} -I${with_db_4}/include"
+ LDFLAGS="${LDFLAGS} -L${with_db_4}/lib"
+ fi
+ AC_CHECK_HEADER([db.h],
+ [
+ AC_DEFINE([HAVE_DB_H], [1],
+ [Define to 1 if you have the <db.h> header file.])
+ AC_MSG_CHECKING([for db_create in -ldb-4])
+ save_LIBS=${LIBS}
+ LIBS="${LIBS} -ldb-4"
+ AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <db.h>]],
+ [[db_create (0, 0, 0)]])],
+ [
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([HAVE_LIBDB_4], [1],
+ [Define to 1 if you have the `db-4' library (-ldb-4).])
+ MODULE_LIBS="-ldb-4 ${MODULE_LIBS}"
+ MODULE_BASES="${MODULE_BASES} prdb4"
+ ],
+ [
+ AC_MSG_RESULT([no])
+ ])
+ LIBS=${save_LIBS}
+ ])
+fi
+
+MIT_SCHEME_PROJECT=mit-scheme-pucked
+
+# Install plugin docs in Scheme's docdir subdirectories.
+htmldir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)/html'
+pdfdir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)/pdf'
+
+AC_SUBST([MIT_SCHEME_PROJECT])
[Use mcrypt library if available [[yes]]]))
: ${with_mcrypt='yes'}
-AC_ARG_WITH([db-4],
- AS_HELP_STRING([--with-db-4],
- [Use Berkeley DB v4 library if available [[yes]]]))
-: ${with_db_4='yes'}
-
AC_ARG_WITH([termcap],
AS_HELP_STRING([--with-termcap],
[Use a termcap library if available [[yes]]]))
])
fi
-dnl DB v4 support
-if test "${with_db_4}" != no; then
- if test "${with_db_4}" != yes; then
- CPPFLAGS="${CPPFLAGS} -I${with_db_4}/include"
- LDFLAGS="${LDFLAGS} -L${with_db_4}/lib"
- fi
- AC_CHECK_HEADER([db.h],
- [
- AC_DEFINE([HAVE_DB_H], [1],
- [Define to 1 if you have the <db.h> header file.])
- AC_MSG_CHECKING([for db_create in -ldb-4])
- save_LIBS=${LIBS}
- LIBS="${LIBS} -ldb-4"
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[#include <db.h>]],
- [[db_create (0, 0, 0)]])],
- [
- AC_MSG_RESULT([yes])
- AC_DEFINE([HAVE_LIBDB_4], [1],
- [Define to 1 if you have the `db-4' library (-ldb-4).])
- MODULE_LIBS="-ldb-4 ${MODULE_LIBS}"
- MODULE_BASES="${MODULE_BASES} prdb4"
- ],
- [
- AC_MSG_RESULT([no])
- ])
- LIBS=${save_LIBS}
- ])
-fi
-
dnl Add support for X if present.
if test "${no_x}" != yes; then
if test "x${x_includes}" != x; then
prmcrypt.so: prmcrypt.o @MODULE_LOADER@
$(LINK_MODULE) prmcrypt.o -lmcrypt $(MODULE_LIBS)
-prdb4.so: prdb4.o @MODULE_LOADER@
- $(LINK_MODULE) prdb4.o -ldb-4 $(MODULE_LIBS)
-
prx11.so: prx11.o x11base.o x11color.o x11graph.o x11term.o @MODULE_LOADER@
$(LINK_MODULE) prx11.o x11base.o x11color.o x11graph.o x11term.o \
-lX11 $(MODULE_LIBS)