Imported File#ftype spec from rubyspecs.
[rbx.git] / shotgun / config / run
blob6b99f8af3ca415c8f707b9e1f916ccf21b15e5f9
1 #!/bin/sh
3 name=$1
5 if test ! -f run; then
6 cd config
7 fi
9 if test -z "$CC"; then
10 CC='cc'
13 $CC $CFLAGS -o $name $name.c
14 if test $? != 0; then
15 echo "[CONFIG] $1: error"
16 exit 2
19 if ./$name; then
20 rm $name
21 echo "[CONFIG] $1: yes"
22 exit 0
23 else
24 rm $name
25 echo "[CONFIG] $1: no"
26 exit 1