~ubuntu-branches/ubuntu/wily/firedns/wily

« back to all changes in this revision

Viewing changes to firestring/firemake/cc

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2004-02-15 23:03:39 UTC
  • Revision ID: james.westby@ubuntu.com-20040215230339-63vu3yi08n8ly3ol
Tags: upstream-0.9.9
ImportĀ upstreamĀ versionĀ 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#phase init
 
3
dispn "Checking for a compiler..."
 
4
if test "$CC" != ""; then
 
5
        disp "found in environment: \"$CC\""
 
6
elif (gcc --version >/dev/null 2>/dev/null; test "$?" = "0"); then
 
7
        disp "found gcc"
 
8
        CC="gcc"
 
9
elif (CC=`which cc`; test "$?" = "0" -a -x "$CC"); then
 
10
        disp "found cc"
 
11
        CC="cc"
 
12
else
 
13
        disp "not found, unable to continue"
 
14
        exit 1
 
15
fi