diff --git a/configure.ac b/configure.ac
index 194b9b33384176cd0b0580141b5bdd8865e18276..05c343c477a910c02663fa8181b2c9cdb318ac14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,12 +34,12 @@ AC_CONFIG_FILES([Makefile
      doc/buildsystem/Makefile
      m4/Makefile
      am/Makefile
-     bin/check-log-store
      dune-common.pc])
-AC_OUTPUT
-
 # make scripts executable
-chmod +x bin/check-log-store
+AC_CONFIG_FILES([
+     bin/check-log-store],[
+     chmod +x bin/check-log-store])
+AC_OUTPUT
 
 # print results
 DUNE_SUMMARY_ALL