compiler 201 B

12345678910111213141516
  1. #!/bin/sh
  2. if [ "X$CC" != "X" ] && echo "$CC" | grep -q '`'
  3. then
  4. CC=
  5. fi
  6. if [ X$CC = X ]
  7. then CC=cc
  8. for p in `echo $PATH | sed 's/:/ /g'`
  9. do if [ -f $p/gcc ]
  10. then CC=gcc
  11. fi
  12. done
  13. fi
  14. echo $CC