- # only attempt samba4 if we have perl
- if which perl > /dev/null; then
- 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
+
+ TDB_NO_FSYNC=1
+ export TDB_NO_FSYNC
+ test_tree samba_3_current source3 $compiler
+ test_tree samba_3_next source3 $compiler
+ test_tree samba_3_master source3 $compiler
+ TDB_NO_FSYNC=0
+ export TDB_NO_FSYNC
+
+ # by default build ppp only on SunOS or Linux systems
+ if [ "$system" = Linux -o "$system" = SunOS ]; then
+ test_tree ppp . $compiler