From cfac4c5d551d5307beaeb9a38b057f00cf1ec54c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 16 Apr 2015 14:46:08 +0200 Subject: [PATCH] configure.ac: Fix RHEL 5 build Avoid that building libiscsi on a RHEL 5 system fails as follows: configure.ac:7: error: possibly undefined macro: AM_SILENT_RULES Avoid that the following warning is printed when building on a RHEL 5 system: examples/Makefile.am:24: Libtool library used but `LIBTOOL' is undefined examples/Makefile.am:24: examples/Makefile.am:24: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' examples/Makefile.am:24: to `configure.ac' and run `aclocal' and `autoconf' again. Signed-off-by: Bart Van Assche --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1f942a1..d3e052d 100644 --- a/configure.ac +++ b/configure.ac @@ -4,8 +4,9 @@ AC_CONFIG_SRCDIR([lib/init.c]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects]) -AM_SILENT_RULES +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) +AC_PROG_LIBTOOL LT_INIT AC_CANONICAL_HOST