[AC_MSG_RESULT([no])])
fi
+ AC_PATH_X
AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
- if ! pkg-config --exists x11 2>/dev/null; then
- AC_MSG_ERROR([X11 not found.])
+ AC_CHECK_HEADERS([malloc.h])
+
+
+ dnl Add support for X if present.
+ if test "${no_x}" != yes; then
+ if test "x${x_includes}" != x; then
+ FOO=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
+ MIT_CFLAGS="${MIT_CFLAGS} ${FOO}"
+ elif pkg-config --exists x11 2>/dev/null; then
+ MIT_CFLAGS="${MIT_CFLAGS} `pkg-config --cflags x11`"
+ fi
+ if test "x${x_libraries}" != x; then
+ FOO=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
+ MIT_LIBS="${MIT_LIBS} ${FOO}"
+ elif pkg-config --exists x11 2>/dev/null; then
+ MIT_LIBS="${MIT_LIBS} `pkg-config --libs x11`"
+ fi
fi
-MIT_SCHEME_PROJECT=mit-scheme
+MIT_SCHEME_PROJECT=mit-scheme-pucked
: ${MIT_SCHEME_EXE=mit-scheme}
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
MIT_SCHEME_DEPS="${MIT_SCHEME_DEPS}
${MIT_SCHEME_PKD}: stamp-scheme"
+# 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_CFLAGS])
+ AC_SUBST([MIT_LIBS])
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_SCHEME_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])