diff --git a/.gitignore b/.gitignore
index ee85884903a897209b02efbb2ac5b82b073b9af6..bf4ea60e900ce717ca15f5450546f3eda8575ed4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@
 \#*\#
 
 # Build system rules
+build-aux/*
 .deps
 Makefile
 Makefile.in
@@ -19,14 +20,6 @@ config.log
 config.status
 aclocal.m4
 autom4te.cache
-config.guess
-config.sub
-depcomp
-install-sh
-/missing
-/compile
-ylwrap
-ar-lib
 
 # Preprocessor
 /src/dynare_m
diff --git a/configure.ac b/configure.ac
index 60f801f2283f33ed4025a14b355699ae1564c7b0..72ddf60f12cf5318b83dbc9bcb712099e4c41e71 100755
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@ dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.62])
 AC_INIT([dynare-preprocessor], [4.6-unstable])
+AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_SRCDIR([src/DynareMain.cc])
 AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability foreign no-dist-gzip dist-xz tar-pax])