X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=autogen.sh;h=51796237ffe8026bbddeb75c35d213a655523c86;hp=ba4612cd8bf4989aa8ce908d4f24c143136e1df7;hb=480a489ee4c31cb2f9c9f45941645f05b5f74c67;hpb=3572996364d9d24406241dee5155048440053ecf diff --git a/autogen.sh b/autogen.sh index ba4612c..5179623 100755 --- a/autogen.sh +++ b/autogen.sh @@ -21,6 +21,17 @@ set -e set -v +# Ensure that whenever we pull in a gnulib update or otherwise change to a +# different version (i.e., when switching branches), we also rerun ./bootstrap. +curr_status=.git-module-status +t=$(git submodule status) +if test "$t" = "$(cat $curr_status 2>/dev/null)"; then + : # good, it's up to date +else + echo running bootstrap... + ./bootstrap && echo "$t" > $curr_status +fi + mkdir -p daemon/m4 autoreconf -i