build: Modernise configure.ac
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 24 May 2017 13:16:38 +0000 (14:16 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 24 May 2017 13:21:09 +0000 (14:21 +0100)
We use AM_SILENT_RULES but ask for automake 1.9 at the minimum, which
didn't have AM_SILENT_RULES (they were introduced in 1.11.2).

Additionally, we want AM_PROC_CC_C_O, not AC_PROG_CC, to find out our
C compiler.

configure.ac
dbind/Makefile.am

index 684c783..1c6988d 100644 (file)
@@ -20,14 +20,14 @@ AC_SUBST(LT_CURRENT)
 AC_SUBST(LT_REVISION)
 AC_SUBST(LT_AGE)
 
-AM_INIT_AUTOMAKE([1.9 -Wall foreign no-dist-gzip dist-xz])
+AM_INIT_AUTOMAKE([1.13 -Wall -Wno-portability foreign subdir-objects no-dist-gzip dist-xz])
 
 # Support silent build rules. Disable
 # by either passing --disable-silent-rules to configure or passing V=1
 # to make
 AM_SILENT_RULES([yes])
 
-AC_PROG_CC
+AM_PROG_CC_C_O
 LT_INIT([disable-static])
 PKG_PROG_PKG_CONFIG
 
index c3d7bb5..201570a 100644 (file)
@@ -1,6 +1,3 @@
-# We build atspi-gmain.c which is located in a different directory.
-AUTOMAKE_OPTIONS = subdir-objects
-
 noinst_LTLIBRARIES = libdbind.la
 
 AM_CPPFLAGS = \