From 4702963425c507cc6d1b479dd125636081c4598c Mon Sep 17 00:00:00 2001 From: mainzelm Date: Thu, 2 Mar 2006 21:32:31 +0000 Subject: [PATCH] Undo Brian's last commit as it was broken (removes Linux support, ...) --- configure.in | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/configure.in b/configure.in index 05e47ad..cb2ae02 100644 --- a/configure.in +++ b/configure.in @@ -268,22 +268,18 @@ AC_INIT(c/scheme48vm.c) AIX_P="exportlist.aix" ;; - ## NetBSD, FreeBSD, OpenBSD, Darwin/MacOS X ( and maybe 386BSD also) - *-*-*bsd*|*-*-darwin* ) - dir=bsd - SCSH_ELF + ## Linux + *-*-linux* ) + dir=linux + # gross, but needed for some older a.out systems for 0.4.x + LIBS=-lc + SCSH_ELF ;; - ## interix (aka Microsoft Windows Services for Unix) - *-*-interix* ) - dir=bsd - AC_DEFINE(_ALL_SOURCE, 1, [Define to 1 on interix to get MAXHOSTNAMELEN]) - ;; - - ## NetBSD, FreeBSD, OpenBSD, Darwin/MacOS X ( and maybe 386BSD also) - *-*-*bsd*|*-*-darwin* ) - dir=bsd - SCSH_ELF + ## NetBSD and FreeBSD ( and maybe 386BSD also) + *-*-*bsd*|*-*-darwin* ) + dir=bsd + SCSH_ELF ;; ## NeXT @@ -308,6 +304,7 @@ AC_INIT(c/scheme48vm.c) ## Solaris - Sparc and i386 *-*-solaris* ) dir=solaris + AC_DEFINE(HAVE_NLIST) ;; ## NT - cygwin32 @@ -347,8 +344,10 @@ esac S48_POSIX_LIBC AC_CONST AC_RETSIGTYPE - AC_CHECK_HEADERS(sys/select.h crypt.h) - AC_CHECK_FUNCS(select sigaction vasprintf sync) + AC_CHECK_HEADERS(libgen.h sys/timeb.h posix/time.h sys/select.h nlist.h) + AC_CHECK_HEADERS(sys/un.h) + AC_CHECK_HEADERS(crypt.h) + AC_CHECK_FUNCS(gettimeofday ftime nlist select setitimer sigaction vasprintf) SCSH_SOCKLEN_T AC_CHECK_FUNC(dlopen, [AC_DEFINE(HAVE_DLOPEN, 1, [Define to 1 if the interface to the dynamic linker exists]) @@ -356,7 +355,7 @@ esac [AC_CHECK_FUNC(nlist, [AC_LIBOBJ([c/fake/libdl1])], [AC_LIBOBJ([c/fake/libdl2])]) have_dlopen="no"]) - AC_CHECK_FUNCS() + AC_CHECK_FUNCS(socket chroot) AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR, 1, [Define to 1 if you have the strerror function]), [AC_LIBOBJ([c/fake/strerror])])