Step to reproduce 1. tar -xf samba-4.0.5.tar.gz 2. cd samba-4.0.5 3. ./configure --prefix=/usr/local/samba 4. cd examples/VFS 5. ./configure --prefix=/usr/local/samba --with-samba-source=../../source3 6. make expected output: Compiling shadow_copy_test.c Linking shadow_copy_test.so Compiling skel_opaque.c Linking skel_opaque.so Compiling skel_transparent.c Linking skel_transparent.so rm skel_opaque.o skel_transparent.o shadow_copy_test.o What I see instead: Compiling skel_opaque.c In file included from ../../source3/../librpc/../source3/include/includes.h:23:0, from skel_opaque.c:25: ../../source3/../lib/replace/../replace/replace.h:32:20: fatal error: config.h: No such file or directory compilation terminated. make: *** [skel_opaque.so] Error 1 The expected output is taken from samba 3.6.14