Browse files

Issue 286: --disable-coverage drops "-pthread" option

-pthread was added as part of setting up the gcov options
  • Loading branch information...
1 parent 890dfb7 commit ad27588391e4f5f85f07f9d734334ade4cc5dbb0 @trondn trondn committed Sep 1, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 configure.ac
View
8 configure.ac
@@ -49,6 +49,8 @@ AC_DEFUN([DETECT_SUNCC],
])
DETECT_SUNCC([CFLAGS="-mt $CFLAGS"], [])
+AS_IF([test "$ICC" = "yes" -o "$GCC" = "yes"],
+ [CFLAGS="$CFLAGS -pthread"])
if test "$ICC" = "no"; then
AC_PROG_CC_C99
@@ -140,11 +142,7 @@ AC_ARG_ENABLE(coverage,
[AS_HELP_STRING([--disable-coverage],[Disable code coverage])])
if test "x$enable_coverage" != "xno"; then
- if test "$ICC" = "yes"
- then
- dnl ICC trying to be gcc, but not well
- CFLAGS="$CFLAGS -pthread"
- elif test "$GCC" = "yes"
+ if test "$GCC" = "yes" -a "$ICC" != "yes"
then
CFLAGS="$CFLAGS -pthread"
AC_PATH_PROG([PROFILER], [gcov], "no", [$PATH])

0 comments on commit ad27588

Please sign in to comment.