Try compiling ppp with the detected compilers, instead of always trying
[build-farm.git] / generic.fns
1 per_run_hook
2
3 system=`uname`
4
5 for compiler in gcc cc icc; do
6
7   # arrgh, "which" gives no err code on solaris
8   path=`which $compiler`
9   if [ -x "$path" ]; then
10
11     if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
12        isgcc=1
13        CFLAGS="-Wall"
14        export CFLAGS
15     else
16        CFLAGS=""
17        export CFLAGS
18        isgcc=0
19     fi
20     if [ $compiler = gcc -o $isgcc = 0 ]; then
21       test_tree samba_3_0 source $compiler
22       test_tree rsync . $compiler
23       test_tree distcc . $compiler
24       test_tree ccache . $compiler
25       test_tree talloc . $compiler
26       test_tree tdb . $compiler
27       test_tree lorikeet-heimdal . $compiler
28       test_tree samba source $compiler
29
30       # only attempt samba4 if we have perl
31       if which perl > /dev/null; then
32         test_tree samba4 source $compiler
33         test_tree smb-build . $compiler
34       fi
35
36       # by default build ppp only on SunOS or Linux systems
37       if [ "$system" = Linux -o "$system" = SunOS ]; then
38          test_tree ppp . $compiler
39       fi
40     fi
41   fi
42 done
43     
44
45