File iwpmd-configure.patch of Package iwpmd

---
 Makefile.am  |    3 ++-
 configure.ac |   24 ++++++++++++------------
 2 files changed, 14 insertions(+), 13 deletions(-)

Index: Makefile.am
===================================================================
--- Makefile.am.orig	2015-08-18 20:40:25.000000000 +0200
+++ Makefile.am	2016-05-12 11:43:42.733417230 +0200
@@ -1,6 +1,7 @@
 AM_CPPFLAGS = -I$(srcdir)/include -I$(includedir)/libnl3 -I/usr/include/libnl3
-AM_CFLAGS = -g -O2 -Wall -D_GNU_SOURCE
+AM_CFLAGS = $(RPM_OPT_FLAGS) -D_GNU_SOURCE
 ACLOCAL_AMFLAGS = -I m4
+AUTOMAKE_OPTIONS = subdir-objects
 
 bin_PROGRAMS = src/iwpmd
 src_iwpmd_SOURCES = src/iwarp_pm_server.c src/iwarp_pm_common.c src/iwarp_pm_helper.c
Index: configure.ac
===================================================================
--- configure.ac.orig	2016-05-12 02:41:26.000000000 +0200
+++ configure.ac	2016-05-12 11:41:21.834169792 +0200
@@ -2,22 +2,22 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.63])
-AC_INIT(libiwpm, 1.0.4, linux-rdma@vger.kernel.org)
+AC_INIT([libiwpm], [1.0.4], [linux-rdma@vger.kernel.org])
 AC_CONFIG_SRCDIR([src/iwarp_pm_server.c])
 AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_AUX_DIR(config)
+AC_CONFIG_AUX_DIR([config])
 AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([foreign -Wall])
 
 # Checks for programs.
-AC_PROG_CC
-AC_PROG_LIBTOOL
-AC_PROG_INSTALL
+AC_PROG_CC()
+LT_INIT()
+AC_PROG_INSTALL()
 
 # Checks for libraries.
-AC_CHECK_LIB(pthread, pthread_cond_init, [],
+AC_CHECK_LIB([pthread], pthread_cond_init, [],
 	AC_MSG_ERROR([pthread_cond_init() not found. libiwpm requires libpthread.]))
-AC_CHECK_LIB(nl, nlmsg_alloc, [], AC_CHECK_LIB(nl-3, nlmsg_alloc, [],
+AC_CHECK_LIB([nl], nlmsg_alloc, [], AC_CHECK_LIB([nl-3], nlmsg_alloc, [],
 	AC_MSG_ERROR([nlmsg_alloc() not found. libiwpm requires libnl or libnl-3 to be installed])))
 
 
@@ -26,12 +26,12 @@ AC_CHECK_HEADERS([arpa/inet.h netinet/in
 AC_CHECK_HEADERS([netlink/attr.h netlink/addr.h netlink/data.h netlink/msg.h netlink/types.h netlink/utils.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
-AC_TYPE_PID_T
+AC_TYPE_PID_T()
 
 # Checks for library functions.
-AC_FUNC_FORK
-AC_FUNC_MALLOC
+AC_FUNC_FORK()
+AC_FUNC_MALLOC()
 AC_CHECK_FUNCS([memset select socket strerror])
 
 AC_CONFIG_FILES([Makefile libiwpm.spec])
-AC_OUTPUT
+AC_OUTPUT()
openSUSE Build Service is sponsored by