Fix the build with automake 1.13
authorNuno Araujo <nuno.araujo@russo79.com>
Tue, 15 Jan 2013 16:47:22 +0000 (17:47 +0100)
committerDavid Zeuthen <zeuthen@gmail.com>
Wed, 10 Apr 2013 14:21:07 +0000 (07:21 -0700)
In Automake 1.13, the long-deprecated macro AM_CONFIG_HEADER (deprecated
since 2002) has been removed in favour of AC_CONFIG_HEADERS.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
autogen.sh
configure.ac

index d08b00a..3407ae0 100755 (executable)
@@ -99,7 +99,7 @@ esac
       fi
       echo "Running aclocal $aclocalinclude ..."
       aclocal $aclocalinclude
-      if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then
+      if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
        echo "Running autoheader..."
        autoheader
       fi
index 40f0cd7..7d2dfcd 100644 (file)
@@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.59c)
 AC_INIT(polkit, 0.111 http://lists.freedesktop.org/mailman/listinfo/polkit-devel)
 AM_INIT_AUTOMAKE(polkit, 0.111)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
 AM_MAINTAINER_MODE
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])