Checkout gnulib using 'git' instead of 'cvs'.
diff --git a/ChangeLog b/ChangeLog
index e3e2384..4689b31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-14  Bruno Haible  <bruno@clisp.org>
+
+	* autogen.sh: Checkout gnulib using 'git' instead of 'cvs'.
+
 2009-01-24  Bruno Haible  <bruno@clisp.org>
 
 	* tools/Makefile (ALL): Add cp1131.h.
diff --git a/autogen.sh b/autogen.sh
index 9cee094..13e48b2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -8,11 +8,11 @@
 # It also requires either
 #   - the GNULIB_TOOL environment variable pointing to the gnulib-tool script
 #     in a gnulib checkout, or
-#   - the cvs program in the PATH and an internet connection.
+#   - the git program in the PATH and an internet connection.
 # It also requires
 #   - the gperf program.
 
-# Copyright (C) 2003-2008 Free Software Foundation, Inc.
+# Copyright (C) 2003-2009 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -46,12 +46,10 @@
 if test $skip_gnulib = false; then
   if test -z "$GNULIB_TOOL"; then
     # Check out gnulib in a subdirectory 'gnulib'.
-    GNULIB_CVS_ROOT=':pserver:anonymous@pserver.git.sv.gnu.org:/gnulib.git'
-    GNULIB_CVS_REPOSITORY='gnulib'
     if test -d gnulib; then
-      (cd gnulib && cvs update -d -P)
+      (cd gnulib && git pull)
     else
-      cvs -d "$GNULIB_CVS_ROOT" checkout -d $GNULIB_CVS_REPOSITORY HEAD
+      git clone git://git.savannah.gnu.org/gnulib.git
     fi
     # Now it should contain a gnulib-tool.
     if test -f gnulib/gnulib-tool; then