The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3152

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
In addition to PR  #3146. This PR updates the remaining obsolete functions according to Autoconf 2.69 manual. 

Signed-off-by: Caio B. Silva <caiobo...@gmail.com>
From d12860c00ba6f80684048adff10e774ba571b7c7 Mon Sep 17 00:00:00 2001
From: "Caio B. Silva" <caiobo...@gmail.com>
Date: Tue, 1 Oct 2019 11:36:05 -0300
Subject: [PATCH] update obsolete functions

Signed-off-by: Caio B. Silva <caiobo...@gmail.com>
---
 configure.ac | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index faaebfce2e..645a2166db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ m4_define([lxc_version],
         ifelse(lxc_version_beta, [], [lxc_version_base], 
[lxc_version_base.lxc_version_beta])-devel,
         ifelse(lxc_version_beta, [], [lxc_version_base], 
[lxc_version_base.lxc_version_beta]))])
 
-AC_INIT([lxc], [lxc_version])
+AC_INIT([lxc],[lxc_version])
 
 # We need pkg-config
 PKG_PROG_PKG_CONFIG
@@ -42,7 +42,7 @@ AC_CONFIG_HEADERS([src/config.h])
 AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects])
 AC_CANONICAL_HOST
 AM_PROG_CC_C_O
-AC_GNU_SOURCE
+AC_USE_SYSTEM_EXTENSIONS
 
 # Test if we have a new enough compiler.
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
@@ -622,7 +622,7 @@ AC_FUNC_STRERROR_R
 
 # Check if "%m" is supported by printf and Co
 AC_MSG_CHECKING([%m format])
-AC_TRY_RUN([
+AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <stdio.h>
 int main(void)
 {
@@ -638,8 +638,7 @@ int main(void)
   {
     return 1;
   }
-}],
-[fmt_m=yes], [fmt_m=no], [fmt_m=no])
+}]])],[fmt_m=yes],[fmt_m=no],[fmt_m=no])
 if test "x$fmt_m" = "xyes"; then
        AC_DEFINE([HAVE_M_FORMAT], 1, [Have %m format])
        AC_MSG_RESULT([yes])
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to