+per_run_hook
+
+global_lock
+
+system=`uname`
+
+ENVCFLAGS=$CFLAGS
+cur_compiler_sum=""
+last_compiler_sum=""
for compiler in gcc cc icc; do
# arrgh, "which" gives no err code on solaris
path=`which $compiler`
if [ -x "$path" ]; then
+ # We do not want to build with the same compiler twice
+ # cc is a symlink to gcc on some systems
+ cur_compiler_sum="`sum $path`"
+ test x"$cur_compiler_sum" = x"" && {
+ cur_compiler_sum="$path"
+ }
+ test x"$last_compiler_sum" = x"$cur_compiler_sum" && {
+ continue;
+ }
+ last_compiler_sum="$cur_compiler_sum"
+
if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
isgcc=1
+ CFLAGS="$ENVCFLAGS -Wall"
else
isgcc=0
+ CFLAGS="$ENVCFLAGS"
fi
+ CFLAGS_THIS_COMPILER=`eval CFLAGS_$compiler 2>/dev/null`
+ if [ $? = 0 ] ; then
+ CFLAGS="$CFLAGS_THIS_COMPILER $CFLAGS"
+ fi
+ export CFLAGS
+ TDB_NO_FSYNC=1
+ export TDB_NO_FSYNC
+ test_tree samba_4_0_test source4 $compiler
+ TDB_NO_FSYNC=0
+ export TDB_NO_FSYNC
if [ $compiler = gcc -o $isgcc = 0 ]; then
- test_tree samba_3_0 source $compiler
- test_tree rsync . $compiler
- test_tree distcc . $compiler
- test_tree ccache . $compiler
- test_tree talloc . $compiler
- test_tree tdb . $compiler
+ . common.fns
test_tree lorikeet-heimdal . $compiler
- # only attempt samba4 if we have perl
- if which perl > /dev/null; then
- config="--enable-socket-wrapper" enable_torture="yes" test_tree samba4 source $compiler
+ # only attempt samba-gtk if we have perl and gtk+-2.0
+ if which perl > /dev/null && which pkg-config > /dev/null && pkg-config --exists gtk+-2.0; then
+ test_tree samba-gtk . $compiler
+ fi
+
+ test_tree samba_3_current source $compiler
+ test_tree samba_3_next source $compiler
+ test_tree samba_3_master source $compiler
+
+ # by default build ppp only on SunOS or Linux systems
+ if [ "$system" = Linux -o "$system" = SunOS ]; then
+ test_tree ppp . $compiler
fi
fi
fi
done
-
-# by default build ppp only on SunOS or Linux systems
-system=`uname`
-if [ "$system" = Linux -o "$system" = SunOS ]; then
- test_tree ppp . gcc
+# only attempt pidl if we have perl
+if which perl > /dev/null; then
+ test_tree pidl . cc
fi
-per_run_hook
+global_unlock