From patchwork Tue Aug 22 10:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 110647 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp5107591obb; Tue, 22 Aug 2017 03:22:57 -0700 (PDT) X-Received: by 10.55.124.67 with SMTP id x64mr224764qkc.98.1503397377315; Tue, 22 Aug 2017 03:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503397377; cv=none; d=google.com; s=arc-20160816; b=YIgMC+OxwVX788T6/QcTg6+zWP+JRpr7gdXG5qtAWNEYGa8Mj3tyEj1OWoqrJg+VGb awtTyd9Tv3ce7nP6aklZXbB+ynJ+4/uZPqQw4G5b8TIi0U5YHg4A/w23kjc97YFNDu1g c7008S9Y/ssdSJRfYnUTphWgTVqRWzdDqTUnGryxHFQeDaR17NxTSzT83HsZALNhDrnM zrwAdQW4OGM6rHfosMJl2kEGYmymfD/1B01NeCt9jhT4/SFG3ePd+vgPIlLiVpy1sNGk GmzsOHfrAQ241Y21qDd+lBvKEVLH9GQo+fTUrQn95c/rNeWMUqz+qpLM+ZPjZxfDMJzZ RxiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=BI6PI5fJsDD19Cam0/6nyKVTdc6C82dBHMmsWG3ebzs=; b=QH43yafM+UKcInCjU98/TEkXpcm0hGpisUkLji/v9VmEVQwij0G+Pyrxku0XRe+6tC +G/VvDkB6Op6NMOOmu5ojdwDHc04Kjx8Qu6zo3AidzB/GyLDPu2XQNc5d68kay+Wtj1X 6OjsbN5K8hjhPe505IUDz5ZiE4tUlLK6tdZmYxdy96sEMZrtQ3hKC2/kSw3MVQzeBPFV bKVPynDWYSaPaCLEW0uQIwAF/iTB1nWF6M3juiKdpKfBBzCqmCj/GmbRddrEuWMGaqSG Dh7Yvqm3fIcO98QS7JnApa/cch2Vv+nYRj7nTJ3iXg+FfdNO8m7J1RVzEA/ck9LUoxnG Shjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 16si13387266qkl.451.2017.08.22.03.22.56; Tue, 22 Aug 2017 03:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id CBC14636AF; Tue, 22 Aug 2017 10:22:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, LONGWORDS, RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 973E165C35; Tue, 22 Aug 2017 10:03:12 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B817265BC3; Tue, 22 Aug 2017 10:02:51 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 7F11C65BC3 for ; Tue, 22 Aug 2017 10:00:33 +0000 (UTC) Received: from mxback10j.mail.yandex.net (mxback10j.mail.yandex.net [IPv6:2a02:6b8:0:1619::113]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 77DBD510446A for ; Tue, 22 Aug 2017 13:00:32 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback10j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id dpoAsZqld6-0WeSao7Z; Tue, 22 Aug 2017 13:00:32 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Rlal5nTP8B-0VfWfIST; Tue, 22 Aug 2017 13:00:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 22 Aug 2017 13:00:08 +0300 Message-Id: <1503396009-8350-25-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> References: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 127 Subject: [lng-odp] [PATCH v5 24/25] configure: drop AC_FUNC_MALLOC test X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov AC_FUNC_MALLOC interacts badly with cross-compilation. Instead of hacking around our cross-compilation setup just replace this macro with plain AC_CHECK_FUNCS test. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 127 (lumag:improve-build) ** https://github.com/Linaro/odp/pull/127 ** Patch: https://github.com/Linaro/odp/pull/127.patch ** Base sha: aecb3c7a442b426761f1e6f43308a1e9ea709ef3 ** Merge commit sha: 86e036501e05c61e5570d0908af382a61c2d4e89 **/ configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1c748fdc..e6014835 100644 --- a/configure.ac +++ b/configure.ac @@ -63,9 +63,10 @@ AC_SUBST([LIBTOOL_DEPS]) AM_PROG_LIBTOOL # Checks for library functions. -AC_FUNC_MALLOC +dnl breaks cross-compilation and malloc(0) behaviour is not that important +dnl AC_FUNC_MALLOC AC_FUNC_MMAP -AC_CHECK_FUNCS([bzero clock_gettime gethostbyname getpagesize gettimeofday memset munmap socket strchr strerror strrchr strstr strtoull]) +AC_CHECK_FUNCS([bzero clock_gettime gethostbyname getpagesize gettimeofday malloc memset munmap socket strchr strerror strrchr strstr strtoull]) # Checks for header files. AC_HEADER_RESOLV