Avoid leaving a file open on error return.
[rsync.git] / configure
index 813ca5e..32cc3b5 100755 (executable)
--- a/configure
+++ b/configure
@@ -8,12 +8,14 @@ realconfigure="$dir/configure.sh"
 
 if test ! -f "$realconfigure"; then
     if test -f "$HOME/build_farm/build_test.fns"; then
+       # Test the included popt
+       set -- --with-included-popt "${@}"
        # Allow the build farm to grab latest files via rsync.
-       fetch=fetch
+       actions='build fetch'
     else
-       fetch=''
+       actions='build'
     fi
-    if "$dir/prepare-source" $fetch; then
+    if "$dir/prepare-source" $actions; then
        :
     else
        echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2