[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-recutils] [PATCH] configure.ac: Don't use deprecated macros.
From: |
Michał Masłowski |
Subject: |
[bug-recutils] [PATCH] configure.ac: Don't use deprecated macros. |
Date: |
Sun, 10 Feb 2013 19:35:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Hello.
This patch fixes bootstrap error on systems using Automake 1.13 or
later. It also fixes -Wobsolete warnings that aren't errors yet.
It is also available at branch autotools-warnings of
git://elderthing.mtjm.eu/mtjm-recutils.git.
From a5e5bf3d2e0b6eacca0ee7152e8929e6bfca2d36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Mas=C5=82owski?= <address@hidden>
Date: Sun, 10 Feb 2013 19:17:22 +0100
Subject: [PATCH] configure.ac: Don't use deprecated macros.
AM_CONFIG_HEADER was removed in Automake 1.13, the other macros
changed caused deprecation warnings.
---
ChangeLog | 6 ++++++
configure.ac | 31 ++++++++++++++++---------------
2 files changed, 22 insertions(+), 15 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 94dc598..b81e2d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-02-10 Michał Masłowski <address@hidden>
+
+ * configure.ac: Use AC_CONFIG_HEADERS, LT_INIT and AC_CONFIG_FILES
+ instead of deprecated AM_CONFIG_HEADER, AC_PROG_LIBTOOL and
+ argument of AC_OUTPUT.
+
2013-02-10 Jose E. Marchesi <address@hidden>
* src/rec-db.c (rec_db_process_fex): Avoid a segmentation fault
diff --git a/configure.ac b/configure.ac
index f4f4462..a901622 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@ AC_INIT([GNU recutils], [1.5], address@hidden)
dnl Must come before AM_INIT_AUTOMAKE
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE
-AM_CONFIG_HEADER(src/config.h)
+AC_CONFIG_HEADERS(src/config.h)
AC_CONFIG_MACRO_DIR([m4])
dnl Autobuild
@@ -32,7 +32,7 @@ AB_INIT
AC_PROG_CC
gl_EARLY
-AC_PROG_LIBTOOL
+LT_INIT
AC_PROG_CC_C99
AM_PROG_CC_C_O
@@ -186,19 +186,20 @@ AC_ARG_ENABLE([coverage],
AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
dnl Generate output files
-AC_OUTPUT(Makefile
- lib/Makefile
- libcsv/Makefile
- src/Makefile
- utils/Makefile
- doc/Makefile
- po/Makefile.in
- torture/Makefile
- torture/utils/Makefile
- torture/utils/config.sh
- man/Makefile
- etc/Makefile
- algol68/Makefile)
+AC_CONFIG_FILES(Makefile
+ lib/Makefile
+ libcsv/Makefile
+ src/Makefile
+ utils/Makefile
+ doc/Makefile
+ po/Makefile.in
+ torture/Makefile
+ torture/utils/Makefile
+ torture/utils/config.sh
+ man/Makefile
+ etc/Makefile
+ algol68/Makefile)
+AC_OUTPUT
dnl Report warnings
--
1.8.0.2
pgpPzZ4tPsic1.pgp
Description: PGP signature
- [bug-recutils] [PATCH] configure.ac: Don't use deprecated macros.,
Michał Masłowski <=