[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with valgrind-tests: relies on bash not causing error
From: |
Bruno Haible |
Subject: |
Re: Problem with valgrind-tests: relies on bash not causing error |
Date: |
Wed, 12 Apr 2017 16:17:10 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-71-generic; KDE/5.18.0; x86_64; ; ) |
Hi Reuben,
> The test for whether to use valgrind runs:
>
> /bin/bash -c 'exit 0'
>
> This looks pretty harmless; unfortunately, bash itself causes problems:
I'd suggest that you change m4/valgrind-tests.m4 to use the AC_CACHE_CHECK
macro instead of "lone" AC_MSG_CHECKING and AC_MSG_RESULT invocations.
Then you have an cache variable that you set as an environment variable
in order to override the result of this test, e.g.
$ env gl_cv_use_valgrind=yes ./configure
Remember, nowadays that the autoconf cache is disabled by default, the
major benefit of AC_CACHE_CHECK is that it provides the user a way to
selectively override configure test results.
Bruno