#15697: Upgrade MPC to latest upstream
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: closed
Priority: minor | Milestone: sage-6.2
Component: packages: | Resolution: fixed
standard | Merged in:
Keywords: | Reviewers: François Bissey
Authors: Jeroen Demeyer | Work issues:
Report Upstream: N/A | Commit:
Branch: | 00a5937b33cd8ad6f1eafbccfbab1d4f73321bf3
u/jdemeyer/ticket/15697 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
I'm posting an answer from Andreas Enge, MPC developer:
Does the following patch solve the problem for you?
{{{
#!diff
--- m4/mpc.m4 (revision 1450)
+++ m4/mpc.m4 (working copy)
@@ -1,6 +1,6 @@
# mpc.m4
#
-# Copyright (C) 2008, 2009, 2010, 2011, 2012 INRIA
+# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2014 INRIA
#
# This file is part of GNU MPC.
#
@@ -127,9 +127,12 @@
AC_DEFUN([MPC_GMP_CC_CFLAGS], [
AC_MSG_CHECKING(for CC and CFLAGS in gmp.h)
# AC_PROG_CPP triggers the search for a C compiler; use hack instead
- for cpp in /lib/cpp gcc cc c99
+ for cpp in $CPP cpp gcc /lib/cpp cc c99
do
- test $cpp = /lib/cpp || cpp="$cpp -E"
+ case $cpp in
+ *cpp*) ;;
+ *) cpp="$cpp -E" ;;
+ esac
echo foo > conftest.c
if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
# Get CC
}}}
It brings things a bit closer to mpfr and adds `$CPP` to the list of
possible
preprocessors.
If yes, I can push it to the mpc trunk.
Thanks in advance,
Andreas
--
Ticket URL: <http://trac.sagemath.org/ticket/15697#comment:21>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.