2 # This configure script ensures that the configure.sh script exists, and
3 # if not, it tries to fetch rsync's generated files or build them. We
4 # then transfer control to the configure.sh script to do the real work.
7 realconfigure="$dir/configure.sh"
9 if [ ! -f "$realconfigure" ]; then
10 if test x"$dir" != x -a x"$dir" != x.; then
16 make -f prepare-source.mak proto.h
17 if make -f prepare-source.mak conf; then
19 elif [ -f "$HOME/build_farm/build_test.fns" ]; then
20 # Allow the build farm to grab latest files via rsync.
21 rsync -avz rsync://rsync.samba.org/rsyncftp/generated-files/'c*' .
23 echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2
26 if test x"$curdir" != x; then
31 exec "$realconfigure" "${@}"