Modernize the configure.ac file for Automake >= 1.13

This commit is contained in:
Mathieu Bridon 2013-02-08 16:30:49 +08:00
parent a2e53b55fc
commit 25618256d2
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,32 @@
From 7ddb7d52d0398f31b8b54d4a1fb572d9ee666a52 Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <bochecha@fedoraproject.org>
Date: Fri, 8 Feb 2013 16:29:13 +0800
Subject: [PATCH] Modernize the configure.ac
Without it, Automake 1.13 and above will refuse it.
See the details for AM_INIT_AUTOMAKE at:
http://www.gnu.org/software/automake/manual/automake.html#Public-Macros
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1af149a..a87761f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,9 +1,9 @@
orig_CFLAGS="$CFLAGS"
-AC_INIT
+AC_INIT([libev], [4.11])
AC_CONFIG_SRCDIR([ev_epoll.c])
-AM_INIT_AUTOMAKE(libev,4.11) dnl also update ev.h!
+AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
--
1.8.1

View File

@ -12,6 +12,7 @@ Source0: http://dist.schmorp.de/libev/Attic/%{name}-%{version}.tar.gz
BuildRequires: autoconf automake libtool
Patch0: libev-4.11-Add-pkgconfig-support.patch
Patch1: libev-4.11-Modernize-the-configure.ac.patch
%description
Libev is modeled (very loosely) after libevent and the Event Perl
@ -44,6 +45,7 @@ This package contains the source code for libev.
%setup -q
%patch0 -p1
%patch1 -p1
autoreconf -i
@ -90,6 +92,7 @@ install -p -m 0644 Changes ev.pod LICENSE README %{inst_srcdir}
%changelog
- Make a patch out of Michal's pkgconfig support.
- Modernize the configure.ac file for Automake >= 1.13.
* Fri Sep 28 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 4.11-1
- Update to 4.11