scsh-users
[Top] [All Lists]

scsh on FreeBSD/Elf

To: scsh@zurich.ai.mit.edu
Subject: scsh on FreeBSD/Elf
From: sperber@Informatik.Uni-Tuebingen.De (Michael Sperber [Mr. Preprocessor])
Date: 06 Aug 1999 15:28:11 +0200
Sender: sperber@Informatik.Uni-Tuebingen.De
Yo Olin,

while we're at it ...

Essentially, FreeBSD >= 3.0 needs the same test as Linux.

--- configure.in.orig   Fri Aug  6 15:05:56 1999
+++ configure.in        Fri Aug  6 15:10:59 1999
@@ -166,17 +166,17 @@
 ])
 
 dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-AC_DEFUN(SCSH_LINUX_ELF, [
-  AC_MSG_CHECKING(for Linux using ELF)
-  AC_CACHE_VAL(scsh_cv_linux_elf,[
+AC_DEFUN(SCSH_ELF, [
+  AC_MSG_CHECKING(for ELF)
+  AC_CACHE_VAL(scsh_cv_elf,[
     touch conftest.c
     if ${CC} -v conftest.c 2>&1 | grep -q __ELF__ ; then
-      scsh_cv_linux_elf=yes
+      scsh_cv_elf=yes
     else
-      scsh_cv_linux_elf=no
+      scsh_cv_elf=no
     fi])
-  AC_MSG_RESULT($scsh_cv_linux_elf)
-  if test $scsh_cv_linux_elf = yes; then
+  AC_MSG_RESULT($scsh_cv_elf)
+  if test $scsh_cv_elf = yes; then
     LDFLAGS=-rdynamic
   fi
   rm -f conftest.c a.out
@@ -286,12 +286,13 @@
     dir=linux
     # gross, but needed for some older a.out systems for 0.4.x
     LIBS=-lc
-    SCSH_LINUX_ELF
+    SCSH_ELF
   ;;
   
   ## NetBSD and FreeBSD ( and maybe 386BSD also)
   *-*-*bsd* )
     dir=bsd
+    SCSH_ELF
   ;;
   
   ## NeXT
-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
<Prev in Thread] Current Thread [Next in Thread>
  • scsh on FreeBSD/Elf, Michael Sperber [Mr. Preprocessor] <=