From 6f639e722b54801ef1e87d6cd22b2b262b3a0191 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 8 Sep 2022 18:12:08 +0200 Subject: build: Switch to modern autoconf options --- .gitignore | 1 + Makefile.am | 4 +++- bootstrap | 9 ++++----- configure.ac | 6 +++++- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 2912af19..47b6052c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ libtool ltmain.sh missing stamp-h1 +build-aux autom4te.cache ell diff --git a/Makefile.am b/Makefile.am index 2d363465..5579ed25 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,8 @@ AM_MAKEFLAGS = --no-print-directory +ACLOCAL_AMFLAGS = -I build-aux + noinst_LTLIBRARIES = if EXTERNAL_ELL @@ -1133,7 +1135,7 @@ ell/ell.h: Makefile done maintainer-clean-local: - -rm -rf ell + -rm -rf build-aux ell clean-local: @$(RM) -rf include/ofono diff --git a/bootstrap b/bootstrap index a71f1d65..aee4c08c 100755 --- a/bootstrap +++ b/bootstrap @@ -1,8 +1,7 @@ #!/bin/sh -aclocal && \ - autoheader && \ - libtoolize --automake --copy --force && \ - autoconf && \ - automake --add-missing --copy +if [ ! -d build-aux ]; then + mkdir build-aux +fi +autoreconf --force --install --symlink diff --git a/configure.ac b/configure.ac index ebaa29ba..59cbac53 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,12 @@ AC_PREREQ([2.69]) AC_INIT([ofono], [1.34]) -AM_INIT_AUTOMAKE([foreign subdir-objects color-tests]) AC_CONFIG_HEADERS(config.h) +AC_CONFIG_AUX_DIR(build-aux) +AC_CONFIG_MACRO_DIR(build-aux) + +AM_INIT_AUTOMAKE([foreign subdir-objects color-tests silent-rules + tar-pax no-dist-gzip dist-xz]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -- cgit v1.2.1