1555e0bd7fee2ccc9ebccbd195d75dabcbb5c276
[amitay/build-farm.git] / metze01.fns
1 per_run_hook
2
3 global_lock
4
5 system=`uname`
6
7 for compiler in gcc cc icc; do
8
9   # arrgh, "which" gives no err code on solaris
10   path=`which $compiler`
11   if [ -x "$path" ]; then
12
13     if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
14        isgcc=1
15        CFLAGS="-Wall"
16        export CFLAGS
17     else
18        CFLAGS=""
19        export CFLAGS
20        isgcc=0
21     fi
22     if [ $compiler = gcc -o $isgcc = 0 ]; then
23       . common.fns
24 # my server is really slow... --metze
25 #      test_tree samba_3_0 source $compiler
26 #      test_tree lorikeet-heimdal . $compiler
27
28       # only attempt samba4 if we have perl
29       if which perl > /dev/null; then
30 #        test_tree samba4 source $compiler
31         test_tree smb-build . $compiler
32       fi
33
34       # by default build ppp only on SunOS or Linux systems
35       if [ "$system" = Linux -o "$system" = SunOS ]; then
36          test_tree ppp . $compiler
37       fi
38     fi
39   fi
40 done
41     
42 global_unlock