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.15.4/config/get_cc
===================================================================
--- pari-2.15.4.orig/config/get_cc
+++ pari-2.15.4/config/get_cc
@@ -146,7 +146,9 @@ case "$optimization" in
   gcov)      suffix=.gcov; cflags="$GCOVFLAGS $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
