dnl Process this file with autoconf to produce a configure script.
AC_INIT([MIT/GNU Scheme], [14.17], [bug-mit-scheme@gnu.org], [mit-scheme])
-AC_REVISION([$Id: configure.ac,v 1.9 2006/04/08 03:07:48 cph Exp $])
+AC_REVISION([$Id: configure.ac,v 1.10 2006/06/02 03:06:56 ihtfisp Exp $])
AC_CONFIG_SRCDIR([boot.c])
AC_CONFIG_HEADERS([config.h])
AC_PROG_MAKE_SET
fi
fi
+dnl These libraries might not be installed, so take care generating
+dnl file dependencies using "makegen/makegen.scm" when called on
+dnl "makegen/files-optional.scm". To wit, "prmhash.c" & "prmcrypt.c"
+dnl must conditionalize their dependencies on <mhash.h> & <mcrypt.h>,
+dnl respectively, to avoid warnings in "Makefile.deps" and its embeds.
+dnl Finally, note that "prmd5.c" is similarly conditionalized as well.
+HAVE_LIBMHASH="no"
+HAVE_LIBMCRYPT="no"
+
dnl The mhash library provides md5 support. It can be loaded in addition
dnl to other MD5 libraries and provides a rich set of hashes.
if test "${scheme_cv_lib_mhash}" = "yes"; then
/* -*-C-*-
-$Id: prmcrypt.c,v 1.5 2003/02/14 18:28:23 cph Exp $
+$Id: prmcrypt.c,v 1.6 2006/06/02 03:06:56 ihtfisp Exp $
Copyright (c) 2001 Massachusetts Institute of Technology
#include "prims.h"
#include "usrdef.h"
#include "os.h"
-#include <mcrypt.h>
+
+#ifdef HAVE_MCRYPT_H
+# include <mcrypt.h>
+#else
+/*
+** Hack: Dependency suppressed to appease "makegen/makegen.scm".
+** This is OK since it cannot link w/o the library anyway.
+*/
+#endif
static SCHEME_OBJECT
cp2s (char * cp)
/* -*-C-*-
-$Id: prmhash.c,v 11.7 2006/03/11 04:13:10 cph Exp $
+$Id: prmhash.c,v 11.8 2006/06/02 03:06:56 ihtfisp Exp $
Copyright (c) 2000-2001 Massachusetts Institute of Technology
#include "prims.h"
#include "usrdef.h"
#include "os.h"
-#include <mhash.h>
+
+#ifdef HAVE_MHASH_H
+# include <mhash.h>
+#else
+/*
+** Hack: Dependency suppressed to appease "makegen/makegen.scm".
+** This is OK since it cannot link w/o the library anyway.
+*/
+#endif
#define UNARY_OPERATION(name, get_arg, cvt_val) \
{ \