dnl Process this file with autoconf to produce a configure script.
-dnl Copyright (c) 2000, 2002, 2002 Massachusetts Institute of Technology
+dnl Copyright 2000,2002,2003 Massachusetts Institute of Technology
dnl
dnl This file is part of MIT/GNU Scheme.
dnl
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
dnl 02111-1307, USA.
-AC_REVISION([$Id: configure.in,v 11.20 2003/02/14 18:28:18 cph Exp $])
+AC_REVISION([$Id: configure.in,v 11.21 2003/05/12 20:02:24 cph Exp $])
AC_INIT(boot.c)
AC_CONFIG_HEADER(config.h)
AC_CHECK_HEADERS(sys/ptyio.h sys/socket.h sys/time.h sys/un.h sys/vfs.h)
AC_CHECK_HEADERS(stdbool.h termio.h termios.h unistd.h utime.h)
AC_CHECK_HEADERS(openssl/blowfish.h openssl/md5.h blowfish.h md5.h)
-AC_CHECK_HEADERS(mhash.h mcrypt.h gdbm.h curses.h term.h)
+AC_CHECK_HEADERS(mhash.h mcrypt.h gdbm.h curses.h term.h dlfcn.h)
dnl Checks for typedefs
AC_TYPE_MODE_T
fi
dnl Add OS-dependent customizations.
+DO_GCC_TESTS="no"
case "$host_os" in
linux-gnu)
+ DO_GCC_TESTS="yes"
+ ;;
+freebsd*)
+ M4_FLAGS="${M4_FLAGS} -P SUPPRESS_LEADING_UNDERSCORE,1"
+ ;;
+solaris*)
+ if test "${GCC}" = "yes"; then
+ DO_GCC_TESTS="yes"
+ M4_FLAGS="${M4_FLAGS} -P SUPPRESS_LEADING_UNDERSCORE,1"
+ fi
+ ;;
+esac
+
+if test "${DO_GCC_TESTS}" = "yes"; then
if test "${STATIC_LIBS}" != ""; then
STATIC_PREFIX="-Xlinker -Bstatic"
STATIC_SUFFIX="-Xlinker -Bdynamic"
M4_FLAGS="${M4_FLAGS} -P CALLEE_POPS_STRUCT_RETURN,1"
fi
fi
- ;;
-freebsd*)
- M4_FLAGS="${M4_FLAGS} -P SUPPRESS_LEADING_UNDERSCORE,1"
- ;;
-esac
+fi
dnl Add architecture-dependent customizations.
dnl This is mostly support for native-code compilation.
/* -*-C-*-
-$Id: pruxdld.c,v 1.17 2003/02/14 18:28:23 cph Exp $
+$Id: pruxdld.c,v 1.18 2003/05/12 20:02:27 cph Exp $
Copyright (c) 1993-2001 Massachusetts Institute of Technology
#include "syscall.h"
#include "os.h"
\f
-#ifdef __linux__
+#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
return ((unsigned long) address);
}
-#endif /* __linux__ */
+#endif /* HAVE_DLFCN_H */
\f
DEFINE_PRIMITIVE ("LOAD-OBJECT-FILE", Prim_load_object_file, 1, 1,
"(FILENAME)\n\