build: store m4 files in an `m4' subdirectory
authorThierry Reding <treding@nvidia.com>
Tue, 7 Mar 2017 13:49:47 +0000 (14:49 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 8 Mar 2017 13:51:17 +0000 (14:51 +0100)
This is similar to the AUX directory that the autotools use to put
their files into, except that the `m4' directory will contain
autoconf macro files.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Makefile.am
configure.ac

index 159eb3cb6e0dd6c3e2fd57b58fea109ccf19253c..07ced30a14ad44b1a60a719c9761a767fc4206a3 100644 (file)
@@ -6,6 +6,7 @@
 # as published by the Free Software Foundation.
 #
 
+ACLOCAL_AMFLAGS = -I m4
 AUTOMAKE_OPTIONS = foreign
 SUBDIRS = include src
 
index 8117e45f95c55d485c8e8f6a1bf0341157c3b00c..375adb76ce547d70ba000df6d04c8709f4f53c10 100644 (file)
@@ -17,6 +17,7 @@ AC_DEFINE_UNQUOTED([GPIOD_VERSION_STR],
 AC_SUBST(VERSION_STR, [$PACKAGE_VERSION$EXTRA_VERSION])
 
 AC_CONFIG_AUX_DIR([autostuff])
+AC_CONFIG_MACRO_DIRS([m4])
 AM_INIT_AUTOMAKE([foreign subdir-objects])
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])