#!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################

######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change of this file will not
# trigger a rebuild.
# E.g: version, builds, deps, auxdata, paths, builds of other packages
#
######################################################################

setValgrindTriggerVars() {
  case `uname` in
    Darwin)
      if ! test -d /usr/include/mach; then
        techo "WARNING: [$FUNCNAME] Install command line tools per "'http://sourceforge.net/p/bilder/wiki/Preparing\%20a\%20Darwin\%20machine\%20for\%20Bilder'"/."
      fi
      VALGRIND_BLDRVERSION_STD=3.10.1
      VALGRIND_BLDRVERSION_EXP=3.10.1
      case `uname -r` in
# Mavericks or later OSX 10.9
        # 1[3-9]*) VALGRIND_BUILDS=${VALGRIND_BUILDS:-"ser"};;
        1[3-9]*) VALGRIND_BUILDS=${VALGRIND_BUILDS:-"NONE"};;
      esac
      ;;
    Linux)
      VALGRIND_BLDRVERSION_STD=3.10.1
      VALGRIND_BLDRVERSION_EXP=3.10.1
      VALGRIND_BUILDS=${VALGRIND_BUILDS:-"ser"}
      ;;
  esac
  VALGRIND_DEPS=
}
setValgrindTriggerVars

######################################################################
#
# Find valgrind
#
######################################################################

findValgrind() {
  addtopathvar PATH $CONTRIB_DIR/valgrind/bin
}


#!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################

######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change of this file will not
# trigger a rebuild.
# E.g: version, builds, deps, auxdata, paths, builds of other packages
#
######################################################################

setValgrindTriggerVars() {
  VALGRIND_BLDRVERSION_STD=3.10.1
  VALGRIND_BLDRVERSION_EXP=3.11.0
  case `uname` in
    Darwin)
      case `uname -r` in
# Mavericks or later OSX 10.9 does not build 3.10.1
        1[3-9]*)
          if $BUILD_EXPERIMENTAL; then
            VALGRIND_BUILDS=${VALGRIND_BUILDS:-"ser"}
          else
            VALGRIND_BUILDS=${VALGRIND_BUILDS:-"NONE"}
          fi
          ;;
        *) VALGRIND_BUILDS=${VALGRIND_BUILDS:-"ser"};;
      esac
      ;;
    Linux)
      VALGRIND_BUILDS=${VALGRIND_BUILDS:-"ser"}
      ;;
  esac
  VALGRIND_DEPS=
}
setValgrindTriggerVars

######################################################################
#
# Find valgrind
#
######################################################################

findValgrind() {
  addtopathvar PATH $CONTRIB_DIR/valgrind/bin
}


Upgrade valgrind for Fedora 22.
Upgrade valgrind for Fedora 22.

git-svn-id: 06aac1f7aa6783202dd435920b98a457d633d0b0@2575 a9e16012-fd73-49ee-95cb-036de7809213
