]> arthur.barton.de Git - bup.git/blobdiff - config/configure
Adjust --exclude* parsing and drecurse-cmd for python 3 and test
[bup.git] / config / configure
index 1ea6757a3df313c29f5d27b4f7db0f1c00a622b5..33e9ba26a00da52d3c769e536635483d7f3a7b17 100755 (executable)
@@ -67,6 +67,8 @@ if test -z "$bup_python"; then
     AC_FAIL "ERROR: unable to find python"
 else
     AC_SUB bup_python "$bup_python"
+    AC_SUB bup_python_majver \
+           "$("$bup_python" -c 'import sys; print(sys.version_info[0])')"
 fi
 
 if test -z "$(bup_find_prog git '')"; then
@@ -156,9 +158,8 @@ AC_CHECK_FIELD stat st_ctimensec sys/types.h sys/stat.h unistd.h
 
 AC_CHECK_FIELD tm tm_gmtoff time.h
 
-__config_files="$__config_files config.vars.sh"
-
 AC_OUTPUT config.vars
 
-printf 'bup_make=%q\n' "$MAKE" > config.vars.sh
-printf 'bup_python=%q\n' "$bup_python" >> config.vars.sh
+mkdir -p config.var
+echo -n "$MAKE" > config.var/bup-make
+echo -n "$bup_python" > config.var/bup-python