summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-03 05:18:10 -0400
committerJim Meyering <meyering@redhat.com>2009-08-03 15:14:30 +0200
commit480a489ee4c31cb2f9c9f45941645f05b5f74c67 (patch)
treef5c37d526739c71d36499e3dc9294e3bb5199e06 /autogen.sh
parent3572996364d9d24406241dee5155048440053ecf (diff)
downloadlibguestfs-480a489ee4c31cb2f9c9f45941645f05b5f74c67.tar.gz
libguestfs-480a489ee4c31cb2f9c9f45941645f05b5f74c67.tar.xz
libguestfs-480a489ee4c31cb2f9c9f45941645f05b5f74c67.zip
maint: use a git submodule for gnulib
* .gitmodules: New file, to track gnulib. * .gnulib: Submodule directory. * Makefile.am (EXTRA_DIST): Don't list config.rpath or gitlog-to-changelog. * autogen.sh: Adapt to use the new submodule. * cfg.mk: New file. (SUBDIRS): Add gnulib/lib and gnulib/tests. (dist-hook): Reflect new location of getlog-to-changelog. * configure.ac: Set build-aux/ as AUX_DIR. Invoke gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add gnulib/lib/Makefile and gnulib/tests/Makefile.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index ba4612cd..51796237 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