aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-02-03 22:56:16 -0800
committerMark Adler <madler@alumni.caltech.edu>2012-02-04 10:00:48 -0800
commit2dadd2fab4bc4806b4781b4b7b39728e76b7a9cc (patch)
tree53affc15226d1ffa964010199c370f7391d92953 /configure
parentf9e4edc99629ae10e3cfd7091a4742e4e4e2dbec (diff)
downloadzlib-2dadd2fab4bc4806b4781b4b7b39728e76b7a9cc.tar.gz
zlib-2dadd2fab4bc4806b4781b4b7b39728e76b7a9cc.tar.bz2
zlib-2dadd2fab4bc4806b4781b4b7b39728e76b7a9cc.zip
Use name in GCC_CLASSIC as C compiler for coverage testing, if set.
Apple removed support for gcov in the default gcc compiler chain, when they moved to llvm. This can be circumvented in XCode 4.2 by using the gcc chain with gcc-4.2. This patch allows setting GCC_CLASSIC to the name of a real gcc executable (e.g. "gcc-4.2") to allow coverage testing.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 780317c..060acb7 100755
--- a/configure
+++ b/configure
@@ -416,6 +416,9 @@ fi
416 416
417if test $cover -eq 1; then 417if test $cover -eq 1; then
418 CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage" 418 CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
419 if test -n "$GCC_CLASSIC"; then
420 CC=$GCC_CLASSIC
421 fi
419fi 422fi
420 423
421echo >> configure.log 424echo >> configure.log