[PATCH 3/3] configure.ac: add subdir-objects

Steve Grubb sgrubb at redhat.com
Wed Jul 6 22:47:47 UTC 2016


On Wednesday, July 6, 2016 9:08:19 PM EDT Thomas Petazzoni wrote:
> This allows to avoid the following warning when re-generating the
> configure script:
> 
> auparse/Makefile.am:95: warning: source file '../lib/gen_tables.c' is in a
> subdirectory, auparse/Makefile.am:95: but option 'subdir-objects' is
> disabled

I saw these in the last couple weeks. However...

> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 00788c4..e9f7cb9 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -37,7 +37,7 @@ echo Configuring auditd $VERSION
> 
>  AC_CONFIG_MACRO_DIR([m4])
>  AC_CANONICAL_TARGET
> -AM_INIT_AUTOMAKE
> +AM_INIT_AUTOMAKE([subdir-objects])
>  AM_PROG_LIBTOOL
>  AC_SUBST(LIBTOOL_DEPS)
>  OLDLIBS="$LIBS"

Applying this breaks the build

     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[4]: Entering directory '/home/sgrubb/working/BUILD/audit/bindings/python/
python2'
Makefile:485: ../../../bindings/python/.deps/auparse_la-auparse_python.Plo: No 
such file or directory
make[4]: *** No rule to make target '../../../bindings/python/.deps/
auparse_la-auparse_python.Plo'.  Stop.

-Steve




More information about the Linux-audit mailing list