Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!umich!caen.engin.umich.edu!oliveria From: oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) Newsgroups: comp.sys.apollo Subject: Re: one cpp and one f77 question Message-ID: <4886efc0.bb89@spam.engin.umich.edu> Date: 8 Feb 90 05:00:00 GMT References: <48822d9c.20b6d@apollo.HP.COM> Organization: U of M Engineering, Ann Arbor, Mich. Lines: 140 From article <48822d9c.20b6d@apollo.HP.COM>, by vasta@apollo.HP.COM (John Vasta): > In article <4880b96f.20b6d@apollo.HP.COM> oj@apollo.hp.com writes: >>In article <4877da3b.bb89@spam.engin.umich.edu> oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) writes: >>> is there any define I can use with cpp that uniquely define the dn10k ? >>> I know about ISP but it is not in cpp. >> >>If you invoke the preprocessor by saying >> /bin/cc -E >>instead of >> /lib/cpp >>then you can use these #ifdefs for prism and m68k respectively. >>#ifdef _ISP__A88K >>#ifdef _ISP__M68K >> >>(note the two consecutive underscores...) > > Small correction: both symbols are always defined, but expand to either > 0 or 1 for the appropriate machine. Therefore, you would use > > #if _ISP__A88K > /* compiling for a DN10000 */ > > #if _ISP__M68K > /* compiling for a 68K box */ > John Vasta Hewlett-Packard Apollo Systems Division > vasta@apollo.hp.com M.S. CHA-01-LT > (508) 256-6600 x6362 300 Apollo Drive, Chelmsford, MA 01824 > UUCP: {decwrl!decvax, mit-eddie, attunix}!apollo!vasta Thanks to all those who responded to my question about cpp. In the case here it only works if we use /bin/cc -E instead of /lib/cpp. That isn't exactly what I want. If you wanna play with it and see if you can get it to work (without using /bin/cc -E or without passing an option (like -Dprism) to cpp) then let me know. To run it you just type Configure This is a short version of the file Configure. Ideally it should not be modified. --------------------------cut---------cut---------------------------- #!/bin/csh -f set cpp="/lib/cpp" set system_line=`$cpp