diff options
author | Peter Simons <simons@cryp.to> | 2014-09-14 00:12:03 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-09-14 00:12:03 +0200 |
commit | 71ed7ca0b8d905302b82af60653e9c13569286b0 (patch) | |
tree | 728a094686b9e0b2acf443799805c5b955fd575b /m4/ax_lib_hdf5.m4 | |
parent | 4f16bf31f2828c5b7ab249ca16ec458f54a2c9fb (diff) | |
download | autoconf-archive-71ed7ca0b8d905302b82af60653e9c13569286b0.tar.gz |
AX_LIB_HDF5: add support for recognizing HDF5 built with ccache
The ax_lib_hdf5.m4 autoconf macro uses awk to determine which compiler was used
to build HDF5. This fails if HDF5 was built using ccache because "ccache" is
then used as HDF5_CC instead of the actual compiler wrapped by ccache. The
attached patch fixes that.
Submitted in <https://savannah.gnu.org/patch/index.php?8450>.
Diffstat (limited to 'm4/ax_lib_hdf5.m4')
-rw-r--r-- | m4/ax_lib_hdf5.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/ax_lib_hdf5.m4 b/m4/ax_lib_hdf5.m4 index f4ab866..9e77b92 100644 --- a/m4/ax_lib_hdf5.m4 +++ b/m4/ax_lib_hdf5.m4 @@ -84,7 +84,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 8 +#serial 9 AC_DEFUN([AX_LIB_HDF5], [ @@ -178,6 +178,9 @@ HDF5 support is being disabled (equivalent to --with-hdf5=no). dnl Get the actual compiler used HDF5_CC=$(eval $H5CC -show | $AWK '{print $[]1}') + if test "$HDF5_CC" = "ccache"; then + HDF5_CC=$(eval $H5CC -show | $AWK '{print $[]2}') + fi dnl h5cc provides both AM_ and non-AM_ options dnl depending on how it was compiled either one of |