1ef7f60579fb0e55a1d4e544eb054e5e2791e848
[build-farm.git] / generic.fns
1 for compiler in gcc cc icc; do
2
3   # arrgh, "which" gives no err code on solaris
4   path=`which $compiler`
5   if [ -x "$path" ]; then
6
7     if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
8        isgcc=1
9     else
10        isgcc=0
11     fi
12     if [ $compiler = gcc -o $isgcc = 0 ]; then
13       test_tree samba_3_0 source $compiler
14       test_tree rsync . $compiler
15       test_tree distcc . $compiler
16       test_tree ccache . $compiler
17
18       # only attempt samba4 if we have perl
19       if which perl > /dev/null; then
20         test_tree samba4 source $compiler
21       fi
22     fi
23   fi
24 done
25     
26
27 # by default build ppp only on SunOS or Linux systems
28 system=`uname`
29 if [ "$system" = Linux -o "$system" = SunOS ]; then
30    test_tree ppp . gcc
31 fi
32
33 per_run_hook