+AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
+AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
+
+dnl files which are destined for separate modules.
+
+if test "$enable_arrays" = yes; then
+ AC_LIBOBJ([ramap])
+ AC_LIBOBJ([unif])
+ AC_DEFINE(HAVE_ARRAYS, 1,
+ [Define this if you want support for arrays and uniform arrays.])
+fi
+
+if test "$enable_posix" = yes; then
+ AC_LIBOBJ([filesys])
+ AC_LIBOBJ([posix])
+ AC_DEFINE(HAVE_POSIX, 1,
+ [Define this if you want support for POSIX system calls in Guile.])
+fi
+
+if test "$enable_networking" = yes; then
+ AC_LIBOBJ([net_db])
+ AC_LIBOBJ([socket])
+ AC_DEFINE(HAVE_NETWORKING, 1,
+ [Define this if you want support for networking in Guile.])
+fi
+
+if test "$enable_debug_malloc" = yes; then
+ AC_LIBOBJ([debug-malloc])
+fi
+
+if test "$enable_elisp" = yes; then
+ AC_DEFINE(SCM_ENABLE_ELISP, 1,
+ [Define this if you want Elisp support (in addition to Scheme).])
+fi
+
+