Path: utzoo!attcan!uunet!convex!killer!ames!vsi1!wyse!mips!sultra!dtynan From: dtynan@sultra.UUCP (Der Tynan) Newsgroups: comp.unix.questions Subject: Re: Telling csh about multiple, machine-dependent libraries Summary: This may not work either. Keywords: csh bin libraries Message-ID: <2662@sultra.UUCP> Date: 18 Nov 88 23:58:45 GMT References: <173@heart-of-gold> <14592@mimsy.UUCP> <6490@csli.STANFORD.EDU> Organization: Tynan Computers, Sunnyvale, CA Lines: 31 In article <6490@csli.STANFORD.EDU>, gandalf@csli.STANFORD.EDU (Juergen Wagner) writes: > where the file ~/conf/hosttype contains something like > # if sun > # undef sun > # ifdef sparc > # undef sparc > sparc > # else ... > > This uses the guaranteed feature of cpp to have the predefined symbols "sun", > "sparc", "vax", "hpux", etc. Everything else seemed to be different across > machine architectures. > > Juergen Wagner gandalf@csli.stanford.edu This may not work either. At least, not in the general case. For example, what's the definition for a 68000? I've seen both m68000 and m68k used. Similar things happen with the Intel family. Also, for example, the MINIX C compiler balks when it sees; #ifdef 3b1 For some reason it doesn't like the '3'. What we need around here, is a 'standard'! - Der -- dtynan@zorba.Tynan.COM (Dermot Tynan @ Tynan Computers) {apple,mips,pyramid,uunet}!Tynan.COM!dtynan --- If the Law is for the People, then why do we need Lawyers? ---