mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r27183] removed the use of -i in sed, used mv instead from a temporary file.
This commit is contained in:
parent
48741994ac
commit
7a49603732
2
configure
vendored
2
configure
vendored
@ -32701,7 +32701,7 @@ $as_echo X"$file" |
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
"fortran/src/H5config_f.inc":H) sed -i '1d;s%^/\* \(.*\) \*/%\1%;s/#define /#define H5_/;s/#undef /#undef H5_/' fortran/src/H5config_f.inc ;;
|
"fortran/src/H5config_f.inc":H) cat fortran/src/H5config_f.inc | sed '1d;s%^/\* \(.*\) \*/%\1%;s/#define /#define H5_/;s/#undef /#undef H5_/' >fortran/src/H5config_f.inc.tmp; mv -- fortran/src/H5config_f.inc.tmp fortran/src/H5config_f.inc ;;
|
||||||
"libtool":C)
|
"libtool":C)
|
||||||
|
|
||||||
# See if we are running on zsh, and set the options which allow our
|
# See if we are running on zsh, and set the options which allow our
|
||||||
|
@ -369,7 +369,7 @@ if test "X$HDF_FORTRAN" = "Xyes"; then
|
|||||||
## Prepend H5_ to all macro names. This avoids name conflict between HDF5 macro
|
## Prepend H5_ to all macro names. This avoids name conflict between HDF5 macro
|
||||||
## names and those generated by another software package that uses the HDF5 library.
|
## names and those generated by another software package that uses the HDF5 library.
|
||||||
AC_CONFIG_HEADERS([fortran/src/H5config_f.inc],
|
AC_CONFIG_HEADERS([fortran/src/H5config_f.inc],
|
||||||
[sed -i '1d;s%^/\* \(.*\) \*/%\1%;s/#define /#define H5_/;s/#undef /#undef H5_/' fortran/src/H5config_f.inc])
|
[cat fortran/src/H5config_f.inc | sed '1d;s%^/\* \(.*\) \*/%\1%;s/#define /#define H5_/;s/#undef /#undef H5_/' >fortran/src/H5config_f.inc.tmp; mv -f fortran/src/H5config_f.inc.tmp fortran/src/H5config_f.inc])
|
||||||
|
|
||||||
AC_SUBST([FC]) HDF_FORTRAN=yes
|
AC_SUBST([FC]) HDF_FORTRAN=yes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user