diff --git a/config/ChangeLog b/config/ChangeLog
index 9605d6a66..c4b456287 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS.
+
 2009-11-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
 	    Joel Brobecker  <brobecker@adacore.com>
 	    Paolo Bonzini  <bonzini@gnu.org>
diff --git a/config/largefile.m4 b/config/largefile.m4
index e75eb7753..9449b12dc 100644
--- a/config/largefile.m4
+++ b/config/largefile.m4
@@ -4,6 +4,12 @@
 # of structures used to describe files.
 
 AC_DEFUN([ACX_LARGEFILE],[dnl
+
+# As the $enable_largefile decision depends on --enable-plugins we must set it
+# even in directories otherwise not depending on the $plugins option.
+
+AC_PLUGINS
+
 case "${host}" in
 changequote(,)dnl
   sparc-*-solaris*|i[3-7]86-*-solaris*)