home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / compiler / configure < prev    next >
Text File  |  2000-12-21  |  1KB  |  54 lines

  1. #!/bin/sh
  2.  
  3. # $Id: configure,v 1.4 2000/12/21 22:01:56 cph Exp $
  4. #
  5. # Copyright (c) 2000 Massachusetts Institute of Technology
  6. #
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. if test ! -e machine; then
  22.     case `./config.guess` in
  23.     alpha-* | alphaev[56]-* | alphaev56-* | alphapca56-* )
  24.     MACHINE=alpha
  25.     ;;
  26.     m68k-* )
  27.     MACHINE=bobcat
  28.     ;;
  29.     i[3456]86-* )
  30.     MACHINE=i386
  31.     ;;
  32.     mips-* | mipsel-* )
  33.     MACHINE=mips
  34.     ;;
  35.     sparc-* )
  36.     MACHINE=sparc
  37.     ;;
  38.     hppa-* | hppa1.[01]-* | hppa2.?-* )
  39.     MACHINE=spectrum
  40.     ;;
  41.     vax-* )
  42.     MACHINE=vax
  43.     ;;
  44.     * )
  45.     echo "Unable to determine machine type."
  46.     exit 1
  47.     ;;
  48.     esac
  49.     ln -s machines/${MACHINE} machine
  50. fi
  51. for FN in compiler.cbf compiler.pkg compiler.sf make.com; do \
  52.     test -e ${FN} || ln -s machine/${FN} .; \
  53. done
  54.