File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / rsync / configure
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 07:51:14 2013 UTC (10 years, 8 months ago) by misho
Branches: rsync, MAIN
CVS tags: v3_1_2p5, RSYNC3_1_0, HEAD
v 3.1.0

    1: #!/bin/sh -e
    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.
    5: 
    6: dir=`dirname $0`
    7: realconfigure="$dir/configure.sh"
    8: 
    9: if test ! -f "$realconfigure"; then
   10:     if test -f "$HOME/build_farm/build_test.fns"; then
   11: 	# Test the included popt
   12: 	set -- --with-included-popt "${@}"
   13: 	# Allow the build farm to grab latest files via rsync.
   14: 	actions='build fetch'
   15:     else
   16: 	actions='build'
   17:     fi
   18:     if "$dir/prepare-source" $actions; then
   19: 	:
   20:     else
   21: 	echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2
   22: 	rm -f "$realconfigure"
   23: 	exit 1
   24:     fi
   25: fi
   26: 
   27: exec "$realconfigure" "${@}"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>