From 3f7b97011cb68f2b0a8345683981382ad07d3c0f Mon Sep 17 00:00:00 2001 From: enge Date: Tue, 21 Feb 2012 13:40:30 +0000 Subject: mpc.m4: removed -Werror, simplified check for complex support, cf. bug #13901 git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1124 211d60ee-9f03-0410-a15a-8952a2c7a4e4 --- m4/mpc.m4 | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'm4') diff --git a/m4/mpc.m4 b/m4/mpc.m4 index 683c7f0..6dfed19 100644 --- a/m4/mpc.m4 +++ b/m4/mpc.m4 @@ -1,6 +1,6 @@ /* mpc.m4 -Copyright (C) 2008, 2009, 2010, 2011 INRIA +Copyright (C) 2008, 2009, 2010, 2011, 2012 INRIA This file is part of GNU MPC. @@ -45,7 +45,8 @@ AC_DEFUN([MPC_COMPLEX_H], [ ] ) - AC_MSG_CHECKING([whether creal, cimag and I can be used without additional library]) + AC_SEARCH_LIBS([creal], [m]) + AC_MSG_CHECKING([whether creal, cimag and I can be used]) AC_LINK_IFELSE( [MPC_CONFTEST], [ @@ -53,22 +54,7 @@ AC_DEFUN([MPC_COMPLEX_H], [ AC_DEFINE([HAVE_COMPLEX_H], [1], [complex.h present and usable]) ], [ - AC_MSG_RESULT([no]) - AC_SEARCH_LIBS([creal], [m], - [ - AC_MSG_CHECKING([whether creal and cimag can be used with additional library]) - AC_LINK_IFELSE( - [MPC_CONFTEST], - [ - AC_MSG_RESULT([yes]) - AC_DEFINE([HAVE_COMPLEX_H], [1], [complex.h present and usable]) - ], - [ - AC_MSG_RESULT([no, build without support for C complex numbers]) - ] - ) - ] - ) + AC_MSG_RESULT([no, build without support for C complex numbers]) ] ) ] @@ -117,7 +103,6 @@ AC_DEFUN([MPC_C_CHECK_WARNINGCFLAGS], [ MPC_C_CHECK_FLAG(-Wno-long-long) MPC_C_CHECK_FLAG(-Wall) MPC_C_CHECK_FLAG(-Wextra) - MPC_C_CHECK_FLAG(-Werror) MPC_C_CHECK_FLAG(-Wdeclaration-after-statement) MPC_C_CHECK_FLAG(-Wundef) MPC_C_CHECK_FLAG(-Wshadow) -- cgit v1.2.1