Description: Change Configure to honor CFLAGS.
 Change the Configure system to use the value of the environment variables
 CFLAGS (when set) so that we can set it in debian/rules.

Author: Bill Allombert <ballombe@debian.org>
Last-Update: 2011-06-21
Index: pari-2.5.1/config/get_cc
===================================================================
--- pari-2.5.1.orig/config/get_cc	2012-02-06 23:06:23.000000000 +0100
+++ pari-2.5.1/config/get_cc	2012-02-06 23:08:44.000000000 +0100
@@ -173,7 +173,9 @@
   debugging) suffix=.dbg; cflags="-DMEMSTEP=1048576 $DBGFLAGS $cflags";;
 esac
 
-CFLAGS="$cflags $CFLAGS $CPPFLAGS"
+if test "${CFLAGS+set}" != "set" ; then
+  CFLAGS="$cflags $CFLAGS $CPPFLAGS"
+fi
 if test "$fastread" != yes; then
   echo $n ..."With which flags ? $c"
   dflt=$CFLAGS; rep=; . ./myread
