Configure 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. :
  2. #!/bin/sh
  3. #+---------------------------------------------------------------------
  4. # ECU Configure - prepare and execute ECU configuration program
  5. #----------------------------------------------------------------------
  6. #+:EDITS:
  7. #:04-26-2000-11:15-wht@bob-RELEASE 4.42
  8. #:04-26-2000-11:04-wht@bob-version 4.42 ready
  9. #:04-22-2000-12:15-wht@bob-revisit Unixware 7.1.1
  10. #:01-24-1997-02:36-wht@yuriatin-SOURCE RELEASE 4.00
  11. #:09-11-1996-19:59-wht@yuriatin-3.48-major telnet,curses,structural overhaul
  12. #:08-30-1996-20:16-wht@yuriatin-add MOTSVR4 quad-processor "yuriatin" to WHT list
  13. #:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11
  14. #:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS
  15. #:05-04-1994-04:38-wht@n4hgf-ECU release 3.30
  16. #:03-13-1994-19:26-wht@fep-facelift + fep WHT detect
  17. #:09-10-1992-13:58-wht@n4hgf-ECU release 3.20
  18. #:08-22-1992-15:37-wht@n4hgf-ECU release 3.20 BETA
  19. #:07-09-1992-18:09-wht@n4hgf-ecunumrev a bad idea
  20. #:07-07-1992-16:30-wht@gyro-add ecunumrev to config
  21. #:08-25-1991-05:11-wht@n4hgf2-added Sun n4hgf2 WHT automation
  22. #:08-06-1991-05:05-wht@n4hgf-change FASI_IN_USE to FASI
  23. #:07-12-1991-14:05-wht@n4hgf-ensure config.c compiles properly
  24. #:04-29-1991-02:39-wht@n4hgf-document/clean
  25. # no changes are recommended
  26. CFLAGS=
  27. # a bit of self indulgence for me (ignore it or be inspired)
  28. SYSTEM=
  29. [ -f /sbin/uname ] && SYSTEM=`/sbin/uname -n` # P III/450 Unixware 7.1.1
  30. [ "$SYSTEM" = "bob" ] && CFLAGS='-DWHT'
  31. [ -f /bin/uname ] && SYSTEM=`/bin/uname -n` # P III/450 Redhat
  32. [ "$SYSTEM" = "blue" ] && CFLAGS='-DWHT'
  33. [ -f /bin/uname ] && SYSTEM=`/bin/uname -n` # P II/233 Redhat
  34. [ "$SYSTEM" = "menlo" ] && CFLAGS='-DWHT'
  35. [ -f /etc/hostname.le0 ] && SYSTEM=`cat /etc/hostname.le0` # sparc 5 4.1.3_U1
  36. [ "$SYSTEM" = "gyro" ] && CFLAGS='-DWHT'
  37. [ -f /sbin/uname ] && SYSTEM=`/sbin/uname -n` # VME-187 88100/33 SVR4
  38. [ "$SYSTEM" = "fep" ] && CFLAGS='-DWHT'
  39. [ -f /sbin/uname ] && SYSTEM=`/sbin/uname -n` # VME-188 4x88100/25 SVR4
  40. [ "$SYSTEM" = "yuriatin" ] && CFLAGS='-DWHT'
  41. [ -f /usr/bin/uname ] && SYSTEM=`/usr/bin/uname -n` # Motorola power pc AIX
  42. [ "$SYSTEM" = "cydonia" ] && CFLAGS='-DWHT'
  43. echo Please wait while I compile the config program.
  44. rm -f ./config
  45. cc $CFLAGS config.c -o config > /tmp/config.cc.log 2>&1
  46. [ -x ./config ] && rm -f /tmp/config.cc.log
  47. [ -x ./config ] || echo '/tmp/config.cc.log has compile errors'
  48. ./config
  49. #end of Configure