Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the case where h5cc -show returns multiple lines #794

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions m4/ax_lib_hdf5.m4
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ HDF5 support is being disabled (equivalent to --with-hdf5=no).
HDF5_SHOW=$(eval $H5CC -show)

dnl Get the actual compiler used
HDF5_CC=$(eval $H5CC -show | $AWK '{print $[]1}')
HDF5_CC=$(eval $H5CC -show | $AWK 'NR==1{print $[]1}')
if test "$HDF5_CC" = "ccache"; then
HDF5_CC=$(eval $H5CC -show | $AWK '{print $[]2}')
HDF5_CC=$(eval $H5CC -show | $AWK 'NR==1{print $[]2}')
fi

dnl h5cc provides both AM_ and non-AM_ options
Expand Down
Loading