From patchwork Wed Apr 8 16:52:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6181511 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 731119F2E9 for ; Wed, 8 Apr 2015 16:49:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 95DD420374 for ; Wed, 8 Apr 2015 16:49:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 76E1D20373 for ; Wed, 8 Apr 2015 16:49:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 825046E26A; Wed, 8 Apr 2015 09:49:23 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 435576E127 for ; Wed, 8 Apr 2015 09:49:22 -0700 (PDT) Received: by wiun10 with SMTP id n10so65945629wiu.1 for ; Wed, 08 Apr 2015 09:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Zz/hkYrlOEzJ1QoomORsZrnK4rhL1AkHVa6ns9hgB4U=; b=SJrq2Enwk+x13++2AA0MGBVloEc/CxQTeXJIHdPR9eMKzWlVe9tHLpB9TIIouVTsky LQc3zw95XfUY4/rT45Nn4yave6fEBlmlU1aELn/5rBxb/D4Yh0ZX6gLWwqwx7cniJxuD IKoYMb3BAUXF0UdI9UPOnmjHpSMvA90Pvlr9sg5pj9AwYxg7VbgkUUpC4bxo/TNijsOD MLHPsfL9QrAecLBVxACVjHWB+mYbr6zNp8Ehnslz2/39annHuRvoFLgmI24NzgQ4Zns/ 9LXOiA1aC8hkwRRJ6Mghh7/8xEWP2fokA+/Z5XuD7y534SaAQorzsCQqdqCgVIvVgxij Ea5g== X-Received: by 10.194.175.39 with SMTP id bx7mr52885837wjc.22.1428511761226; Wed, 08 Apr 2015 09:49:21 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id at4sm16383076wjc.16.2015.04.08.09.49.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Apr 2015 09:49:20 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 1/3] configure: request/set the compiler in C99 mode Date: Wed, 8 Apr 2015 17:52:37 +0100 Message-Id: <1428511959-25990-1-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Required by intel and drmstat at least. Considering that every compiler used to build libdrm is C99 compatible, just enable it for the whole build. Signed-off-by: Emil Velikov --- configure.ac | 5 +++++ intel/Makefile.am | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e715262..320e482 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) # Check for programs AC_PROG_CC +AC_PROG_CC_C99 + +if test "x$ac_cv_prog_cc_c99" = xno; then + AC_MSG_ERROR([Building libdrm requires C99 enabled compiler]) +fi AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE diff --git a/intel/Makefile.am b/intel/Makefile.am index de3baab..d004568 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -42,8 +42,6 @@ libdrm_intel_la_LIBADD = ../libdrm.la \ libdrm_intel_la_SOURCES = $(LIBDRM_INTEL_FILES) -intel_bufmgr_gem_o_CFLAGS = $(AM_CFLAGS) -c99 - libdrm_intelincludedir = ${includedir}/libdrm libdrm_intelinclude_HEADERS = $(LIBDRM_INTEL_H_FILES)