bootstrap: check for LT_INIT, too
[gnulib.git] / build-aux / bootstrap
index ae2b8a2..74573ef 100755 (executable)
@@ -597,7 +597,7 @@ for command in \
   'automake --add-missing --copy --force-missing';
 do
   if test "$command" = libtool; then
-    grep '^[    ]*A[CM]_PROG_LIBTOOL\>' configure.ac >/dev/null ||
+    grep -E '^[         ]*(LT_INIT|A[CM]_PROG_LIBTOOL)\>' configure.ac >/dev/null ||
       continue
     command='libtoolize -c -f'
   fi