10 for compiler in gcc cc icc; do
12 # arrgh, "which" gives no err code on solaris
13 path=`which $compiler`
14 if [ -x "$path" ]; then
16 # We do not want to build with the same compiler twice
17 # cc is a symlink to gcc on some systems
18 cur_compiler_sum="`sum $path`"
19 test x"$cur_compiler_sum" = x"" && {
20 cur_compiler_sum="$path"
22 test x"$last_compiler_sum" = x"$cur_compiler_sum" && {
25 last_compiler_sum="$cur_compiler_sum"
27 if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
29 CFLAGS="$ENVCFLAGS -Wall"
34 CFLAGS_THIS_COMPILER=`eval CFLAGS_$compiler 2>/dev/null`
36 CFLAGS="$CFLAGS_THIS_COMPILER $CFLAGS"
39 test_tree samba_4_0_waf source4 $compiler
40 if [ $compiler = gcc -o $isgcc = 0 ]; then
42 test_tree lorikeet-heimdal . $compiler
44 # only attempt samba-gtk if we have perl and gtk+-2.0
45 if which perl > /dev/null && which pkg-config > /dev/null && pkg-config --exists gtk+-2.0; then
46 test_tree samba-gtk . $compiler
49 test_tree samba_3_current source $compiler
50 test_tree samba_3_next source $compiler
51 test_tree samba_3_master source $compiler
53 # by default build ppp only on SunOS or Linux systems
54 if [ "$system" = Linux -o "$system" = SunOS ]; then
55 test_tree ppp . $compiler
61 # only attempt pidl if we have perl
62 if which perl > /dev/null; then