File: cc

package info (click to toggle)
firedns 0.9.12-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 322
  • sloc: ansic: 4,026; sh: 964; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#phase init
dispn "Checking for a compiler..."
if test "$CC" != ""; then
	disp "found in environment: \"$CC\""
elif (gcc --version >/dev/null 2>/dev/null; test "$?" = "0"); then
	disp "found gcc"
	CC="gcc"
elif (CC=`which cc`; test "$?" = "0" -a -x "$CC"); then
	disp "found cc"
	CC="cc"
else
	disp "not found, unable to continue"
	exit 1
fi